In short

Two quadratic equations a_1x^2 + b_1x + c_1 = 0 and a_2x^2 + b_2x + c_2 = 0 share one common root exactly when (a_1c_2 - a_2c_1)^2 = (a_1b_2 - a_2b_1)(b_1c_2 - b_2c_1). They share both roots exactly when the ratios a_1/a_2 = b_1/b_2 = c_1/c_2. The common root itself can be found by subtracting one equation from the other and solving the resulting linear equation.

Take two quadratic equations:

x^2 - 5x + 6 = 0 \qquad \text{and} \qquad x^2 - 3x + 2 = 0

The first has roots 2 and 3. The second has roots 1 and 2. They share the root x = 2.

That was easy to spot because both equations factored into clean integers. But what if the coefficients are messier? What if someone hands you 3x^2 + 7x - 6 = 0 and 2x^2 + 5x - 3 = 0 and asks, do these two equations share a root? You could solve both equations fully using the quadratic formula, compare all four roots, and check for matches. That works, but it is slow — four roots, six possible comparisons, and the roots themselves might be ugly irrational numbers that are hard to compare.

There is a much faster way. Instead of solving both equations and comparing, you can test a single algebraic condition on the coefficients alone. If the condition holds, the equations share a root. If it doesn't, they don't. You never have to solve either equation.

The subtraction trick

Here is the key idea. Suppose \alpha is a root common to both equations. Then both of these are true at the same time:

a_1\alpha^2 + b_1\alpha + c_1 = 0 \tag{1}
a_2\alpha^2 + b_2\alpha + c_2 = 0 \tag{2}

Subtract equation (2) from equation (1):

(a_1 - a_2)\alpha^2 + (b_1 - b_2)\alpha + (c_1 - c_2) = 0

This is still a quadratic in \alpha — unless the leading coefficient happens to be zero. And here is the useful case: when a_1 = a_2 (or more generally, when you can arrange the subtraction to kill the \alpha^2 term), the result is a linear equation in \alpha, which you can solve immediately.

Even when a_1 \neq a_2, you can multiply equation (1) by a_2 and equation (2) by a_1 before subtracting, to eliminate the \alpha^2 term on purpose:

a_2 \cdot (a_1\alpha^2 + b_1\alpha + c_1) - a_1 \cdot (a_2\alpha^2 + b_2\alpha + c_2) = 0

Expanding: multiply (1) by a_2 to get a_1a_2\alpha^2 + a_2b_1\alpha + a_2c_1 = 0, and multiply (2) by a_1 to get a_1a_2\alpha^2 + a_1b_2\alpha + a_1c_2 = 0. Subtract:

(a_2b_1 - a_1b_2)\alpha + (a_2c_1 - a_1c_2) = 0

So the common root is:

\alpha = \frac{a_1c_2 - a_2c_1}{a_2b_1 - a_1b_2}

provided the denominator is not zero. This is a direct formula for the common root — you read it off the coefficients without ever touching the quadratic formula.

Two parabolas sharing one common rootTwo parabolas plotted on the same axes. The first, in dark ink, crosses the x-axis at x equals 1 and x equals 3. The second, in accent red, crosses the x-axis at x equals 1 and x equals 4. Both curves pass through the same point on the x-axis at x equals 1, which is their common root, marked with a filled circle. x y 1 2 3 4 common root y = x² − 4x + 3 y = x² − 5x + 4
Two parabolas — $y = x^2 - 4x + 3$ (roots at $1$ and $3$) and $y = x^2 - 5x + 4$ (roots at $1$ and $4$) — sharing the common root $x = 1$. Both curves pass through the same point on the horizontal axis, but their other roots and their shapes differ. The subtraction trick eliminates the $x^2$ term and hands you the shared root directly.

But there is still a question: how do you know a common root exists in the first place? The formula above gives you a candidate for \alpha. You still need to verify that this \alpha actually satisfies both original equations. That verification gives rise to the formal condition.

Condition for one common root

Take the candidate \alpha = \frac{a_1c_2 - a_2c_1}{a_2b_1 - a_1b_2} and substitute it back into one of the original equations. After algebraic simplification (which is lengthy but entirely mechanical), the condition that \alpha satisfies both equations reduces to a single equation in the coefficients.

Condition for one common root

The two quadratic equations a_1x^2 + b_1x + c_1 = 0 and a_2x^2 + b_2x + c_2 = 0 have exactly one common root if and only if:

(a_1c_2 - a_2c_1)^2 = (a_1b_2 - a_2b_1)(b_1c_2 - b_2c_1)

When this condition holds, the common root is \alpha = \dfrac{a_1c_2 - a_2c_1}{a_2b_1 - a_1b_2}.

