Ekuation

Math

Polar Function Grapher

Graph Any Polar Function

Enter any mathematical function of theta and see it rendered as a polar curve. This grapher supports all standard math functions: sin, cos, tan, exp, log, sqrt, abs, and more via the mathjs library. Combine them freely to create custom polar equations.

0%

How to Use This Plotter

Enter polar equations of the form r = f(theta) and see them plotted instantly on an interactive canvas.

  1. Enter an expression: Type your polar equation using theta as the angle variable. For example, 1 + cos(theta) produces a cardioid. Standard math functions (sin, cos, sqrt, abs, exp, log) and constants (pi, e) are supported.
  2. Adjust the theta range: The default range is [0,2π][0, 2\pi]. Roses with odd nn complete in [0,π][0, \pi], while spirals need [0,4π][0, 4\pi] or more to show multiple turns. Use the quick-range buttons or type custom values.
  3. Add more curves: Click the Add button to plot up to 6 curves simultaneously, each with its own color, expression, and theta range.
  4. Explore presets: The preset gallery contains 20+ famous polar curves organized by family (roses, cardioids, spirals, lemniscates, conics, circles, and special curves). Click any preset to load it instantly.
  5. Animate the trace: Use the play button to watch how the curve is traced as theta sweeps through its range. Pause at any point to study the curve at a specific angle.

Tip

Negative rr values are handled automatically using the standard polar convention: the point (r,θ)(r, \theta) with r<0r < 0 is plotted at (r,θ+π)(|r|, \theta + \pi), reflecting it through the origin.


The Polar Coordinate System

In polar coordinates, every point in the plane is described by two values:

  • rr (radius): the distance from the origin (called the pole)
  • θ\theta (theta): the angle measured counterclockwise from the positive x-axis (called the polar axis)

Conversion Formulas

To convert between polar and Cartesian coordinates:

x=rcosθ,y=rsinθx = r\cos\theta, \quad y = r\sin\theta
r=x2+y2,θ=arctan ⁣(yx)r = \sqrt{x^2 + y^2}, \quad \theta = \arctan\!\left(\frac{y}{x}\right)

Unlike Cartesian coordinates, polar representations are not unique. The same point can be written as (r,θ)(r, \theta), (r,θ+2π)(r, \theta + 2\pi), or (r,θ+π)(-r, \theta + \pi).


Polar Curve Families

Roses (Rhodonea)

r=acos(nθ)orr=asin(nθ)r = a\cos(n\theta) \quad \text{or} \quad r = a\sin(n\theta)

Produces petal-like patterns. If nn is odd, the curve has nn petals over [0,π][0, \pi]. If nn is even, it has 2n2n petals over [0,2π][0, 2\pi]. The maximum radius is a|a|.

Cardioids & Limaçons

r=a+bcosθorr=a+bsinθr = a + b\cos\theta \quad \text{or} \quad r = a + b\sin\theta

When a=ba = b, the curve is a cardioid (heart shape). When a<ba < b, a limaçon with inner loop forms. When a>ba > b, the limaçon is dimpled or convex.

Spirals

r=a+bθ(Archimedean)r = a + b\theta \quad (\text{Archimedean})
r=aebθ(Logarithmic)r = ae^{b\theta} \quad (\text{Logarithmic})

Archimedean spirals expand at a constant rate. Logarithmic spirals grow exponentially and appear in nautilus shells, galaxy arms, and hurricane patterns.

Lemniscates

r2=a2cos(2θ)r^2 = a^2\cos(2\theta)

Figure-eight curves discovered by Jacob Bernoulli in 1694. The lemniscate of Bernoulli is the inspiration for the infinity symbol (\infty).

Conic Sections

r=ed1+ecosθr = \frac{ed}{1 + e\cos\theta}

When e<1e < 1, the conic is an ellipse. When e=1e = 1, a parabola. When e>1e > 1, a hyperbola. This is the form used inKepler's laws for planetary orbits.

Circles

r=aorr=2acosθr = a \quad \text{or} \quad r = 2a\cos\theta

r=ar = a is a circle of radius aa centered at the origin. r=2acosθr = 2a\cos\theta is a circle of radius aa tangent to the origin at the right.


Key Formulas

Polar Area

The area enclosed by a polar curve r=f(θ)r = f(\theta) from α\alpha to β\beta is:

A=12αβr2dθ=12αβ[f(θ)]2dθA = \frac{1}{2}\int_{\alpha}^{\beta} r^2 \, d\theta = \frac{1}{2}\int_{\alpha}^{\beta} [f(\theta)]^2 \, d\theta

This formula works because each infinitesimal sector has area 12r2dθ\tfrac{1}{2}r^2 \, d\theta, which is the polar analogue of the rectangular area element.

Arc Length

The arc length of a polar curve from α\alpha to β\beta is:

L=αβr2+(drdθ)2dθL = \int_{\alpha}^{\beta} \sqrt{r^2 + \left(\frac{dr}{d\theta}\right)^2} \, d\theta

The derivative dr/dθdr/d\theta is computed numerically using a central difference approximation.

Slope of a Polar Curve

