
Type two lines into a graphing calculator and a heart appears. The top is drawn by , the bottom by , and the two meet so cleanly at that the outline looks like one stroke. The picture does the rounds every February under the name “the graph of love.”
It deserves a closer look than a share button. Every feature of the shape, the round shoulders, the cleft, the smooth sides, the sharp tip, comes from one specific symbol in those two lines. Take the symbols away one at a time and the heart falls apart in instructive ways.
Area = π + 32·3/15 ≈ 9.542
Press Draw it to watch the outline traced in one go, then drag the slider. It changes a single number, the 3 in front of the bottom function. Everything else stays put.
The top
Two semicircles and a pair of absolute value bars
Start with the circle of radius 1 centred at the origin, the one behind the unit circle. Its equation is . Solve for and keep the positive root, and you have the upper half only:
Replace with and the semicircle slides one unit to the right, so it now sits on the interval from 0 to 2. That is one lobe of the heart. The second lobe is its mirror image, and this is where the absolute value bars earn their place. Writing instead of makes the function ignore the sign of its input, so whatever is drawn on the right is copied to the left for free:
The two semicircles touch at the origin, and each one arrives there travelling straight down. That is the cleft of the heart, and it reaches all the way to the x-axis. Many plots of this curve show the cleft stopping a little above the axis; that is the plotting software running out of sample points where the curve turns vertical, not the mathematics.
The bottom
Why one square root is not enough
The bottom has a harder job. It must start at , end at , come to a point somewhere below, and leave the shoulders without a visible corner. The simplest thing that hits the three points is a V:
It has the right depth and the wrong everything else: straight sides, and sharp corners where it meets the semicircles. Wrap it in a square root and the corners disappear, because a square root leaves zero vertically, exactly as a semicircle does. But the tip is now a blunt angle and the sides bulge outward, more shield than heart.
The fix is a second square root, inside the first:
a plain V
smooth sides, blunt tip
the heart
The inner root, , shoots up from zero infinitely steeply, which is what pinches the tip into a point. It also rises quickly and then flattens, which pulls the flanks inward into the long, slightly hollow sides a heart needs. The division by 2 only sets the width, so the expression under the outer root reaches zero exactly at . (That hiding in the denominator is the same irrational number that upset the Pythagoreans.) The −3 flips the curve below the axis and stretches it to three units deep.
The join
Smooth at the sides, sharp at the tip
Zoom in on the right-hand join, where is just under 2. Write for the small distance left to go. To first order, the two functions become
Both are sideways parabolas with their vertex at , one opening up and to the left, the other down and to the left. They share a vertical tangent, so the outline passes from blue to red without a kink. They do not share a curvature: the circle bends at a rate of 1, the bottom at 8/9. The heart relaxes by a ninth as it crosses the axis, a change too small to see and exactly the kind of thing a font designer would fuss over.
The tip is the opposite case. Near the bottom behaves like : two branches that both arrive vertically and turn back on themselves. Mathematicians call that a cusp. It is the same kind of point a cycloid makes each time the rolling wheel touches the ground, and the cleft at the top is a second one.
Two cusps, two smooth joins, and not one of them needed a special case. They fall out of where the square roots hit zero.
The area
How big is this heart?
The top is two half-discs of radius 1, which together make one whole disc: area π, no integral needed. The bottom takes one substitution. By symmetry it is twice the area under the right half, and putting clears the inner root:
Multiply by 3 for the depth and by 2 for the two sides, and the bottom comes to 32/5.
It is a small pleasure that π turns up here without any work, the way it turns up uninvited in the Gaussian integral. The slider above generalises the result: with depth in place of 3, the area is . The perimeter is less tidy. The top contributes exactly 2π, the bottom has no closed form worth writing down, and the total is about 13.68.
A correction
It is two functions, not one equation
The heart is often captioned with the two expressions joined by an equals sign, as if the whole shape were the solution of one equation. It is not. Set the top equal to the bottom and you are asking where a non-negative number equals a non-positive one, which happens only when both are zero: at , the two points where the halves meet. The equation describes the seams, not the heart.
Nor can a single function draw it, since a vertical line through the shape crosses the outline twice. If you want one line of algebra, multiply the two pieces together:
A product is zero when either factor is, so this one equation is satisfied on the top curve, on the bottom curve, and nowhere else.
Try it
How to graph the heart yourself
Open Desmos, GeoGebra or any graphing calculator and enter these two lines:
y = sqrt(1 - (abs(x) - 1)^2) y = -3 sqrt(1 - sqrt(abs(x) / 2))
Then break it on purpose. Change the −3 to −2 for a wider, flatter heart, or to −4 for a long thin one. Delete the inner sqrt and watch the tip go blunt. Replace abs(x) with x in the first line and the left lobe vanishes, because the function no longer knows about negative inputs.
This is one heart among many. MathWorld’s page on heart curves collects others, including the sextic and a parametric version built from four cosines. Those are more compact. This one is easier to take apart, because each half is an ordinary function a first-year algebra student can read. For curves drawn by motion instead of by formula, see Lissajous curves.
Sources
- Weisstein, Eric W. “Heart Curve.” Wolfram MathWorld.
- Area, perimeter and the local expansions at the joins were computed for this piece and checked numerically.