The condition looks imposing, but it has a clean structure. Notice the three factors involved: (a_1c_2 - a_2c_1), (a_1b_2 - a_2b_1), and (b_1c_2 - b_2c_1). Each one is a "2 \times 2 cross-product" of two columns from the coefficient matrix. If you have met determinants, each factor is a 2 \times 2 determinant built from two of the three columns \begin{pmatrix} a_1 \\ a_2 \end{pmatrix}, \begin{pmatrix} b_1 \\ b_2 \end{pmatrix}, \begin{pmatrix} c_1 \\ c_2 \end{pmatrix}.

A quick mnemonic: write the six coefficients in a 2 \times 3 grid:

\begin{pmatrix} a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{pmatrix}

Take the three 2 \times 2 minors by dropping one column at a time. Call them P = b_1c_2 - b_2c_1 (drop column a), Q = a_1c_2 - a_2c_1 (drop column b), and R = a_1b_2 - a_2b_1 (drop column c). The condition is Q^2 = PR.

The 2 by 3 coefficient grid and its three minorsA 2 by 3 grid showing the coefficients a1, b1, c1 in the first row and a2, b2, c2 in the second row. Three brackets below highlight the three pairs of columns, labelling them P, Q, and R. The condition Q squared equals P times R is written below. a₁ b₁ c₁ a₂ b₂ c₂ R Q P Q² = P · R
Arrange the six coefficients in a $2 \times 3$ grid. The three $2 \times 2$ minors $P$, $Q$, $R$ are cross-products of adjacent columns. The condition for one common root is $Q^2 = PR$ — a single equation in the coefficients.

Where the condition comes from

Here is the derivation in full. Suppose \alpha is the common root. From the subtraction trick:

\alpha = \frac{a_1c_2 - a_2c_1}{a_2b_1 - a_1b_2}

Now use the same cross-multiplication idea but eliminate \alpha instead of \alpha^2. Multiply (1) by b_2 and (2) by b_1:

a_1b_2\alpha^2 + b_1b_2\alpha + b_2c_1 = 0
a_2b_1\alpha^2 + b_1b_2\alpha + b_1c_2 = 0

Subtract:

(a_1b_2 - a_2b_1)\alpha^2 + (b_2c_1 - b_1c_2) = 0

So \alpha^2 = \frac{b_1c_2 - b_2c_1}{a_1b_2 - a_2b_1}.

Now you have both \alpha and \alpha^2 in terms of the coefficients. For consistency, \alpha^2 must equal (\alpha)^2. Squaring the expression for \alpha and setting it equal to the expression for \alpha^2:

\left(\frac{a_1c_2 - a_2c_1}{a_2b_1 - a_1b_2}\right)^2 = \frac{b_1c_2 - b_2c_1}{a_1b_2 - a_2b_1}

Since a_2b_1 - a_1b_2 = -(a_1b_2 - a_2b_1), the left side is \frac{(a_1c_2 - a_2c_1)^2}{(a_1b_2 - a_2b_1)^2}. Cross-multiplying:

(a_1c_2 - a_2c_1)^2 = (a_1b_2 - a_2b_1)(b_1c_2 - b_2c_1)

That is the condition, derived cleanly in five lines.

Condition for both common roots

If both roots of the first equation are also roots of the second, the two equations describe the same pair of roots. Since a quadratic is entirely determined by its leading coefficient and its roots, the two equations must be proportional — one is just a scalar multiple of the other.

Condition for both common roots

The two quadratic equations a_1x^2 + b_1x + c_1 = 0 and a_2x^2 + b_2x + c_2 = 0 have both roots in common if and only if:

\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}

In other words, the equations are proportional — the second is just a constant multiple of the first.

This makes geometric sense. Two parabolas y = a_1x^2 + b_1x + c_1 and y = a_2x^2 + b_2x + c_2 cross the x-axis at the same two points only if they are scalar multiples of each other. They might have different steepness (different leading coefficients), but their roots — where they touch zero — are identical.

Two proportional parabolas sharing both rootsTwo parabolas plotted on the same axes. Both cross the x-axis at x equals 1 and x equals 3, but one is steeper than the other. The shallower curve is in dark ink, the steeper one is in accent red. Both share the same two roots, illustrated by filled circles at x equals 1 and x equals 3. x y 1 2 3 y = x² − 4x + 3 y = 2x² − 8x + 6
The equations $x^2 - 4x + 3 = 0$ and $2x^2 - 8x + 6 = 0$ share both roots ($x = 1$ and $x = 3$) because the second equation is exactly twice the first. The corresponding parabolas have different steepness but cross zero at the same two points.

Finding the common root in practice

Here is the practical procedure. Given two quadratics, the fastest route to the common root is almost always the subtraction trick, not the formula.

