Free Algebra Solver
Rational equations

Rational Equation Calculator

Enter an equation with x in a denominator, using parentheses around each denominator, like (x+1)/(x-3) = 2. The calculator clears the fractions, solves, and rejects extraneous solutions.

Preview (x + 1)/(x - 3) = 2 (Solve) Ready
Examples
Solution

Worked example: (x + 1)/(x - 3) = 2

Worked example. Edit the problem above and press Solve to solve your own.

Problem(x + 1)/(x - 3) = 2
  1. Find the values x cannot be

    Before solving, note every value of x that makes a denominator zero. Those values can never be solutions.

    x − 3 ≠ 0
    A denominator cannot be zero
    x ≠ 3
    Excluded values

    Division by zero is undefined, so the original equation has no meaning at these values.

  2. Multiply both sides by the LCD

    Multiplying every term by the least common denominator clears all the fractions.

    LCD = x − 3
    Least common denominator
    x + 1 = 2x − 6
    Fractions cleared

    Multiplying both sides by the same nonzero expression keeps the equation balanced for every allowed x.

  3. Simplify both sides of the equation

    Remove parentheses and combine like terms before isolating x.

    x + 1 = 2x − 6
    Original equation
    x + 1 = 2x − 6
    Simplify multiplication and combine like terms

    Only equivalent simplifications are used, so the solution set is unchanged.

  4. Subtract 2x from both sides

    Subtract 2x so every x-term is on the left.

    x + 1 − 2x = 2x − 6 − 2x
    Subtract 2x on both sides
    −x + 1 = −6
    Combine the x-terms

    Doing the same operation on both sides keeps the equation balanced.

  5. Subtract 1 from both sides

    Subtract 1 to leave only the variable term on the left.

    −x + 1 − 1 = −6 − 1
    Subtract 1 on both sides
    −x = −7
    Simplify both sides

    Adding or subtracting the same number on both sides preserves equality.

  6. Divide both sides by −1

    Undo the multiplication attached to x.

    −x/−1 = −7/−1
    Divide the entire left and right sides by −1
    x = 7
    Reduce both fractions

    Dividing both sides by the same nonzero number preserves equality.

  7. Check the answer in the original equation

    Substitute the proposed value into both sides of the original equation.

    x = 7
    Proposed solution
    (7) + 1 = 2(7) − 6
    Substitute 7 for x
    8 = 8
    Both sides are equal, so it checks out

    A value is a solution only when it makes the original equation true.

  8. Check against the original equation

    Substitute each answer into the original equation and confirm no denominator becomes zero.

    x = 7: 2 = 2 ✓
    Substitute into the original equation

    Clearing denominators can add extraneous solutions, so the check is part of the method.

Answerx = 7

Rational equations guide

How to use the rational equation calculator

This rational equation calculator solves equations with x in a denominator. It finds the excluded values, clears the fractions with the LCD, solves, and throws out any extraneous solutions.

How do you solve a rational equation?

List the values of x that make any denominator zero. Multiply every term on both sides by the least common denominator to clear the fractions, then solve the equation that is left. Finally, reject any answer that is an excluded value. For (x + 1)/(x − 3) = 2, this gives x = 7.

What is a rational equation?

A rational equation is an equation with at least one fraction that has a variable in the denominator, such as 3/(x + 1) = 2/x. A fraction like x/4 doesn't count, because its denominator is just a number.

The variable in the bottom is what makes these problems different. Some values of x make a denominator zero, and those can never be answers. Keeping track of them is half the job.

Type the equation with parentheses around each denominator, for example (x+1)/(x-3) = 2 or 1/x + 1/(x+1) = 1/2.

What are the steps for solving rational equations?

Find the excluded values, multiply by the LCD, solve, and check. Solving rational equations by hand follows the same four steps the calculator shows.

  1. Factor each denominator and write down the values of x that make any of them zero.
  2. Find the least common denominator (LCD) of all the fractions.
  3. Multiply every term on both sides by the LCD. The fractions disappear.
  4. Solve the equation that is left. It is usually linear or quadratic.
  5. Cross out any answer that matches an excluded value, then check the rest in the original equation.
Start
(x + 1)/(x − 3) = 2
Excluded value
x ≠ 3
Multiply both sides by x − 3
x + 1 = 2(x − 3)
Distribute
x + 1 = 2x − 6
Solve
x = 7
Check
(7 + 1)/(7 − 3) = 8/4 = 2

What is an extraneous solution in a rational equation?

An extraneous solution is a number you get from the cleared equation that doesn't work in the original, because it makes a denominator zero. Multiplying by the LCD can create these, since the LCD itself is zero at the excluded values.

Look at x/(x − 2) = 2/(x − 2). The excluded value is x = 2. Multiplying both sides by x − 2 gives x = 2, which is the one value that isn't allowed. So the calculator rejects it and reports No solution.

This is why the excluded values come first. If you skip that step, x = 2 looks like a perfectly good answer.

How do you find the LCD of polynomial denominators?

Factor each denominator, then take every different factor the greatest number of times it appears in any one denominator. That's the same rule as the least common multiple of whole numbers, only with factors like x − 1 in place of primes.