To find the slope dy/dxdy/dx at a point on a polar curve:

dydx=drdθsinθ+rcosθdrdθcosθrsinθ\frac{dy}{dx} = \frac{\frac{dr}{d\theta}\sin\theta + r\cos\theta}{\frac{dr}{d\theta}\cos\theta - r\sin\theta}

Symmetry Tests

  • Polar axis (x-axis): f(θ)=f(θ)f(-\theta) = f(\theta) -- replacing θ\theta with θ-\theta gives the same equation.
  • π/2\pi/2 axis (y-axis): f(πθ)=f(θ)f(\pi - \theta) = f(\theta)
  • Origin: f(θ+π)=f(θ)f(\theta + \pi) = -f(\theta) -- equivalent to f(θ)=f(θ)f(-\theta) = -f(\theta)

Real-World Examples

Example 1: Microphone Polar Patterns

Audio engineers use polar plots to visualize how a microphone picks up sound from different directions. The three most common patterns are:

  • Omnidirectional: r=1r = 1 -- picks up sound equally from all directions.
  • Cardioid: r=0.5(1+cosθ)r = 0.5(1 + \cos\theta) -- rejects sound from behind (θ=π\theta = \pi). This is the standard vocal microphone pattern.
  • Figure-8 (bidirectional): r=cosθr = |\cos\theta| -- picks up from front and back but rejects from the sides.

Concrete numbers: At θ=90°\theta = 90° (directly to the side), the cardioid sensitivity is r=0.5(1+cos90°)=0.5r = 0.5(1 + \cos 90°) = 0.5, which is 6 dB quieter than the front (r=1.0r = 1.0). At θ=180°\theta = 180° (directly behind), the sensitivity drops to r=0.5(1+cos180°)=0r = 0.5(1 + \cos 180°) = 0, providing complete rejection.

Takeaway: Plot both patterns simultaneously to compare their directional response visually.

Example 2: Antenna Radiation Patterns

Radio engineers plot antenna gain in polar coordinates to visualize the radiation pattern. A simple dipole antenna has a figure-eight pattern, while more complex arrays produce rose-like patterns with controlled beamwidth.

Equation: A 3-element array pattern can be approximated as r=cos(3θ)r = |\cos(3\theta)|.

Concrete numbers: The main lobe of r=cos(3θ)r = |\cos(3\theta)| has its peak at θ=0\theta = 0 with r=1r = 1 (0 dBi gain). The first null occurs at θ=π/6=30°\theta = \pi/6 = 30° where r=cos(90°)=0r = |\cos(90°)| = 0. The 3 dB beamwidth (where r=1/20.707r = 1/\sqrt{2} \approx 0.707) is approximately 2×15°=30°2 \times 15° = 30°.

Takeaway: The number of lobes in the radiation pattern corresponds to the frequency parameter in the polar equation.

Example 3: Kepler's Planetary Orbits

Kepler's first law states that planetary orbits are ellipses with the Sun at one focus. In polar coordinates with the Sun at the origin:

r=a(1e2)1+ecosθr = \frac{a(1 - e^2)}{1 + e\cos\theta}

Concrete numbers for Earth: Semi-major axis a=1.000AUa = 1.000\,\text{AU}, eccentricity e=0.0167e = 0.0167.

  • Perihelion (θ=0\theta = 0): r=1.000(10.01672)1+0.01670.983AUr = \frac{1.000(1 - 0.0167^2)}{1 + 0.0167} \approx 0.983\,\text{AU} = 147.1 million km
  • Aphelion (θ=π\theta = \pi): r=1.000(10.01672)10.01671.017AUr = \frac{1.000(1 - 0.0167^2)}{1 - 0.0167} \approx 1.017\,\text{AU} = 152.1 million km

For Mars (e=0.093e = 0.093, a=1.524AUa = 1.524\,\text{AU}): perihelion = 1.381AU1.381\,\text{AU}, aphelion = 1.666AU1.666\,\text{AU}. The higher eccentricity makes the ellipse visibly more elongated than Earth's.

Takeaway: Plot both orbits on the same graph using multi-curve mode to compare the eccentricity difference visually.

Example 4: Logarithmic Spirals in Nature

The nautilus shell, hurricane arms, and spiral galaxies all follow a logarithmic spiral pattern where the growth rate is constant:

r=aebθr = ae^{b\theta}

Concrete numbers for a nautilus shell: With a=1a = 1 and b=0.175b = 0.175 (corresponding to a growth factor of about 3 per full revolution):

  • At θ=0\theta = 0: r=e0=1.0r = e^0 = 1.0 (1 mm reference)
  • At θ=2π\theta = 2\pi: r=e0.175×6.283.0r = e^{0.175 \times 6.28} \approx 3.0 (3 mm)
  • At θ=4π\theta = 4\pi: r=e0.175×12.579.0r = e^{0.175 \times 12.57} \approx 9.0 (9 mm)
  • At θ=6π\theta = 6\pi: r=e0.175×18.8527.1r = e^{0.175 \times 18.85} \approx 27.1 (27 mm)

