Rational Equation Solver
Enter any rational equation and get the solution with a complete step-by-step breakdown. This calculator finds the LCD, identifies excluded values, clears denominators, solves the resulting polynomial, and checks for extraneous solutions.
What Is a Rational Equation?
A rational equation is an equation that contains at least one rational expression — a fraction whose numerator and/or denominator is a polynomial. For example:
(x + 1)/(x − 2) = 3/(x + 2)
These equations are more involved than linear or quadratic equations because the variable can appear in a denominator. That introduces two complications: some x-values are not allowed (they make a denominator zero), and the process of clearing fractions can introduce extraneous solutions that must be rejected at the end.
The LCD Method
The standard approach is to multiply every term on both sides by the least common denominator (LCD) of all fractions in the equation. This clears all denominators and leaves a polynomial equation that can be solved with ordinary techniques. The full procedure is:
- Step 1 — Factor every denominator. Factoring reveals the individual factors and makes the LCD easy to build.
- Step 2 — List excluded values. Set each denominator equal to zero and solve. These x-values are forbidden from the domain.
- Step 3 — Find the LCD. Take each distinct factor to the highest power it appears in any denominator.
- Step 4 — Multiply every term by the LCD. This cancels denominators. Be careful to multiply every term, including whole-number terms.
- Step 5 — Solve the resulting polynomial. Collect terms, move everything to one side, and solve by factoring or the quadratic formula.
- Step 6 — Check each candidate solution. If a candidate makes any original denominator zero, discard it as extraneous.
Why extraneous solutions appear:
When you multiply both sides by an expression containing the variable, you may introduce solutions that satisfy the new equation but not the original. For example, multiplying by (x − 1) turns a rational equation into a polynomial equation, but x = 1 makes the original denominator zero. Always check final answers against the excluded values.
Worked Example
Solve: (x + 1)/(x − 2) = 3/(x + 2)
- Denominators: (x − 2) and (x + 2).
- Excluded values: x ≠ 2 and x ≠ −2.
- LCD: (x − 2)(x + 2) = x² − 4.
- Multiply through: (x + 1)(x + 2) = 3(x − 2).
- Expand: x² + 3x + 2 = 3x − 6.
- Simplify: x² + 8 = 0 → x² = −8.
- Solve: x = ±√(−8), which is complex. There is no real solution.
In this case, the resulting polynomial has no real roots, so the rational equation has no real solution. If the polynomial had produced x = 2 or x = −2, those candidates would have been rejected as extraneous.
Common Special Cases
- No solution: The polynomial equation may have no real roots, or every candidate may be extraneous.
- Identical denominators: If two fractions share the same denominator, you can often equate numerators directly after multiplying through.
- Single fraction: An equation like 1/x = 5/6 can be solved by cross-multiplying: 6 = 5x → x = 6/5.
- Quadratic after clearing: Many rational equations reduce to quadratics, which may factor or require the quadratic formula.
Assumptions and Limitations
- Variables are single letters (a–z, A–Z) and the solver assumes a single variable (typically x).
- Exponents must be non-negative integers up to 6.
- The equation must contain exactly one = sign. Inequalities are not supported.
- Division by a variable is only supported inside fractions — write them
with a horizontal bar (e.g.
1/x), not with the ÷ symbol. - Polynomial degree after clearing denominators is limited to 4 to keep the output readable. Higher-degree cases require a general polynomial solver.
- Numerical coefficients may be integers, decimals, or simple fractions.
- Input length is limited to 500 characters.
❓ Rational Equation Solver FAQ
What is a rational equation?
A rational equation is an equation containing at least one fraction whose numerator and/or denominator is a polynomial. For example, (x + 1)/(x − 2) = 3 is a rational equation because the variable x appears in a denominator.
What is an extraneous solution?
An extraneous solution is a value that satisfies the transformed equation (after clearing denominators) but does not satisfy the original equation — usually because it makes one of the original denominators zero. These must be rejected at the end. The calculator automatically checks each candidate against the excluded values.
Why do I need to find excluded values first?
Because you cannot divide by zero. Any x-value that makes a denominator zero is outside the domain of the equation and cannot be a solution. Listing these values before you start tells you which candidates to reject later. The calculator identifies them automatically from the factored denominators.
How is the LCD found?
The least common denominator is the smallest expression that every denominator divides evenly. To build it, factor each denominator completely, then take each distinct factor to the highest power it appears in any single denominator. For example, with denominators (x − 1) and (x − 1)(x + 2), the LCD is (x − 1)(x + 2).
What if the equation has no solution?
Two things can cause "no solution": the polynomial equation after clearing denominators has no real roots (for example, x² + 1 = 0), or every candidate solution turns out to be extraneous (it makes an original denominator zero). The calculator reports "no real solution" in either case.
Can I solve a rational equation with more than one variable?
This calculator solves for a single variable. If your equation contains multiple variables, treat the one you want to solve for as the variable and the others as constants — but note that the result may be an expression in the other variables rather than a single number. For multi-variable systems, use the System of Equations Solver.
Why does the solver sometimes produce a fraction answer?
Rational equations frequently have rational solutions. For example, 1/x + 1/3 = 5/6 leads to x = 2, but equations like 10/(x + 4) = 15/(4(x + 1)) lead to x = 4/5. The calculator displays exact fractions when the denominator is small, and decimal approximations otherwise.
What is the difference between a rational equation and a rational expression?
A rational expression is just a fraction with polynomials (e.g. (x + 1)/(x − 2)). A rational equation sets two rational expressions equal (e.g. (x + 1)/(x − 2) = 3). To simplify a rational expression, use the Rational Expression Simplifier; to solve an equation, use this tool.
How do I enter exponents in the input?
Use the caret symbol ^: x^2 means x squared. You can also paste superscript characters (x², x³, x⁴) directly — they are automatically converted. Exponents must be non-negative integers.
Can the calculator handle equations with three or more fractions?
Yes. The parser reads the entire left and right sides as sums of fractions, finds the LCD across all of them, and multiplies through. The resulting polynomial may have higher degree, but the solver handles degrees up to 4.
What if my equation has parentheses around the whole fraction?
Parentheses around a fraction such as ((x + 1)/(x − 2)) are supported — they are treated as grouping and do not change the meaning. What is not supported is using the ÷ symbol for division; write fractions with a horizontal bar instead.
Is the result guaranteed to be correct?
For all supported inputs, the solver uses exact rational arithmetic and verifies each candidate against the original denominators, so results are exact. Decimal coefficients entered as decimals may accumulate tiny rounding errors; the display rounds to a precision you can choose under advanced options.