TOPICS
Search

Heart Curve


The name "heart curve" is used for a number of mathematical curves that produce heart shapes. The table shows three examples each given by implicit equations, parametric equations, and polar equations. The periodic parametrizations and polar equations are plotted over one full period.

illustrationequation typedefining equation
HeartCurveTableImplicit1
implicit(x^2+y^2-1)^3-x^2y^3=0
HeartCurveTableImplicit2
implicitx^2+[y-(x^2)^(1/3)]^2=1
HeartCurveTableImplicit3
implicitx^2+[y-(2(x^2+|x|-6))/(3(x^2+|x|+2))]^2=36
HeartCurveTableParametric1
parametricx =16sin^3t; y =13cost-5cos(2t)-2cos(3t)-cos(4t)
HeartCurveTableParametric2
parametricx =-sqrt(2)sin^3t; y =2cost-cos^2t-cos^3t
HeartCurveTableParametric3
parametricx =sintcostln|t|; y =|t|^(3/10)sqrt(cost)
HeartCurveTablePolar1
polarr(theta)=1-sintheta
HeartCurveTablePolar2
polarr(theta)=2-2sintheta+(sinthetasqrt(|costheta|))/(sintheta+7/5)
HeartCurveTablePolar3
polarr(theta)=1/sqrt(1-|costheta|sintheta)

The third parametrization is shown for -1<=t<=1. At t=0, its value is defined by continuity as (0,0).

The first implicit heart curve is obtained by taking the y=0 cross section of the heart surface and relabeling the z-coordinates as y, giving the order-6 algebraic equation

 (x^2+y^2-1)^3-x^2y^3=0.
(1)

The second implicit heart curve is a sextic curve given by the simple expression

 x^2+[y-(x^2)^(1/3)]^2=1,
(2)

noted on a greeting card by J. Schroeder (pers. comm., Oct. 16, 2021). With nonzero real scale parameters a and b, the curve becomes

 (x/a)^2+[y/b-((x/a)^2)^(1/3)]^2=1.
(3)

Clearing denominators in the corresponding polynomial equation gives the sextic equation

 (b^2x^2+a^2y^2-a^2b^2)^3+a^2b^6x^4+2a^2b^3x^2y(3b^2x^2-a^2y^2-3a^2b^2)=0.
(4)

Its real solutions with |x/a|<=1 give the scaled heart-shaped locus. Setting a=b=1 recovers the unscaled curve.

The third implicit heart curve is given by

 x^2+[y-(2(x^2+|x|-6))/(3(x^2+|x|+2))]^2=36
(5)

(P. Kuriscak, pers. comm., Feb. 12, 2006). Each half of this heart curve is a portion of an algebraic curve of order 6. An equation for the entire locus without absolute values can be obtained by setting S=x^2+y^2-36 and defining

A(x,y)=9(x^4+5x^2+4)S-12y(x^4-3x^2-12)+4(x^4-11x^2+36)
(6)
B(x,y)=18(x^2+2)S-24y(x^2-2)+8(x^2-6).
(7)

Clearing the positive denominator in the original equation gives A(x,y)+|x|B(x,y)=0. Thus the heart is the part of the degree-12 algebraic curve

 [A(x,y)]^2-x^2[B(x,y)]^2=0
(8)

satisfying A(x,y)B(x,y)<=0, for real x and y. The inequality excludes the extra branch introduced by squaring.

The first parametric heart curve is defined by

x=16sin^3t
(9)
y=13cost-5cos(2t)-2cos(3t)-cos(4t).
(10)

The second parametric heart curve is given by

x=-sqrt(2)sin^3t
(11)
y=2cost-cos^2t-cos^3t,
(12)

which arises through modifying the parametric equations of a nephroid (J. Mangaldan, pers. comm., Feb. 14, 2023).

The third parametric heart curve is given by

x=sintcostln|t|
(13)
y=|t|^(0.3)(cost)^(1/2),
(14)

with the continuous extension at t=0 described above (H. Dascanio, pers. comm., June 21, 2003).

The first polar heart curve is a rotated cardioid (whose name means "heart-shaped") given by

 r(theta)=1-sintheta.
(15)

The second polar heart curve is the polar curve

 r(theta)=2-2sintheta+sintheta(sqrt(|costheta|))/(sintheta+7/5)
(16)

due to an anonymous source and obtained from the log files of Wolfram|Alpha in early February 2010. Each half of this heart curve is a portion of an algebraic curve of order 12, so the entire curve is a portion of an algebraic curve of order 24.

The third polar heart curve is given by the polar equation

 r(theta)=1/(sqrt(1-|costheta|sintheta)),
(17)

with 0<=theta<=2pi (Wu 2025). Its equivalent implicit equation is

 x^2+y^2-|x|y=1,
(18)

which was given earlier by Nick (2014). The curve consists of the right half of the ellipse x^2+y^2-xy=1 together with its reflection across the y-axis.

The areas of the unscaled examples illustrated above are

A_(implicit,1)=3.661972725...
(19)
A_(implicit,2)=pi
(20)
A_(implicit,3)=36pi
(21)
A_(parametric,1)=180pi
(22)
A_(parametric,2)=(9pi)/(4sqrt(2))
(23)
A_(parametric,3)=0.237153845...
(24)
A_(polar,1)=3/2pi
(25)
A_(polar,2)=12.52...
(26)
A_(polar,3)=(2pi)/(sqrt(3)),
(27)

where A_(polar,2) can be given in closed form as a complicated combination of hypergeometric functions, inverse tangents, and gamma functions.

BonneProjection

The Bonne projection is a map projection that maps the surface of a sphere onto a heart-shaped region as illustrated above.


See also

Bonne Projection, Cardioid, Heart Surface, Watt's Curve

Explore with Wolfram|Alpha

References

Nick. "Answer to Question about Heart-Shaped-Graph." Mathematics Stack Exchange. Oct. 12, 2014. https://math.stackexchange.com/a/969748. Wu, F. "Reply to Various Heart-Shaped Curves from a Japanese Series." Wolfram Community. Oct. 2, 2025. https://community.wolfram.com/t/various-heart-shaped-curves-from-a-japanese-series/25155/7.

Referenced on Wolfram|Alpha

Heart Curve

Cite this as:

Weisstein, Eric W. "Heart Curve." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/HeartCurve.html

Subject classifications