Rational Equations

A rational equation has a polynomial fraction equal to zero; solve by setting the numerator to zero, then verify the denominator is nonzero.

P(x)Q(x)=0    P(x)=0,;Q(x)0\frac{P(x)}{Q(x)} = 0 \implies P(x) = 0, ; Q(x) \neq 0

Solve a problem with Rational Equations

Type the problem. The solver will use Rational Equations where Rational Equations is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Rational Equations takes
PP
QQ
xx
Rational Equations
SymbolMeaning
PPThe numerator polynomial in the equation P(x)Q(x)=0\frac{P(x)}{Q(x)} = 0; if this is misread as the whole equation, you lose the crucial denominator restriction.
QQThe denominator polynomial in the equation P(x)Q(x)=0\frac{P(x)}{Q(x)} = 0; it must never equal zero, or the entire fraction becomes undefined.
xxThe unknown variable you are solving for; solutions must be verified to ensure they do not make the denominator zero.

When to use it

When you have a polynomial fraction set equal to zero and need to find the values of the variable that make it zero.

Level

Usually taught in: Algebra II

Worked examples

1. Solve a simple rational equation

Problem

Solve x3x+2=0\frac{x - 3}{x + 2} = 0 for xx.
  1. x3x+2=0\frac{x - 3}{x + 2} = 0

    A fraction equals zero only when its numerator is zero and the denominator is nonzero.

  2. x3=0x - 3 = 0

    Set the numerator equal to zero, since that's the only way the fraction can be zero.

  3. x=3x = 3

    Add 3 to both sides to isolate xx.

  4. 3+2=503 + 2 = 5 \neq 0

    Substitute x=3x = 3 into the denominator to verify it is nonzero.

Answer: x=3x = 3

A fraction equals zero only when its numerator is zero and the denominator is nonzero. We set the numerator to zero and solve, then verify our answer doesn't make the denominator zero.

2. Solve a rational equation with multiple candidates

Problem

Solve x(x2)x2=0\frac{x(x - 2)}{x - 2} = 0 for xx.
  1. x(x2)x2=0\frac{x(x - 2)}{x - 2} = 0

    Start with the equation. A fraction equals zero only when its numerator is zero and its denominator is nonzero.

  2. x(x2)=0x(x - 2) = 0

    Set the numerator equal to zero.

  3. x=0orx=2x = 0 \quad \text{or} \quad x = 2

    Apply the zero product property: either x=0x = 0 or x2=0x - 2 = 0.

  4. x=0:02=20x = 0: \quad 0 - 2 = -2 \neq 0

    Substitute x=0x = 0 into the denominator to check: 02=20 - 2 = -2 is nonzero, so x=0x = 0 is valid.

  5. x=2:22=0x = 2: \quad 2 - 2 = 0

    Substitute x=2x = 2 into the denominator: 22=02 - 2 = 0, making the fraction undefined, so x=2x = 2 is not valid.

Answer: x=0x = 0

When the numerator factors, we get multiple candidate solutions from the zero product property. However, we must reject any solution that makes the denominator zero, even if it appears in the factored numerator. Only x=0x = 0 is valid here.

3. Solve a rational equation from a word problem about concert tickets

Problem

A concert venue offers general admission tickets at $60 and VIP tickets at $120. The net profit model is 2x150x+30\frac{2x - 150}{x + 30} where xx is the number of general admission tickets sold. If the net profit is zero, how many general admission tickets were sold?
  1. 2x150x+30=0\frac{2x - 150}{x + 30} = 0

    Set up the equation from the problem statement.

  2. 2x150=02x - 150 = 0

    Set the numerator equal to zero, since a fraction equals zero only when its numerator is zero and its denominator is nonzero.

  3. 2x=1502x = 150

    Add 150 to both sides.

  4. x=75x = 75

    Divide both sides by 2.

  5. 75+30=105075 + 30 = 105 \neq 0

    Verify the denominator is nonzero by substituting x=75x = 75 into x+30x + 30.

Answer: x=75 general admission ticketsx = 75 \text{ general admission tickets}

In real-world applications like concert revenue, rational expressions often describe break-even points where profit is zero. We set the numerator equal to zero, solve for the variable, and verify the denominator is nonzero to ensure our answer is valid.

Common mistakes

Where Rational Equations usually goes wrong
Answer came out wrong
After solving x(x2)x=0\frac{x(x - 2)}{x} = 0, student writes x=0x = 0 or x=2x = 2 as the final answer without checking the denominator.
Always verify that solutions do not make the denominator zero; in this case, only x=2x = 2 is valid.
Student sees (x+1)(x3)x3=0\frac{(x+1)(x-3)}{x-3} = 0 and concludes x=1x = -1 or x=3x = 3 as the solution.
Set only the numerator to zero: (x+1)(x3)=0(x+1)(x-3) = 0 gives x=1x = -1 or x=3x = 3; then reject x=3x = 3 because it makes the denominator zero.
Student solves x21x1=0\frac{x^2 - 1}{x - 1} = 0 by multiplying both sides by (x1)(x - 1) to get x21=0x^2 - 1 = 0, then factors to (x1)(x+1)=0(x-1)(x+1) = 0 and writes x=1x = 1 or x=1x = -1 as the answer.
After clearing fractions, check that any solutions obtained do not violate the original domain restrictions; here, only x=1x = -1 is valid.
The mistakeWhy it is wrongThe fix
After solving x(x2)x=0\frac{x(x - 2)}{x} = 0, student writes x=0x = 0 or x=2x = 2 as the final answer without checking the denominator.When x=0x = 0, the denominator becomes zero, making the fraction undefined, so x=0x = 0 is not a valid solution.Always verify that solutions do not make the denominator zero; in this case, only x=2x = 2 is valid.
Student sees (x+1)(x3)x3=0\frac{(x+1)(x-3)}{x-3} = 0 and concludes x=1x = -1 or x=3x = 3 as the solution.The zero product property applies only to the numerator. The denominator must never be zero, so x=3x = 3 violates the domain restriction even though it appears to solve the equation.Set only the numerator to zero: (x+1)(x3)=0(x+1)(x-3) = 0 gives x=1x = -1 or x=3x = 3; then reject x=3x = 3 because it makes the denominator zero.
Student solves x21x1=0\frac{x^2 - 1}{x - 1} = 0 by multiplying both sides by (x1)(x - 1) to get x21=0x^2 - 1 = 0, then factors to (x1)(x+1)=0(x-1)(x+1) = 0 and writes x=1x = 1 or x=1x = -1 as the answer.When clearing fractions, the domain restriction x1x \neq 1 persists throughout. The solution x=1x = 1 violates this restriction, even though it satisfies the simplified equation.After clearing fractions, check that any solutions obtained do not violate the original domain restrictions; here, only x=1x = -1 is valid.

Tips and when to use something else

  • Always verify that your solutions do not make the denominator zero; this is the most common error in rational equations.
  • To find potential solutions, set the numerator P(x)=0P(x) = 0 and solve; you can use Solving Quadratics by Factoring if the numerator is a quadratic.
  • Check for extraneous solutions (solutions that make the denominator zero) after solving; learn more in Extraneous Solutions.
  • If the fraction can be simplified by canceling common factors, do so first, but remember that the domain restriction still applies.

Frequently asked questions

Why must I check that the denominator is nonzero?
A rational expression is undefined when its denominator is zero. If your solution makes Q(x)=0Q(x) = 0, then the original equation does not exist at that point, so it cannot be a valid solution.
Can I always use the method of multiplying both sides by the denominator?
Yes, multiplying both sides of P(x)Q(x)=0\frac{P(x)}{Q(x)} = 0 by Q(x)Q(x) gives P(x)=0P(x) = 0, which is a valid step. However, you must still check that your solutions do not make Q(x)=0Q(x) = 0 in the original equation.
What if the numerator is a quadratic that does not factor nicely?
You can use the quadratic formula or other methods to solve P(x)=0P(x) = 0. Even if the solutions are irrational, you still must check whether they make the denominator zero.
What do I do if the numerator and denominator have a common factor?
You can cancel the common factor to simplify, but remember that the original domain restriction still applies. For example, x(x+1)x=0\frac{x(x+1)}{x} = 0 simplifies to x+1=0x + 1 = 0 (for x0x \neq 0), giving x=1x = -1.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18