FrogPad
- 801
- 0
I have u(r,\theta)=r \cos \theta + r^{-1}\cos \theta and then am changing coordinates u(x,y)=|x|+\frac{|x|}{x^2+y^2}. I then have to compute the vector \vec v = (u_x,u_y).
The thing is, is the derivative of |x| is sign\,\,x. I don't think we should be dealing with this function. So I'm not sure how I should be dropping the absolute value to get to: u(x,y)=x+\frac{x}{x^2+y^2}.
I'm thinking it is from the conversion to polar to cartesian... but I'm not sure. Maybe it is within the definition of \tan^{-1}... but again I'm not sure. Well I'm sick of throwing random darts, so if anyone has any suggestions, I'm all ears :)
Please note that u(x,y) was my conversion from polar coordiantes to cartesian, so this could also be a problem, and might be incorrect.
Thankyou.
The thing is, is the derivative of |x| is sign\,\,x. I don't think we should be dealing with this function. So I'm not sure how I should be dropping the absolute value to get to: u(x,y)=x+\frac{x}{x^2+y^2}.
I'm thinking it is from the conversion to polar to cartesian... but I'm not sure. Maybe it is within the definition of \tan^{-1}... but again I'm not sure. Well I'm sick of throwing random darts, so if anyone has any suggestions, I'm all ears :)
Please note that u(x,y) was my conversion from polar coordiantes to cartesian, so this could also be a problem, and might be incorrect.
Thankyou.
Last edited: