quick question on differential calculus. ? in thread.
bare with me while i quickly type it.
given that g(r,theta)=f(rcos(theta), rsin(theta), if i were computing the derivatives, could i do dg/dtheta=df/dtheta, where d is partial deriv.
im trying to figure out how to write d^2g/dtheta^2 in terms of partial derivatives of f, the way i am thinking i can do it is using chain rule?
You should think of it as \(f(x(r,\theta),y(r,\theta))\)
What is the partial derivative you want to find?
see my post above does it make sense and am i on the right lines?
bare with me i will type it clearer.
\[\frac{dg^2}{d\theta^2}\] in terms of partial derivatives of f. And of course the d should be the part. deriv. but im not the sure the latex for it is
\[ \frac{\partial f}{\partial \theta} = \frac{\partial f}{\partial x}\frac{\partial x}{\partial \theta} +\frac{\partial f}{\partial y}\frac{\partial y}{\partial \theta} \]
because i was thinking, not sure im right, is say u=rcos(theta), and w=rsin(theta), the using chain rule dg/dtheta= dg/dumeult. du/dtheta + dg/dw mult. dw/dtheta right?
\[ \frac{\partial g}{\partial \theta} = \frac{\partial f}{\partial \theta} \]
when it comes to taking the second derivative, how would i do it?
\[ \frac{\partial^2 f}{\partial \theta^2} =\frac{d}{d\theta}\left[ \frac{\partial f}{\partial x}\frac{\partial x}{\partial \theta} +\frac{\partial f}{\partial y}\frac{\partial y}{\partial \theta} \right] \]Then use the product rule I suppose.
\[ \frac{d}{d\theta }\frac{\partial f}{\partial x} = \frac{\partial^2 f}{\partial x^2}\frac{\partial x}{\partial \theta} \]
what is the latex for partial derivative?
\frac{\partial F}{\partial X}
You can look at other people's latex too.
can you? how?
Right click > Show Math As > Tex Commands
\[ \frac{d}{d\theta }\left[\frac{\partial f}{\partial x}\frac{\partial x}{\partial \theta}\right] = \frac{\partial^2 f}{\partial x^2}\left(\frac{\partial x}{\partial \theta}\right)^2+\frac{\partial f}{\partial x}\frac{\partial^2 x}{\partial \theta^2} \]
Quite a lot....\[ \frac{\partial^2 f}{\partial \theta^2} = \frac{\partial^2 f}{\partial x^2}\left(\frac{\partial x}{\partial \theta}\right)^2+\frac{\partial f}{\partial x}\frac{\partial^2 x}{\partial \theta^2}+\frac{\partial^2 f}{\partial y^2}\left(\frac{\partial y}{\partial \theta}\right)^2+\frac{\partial f}{\partial y}\frac{\partial^2 y}{\partial \theta^2} \]
There is a difference between squaring the first derivative and the second derivative.
oh ok. so \[\frac{d}{d\theta }[\frac{\partial f}{\partial x} \cdot -r\sin\theta ] = \frac{\partial^2 f}{\partial x^2}\cdot -r\sin\theta+\frac{\partial f}{\partial x}\cdot -r\cos\theta\]
Yeah, that's the the product rule/chain rule.
But it should be squared...
oh ok? how comes it should be squared?
\[ \frac{d}{d\theta }\left[\frac{\partial f}{\partial x} \cdot -r\sin\theta \right] = \left(\underbrace{\frac{\partial^2 f}{\partial x^2}\cdot -r\sin\theta}_{\text{chain rule}}\right)\cdot(-r\sin\theta)+\frac{\partial f}{\partial x}\cdot -r\cos\theta \]
Wait... hmmm
No, that looks about right...
\[\begin{split} \frac{d}{d\theta }\left[\frac{\partial f}{\partial x}\frac{\partial x}{\partial \theta}\right] &=\frac{d}{d\theta}\left[\frac{\partial f}{\partial\theta}\right]\frac{\partial x}{\partial \theta}+\frac{\partial f}{\partial x}\frac{d}{d\theta}\left[\frac{\partial x}{\partial \theta}\right] \\ &= \left(\frac{\partial^2 f}{\partial x^2}\frac{\partial x}{\partial \theta}\right)\frac{\partial x}{\partial\theta}+\frac{\partial f}{\partial x}\frac{\partial^2 x}{\partial \theta^2} \\ &=\frac{\partial^2 f}{\partial x^2}\left(\frac{\partial x}{\partial \theta}\right)^2+\frac{\partial f}{\partial x}\frac{\partial^2 x}{\partial \theta^2} \end{split}\]
@TedG get it now?
yh Thank you for that, helped alot.
@wio one last quick question see the beginning of the RHS, how is it \[\frac{d}{d\theta}\left[\frac{\partial f}{\partial\theta}\right]\] and not \[\frac{d}{d\theta}\left[\frac{\partial f}{\partial x}\right]\] from the LHS
Join our real-time social learning platform and learn together with your friends!