DenominatorsLCDWhy
x and x + 1x(x + 1)No shared factors, so multiply them
x, x + 1 and 22x(x + 1)Each factor appears once
x − 1, x + 1 and x² − 1(x + 1)(x − 1)x² − 1 already contains both factors
x and x²x²Use the highest power of x

The third row is a common textbook problem: 2/(x − 1) − 1/(x + 1) = 1/(x² − 1). Since x² − 1 = (x + 1)(x − 1), that product is already the LCD. Multiplying through gives 2(x + 1) − (x − 1) = 1, which simplifies to x + 3 = 1, so x = −2. It isn't 1 or −1, so it stays. Both sides come out to 1/3 when you check it.

When can you cross multiply a rational equation?

You can cross multiply when the equation is a proportion: exactly one fraction on each side and nothing else. It's a shortcut for multiplying by the LCD.

For 3/(x + 1) = 2/x, cross multiplying gives 3x = 2(x + 1), so 3x = 2x + 2 and x = 2. That isn't 0 or −1, and the check works: 3/3 = 1 and 2/2 = 1.

Cross multiplying can also lead to a quadratic. With x/3 = 4/(x + 1), you get x(x + 1) = 12, then x² + x − 12 = 0. That factors to (x + 4)(x − 3) = 0, so x = −4 or x = 3. Neither is the excluded value −1, so both answers stand.

Once a side has two terms, such as 1/x + 1/(x + 1) = 1/2, cross multiplying no longer applies. Use the LCD method instead.

What if clearing the fractions gives a quadratic?

Solve it like any quadratic, then check both roots against the excluded values. The calculator uses the quadratic formula when the result doesn't factor nicely.

Start
1/x + 1/(x + 1) = 1/2
Excluded values
x ≠ −1, x ≠ 0
Multiply by the LCD 2x(x + 1)
2(x + 1) + 2x = x(x + 1)
Simplify
4x + 2 = x² + x
Standard form
x² − 3x − 2 = 0
Quadratic formula
x = (3 − √17)/2 or x = (3 + √17)/2

Neither root is 0 or −1, so both are kept. If you want to see the quadratic formula step on its own, the quadratic equation solver walks through it.

What does "all real numbers except" mean?

It means the equation is true for every x you're allowed to use. Only the excluded values are left out.

Try x/(x + 1) = 1 − 1/(x + 1). Multiplying by x + 1 gives x = (x + 1) − 1, which is x = x. That's true for any number, but x = −1 was never allowed. The calculator's answer is All real numbers except x = −1.

What are common mistakes when you solve rational equations?

Most lost marks come from three habits: skipping the excluded values, multiplying only some terms by the LCD, and dropping parentheses. In 2/(x − 1) − 1/(x + 1), the second numerator after clearing is −(x − 1), which is −x + 1, not −x − 1.

Another slip is cross multiplying when a side has two fractions. And don't confuse a rational equation with a rational expression. If there's no equals sign, you simplify instead, which is what the rational expressions calculator does.

One limit to know: this rational equations solver handles equations only. Rational inequalities such as 1/x < 2 aren't supported.

Frequently asked questions

Short answers to the questions people ask most about this topic.

What does a rational equation calculator do?

It solves equations that have x in a denominator. It lists the excluded values, multiplies by the LCD, solves the result, and rejects any extraneous solutions, showing each step.

How do you check for extraneous solutions?

Compare each answer with the excluded values, then substitute it into the original equation. If an answer makes any denominator zero, it's extraneous and gets crossed out.

Why does x/(x − 2) = 2/(x − 2) have no solution?

Clearing the fractions gives x = 2, but x = 2 makes both denominators zero. Since that was the only candidate, there is no solution.

Can a rational equation have two answers?

Yes. If clearing the fractions gives a quadratic, there can be two answers. For x/3 = 4/(x + 1), the answers are x = −4 or x = 3.

Do I always have to use the LCD?

Any common denominator works, but the LCD keeps the numbers smallest. For a simple proportion with one fraction on each side, cross multiplying does the same job.

Can it solve rational inequalities?

No. Inequalities with x in a denominator aren't supported. The calculator solves rational equations only. For inequalities without x in a denominator, use the inequality solver.

How do I solve rational equations by hand when the calculator isn't allowed?

Write the excluded values in the margin first. Then multiply by the LCD, solve, and test each answer in the original equation. That last check catches almost every error.

Math keypad

Solve mode

Use the keypad below or tap the expression to use your phone keyboard.

Keyboard tips

Ctrl + Enter
Run the selected operation
a/b key
Select part of the problem first to wrap it in a fraction, root, power, or bars
sin(30)
Scientific functions work in Calculate mode; angles are in degrees unless you use π
^
Enter a power, such as x^2
sqrt(
Calculate an exact or simplified square root
a:b
Separate quantities in a ratio
12, 18
Separate integers in an LCM and GCD calculation
@ x =
Assign x when evaluating an expression
y =
Enter a polynomial function to graph
|
Wrap an absolute-value expression