Tangent Ellipse and Parabola: Solving for b Step by Step

Substituting a parabola into an ellipse gives a quartic, so the discriminant trick fails. Three derivations lead to the same polynomial in b, with two real roots.

Binary Buddies · 5 min read · 2 views

Take the ellipse (x-5)^2/16 + (y-b)^2/9 = 1 and the parabola y = x^2/4. You want the value of b for which the two curves touch. Substituting the parabola into the ellipse gives (x-5)^2/16 + (x^2/4 - b)^2/9 = 1. That is a degree-4 equation in x, not a quadratic, so the familiar move of setting a discriminant to zero is not available.

This problem was posed on Math Stack Exchange. The asker had already found the answer numerically by solving three equations in three unknowns. What they were missing was a single polynomial in b and a way to derive it. Below are the routes the thread offers, plus one elimination you can check by hand.

Why the substitution does not give a one-line answer

Tangency means the quartic in x has a repeated root at the contact point. A quartic can have anywhere from zero to four real roots, so 'exactly one solution' is the wrong condition. A double root can sit alongside two other distinct intersections, or alongside two complex ones.

The correct statement is that the quartic factors as a squared linear term times a quadratic. Every approach below is a different way of imposing that condition while keeping b as an unknown.

Gradients and a hand elimination

The asker's second attempt uses parallel gradients. With the parabola written as y - x^2/4 = 0, its gradient is (-x/2, 1). The ellipse gradient is ((x-5)/8, 2(y-b)/9). Eliminating the multiplier gives 8xy - 8xb + 9x - 45 = 0. Together with the two curve equations, this is a system of three quadrics in x, y, b. Solving it numerically gives two solutions:

  • (x, y, b) ≈ (8.9449, 20.0029, 20.4990)
  • (x, y, b) ≈ (1.8759, 0.8798, -0.99375)

You can also eliminate b by hand. Put y = x^2/4 into the gradient condition and solve for b: b = x^2/4 + 9/8 - 45/(8x). Then y - b = 9(5-x)/(8x). Substituting that into the ellipse and clearing denominators gives (x-5)^2(4x^2+9) = 64x^2, which expands to 4x^4 - 40x^3 + 45x^2 - 90x + 225 = 0. This elimination is not in the thread. I checked that both x values above satisfy it numerically. The point is that b has dropped out, so you solve for the contact point first and recover b from the formula.

Factoring the quartic with a double root

One answer imposes the double root directly. Define p(x) = 9(x-5)^2 + 16(x^2/4 - b)^2 - 144 and require p(x) = k(x - x̄)^2(x^2 + c1·x + c2), where x̄ is the contact abscissa. Matching coefficients gives five equations in the five unknowns b, x̄, c1, c2, k.

Two of them are trivial. The leading coefficient of p is 1, which forces k = 1. The absent x^3 term forces c1 = 2x̄. Eliminating the rest yields the quartic in b shown in the next section. This route needs no calculus and no computer algebra system until the final elimination, but the bookkeeping grows quickly by hand.

Rational parametrisation and a resultant

The accepted answer parametrises the ellipse rationally: P = (5,b) + (4(1-t^2)/(1+t^2), 3·2t/(1+t^2)). Requiring P to lie on the parabola gives t^4(4b-1) + 24t^3 + 2t^2(4b-9) + 24t + 4b - 81 = 0. Tangency requires dP_y/dt = (1/2)·P_x·dP_x/dt, which reduces to 3t^4 - 4t^3 - 36t - 3 = 0.

That second equation contains no b. The first is linear in b, and since 4b·t^4 + 8b·t^2 + 4b = 4b(t^2+1)^2, you can write b = (t^4 - 24t^3 + 18t^2 - 24t + 81) / (4(t^2+1)^2). The answer instead eliminates t with Mathematica's Resultant and gets:

4096 b^4 - 88576 b^3 + 118800 b^2 - 464616 b - 669951 = 0

The factorisation answer arrives at the same polynomial, so the two derivations cross-check each other.

Reading the roots

The quartic in b has two real roots, approximately -0.993749 and 20.499037. They match the asker's numerical solutions. The answer points out that they are close to -1 and 20.5, but the thread gives no sign that they are exact. Treat those as numerical coincidences and keep the quartic as the real answer. The thread says exact radical expressions exist but are unwieldy.

The two solutions are geometrically different. At x = 5 the parabola sits at height 25/4. For b ≈ -0.994 the ellipse centre is below that, so the ellipse touches the parabola from outside its cup. For b ≈ 20.5 the centre is above it, inside the cup, and contact is near the ellipse's right edge, at x ≈ 8.945 against a maximum x of 9. So the problem has two valid answers, and either one is right.

Where this does not fit, and what to watch for

The resultant route needs a computer algebra system. By hand it is impractical, and the quartic in b has no clean closed form worth quoting. If you only need a number, solving the quartic in t or in x numerically and substituting back is shorter and easier to sanity-check.

The rational parametrisation also has a gap. It never reaches the ellipse point at t → ∞, which is (1, b). A tangency exactly there would be invisible to the t-equations, so check that point separately. Likewise, dividing by x in the hand elimination above is safe only because x = 0 makes the gradient condition read -45 = 0.

Finally, a resultant gives necessary conditions, not a guarantee. Each real root of the quartic in b should be confirmed by checking that the repeated root of the original quartic in x actually exists and is real. The numbers from the thread pass that check, but the habit is worth keeping.

This article draws on Finding $b$ such that ellipse $\frac{(x-5)^2}{16}+\frac{(y-b)^2}{9}=1$ is tangent to parabola $y=\frac14 x^2$ and answers to it (1, 2), on the Stack Exchange network, licensed under CC BY-SA 4.0.

  • #analytic-geometry
  • #calculus
  • #conic-sections
  • #ellipse
  • #parabola
  • #tangency

Comments

Add a comment
Sign in with Google to join the conversation