The Student Room Group

Differentiation help please!

Hi, It’s been a while since I done calculus & I’d really appreciate someone checking if I’ve done this calculation right.

I have D= (-q)/(4πa ) 1/(1-R)

R=r/a Where r=(x^2+y^2+z^2 )^(1/2)

I want to find (∂D)/∂x

I’ve worked it out to be (-q)/4π x/(r(1-R)) is this correct?

Thanks
Cheese Toasty
Hi, It’s been a while since I done calculus & I’d really appreciate someone checking if I’ve done this calculation right.

I have D= (-q)/(4πa ) 1/(1-R)

R=r/a Where r=(x^2+y^2+z^2 )^(1/2)

I want to find (∂D)/∂x

I’ve worked it out to be (-q)/4π x/(r(1-R)) is this correct?

Thanks


In the question, D=(q4na)(11R) D = (\frac{-q}{4na}) (\frac{1}{1-R}) right?
Reply 2
Yes that's right. (Sorry I couldn't work out how to write equations properly on here)
Cheese Toasty
Yes that's right. (Sorry I couldn't work out how to write equations properly on here)

No that's fine, have a look at this if you intend to use the maths forum further: http://www.thestudentroom.co.uk/wiki/LaTex

Here's what I got for the differentiation. It would be useful if you could show your method too.

D=((q4na)(11R)) D = \left( (\dfrac{-q}{4na})(\dfrac{1}{1-R}) \right)

(DR)q,n,a=(q4na)(1(1R)2) (\dfrac{\partial D}{\partial R})_{q,n,a} = (\dfrac{-q}{4na})(\dfrac{1}{(1-R)^2})

R=ra R = \dfrac{r}{a}

(Rr)a=1a (\dfrac{\partial R}{\partial r})_{a} = \dfrac{1}{a}

r=(x2+y2+z2)12 r =(x^2 + y^2 + z^2)^{\frac{1}{2}}

(rx)y,z=x(x2+y2+z2)12=xr (\dfrac{\partial r}{\partial x})_{y,z} = x(x^2 + y^2 + z^2)^{-\frac{1}{2}} = \dfrac{x}{r}

Dx=(DR)(Rr)(rx) \dfrac{\partial D}{\partial x} = (\dfrac{\partial D}{\partial R}) (\dfrac{\partial R}{\partial r}) (\dfrac{\partial r}{\partial x})

Dx=(q4na2)(xr(1R)2) \dfrac{\partial D}{\partial x} =(\dfrac{-q}{4na^2})(\dfrac{x}{r(1-R)^2})
Reply 4
Thanks, heres my attempt at explaining what I did using Latex.

