# Switching scalar field to polar coordinates

#### SenatorArmstrong

I am trying to take this scalar field

$\phi$(r)=$\exp[x^2+y^2] * sin(x^2 - y^2)$

And switch to polar coordinates. But every time I do so I get trig functions sandwiched together. The $x^2 + y^2$ in the exp is simple as it's just r^2. However, the $x^2 - y^2$ in the sin function becomes a mess when I substitute in the $r^2sin^2(\theta)*r^2cos^2(\theta)$ in there. Is there a way to do this and get a more simple answer?

Thanks!

#### SDK

I'm not sure what the notation $\Phi(r)$ denotes since you haven't written it in polar yet and even so, $\Phi: \mathbb{R}^2 \to \mathbb{R}$ regardless of coordinates.

Otherwise, I'm not sure why you expect this to be "nice" in polar coordinates. Its not nice in rectangular either. I don't see why $\sin(x^2 - y^2)$ is any nicer than $\sin(r^2 \sin^2 \theta - r^2 \cos^2 \theta)$.

#### Country Boy

Math Team
$$\displaystyle sin(x^2- y^2)= sin(r^2cos^2(\theta)- r^2sin^2(\theta))= sin(r^2(cos^2(\theta)- sin^2(\theta))= sin(r^2cos(2\theta))$$. That is about as simple as it gets.

• 1 person

#### SenatorArmstrong

$$\displaystyle sin(x^2- y^2)= sin(r^2cos^2(\theta)- r^2sin^2(\theta))= sin(r^2(cos^2(\theta)- sin^2(\theta))= sin(r^2cos(2\theta))$$. That is about as simple as it gets.
Okay thanks. That's what I had on my exam, but kept second guessing myself. The cos tangled in the sin function looks bizarre to me. Not used to that.

Thank you sir