MathsGraphing & Visualization

Parametric Curve
grapher.

Trace x(t) and y(t), then measure the path.

How it's worked out

A parametric curve gives both coordinates from a third number, t. As t runs from its start to its end, the point (x(t), y(t)) moves and draws the curve. That lets you draw loops, spirals and paths that cross themselves, which no single rule y = f(x) can do.

Slope. The steepness of the curve at one t is the rate y changes divided by the rate x changes. OpenStax gives it as Theorem 7.1, which needs dx/dt to be nonzero:

dydx\displaystyle \frac{dy}{dx}=y′(t)x′(t)\displaystyle {}= \frac{y'(t)}{x'(t)}

So the tangent is flat where dy/dt is 0 and upright where dx/dt is 0. Where both are 0 the point stops for an instant, and the curve can form a sharp cusp there. For the cycloid at t=π3t = \frac{\pi}{3}, the slope is 1.7321.

Arc length adds up the speed of the point over the whole run of t (Theorem 7.3):

s\displaystyle s=∫t1t2(dxdt)2+(dydt)2dt\displaystyle {}= \int_{t_1}^{t_2} \sqrt{\left(\frac{dx}{dt}\right)^2 + \left(\frac{dy}{dt}\right)^2}\, dt

The tool joins 8,000 and 4,000 short straight pieces along the curve and combines the two totals with one Richardson step, which cancels most of the corner-cutting error. A plain 100-piece path around the unit circle gives 6.282152. The refined value here is 6.283185, against 2π = 6.283185.

Area. The tool closes the path with a straight line from the end back to the start and adds up the area inside with the shoelace sum, 12∑(xiyi+1−xi+1yi)\frac{1}{2}\sum (x_i y_{i+1} - x_{i+1} y_i). For one arch of a cycloid, that closing line runs along the ground, so the result is the area under the arch, which OpenStax works out as 3π in Example 7.7.

Curvature says how sharply the path bends at one t. The Bézier primer describes it as the cross product of the first and second derivatives divided by the speed to the power 3 over 2. Its reciprocal is the radius of the circle that best fits the curve there.

Worked examples

Mei follows a reflector on a bicycle wheel

A reflector sits on the rim of a wheel 0.35 m in radius. As the bike rolls, it traces a cycloid, x=0.35(t−sin⁡t)x = 0.35(t - \sin t) and y=0.35(1−cos⁡t)y = 0.35(1 - \cos t), where t is the angle the wheel has turned.

In one full turn the bike moves 2.199 m forward, but the reflector travels 2.8 m along its looping path. ProofWiki gives one arch as 8 times the radius, which matches.

The tangent is flat once, at the top, when t = π and the reflector is 0.7 m up. It stops twice, at the start and end of the turn, where it touches the road and the path has a cusp. The area under one arch is 1.1545 m², three times the area of the wheel.

Open this example in the tool

Sam tracks a ball thrown across a field

Sam throws a ball at 12 m/s across and 16 m/s up, with no air drag. After t seconds it is at x=12tx = 12t and y=16t−4.9t2y = 16t - 4.9t^2 meters. It lands when y is 0 again, at t=164.9t = \frac{16}{4.9}.

The ball lands 39.18 m away. Its path through the air is longer, 48.8 m, because it climbs and falls on the way.

The tangent is flat at the top of the throw, at t = 1.633 s and a height of 13.06 m. After 1 s the ball is at (12, 11.1) and moving at 13.51 m/s.

Open this example in the tool

Ravi reads a figure on an oscilloscope

Ravi feeds two signals into an oscilloscope, one three times as fast as the other. The trace is the Lissajous figure x=sin⁡3tx = \sin 3t, y=sin⁡2ty = \sin 2t, and it closes after t = 2π.

The trace is 15.289 units long and ends where it starts. Its tangent is flat or upright at 10 points, which the graph rings.

The area comes out as 0. That is not a mistake: the loops are traced in opposite directions, so their areas cancel. To measure one loop, choose a t range that traces only that loop.

Open this example in the tool

Reading your result

The big number is the distance the point travels as t runs over your range. It counts every pass, so a curve traced twice is counted twice.

Closed or open. If the end lands on the start, the curve is closed and the area is the area inside it. If not, the tool adds the straight chord from end to start and gives the area inside that shape. The ellipse x=3cos⁡tx = 3\cos t, y=sin⁡ty = \sin t is closed, with area 9.4248, which is 3π.

Flat, upright and stops count the special points the graph rings and the table lists. A stop is where the speed drops to 0; at a cusp the slope has no single value, so the tool says so instead of giving a number.

The point at t gives the position, both rates of change, the slope, the speed and the curvature. A negative curvature means the path is bending clockwise there.

Common mistakes

  • Running t too far. The circle x=cos⁡tx = \cos t, y=sin⁡ty = \sin t closes at 2π. Running it to 4π draws the same picture but gives a length of 12.5664, twice the circumference.
  • Using degrees. The trig functions here take radians. A full turn is 2π, not 360, so a t range from 0 to 360 winds a circle about 57 times.
  • Expecting one slope at a crossing. Where a curve crosses itself, it passes the same point at two values of t, and each pass has its own tangent.
  • Reading t as distance. Equal steps in t are not equal steps along the curve. The ball moves farther along its path each second near the start of the throw than at the top.

Questions people ask

The area sum counts a loop traced counterclockwise as positive and clockwise as negative. This tool reports the size, so a single loop is never negative here. A figure eight or a Lissajous trace has loops going opposite ways, so they cancel toward 0.

Sources