Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Rational Equation Solver

ยน/โ‚“

Solve equations with variables in denominators, step by step

Enter equation...
Var
Num
Op

Select an equation type or enter your own rational equation, then click Solve to see the step-by-step solution.






Getting Started

The solver shows an equation display at the top with a blinking yellow caret marking the cursor position. Click anywhere in the display to place the cursor, or use arrow keys, Home, and End for keyboard navigation. Type directly or use the button panel below.

Three quick experiments:

• Type 1/x+1/2=3/41/x + 1/2 = 3/4 and press Enter — the right panel identifies the LCD as 4x4x, multiplies through, solves the resulting linear equation, and confirms x=4x = 4 does not violate the restriction xโ‰ 0x \neq 0.
• Click an example template like "Has Extraneous Root" — the solver finds a candidate root that turns out to make a denominator zero and rejects it.
• Enter x/(xโˆ’3)=3/(xโˆ’3)+2x / (x - 3) = 3 / (x - 3) + 2 to see the extraneous-solution mechanic in action.

The Solve button is disabled until you enter something. Pressing Enter on the display is equivalent to clicking Solve.

Building Equations with Buttons and Keyboard

The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.

• Variable row — xx, yy, nn. The solver picks up whichever variable appears in your equation.
• Number row — digits 0 through 9 and the decimal point.
• Operator row — multiplication, division, plus, minus, equals.
• Power and bracket row — x2x^2 shortcut, caret for arbitrary exponents, and parentheses for grouping denominators.

The division symbol always introduces a fraction in the display, with the numerator above and the denominator below. For multi-term denominators wrap them in parentheses: 1/(x+3)1/(x + 3) not 1/x+31/x + 3.

Keyboard shortcuts: type letters and digits directly, use star or slash for multiplication and division (auto-converted on display), and press Enter to solve. Ctrl+Z undoes up to fifty edits back; Backspace deletes the character before the cursor; Delete removes the one after it. The Clear button empties the display entirely; the curved-arrow button steps through the undo stack one edit at a time.

Try an Example โ€” Eight Form Templates

Click the "Try an Example" header to expand the template panel. Each card generates a random equation of that form. Clicking again produces a new random version.

• Simple Reciprocal — a/x=ba / x = b. One variable denominator; cross-multiplication gives x=a/bx = a / b.
• Linear Denominator — a/(bx+c)=da / (bx + c) = d. Slightly more complex denominator; same cross-multiplication approach.
• Proportion — a/(x+b)=c/(x+d)a / (x + b) = c / (x + d). Two fractions equated; cross-multiply directly.
• Sum of Fractions — 1/x+1/(x+a)=b1/x + 1/(x + a) = b. Two different denominators; the LCD is their product.
• Has Extraneous Root — constructed so a candidate solution equals a restricted value. Tests the extraneous-check step.
• Quadratic After Clearing — x+a/x=bx + a/x = b. Multiplying through by xx yields a quadratic.
• Variable Numerator — (ax+b)/(cx+d)=e(ax + b) / (cx + d) = e. Standard rational form with linear numerator and denominator.
• No Solution — 1/(xโˆ’a)=1/(xโˆ’a)+b1/(x - a) = 1/(x - a) + b for bโ‰ 0b \neq 0. Reduces to 0=b0 = b, a contradiction.

Roughly 80 percent of generated equations produce clean integer or rational solutions; the rest exercise irrational and extraneous cases.

Reading the Step-by-Step Solution

The solution panel shows each algebraic move as a labeled step. The step sequence is fixed for rational equations.

• Identify Restrictions — lists the values of the variable that would make any denominator zero, computed by solving each denominator for zero.
• Find LCD — displays the least common denominator as a polynomial expression.
• Multiply Both Sides by LCD — shows the polynomial equation that results after clearing all fractions.
• Solve Polynomial — routes the cleared equation through the polynomial solver (linear, quadratic, or higher via rational root theorem).
• Candidate Solutions — lists the raw roots of the polynomial before checking.
• Check for Extraneous Solutions — compares each candidate against the restricted values; flags any matches as extraneous.
• Solution — reports the valid roots that remain after the extraneous check.

If every candidate turns out to be extraneous, the equation has no solution and the final answer card displays the contradiction with a cross mark.

The LCD Method โ€” Why It Works

Multiplying both sides of an equation by a nonzero quantity preserves the solution set. The LCD is the smallest expression that turns every denominator into a polynomial, so multiplying by it clears all fractions in one step.

