What graph art is
Graph art is a picture made entirely of equations. Every line in it is a curve the graphing calculator plots: a smile is a piece of a parabola, an eye is a circle, a strand of hair is a short curve that starts and stops exactly where the artist wants. Desmos is the usual tool because it plots instantly, lets you colour and style each expression, and is free in the browser.
The skill is not maths so much as control. Almost any equation draws something; the work is making each one start, stop and bend in the right place.
Building block 1: restrict the domain
An equation like y = x^2 runs off the edge of the screen in both directions. Graph art needs short pieces, so Desmos lets you limit where a curve is drawn with curly braces after it:
y = 0.2x^2 - 3 {-4 < x < 4}
That draws only the part of the parabola between x = −4 and x = 4: a smile. Restrictions work on y as well, {0 < y < 2}, and you can combine them, {-1 < x < 1}{y > 0}. This one trick turns the infinite curves of a maths class into strokes you can place.
Building block 2: circles and ellipses
Eyes, wheels and heads come from the circle equation:
(x - 3)^2 + (y - 2)^2 = 1
is a circle of radius 1 centred at (3, 2). Stretch it into an ellipse by dividing: (x - 3)^2/4 + (y - 2)^2 = 1 is twice as wide as it is tall. Add a domain restriction and you get arcs: the top half of an eye, the curve of a cheek.
Building block 3: parametric curves
A function y = f(x) can only give one y for each x, so it cannot draw a loop, a spiral, or a stroke that doubles back. A parametric curve can. Instead of y depending on x, both depend on a third variable t:
(3cos(t), 2sin(t))
draws an ellipse as t sweeps around. Desmos plots a parametric pair over t from 0 to 1 by default, and shows a range box under the expression where you can change it (0 to 2π for a full circle here).
Parametric curves are what make detailed graph art possible, because any path a pen can take can be written as a pair (x(t), y(t)).
Building block 4: shading
Replace = with an inequality to fill a region instead of drawing its edge:
(x - 3)^2 + (y - 2)^2 <= 1
fills the circle. Use it for pupils, solid shapes and backgrounds, and lower the opacity in the expression's style menu so overlapping fills don't turn into a single blob.
The slow way and the fast way
The traditional way is exactly what the steps above suggest: guess an equation, look at where it lands, nudge the numbers, repeat. It produces beautiful results and it is a genuinely good way to learn how equations behave, but a detailed character can take hundreds of curves and many hours.
The fast way is to draw the outline and let a program fit the equations. The Drawing to Equations tool does that in the browser: you sketch on a grid with a mouse or finger, it smooths each stroke into a chain of curves, and it writes each piece as a parametric pair like
(1.5t^{3}-2t^{2}+3t-4,-t^{3}+0.5t+2)
It also works from a picture: Image to Equations traces a photo, logo or sketch for you. To write a name or word, Name in Desmos turns typed text into the equations that spell it. Photo / logo mode follows outlines; Line art mode follows pen lines as single strokes.
Copy them all, click into the first line in Desmos and paste: each line becomes its own expression and together they redraw your sketch. Because these curves are already written for t from 0 to 1, Desmos's default range, there is nothing to set up after pasting.
How the fitting works
Each stroke you draw is a list of points. First the tool simplifies it, dropping points that sit on a straight run between their neighbours (the Ramer–Douglas–Peucker algorithm). Then it threads a smooth curve through the points that remain, as a series of cubic Bézier curves, the same curves vector drawing programs use. Finally each Bézier piece is expanded into a cubic polynomial for x and another for y, which is the form Desmos reads when you paste.
The detail setting decides how many points survive the first step. Smooth keeps fewer, giving fewer equations and cleaner lines; Detailed keeps more and follows every wobble of your hand.
Tips for cleaner graph art
- Draw fewer, longer strokes. Every stroke is at least one equation; one continuous outline beats twenty short dashes.
- Start Smooth. You can always add detail, and a cleaner line usually looks more like deliberate art.
- Style after pasting. Colour, line thickness and opacity are per expression in Desmos, so group related curves (all the hair, all the outline) and style them together.
- Mix both methods. Paste the traced outline, then add hand-written circles and shaded regions for the parts that should look geometric.
One equation for the whole drawing
Everything above uses many equations, one per curve. A Fourier series can draw a whole closed shape with a single equation: a sum of cosines for x and sines for y, each a circle spinning at its own speed. The Fourier Series Drawing tool animates those circles drawing your sketch, saves the animation as a video, and copies the whole drawing as one Desmos equation. Fourier series drawing, explained works a square out circle by circle.
Why it's worth doing
Graph art is one of the few places where students see that "draw anything" and "describe it exactly with maths" are the same thing. Splines and parametric curves are how fonts, car bodies and animated films are drawn; a smiley in Desmos is a small version of the same idea.
Finished examples of these techniques, with every equation, are in the Desmos art library.