converting between cartesian and polar coordinates
The Cartesian coordinate system specifies a point by the projection of its position to a set of orthogonal axes. Visually,
The polar coordinate system specifies a point by its distance from the pole and deviation from the polar axis. Visually,
Suppose that the coordinates
By convention, let the Cartesian origin
Then we can construct the right triangle
which can be analyzed with trigonometric functions and the Pythagorean theorem to produce the identities
which can be rewritten
such that if I am given coordinates
and if I am given coordinates