I'm working on a problem involving the chain rule and partial derivatives. Here it is:
Find \(\displaystyle \frac{\partial u}{\partial s}\) where \(\displaystyle u=\frac{1}{\sqrt{x^2+y^2}}\), \(\displaystyle x=s\cos{t}\), \(\displaystyle y=s\sin{t}\), and s > 0.
The chain rule says: \(\displaystyle \frac{\partial u}{\partial s}=\frac{\partial u}{\partial x}\frac{\partial x}{\partial s}+\frac{\partial u}{\partial y}\frac{\partial y}{\partial s}\).
So I calculate:
\(\displaystyle \frac{\partial u}{\partial x}=(-1/2)(x^2+y^2)^{-3/2}(2x)=-\frac{x}{(x^2+y^2)^{3/2}}\)
\(\displaystyle \frac{\partial x}{\partial s}=(s)(0)+(1)(\cos{t})=\cos{t}\)
\(\displaystyle \frac{\partial u}{\partial y}=(-1/2)(x^2+y^2)^{-3/2}(2y)=-\frac{y}{(x^2+y^2)^{3/2}}\)
\(\displaystyle \frac{\partial y}{\partial s}=(s)(0)+(1)(\sin{t})=\sin{t}\)
And I get:
\(\displaystyle \frac{\partial u}{\partial s}=\left(-\frac{x}{(x^2+y^2)^{3/2}}\right)(\cos{t})+\left(-\frac{y}{(x^2+y^2)^{3/2}}\right)(\sin{t})=-\frac{(x\cos{t}+y\sin{t})}{(x^2+y^2)^{3/2}}\)
The answer in my textbook is: \(\displaystyle -\frac{1}{s^2}\). Now if I substitute the respective expressions in s and t for x and y in u, then differentiate u with respect to s, I do get: \(\displaystyle -\frac{1}{s^2}\). I can't see where I'm using the chain rule incorrectly, but I'm obviously missing something. Any hints or other help would be appreciated.
Find \(\displaystyle \frac{\partial u}{\partial s}\) where \(\displaystyle u=\frac{1}{\sqrt{x^2+y^2}}\), \(\displaystyle x=s\cos{t}\), \(\displaystyle y=s\sin{t}\), and s > 0.
The chain rule says: \(\displaystyle \frac{\partial u}{\partial s}=\frac{\partial u}{\partial x}\frac{\partial x}{\partial s}+\frac{\partial u}{\partial y}\frac{\partial y}{\partial s}\).
So I calculate:
\(\displaystyle \frac{\partial u}{\partial x}=(-1/2)(x^2+y^2)^{-3/2}(2x)=-\frac{x}{(x^2+y^2)^{3/2}}\)
\(\displaystyle \frac{\partial x}{\partial s}=(s)(0)+(1)(\cos{t})=\cos{t}\)
\(\displaystyle \frac{\partial u}{\partial y}=(-1/2)(x^2+y^2)^{-3/2}(2y)=-\frac{y}{(x^2+y^2)^{3/2}}\)
\(\displaystyle \frac{\partial y}{\partial s}=(s)(0)+(1)(\sin{t})=\sin{t}\)
And I get:
\(\displaystyle \frac{\partial u}{\partial s}=\left(-\frac{x}{(x^2+y^2)^{3/2}}\right)(\cos{t})+\left(-\frac{y}{(x^2+y^2)^{3/2}}\right)(\sin{t})=-\frac{(x\cos{t}+y\sin{t})}{(x^2+y^2)^{3/2}}\)
The answer in my textbook is: \(\displaystyle -\frac{1}{s^2}\). Now if I substitute the respective expressions in s and t for x and y in u, then differentiate u with respect to s, I do get: \(\displaystyle -\frac{1}{s^2}\). I can't see where I'm using the chain rule incorrectly, but I'm obviously missing something. Any hints or other help would be appreciated.