Parametric Curves
Gear – 10 Teeth
A closed 10-tooth gear with flatter tooth tops and valleys.
The gear is one parametric loop: x(t) and y(t) share the radius 1.2 + 0.20·tanh(3·sin(10t)). The 10 inside the sine is the tooth count. tanh squashes the sine into a flat-topped tooth instead of a round bump.
t runs from 0 to 2π, so the curve closes. The 1.2 is the pitch radius and 0.20 is the tooth depth. Replace 10 with another integer to change how many teeth are cut into the same circle.
Equation
x(t)=(1.2+0.20*tanh(3*sin(10*t)))*cos(t),
y(t)=(1.2+0.20*tanh(3*sin(10*t)))*sin(t),
0 <= t <= 2*pi
Graph preview
Polar and parametric curves
Polar and parametric equations describe a point by a rule instead of by y as a function of x. In polar form, a radius r depends on the angle θ, and the plotted point is (r cos θ, r sin θ). A negative radius is drawn in the opposite direction.
A parametric curve gives x(t) and y(t) separately. The parameter t is not a coordinate on the page; it only tells the pen how to move. Closed curves usually let t run from 0 to 2π. DGS samples the path and draws it as one JSXGraph curve.
Reading the input
x(t)=(1.2+0.20*tanh(3*sin(10*t)))*cos(t),— This is a command. The name selects the routine, and the items inside the parentheses are its arguments.y(t)=(1.2+0.20*tanh(3*sin(10*t)))*sin(t),— This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.0 <= t <= 2*pi— This line is part of the example input and is sent to DGS unchanged.
Try a change
- If the expression contains an integer frequency, add 1 to it and generate again. Petal counts and tooth counts follow that integer.
- Shorten the parameter interval so t or θ stops at π. You should see only part of the closed curve.
Generate Graph posts the expression to the studio graph engine and draws the result on the homepage. The editable field is the entire input, including every line.