Interactive Desmos graphs made by my pupil, inspired by our extension lessons as we prepared for the Westminster Challenge. Drag the sliders and see what happens.
Pupil work by WL, January 2026
My pupil WL made this graph in January 2026. It draws a heart-shaped curve called a cardioid using nothing but straight lines.
It works just like mathematical string art. Picture 600 nails spaced evenly around a circle and numbered in order. Stretch a thread from nail 1 to nail 2, from nail 2 to nail 4, from nail 3 to nail 6, and so on, always joining each nail to the one with double its number (counting round the circle again after 600). No single thread is curved, but together they trace out a curve. A curve drawn by the straight lines that touch it is called an envelope.
Try it: scroll down the list on the left of the graph and drag the slider m. With m = 1 each nail joins the nail at double its number, and you get the cardioid, with one cusp (the point where it dips in). With m = 2 each nail joins the nail at three times its number, and you get a nephroid with two cusps. The number of cusps always matches m.
WL places the 600 nails using complex numbers of the form e^(iθ), and turns them into coordinates with cosine and sine. Read the notes WL left on each line of the graph to see how it works.
Try it with a ruler or a piece of string: draw a circle, mark 36 points 10 degrees apart, number them 1 to 36, and join point n to point 2n. Your own cardioid will appear.
Print it out and try it by hand, with a 36-point circle, step-by-step instructions and a ×3 challenge: download the worksheet (PDF)