Previously we looked through two different coordinate systems: Cartesian and polar. Maybe, you have already had this question: how are they connected with each other? The need to convert from one coordinate system to another constantly arises in many mathematical problems in order to simplify calculations. For example, look at the equation of a circle with radius in Cartesian coordinates: . In polar coordinates we can write it down like this: . It's much better and easier to use, isn't it?
In addition, note that in Cartesian coordinates we already know how to calculate the distance between points and build graphs of functions. There is a natural desire to learn how to do the same in polar coordinates. Let's figure out how it all works.
Conversions between Cartesian and polar coordinates
If given the polar coordinates of a point, how can you find its Cartesian coordinates? What about vice versa? That's what we'll look at in this section. To convert from polar to Cartesian coordinates, we can draw a right triangle:
Basic trig functions give us the matching equations and , which reduce respectively to
Now let's go the other direction.
Getting a radius from Cartesian coordinates is easy: , so . If you only take the positive square root, each point has a single possible radius. But as you remember, each point has infinitely many polar angles, so determining the –coordinate requires making a choice.
First, note from the triangle above that . To solve for , we'll need to "undo" the function, whose graph (in Cartesian coordinates) looks like this:
This is an unfriendly function for several reasons. Firstly, it's not injective: if we drew a horizontal line corresponding to , that line would intersect the graph at more than one point. Secondly, the intervals are too short: if we trace an arc from to , it will cover only the right half of a circle. Thirdly, it has vertical asymptotes (dotted lines) where the angles don't have defined tangents, despite mapping to perfectly good points on the –axis. To solve these problems, early programmers developed the function, which is a bit of a Frankenstein:
Armed with , we can now send any pair to an angular coordinate in the interval . So our conversions are:
Distance between two points
In the Cartesian coordinate system, the distance formula is a simple application of the Pythagorean formula. In polar coordinates, we need to bring in an extension called the law of cosines. If and are the side lengths of any triangle, and the angle is opposite side , we have:
In the case that is a right angle, the cosine will be and the equation reduces to the familiar . To see the applicability to polar coordinates, study this figure:
We can use and as side lengths and , then calculate , so that the unknown length is the distance between points and . After taking the square root of both sides we're left with
Like most problems involving straight lines, this is easier in Cartesian coordinates than in polar.
Graphing functions in polar coordinates
In Cartesian coordinates, we typically write functions as . In polar coordinates, that becomes , meaning that the dependent and independent variables are radius and polar angle, respectively.
As we mentioned, a circle centered on the origin with radius is described with the equation . The Cartesian equivalent would be the horizontal line .
No matter what angle you input, the radius will be , so the circle includes the points etc. It's trivial to show that, for any angle , , so the whole graph can be drawn in a single rotation.
The sine and cosine functions can draw polar roses with beautifully symmetrical petals. For example, the function defines this rose:
Just like the circle, this function wraps around and starts tracing over itself when . Does every function have that property?
In Cartesian coordinates, a line has the equation . In polar coordinates, the corresponding equation graphs an Archimedean spiral. Letting and , we get the following graph:
Feeling sleepy? Don't worry, we're almost done.
Conclusion
The polar coordinate system is not as prevalent as the Cartesian, but it still finds use in physics, engineering, navigation, and more. When embarking on a project that involves points on a plane, stop and consider: is there a central point around which everything else revolves? Will I need to simulate circular or spiraling trajectories? If so, you may want to use polar coordinates. As we've seen, they do have drawbacks, but in many situations they're the best option.