Common tangents: five useful problem patterns

Original publication: Updated:

Turn tangency into an equation

A common tangent touches two curves, possibly at different points. Five useful patterns are: a parabola paired with another graph, two higher-degree graphs, a line touching a quartic twice, two circles, and a parameter chosen to give a specified number of tangents. These are a practical collection of methods, not an exhaustive classification of all tangent problems.

For a differentiable graph y=f(x)y=f(x), the tangent at x=tx=t is

y=f′(t)x+f(t)−tf′(t).y=f'(t)x+f(t)-tf'(t).

Match both slope and intercept when two such expressions must describe the same line. For a parabola, substituting a proposed line gives a quadratic, and tangency is its repeated-root condition. For a circle, the distance from its center to the line must equal its radius.

A genuine cubic cannot have one line tangent at two distinct points: the difference between the cubic and line would need two distinct double roots, requiring degree at least four. This observation helps when counting tangents from their contact parameters.

1. A parabola and a cubic

How many lines are tangent to both y=−2x2y=-2x^2 and y=x3−7x+4y=x^3-7x+4?

At a cubic contact parameter tt, the tangent is

y=(3t2−7)x−2t3+4.y=(3t^2-7)x-2t^3+4.

Intersection with the parabola gives

2x2+(3t2−7)x−2t3+4=0.2x^2+(3t^2-7)x-2t^3+4=0.

Its discriminant must vanish:

0=(3t2−7)2−8(−2t3+4)=9t4+16t3−42t2+17=(t−1)2(9t2+34t+17).\begin{aligned} 0&=(3t^2-7)^2-8(-2t^3+4)\\ &=9t^4+16t^3-42t^2+17\\ &=(t-1)^2(9t^2+34t+17). \end{aligned}

The distinct real parameters are

t=1,t=−17±2349.t=1,\qquad t=\frac{-17\pm2\sqrt{34}}9.

They give distinct cubic tangents by the degree argument above. Hence there are three common tangents. The repeated algebraic root t=1t=1 still represents only one line.

If you need their equations, reduce higher powers of the quadratic roots before substituting. For example,

−2t3+4=(−29t+6881)(9t2+34t+17)−200681t−83281.-2t^3+4=\left(-\frac29t+\frac{68}{81}\right)(9t^2+34t+17) -\frac{2006}{81}t-\frac{832}{81}.

At a root of the quadratic, only the final linear remainder remains.

2. Two cubic graphs

Find the common tangents of f(x)=x3−xf(x)=x^3-x and g(x)=x3−x−4g(x)=x^3-x-4.

With contact parameters s,ts,t, their tangent equations are

y=(3s2−1)x−2s3,y=(3t2−1)x−2t3−4.y=(3s^2-1)x-2s^3, \qquad y=(3t^2-1)x-2t^3-4.

Matching coefficients gives s2=t2s^2=t^2 and s3=t3+2s^3=t^3+2. The case s=ts=t is impossible. With s=−ts=-t, we obtain t=−1t=-1, s=1s=1, and therefore

y=2x−2.\boxed{y=2x-2.}

Matching slopes alone would not be sufficient: parallel tangents need not be the same line.

3. A quartic touched twice

Find a line tangent at two distinct points to

y=x4−2x2−2x+1.y=x^4-2x^2-2x+1.

The tangent cannot be vertical, since this polynomial graph has a finite derivative everywhere. Write it as y=mx+ny=mx+n and let its distinct contact coordinates be α<β\alpha<\beta. The difference polynomial is monic and has double roots at both points, so

x4−2x2−(2+m)x+1−n=(x−α)2(x−β)2.x^4-2x^2-(2+m)x+1-n=(x-\alpha)^2(x-\beta)^2.

Coefficient comparison gives

α+β=0,(α+β)2+2αβ=−2,\alpha+\beta=0,\qquad (\alpha+\beta)^2+2\alpha\beta=-2, 2αβ(α+β)=2+m,α2β2=1−n.2\alpha\beta(\alpha+\beta)=2+m,\qquad \alpha^2\beta^2=1-n.

Hence αβ=−1\alpha\beta=-1, m=−2m=-2, and n=0n=0. The contact coordinates are the roots of u2−1=0u^2-1=0, namely −1-1 and 11, confirming they really are distinct and real. Thus

y=−2x.\boxed{y=-2x.}

