Why the formulas work
A polar point is defined by a distance from the origin and an angle from the positive x-axis.
Dropping that point onto the axes creates a right triangle, so the horizontal and vertical components become and .
The plane preview helps you confirm the converted point lands in the expected quadrant.