Step 1. Write both equations in standard form: a_1x^2 + b_1x + c_1 = 0 and a_2x^2 + b_2x + c_2 = 0.

Step 2. Eliminate the x^2 term. If a_1 = a_2, simply subtract. Otherwise, multiply the first equation by a_2 and the second by a_1, then subtract. You get a linear equation in x.

Step 3. Solve the linear equation. The solution is your candidate common root \alpha.

Step 4. Verify by substituting \alpha back into both original equations. If both give zero, \alpha is indeed a common root. If one of them doesn't, the equations have no common root.

Step 4 is not optional. The subtraction trick always produces a candidate, but the candidate is genuine only when the consistency condition (a_1c_2 - a_2c_1)^2 = (a_1b_2 - a_2b_1)(b_1c_2 - b_2c_1) is satisfied. Substituting back is the fastest verification.

Applications

Common roots appear in several places across algebra.

Intersecting loci in coordinate geometry. When two curves are defined by quadratic equations (a circle and a parabola, or two conics), their intersection points satisfy both equations simultaneously. Finding common roots is exactly the algebra behind finding intersection points.

Parameter-dependent equations. A typical JEE problem gives you x^2 + px + q = 0 and x^2 + rx + s = 0 where p, q, r, s depend on some parameter k, and asks: for what values of k do the two equations share a root? You apply the condition Q^2 = PR and solve for k.

Consistency of systems. If a system of equations has a common solution, the equations are "consistent" at that point. The common-root condition is a special case of checking consistency for quadratic systems.

Example 1: Do $x^2 - 5x + 6 = 0$ and $x^2 - 3x + 2 = 0$ share a root?

Step 1. Both equations have a = 1, so subtract the second from the first directly.

(x^2 - 5x + 6) - (x^2 - 3x + 2) = 0
-2x + 4 = 0

Why: the x^2 terms cancel immediately since both leading coefficients are 1. What remains is a simple linear equation — the subtraction trick at its cleanest.

Step 2. Solve the linear equation.

-2x + 4 = 0 \implies x = 2

Why: a linear equation always has exactly one solution. This x = 2 is the candidate common root.

Step 3. Verify in the first equation: 4 - 10 + 6 = 0. Check.

Step 4. Verify in the second equation: 4 - 6 + 2 = 0. Check.

Why: both equations give zero when x = 2, confirming that 2 is genuinely a common root — not just an artefact of the subtraction.

Result. The two equations share the common root x = 2. The other roots are x = 3 (first equation) and x = 1 (second equation) — those are different, so only one root is shared.

Parabolas y equals x squared minus 5x plus 6 and y equals x squared minus 3x plus 2 sharing the root x equals 2Two parabolas on the same axes. The first crosses the x-axis at x equals 2 and x equals 3. The second crosses at x equals 1 and x equals 2. Both pass through the common root at x equals 2, marked with a large filled circle. x y 1 2 3 4 common root: x = 2 x² − 5x + 6 x² − 3x + 2
The parabola $y = x^2 - 5x + 6$ (dark curve, roots at $2$ and $3$) and the parabola $y = x^2 - 3x + 2$ (red curve, roots at $1$ and $2$) meet the $x$-axis together at $x = 2$. The subtraction trick found this intersection in one line of algebra.

Example 2: Find $k$ so that $x^2 + 4x + k = 0$ and $x^2 + kx + 2 = 0$ share a common root

This is the parameter-hunting style of problem. The coefficients depend on k, and you need to find k.

Step 1. Both leading coefficients are 1, so subtract the second from the first:

(x^2 + 4x + k) - (x^2 + kx + 2) = 0
(4 - k)x + (k - 2) = 0

Why: the x^2 terms cancel, leaving a linear equation in x whose coefficients involve the parameter k.

Step 2. Solve for x in terms of k.

x = \frac{2 - k}{4 - k} \qquad (k \neq 4)

Why: this is the candidate common root, expressed as a function of k. It exists as long as k \neq 4 (which would make the denominator zero).

Step 3. Substitute this x into the second original equation x^2 + kx + 2 = 0:

\left(\frac{2 - k}{4 - k}\right)^2 + k\left(\frac{2 - k}{4 - k}\right) + 2 = 0

Multiply through by (4 - k)^2:

(2 - k)^2 + k(2 - k)(4 - k) + 2(4 - k)^2 = 0

Expand each term. (2 - k)^2 = 4 - 4k + k^2. k(2 - k)(4 - k) = k(8 - 6k + k^2) = 8k - 6k^2 + k^3. 2(4 - k)^2 = 2(16 - 8k + k^2) = 32 - 16k + 2k^2.

Sum: 4 - 4k + k^2 + 8k - 6k^2 + k^3 + 32 - 16k + 2k^2 = 0

k^3 - 3k^2 - 12k + 36 = 0