Each revolution triples the radius -- a hallmark of self-similar growth. Use the plotter with e^(0.175 * theta) and a theta range of [0,6π][0, 6\pi] to see the spiral.

Takeaway: The logarithmic spiral maintains a constant angle between the curve and radial lines -- this property is called equiangularity.


Common Mistakes

  1. Wrong theta range for roses: A rose curve r=acos(nθ)r = a\cos(n\theta) with odd nn completes in [0,π][0, \pi], not [0,2π][0, 2\pi]. Using [0,2π][0, 2\pi] traces every petal twice, which doubles the computed area. For even nn, the range [0,2π][0, 2\pi] is correct.
  2. Confusing degrees and radians: The plotter works in radians. If you enter cos(45) expecting cos45°\cos 45°, you will get cos(45rad)\cos(45\,\text{rad}) instead. Convert degrees to radians: 45°=π/40.785rad45° = \pi/4 \approx 0.785\,\text{rad}.
  3. Forgetting that negative r reflects through the origin: When r<0r < 0, the point is plotted at (r,θ+π)(|r|, \theta + \pi). This is how rose curves create petals on opposite sides of the origin.
  4. Insufficient theta range for spirals: An Archimedean spiral r=θ/(2π)r = \theta/(2\pi) needs [0,4π][0, 4\pi] for 2 turns or [0,6π][0, 6\pi] for 3 turns. The default [0,2π][0, 2\pi] shows only one revolution.
  5. Double-counting area for curves with negative r: The area formula 12 ⁣r2dθ\tfrac{1}{2}\!\int r^2\,d\theta uses r2r^2, which is always positive. For curves like r=cos(2θ)r = \cos(2\theta) that go negative, the formula counts the area of the reflected petals as well.

Frequently Asked Questions

What variable name should I use for the angle?

Use theta for the angle variable and pi for the constant π\pi. For example, 1 + cos(theta) for a cardioid, cos(2 * theta) for a 4-petal rose, or theta / (2 * pi) for an Archimedean spiral.

How accurate are the area and arc length calculations?

The area and arc length are computed using numerical integration with 2000 sample points (trapezoidal rule). For smooth, well-behaved curves, this gives accuracy to about 3-4 decimal places. For curves with sharp features or rapid oscillations, the accuracy may be lower.

Can I plot curves with negative r values?

Yes. Negative rr values are handled using the standard polar convention: the point (r,θ)(r, \theta) with r<0r < 0 is plotted at (r,θ+π)(|r|, \theta + \pi). This is how rose curves like r=cos(2θ)r = \cos(2\theta) create petals that extend in all directions.

Why does my curve look different from my textbook's graph?

Common causes: (1) Different theta range -- check whether your textbook uses [0,π][0, \pi] or [0,2π][0, 2\pi]. (2) Sine vs cosine -- r=cosθr = \cos\theta and r=sinθr = \sin\theta produce the same shape but rotated by 90°90°. (3) The plotter uses radians, so ensure your inputs are in radians.

Can I save or share my plots?

The current configuration is encoded in the URL. Copy the URL to share your exact setup, including all curves, theta ranges, and display settings. You can also use the screenshot button in the graph toolbar to save an image.

What math functions are supported?

The expression parser supports all standard functions: sin, cos, tan, sec, csc, cot, asin, acos, atan, exp, log (natural), log10, sqrt, cbrt, abs, floor, ceil, round, sign, and the ^ operator for exponents. Constants: pi and e.

Is this plotter free to use?

Yes, completely free with no paywalls, sign-ups, or ads. All features including animated tracing, multi-curve plotting, and curve analysis are available at no cost.


References

  • Stewart, J. Calculus: Early Transcendentals, 9th ed., Cengage, 2020. Sections 10.3–10.6.
  • Wikipedia. "Polar coordinate system." https://en.wikipedia.org/wiki/Polar_coordinate_system
  • Wolfram MathWorld. "Rose Curve." https://mathworld.wolfram.com/RoseCurve.html
  • MacTutor History of Mathematics. "Coolidge: Origin of Polar Coordinates." University of St Andrews. https://mathshistory.st-andrews.ac.uk/Extras/Coolidge_Polars/
  • Mathematics LibreTexts. "Polar Coordinates: Graphs." Trigonometry (OpenStax). https://math.libretexts.org/Courses/Las_Positas_College/Math_39:_Trigonometry/04:_Further_Applications_of_Trigonometry/4.03:_Polar_Coordinates_-_Graphs

Disclaimer

This polar coordinate plotter is provided for educational and informational purposes only. While it uses mathematically rigorous numerical methods for area and arc length computation, floating-point arithmetic can introduce small rounding errors. The area and arc length values are approximations computed via numerical integration with a fixed resolution, not exact symbolic solutions. Curve family detection and symmetry analysis use heuristic methods that may occasionally misclassify exotic or degenerate curves. Always verify critical results independently. Do not rely on this tool for safety-critical engineering calculations without independent verification by a qualified professional.

Specialized Calculators

Choose from 6 specialized versions of this calculator, each optimized for specific use cases and calculation methods.

Related Calculators

6 Calculators

More Math calculators

Calculator Search

Search and find calculators