Since everything in the first term is a constant I only differentiated the second term. (I don't think I made clear the fact that a is a constant in my original post).

x11R\displaystyle \frac{\partial}{\partial x}\frac{1}{1-R}

Using reciprocal rule (from quotient rule) g(x)(g(x))2\displaystyle \frac{-g'(x)}{(g(x))^2}

And using chain rule
(g(x))=u1u12a(g'(x))= \displaystyle \frac{\partial}{\partial u}1-\frac{u^\frac{1}{2}}{a} . xu\displaystyle \frac{\partial}{\partial x}u

With (x2+y2+z2)=u(x^2+y^2+z^2)=u


u1u12a\displaystyle \frac{\partial}{\partial u}1-\frac{u^\frac{1}{2}}{a} = 12u12a-\frac{1}{2}\frac{u^-\frac{1}{2}}{a}


xu\displaystyle \frac{\partial}{\partial x}u = 2x2x


Therefore (g(x))=axu12(-g'(x))= \frac{ax}{u^\frac{1}{2}} =axr=\frac{ax}{r}

and g(x)(g(x))2\displaystyle \frac{-g'(x)}{(g(x))^2} = axr(1R)\frac{ax}{r(1-R)}


So
x=q4n.xr(1R)\displaystyle \frac{\partial}{\partial x}=\frac{-q}{4n} . \frac{x}{r(1-R)}
Cheese Toasty
Thanks, heres my attempt at explaining what I did using Latex.

Since everything in the first term is a constant I only differentiated the second term. (I don't think I made clear the fact that a is a constant in my original post).

x11R\displaystyle \frac{\partial}{\partial x}\frac{1}{1-R}

Using reciprocal rule (from quotient rule) g(x)(g(x))2\displaystyle \frac{-g'(x)}{(g(x))^2}

And using chain rule
(g(x))=u1u12a(g'(x))= \displaystyle \frac{\partial}{\partial u}1-\frac{u^\frac{1}{2}}{a} . xu\displaystyle \frac{\partial}{\partial x}u

With (x2+y2+z2)=u(x^2+y^2+z^2)=u


u1u12a\displaystyle \frac{\partial}{\partial u}1-\frac{u^\frac{1}{2}}{a} = 12u12a-\frac{1}{2}\frac{u^-\frac{1}{2}}{a}


xu\displaystyle \frac{\partial}{\partial x}u = 2x2x


Therefore (g(x))=axu12(-g'(x))= \frac{ax}{u^\frac{1}{2}} =axr=\frac{ax}{r}

and g(x)(g(x))2\displaystyle \frac{-g'(x)}{(g(x))^2} = axr(1R)\frac{ax}{r(1-R)}


So
x=q4n.xr(1R)\displaystyle \frac{\partial}{\partial x}=\frac{-q}{4n} . \frac{x}{r(1-R)}


Yeah, that was a lot more useful to analyse, look at (g(x))2 (g(x))^2 when you plug it back in.

Also, these lines do not follow. Try spotting the mistake.

u1u12a\displaystyle \frac{\partial}{\partial u}1-\frac{u^\frac{1}{2}}{a} = 12u12a-\frac{1}{2}\frac{u^-\frac{1}{2}}{a}


xu\displaystyle \frac{\partial}{\partial x}u = 2x2x

Therefore (g(x))=axu12(-g'(x))= \frac{ax}{u^\frac{1}{2}} =axr=\frac{ax}{r}
Reply 6
Thanks for your patience. Think I see what I've done wrong (apart from forgetting to square (1-R)) I think I substituted r for u to soon. I should have got:

(g(x))=xu12a(-g'(x))= \frac{xu^-\frac{1}{2}}{a}

Then g(x)(g(x))2\displaystyle \frac{-g'(x)}{(g(x))^2} = axu12\frac{a}{xu^-\frac{1}{2}} . 1(1R)2\frac{1}{(1-R)^2}

= axr\frac{a}{\frac{x}{r}} . 1(1R)2\frac{1}{(1-R)^2}

= xar(1R)2\frac{x}{ar(1-R)^2}


So xD=q4na2.xr(1R)\displaystyle \frac{\partial}{\partial x}D=\frac{-q}{4na^2} . \frac{x}{r(1-R)}
Cheese Toasty
Thanks for your patience. Think I see what I've done wrong (apart from forgetting to square (1-R)) I think I substituted r for u to soon. I should have got:

(g(x))=xu12a(-g'(x))= \frac{xu^-\frac{1}{2}}{a}

Then g(x)(g(x))2\displaystyle \frac{-g'(x)}{(g(x))^2} = axu12\frac{a}{xu^-\frac{1}{2}} . 1(1R)2\frac{1}{(1-R)^2}

= axr\frac{a}{\frac{x}{r}} . 1(1R)2\frac{1}{(1-R)^2}

= xar(1R)2\frac{x}{ar(1-R)^2}


So xD=q4na2.xr(1R)\displaystyle \frac{\partial}{\partial x}D=\frac{-q}{4na^2} . \frac{x}{r(1-R)}


No worries, you forgot the squared on your final line :p: You've got to the right result despite forgetting the squared but there are a few discrepancies between your lines that don't make sense.

(g(x))=xu12aaxu12(-g'(x))= \frac{xu^-\frac{1}{2}}{a} \not= \frac{a}{xu^-\frac{1}{2}}


CORRECTION: xu12a=xau12=xar \frac{xu^-\frac{1}{2}}{a} = \frac{x}{au^\frac{1}{2}} = \frac{x}{ar} as u12=r u^{\frac{1}{2}} = r

This line is automatically wrong as it leads on from your working but it's also wrong algebraically, if it were by itself.
axr\frac{a}{\frac{x}{r}} . 1(1R)2xar(1R)2\frac{1}{(1-R)^2}\not=\frac{x}{ar(1-R)^2}


axr=a \frac{a}{\frac{x}{r}} = a .rx=arx\frac{r}{x} = \frac{ar}{x}

Did you try to follow my alternative method? It will clarify in your mind what you should be differentiating and what is kept constant etc.

Latest