Why: after cleaning up, the condition that both equations are satisfied simultaneously becomes a cubic in k.

Step 4. Factor the cubic. Try k = 2: 8 - 12 - 24 + 36 = 8. Not zero. Try k = -3: -27 - 27 + 36 + 36 = 18. Not zero. Try k = 6: 216 - 108 - 72 + 36 = 72. Not zero. Try grouping: k^3 - 3k^2 - 12k + 36 = k^2(k - 3) - 12(k - 3) = (k^2 - 12)(k - 3).

So k = 3 or k = \pm 2\sqrt{3}.

Why: factoring by grouping splits the cubic into a linear factor and a quadratic factor, giving three values of k.

Result. The equations share a common root when k = 3, k = 2\sqrt{3}, or k = -2\sqrt{3}.

When k = 3: the equations are x^2 + 4x + 3 = 0 (roots -1, -3) and x^2 + 3x + 2 = 0 (roots -1, -2). Common root: x = -1.

Parabolas for k equals 3 sharing common root at x equals negative 1Two parabolas plotted for k equals 3. The first equation x squared plus 4x plus 3 has roots at negative 3 and negative 1. The second equation x squared plus 3x plus 2 has roots at negative 2 and negative 1. Both pass through x equals negative 1, marked with a filled circle. x y −3 −2 −1 common root: x = −1 x² + 4x + 3 x² + 3x + 2
With $k = 3$, the two equations become $x^2 + 4x + 3 = 0$ and $x^2 + 3x + 2 = 0$. Their parabolas cross the axis together at $x = -1$. The other roots ($-3$ and $-2$) are different — exactly one root is shared.

Interactive exploration

Drag the red point along the x-axis below. The two readouts show the value of each quadratic at that point. When both readouts hit zero at the same x, you have found a common root.

Interactive common root finder for two quadraticsAn interactive graph with two parabolas: y equals x squared minus 5x plus 6 and y equals x squared minus 3x plus 2. A draggable red point moves along the x-axis. Two readouts above the graph show the value of each quadratic at the current x-position. When the point is at x equals 2, both readouts show zero — that is the common root. drag the red point to find the common root
Drag the red point along the horizontal axis. The readouts show the value of each quadratic at your chosen $x$. When you reach $x = 2$, both values hit zero simultaneously — that is the common root.

Common confusions

Going deeper

If you came here to learn how to find common roots and check the condition, you have it — you can stop here. The rest explores the algebraic machinery behind the scenes: the resultant and the relationship to GCD of polynomials.

The resultant

The condition (a_1c_2 - a_2c_1)^2 = (a_1b_2 - a_2b_1)(b_1c_2 - b_2c_1) is the vanishing of the resultant of the two quadratics. The resultant of two polynomials f(x) and g(x) is a single number computed from their coefficients — it is zero precisely when f and g share a root. For two quadratics, the resultant is a 4 \times 4 determinant (the Sylvester matrix), which simplifies to the Q^2 - PR expression above.

The resultant has a clean product formula. If f(x) = a_1(x - \alpha)(x - \beta) and g(x) = a_2(x - \gamma)(x - \delta), then

\text{Res}(f, g) = a_1^2 a_2^2 (\alpha - \gamma)(\alpha - \delta)(\beta - \gamma)(\beta - \delta)

This is zero exactly when one of the factors (\alpha - \gamma), (\alpha - \delta), (\beta - \gamma), or (\beta - \delta) is zero — that is, when a root of f coincides with a root of g. The resultant packages this "do any roots match?" question into a single polynomial expression in the coefficients, with no need to actually compute the roots.

GCD of polynomials

There is another way to think about common roots. Two polynomials share a common root \alpha if and only if (x - \alpha) divides both of them — that is, (x - \alpha) is a common factor. The greatest common divisor (GCD) of the two polynomials captures all such shared factors. If \gcd(f, g) = 1 (a constant), they share no root. If \gcd(f, g) is linear, they share exactly one root. If \gcd(f, g) is quadratic (and f, g are both quadratic), they share both roots.

You can compute the GCD of two polynomials using the Euclidean algorithm for polynomials — the same idea as the Euclidean algorithm for integers, but with polynomial long division replacing integer division. The subtraction trick in this article is essentially the first step of that algorithm.

Connection to Vieta's formulas

From the sum and product of roots, if the first equation has roots \alpha, \beta and the second has roots \alpha, \gamma (sharing \alpha), then:

Subtracting: \beta - \gamma = b_2/a_2 - b_1/a_1. And from the product relations, \alpha = \frac{c_1/a_1}{\beta} = \frac{c_2/a_2}{\gamma}. These two relations, combined with the sum relations, give another route to the common root and the consistency condition — entirely through Vieta's formulas without needing the subtraction trick.

Where this leads next