In fact, the first term on my last step is very similar to \boldsymbol{e_{r}} and same for the second term. Can I really convert them to \boldsymbol{e_{\theta}} by substitution ?I like Serena said:However, you end up in an expression with i and j, when you should be ending up in an expression with \boldsymbol{e_{r}} and \boldsymbol{e_{\theta}}.
Perhaps you should make a substitution like that?
I like Serena said:You're making a transition from cartesian coordinates to polar coordinates.
In your relevant equations section you have defined the relation between the unit vectors of the two sets of coordinates.
What you need is the inverse relation.
And in your attempt you switch the coordinates from cartesian to polar, which is good, but you also need to switch the unit vectors from cartesian to polar.
Edit: I just checked a little bit of your equations, and I do not understand how you got \frac {\partial r} {\partial x} = \frac 1 {\cos \theta}.
That looks wrong.
I get the answer! Thx!I like Serena said:Ah well, that is not right.
If you take the partial derivative on the right side, you need to apply the product rule, meaning you also have the differentiate theta.
If you do that, you'll not find it so easy to calculate dr/dx.
Instead I suggest you fill in r = \sqrt{x^2+y^2}, take the derivative, and simplify any way you like afterward.
You'll get a different result for \frac {\partial r} {\partial x} then, which is also why you're end result is off by a factor 2.
If you correct this and the similar mistakes, you'll find the proper end result.