The factorization also checks the result directly: the difference is (x2−1)2(x^2-1)^2. The area between the curve and this line is

∫−11(x2−1)2 dx=1615.\int_{-1}^{1}(x^2-1)^2\,dx=\frac{16}{15}.

More generally,

∫αβ(x−α)2(x−β)2 dx=(β−α)530.\int_\alpha^\beta(x-\alpha)^2(x-\beta)^2\,dx =\frac{(\beta-\alpha)^5}{30}.

For a quartic with leading coefficient aa, the ordinary enclosed area includes the factor ∣a∣|a|.

4. Two circles

For a line ax+by+c=0ax+by+c=0, where (a,b)≠(0,0)(a,b)\ne(0,0), the distance from (x0,y0)(x_0,y_0) is

∣ax0+by0+c∣a2+b2.\frac{|ax_0+by_0+c|}{\sqrt{a^2+b^2}}.

Equating this to each radius handles circle tangency and includes vertical lines. Two distinct circles can have up to four common tangents. External tangents place both centers on the same side; internal tangents place them on opposite sides. Coincident circles are an exception with infinitely many tangents.

Example and a correction to the source

The source statement uses x2+y2=1x^2+y^2=1 and (x−2)2+y2=1(x-2)^2+y^2=1, but its solution uses center (3,0)(3,0). These are different configurations.

For the stated pair with centers two units apart, the circles touch externally. The complete answer is

y=1,y=−1,x=1.\boxed{y=1,\qquad y=-1,\qquad x=1.}

In particular, excluding vertical lines would lose a valid tangent. To check completeness, a nonvertical line y=mx+ny=mx+n must satisfy n2=m2+1n^2=m^2+1 and (2m+n)2=m2+1(2m+n)^2=m^2+1. Thus m(m+n)=0m(m+n)=0; m=−nm=-n contradicts the first equation, leaving m=0m=0, n=±1n=\pm1. A vertical common tangent must be x=1x=1.

For the pair actually solved in the source, with second center (3,0)(3,0), there is no common vertical tangent. The conditions are instead

n2=m2+1,(3m+n)2=m2+1.n^2=m^2+1,\qquad(3m+n)^2=m^2+1.

Subtracting gives 3m(3m+2n)=03m(3m+2n)=0. Either m=0m=0, n=±1n=\pm1, or n=−3m/2n=-3m/2, which gives m=±2/5m=\pm2/\sqrt5. The four lines are

y=±1,y=±25x∓35,\boxed{y=\pm1,\qquad y=\pm\frac2{\sqrt5}x\mp\frac3{\sqrt5},}

with the paired signs taken together.

5. Choose a parameter to obtain four tangents

Find all cc for which y=x3y=x^3 and y=x2+x+cy=x^2+x+c have four common tangents.

The tangent to the cubic at tt is y=3t2x−2t3y=3t^2x-2t^3. Substituting it into the parabola gives

x2+(1−3t2)x+c+2t3=0.x^2+(1-3t^2)x+c+2t^3=0.

The discriminant condition is

9t4−8t3−6t2+1=4c.9t^4-8t^3-6t^2+1=4c.

Different real tt give different cubic tangents, so we need four distinct real solutions. Let F(t)=9t4−8t3−6t2+1F(t)=9t^4-8t^3-6t^2+1. Then

F′(t)=12t(t−1)(3t+1).F'(t)=12t(t-1)(3t+1).

Its successive critical values are

F(−1/3)=2027,F(0)=1,F(1)=−4.F(-1/3)=\frac{20}{27},\qquad F(0)=1,\qquad F(1)=-4.

The derivative signs are −,+,−,+-,+,-,+ on the four intervals, and F(t)→+∞F(t)\to+\infty at both ends.

Quartic graph with local minima at t=-1/3 and t=1 and a local maximum at t=0.

A horizontal line meets all four monotone branches exactly when 20/27<4c<120/27<4c<1. At either boundary, two intersections merge and there are fewer than four distinct tangents. Consequently,

527<c<14.\boxed{\frac5{27}<c<\frac14.}

This is an application of root placement and parameter separation. In general, always justify the relationship between contact parameters and distinct lines before using a root count as a tangent count.

Related articles

About the author

Koki Saito

Physician and graduate of the University of Tokyo Faculty of Medicine. Drawing on his entrance-exam experience, he explains how to choose mathematical methods and construct complete solutions.

Full profile →

Have a question or spotted an error? Contact us.