Construction. If the unique denominators in the equation are d1,d2,โ€ฆ,dkd_1, d_2, \ldots, d_k, the solver builds the LCD as their product d1โ‹…d2โ‹ฏdkd_1 \cdot d_2 \cdots d_k (factoring out common factors when feasible). For each fraction ni/din_i / d_i, multiplying by the LCD leaves niโ‹…(LCD/di)n_i \cdot (\text{LCD} / d_i) — a polynomial.

Example. For 1x+1x+2=34\frac{1}{x} + \frac{1}{x + 2} = \frac{3}{4}, the unique denominators are xx, x+2x + 2, and 44, so LCD=4x(x+2)\text{LCD} = 4x(x + 2). Multiplying every term by 4x(x+2)4x(x + 2):

4(x+2)+4x=3x(x+2)4(x + 2) + 4x = 3x(x + 2)


This is a polynomial equation, solvable by standard methods.

The catch. Multiplying by an expression that can equal zero is not an equivalence operation. If the LCD evaluates to zero at some candidate solution, that candidate was created by the multiplication and is not a true solution of the original equation. This is why the extraneous-check step matters.

For deeper coverage see least common denominator, clearing fractions, and equivalent equations.

What is a Rational Equation?

A rational expression is a ratio of two polynomials:

P(x)Q(x)\frac{P(x)}{Q(x)}


where PP and QQ are polynomials and Q(x)โ‰ 0Q(x) \neq 0. A rational equation sets one rational expression equal to another, or to a polynomial:

P1(x)Q1(x)+P2(x)Q2(x)+โ‹ฏ=R(x)\frac{P_1(x)}{Q_1(x)} + \frac{P_2(x)}{Q_2(x)} + \cdots = R(x)


The defining feature: the variable appears in at least one denominator. This makes the equation fundamentally different from a polynomial equation because the domain is restricted — any value that makes a denominator zero must be excluded.

The graph of y=P(x)/Q(x)y = P(x) / Q(x) typically has vertical asymptotes at the restricted values, and may have horizontal or slant asymptotes far from the origin. Rational equations correspond to finding where two such graphs intersect, or where one crosses a constant level.

Rational equations appear in physics (lens formulas, parallel resistors), chemistry (concentrations, reaction rates), economics (average cost per unit), and any setting where two quantities are combined as inverses or ratios.

For deeper coverage see rational expressions, rational functions, and vertical asymptotes.

The Solving Process Explained

Four steps solve any rational equation. The first three are mechanical; the fourth is essential and easily forgotten.

• Step 1: Identify the restricted values. For each denominator, set it equal to zero and solve. These values are excluded from the domain. Skipping this step means missing the check that distinguishes a valid solution from an extraneous one.

• Step 2: Compute the LCD. The least common denominator is the smallest polynomial divisible by every denominator. For distinct denominators with no common factors, the LCD is simply their product.

• Step 3: Multiply both sides by the LCD. Every fraction becomes a polynomial. The resulting equation is a polynomial equation of degree equal to (or less than) the degree of the LCD.

• Step 4: Solve and check. Solve the polynomial equation by standard methods. For each candidate root, verify that it does not equal any restricted value. Reject any root that does — it is extraneous. The remaining roots are the true solutions.

If the polynomial has no real roots, the equation has no solution. If every root is extraneous, the equation also has no solution.

For comprehensive treatment see solving rational equations, extraneous solutions, and cross multiplication.

Related Concepts

Rational Functions — functions of the form f(x)=P(x)/Q(x)f(x) = P(x) / Q(x) where PP and QQ are polynomials. Have vertical asymptotes at zeros of QQ that are not also zeros of PP.

Rational Inequalities &mdash; same form as rational equations but with <<, >>, โ‰ค\leq, or โ‰ฅ\geq. Solved by finding zeros of both numerator and denominator, then sign-chart analysis on the intervals.

Vertical Asymptotes &mdash; vertical lines x=ax = a where the function value tends to ยฑโˆž\pm \infty. Occur at restricted values that are not removable.

Cross Multiplication &mdash; for the special form a/b=c/da/b = c/d, multiplying gives ad=bcad = bc. Works only for proportions (two fractions equated, nothing else).

Polynomial Equations &mdash; the equation type that results from clearing fractions. The solver routes the cleared equation through the polynomial solver for the final step.

Partial Fractions &mdash; a decomposition that runs in the opposite direction: breaking a single rational expression into a sum of simpler fractions. Used in calculus for integration.

Domain Restrictions &mdash; the set of values a variable cannot take. For rational expressions, the domain excludes all zeros of the denominator.

Extraneous Roots &mdash; candidate solutions introduced by an operation that is not equivalence-preserving. Common in rational and radical equations.