The two descriptions of a point, polar and Cartesian, are converted into each other using sine, cosine and the arctangent.

Property — Conversion polar ↔ Cartesian

\text{(polar} \to \text{Cartesian)}\quad & x = \rho\cos\theta, & y = \rho\sin\theta. \\ \text{(Cartesian} \to \text{polar)}\quad & \rho = \sqrt{x^2+y^2}, & \theta = \arctan\!\left(\frac{y}{x}\right)\ \text{(with a choice of quadrant)}. \end{aligned}$$

Warning — The quadrant in the inversion

arctan(y/x)\arctan(y/x) returns an angle in (π/2,π/2)(-\pi/2, \pi/2): it must be corrected by looking at the signs of xx and yy. In many languages (Python, C, MATLAB) there is the function atan2(y,x)(y,x) which does the right thing, returning θ(π,π]\theta\in(-\pi,\pi].

Example — Conversion both ways

P(x,y)=(1,3)P(x,y) = (1,\sqrt 3) in polar: ρ=1+3=2\rho = \sqrt{1+3} = 2, θ=arctan(3)=π/3\theta = \arctan(\sqrt 3) = \pi/3 (first quadrant). Polar coordinates: (2,π/3)(2,\pi/3).

Q(ρ,θ)=(4,3π/4)Q(\rho,\theta) = (4,\,3\pi/4) in Cartesian: x=4cos(3π/4)=22x = 4\cos(3\pi/4) = -2\sqrt 2, y=4sin(3π/4)=22y = 4\sin(3\pi/4) = 2\sqrt 2. So Q=(22,22)Q = (-2\sqrt 2,\,2\sqrt 2).

Topics: Trigonometry
Concepts: Arctangent · Cartesian coordinates · Polar coordinates · Cartesian plane
Methods: Polar-Cartesian conversion
Skills: Calculating · Reasoning by cases · Using formulae