Build the equation in the display at the top: click the Var, Num and Op buttons, the x² or ^ power buttons and the brackets, or type on the keyboard; the ÷ button writes a fraction, so wrap a multi-term denominator in brackets. Learn more about building equations
Clear empties the display, the curved arrow undoes the last edit and the ⌫ button deletes the character before the caret. Learn more about editing
Click Solve, or press Enter in the display, once the equation is complete; an expression without an equals sign, or without a variable in a denominator, is refused. Learn more about solving
The right panel lists the steps from the restricted values and the LCD to the candidates and the check, and the answer card gives the valid roots; the box under the solver explains the method. Learn more about the solution
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.
How the solver works
The solver reads one equation in x, y or n with the variable in at least one denominator. It first lists the restricted values that make a denominator zero, then multiplies both sides by the least common denominator to clear the fractions, solves the polynomial that remains (up to degree 4), and checks every candidate against the restricted values; a candidate that makes a denominator zero is extraneous and dropped. Each move is listed as a step on the right. Learn more about rational equations
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/4 and press Enter — the right panel identifies the LCD as 4x, multiplies through, solves the resulting linear equation, and confirms x=4 does not violate the restriction x=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)+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. An expression without an equals sign is refused with "Input must be an equation (use = sign)", and an equation with no variable in a denominator with "This is not a rational equation". A simple reciprocal such as 3/x=6 gives x=0.5. What makes an equation rational is explained in what is a rational equation.
Building Equations with Buttons and Keyboard
DemoBracketed denominators, undo, delete, an extraneous root
Step 0 of 4
The button panel groups inputs by type. All inputs can be made either by clicking or typing on the keyboard.
• Variable row — x, y, n. 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 — x2 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) not 1/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; the ⌫ button deletes the character before the caret. Why the denominators decide which values are allowed is explained in what is a rational equation.
Try an Example — Eight Form Templates
DemoOpen the templates, load two forms
Step 0 of 4
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=b. One variable denominator; cross-multiplication gives x=a/b. • Linear Denominator — a/(bx+c)=d. Slightly more complex denominator; same cross-multiplication approach. • Proportion — a/(x+b)=c/(x+d). Two fractions equated; cross-multiply directly. • Sum of Fractions — 1/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=b. Multiplying through by x yields a quadratic. • Variable Numerator — (ax+b)/(cx+d)=e. Standard rational form with linear numerator and denominator. • No Solution — 1/(x−a)=1/(x−a)+b for b=0. Reduces to 0=b, a contradiction.
Roughly 80 percent of generated equations produce clean integer or rational solutions; the rest exercise irrational and extraneous cases. Loading a template clears the previous solution; click Solve to work the new equation. The four steps applied to every template are listed in the solving process explained.
Reading the Step-by-Step Solution
DemoA quadratic after clearing, then a contradiction
Step 0 of 3
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. x+6/x=5 clears to x2−5x+6=0 and ends with x=2 or x=3; 1/x=0 clears to 1=0 and ends in No solution. The box under the solver, How the solver works, summarises the method in a few lines and links to the theory below. Why clearing the fractions is allowed, and what it can add, is explained in the LCD method.
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,…,dk, the solver builds the LCD as their product d1⋅d2⋯dk (factoring out common factors when feasible). For each fraction ni/di, multiplying by the LCD leaves ni⋅(LCD/di) — a polynomial.
Example. For x1+x+21=43, the unique denominators are x, x+2, and 4, so LCD=4x(x+2). Multiplying every term by 4x(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.
A rational expression is a ratio of two polynomials:
Q(x)P(x)
where P and Q are polynomials and Q(x)=0. A rational equation sets one rational expression equal to another, or to a polynomial:
Q1(x)P1(x)+Q2(x)P2(x)+⋯=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) 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.
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.
Rational Functions — functions of the form f(x)=P(x)/Q(x) where P and Q are polynomials. Have vertical asymptotes at zeros of Q that are not also zeros of P.
Rational Inequalities — same form as rational equations but with <, >, ≤, or ≥. Solved by finding zeros of both numerator and denominator, then sign-chart analysis on the intervals.
Vertical Asymptotes — vertical lines x=a where the function value tends to ±∞. Occur at restricted values that are not removable.
Cross Multiplication — for the special form a/b=c/d, multiplying gives ad=bc. Works only for proportions (two fractions equated, nothing else).
Polynomial Equations — the equation type that results from clearing fractions. The solver routes the cleared equation through the polynomial solver for the final step.
Partial Fractions — 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 — the set of values a variable cannot take. For rational expressions, the domain excludes all zeros of the denominator.
Extraneous Roots — candidate solutions introduced by an operation that is not equivalence-preserving. Common in rational and radical equations.