0
$\begingroup$

I have these two equations

$$u = \frac{2x}{x^2 + y^2} \\ v = \frac{-2y}{x^2 + y^2}$$

And I need to put $x$ in terms of $u$ and $v$. If I take polar co-ordinates and plug them in I get(in the case of $u$), because

(rcos(theta))^2 + (rsin(theta))^2 = 1

$$u = 2r\cos(\theta)$$

Can I simply change that back to

$$u = 2x$$

?

  • 0
    By the sound of it, you think that $x^2-y^2=1$ after plugging in $x=r\cos(\theta)$ and $y=r\sin(\theta)$. This is false.2012-11-01
  • 0
    whoops- sorry - I mistyped2012-11-01
  • 0
    Can you show your working for $u=2r\cos\theta$?2012-11-01
  • 1
    Unfortunately, $r^2 \cos^2 \theta + r^2 \sin^2 \theta = r^2$, not 1. So you should get $u=2r^{-1}\cos\theta$.2012-11-01

3 Answers 3

1

Let $x = r \cos \theta$ and $y = r \sin \theta$. Then $$ u = \frac{2x}{x^2 + y^2} = \frac{2 \cos \theta}{r} $$ $$ v = \frac{-2y}{x^2 + y^2} = \frac{- 2 \sin \theta}{r} $$ Dividing these gives $$ \tan \theta = - \frac{v}{u} \Rightarrow \theta = \tan^{-1} \left(-\frac{v}{u}\right), $$ and squaring and then adding gives $$ u^2 + v^2 = \frac{4}{r^2} \Rightarrow r = \frac{2}{\sqrt{u^2+v^2}}. $$ You now have $r$ and $\theta$, and thus $x$ and $y$, in terms of $u$ and $v$.

  • 0
    wait up, isn't your v/u the other way around if it's to equal tan?2012-11-01
  • 0
    @scuba: No, why?2012-11-01
1

In polar/Cartesian coordinates, using standard variables, $x^2+y^2 = r^2$, so your first equation could be written $$u=\frac{2x}{r^2}$$ But then also, $x=r\cos\theta$, so $$u=\frac{2\cos(\theta)}{r}$$ So there is your mistake.

0

Using polar coordinates:

$$u=\frac{2x}{x^2+y^2}\longrightarrow\frac{2r\cos\theta}{r^2}=\frac{2\cos\theta}{r}$$

$$v=-\frac{2y}{x^2+y^2}\longrightarrow -\frac{2r\sin\theta}{r^2}=-\frac{2\sin\theta}{r}$$

which is different from what you wrote...

  • 0
    mhmm ok, so after I get that, how do I put x in terms of u and v?2012-11-01