Rational Equation Calculator with Domain Checks
Compare two ratios of affine expressions in one real variable. Clear the denominators and track exactly which solutions survive substitution into the original equation. The plot separates valid intersections from denominator gaps and removable holes.
Solve and check a rational equation
Inspect the cross-products, then verify each proposed root in the original fractions.
One real solution satisfies the original equation.
Graph of both original sides
Exact domain and candidate audit
- x ≠ -2 · Right side
- x ≠ 1 · Left side
After cross-multiplication
6x = 0
x = 0
Valid solution
- Left value
- -1
- Right value
- -1
Export the exact audit
How to use this calculator
- Copy both numerators and denominators into the coefficient boxes, using zero for missing terms.
- Review the domain restrictions and resulting equation after clearing denominators.
- Read the candidate audit to see which roots are valid and which make a denominator zero.
- Explore both sides on the graph or open the exact CSV to inspect all coefficients and checked values.
The Formula
The mathematical logic powering this calculation is:
Write each side as (a x + b)/(c x + d); each side has its own four coefficients. A zero leading coefficient permits a constant numerator or denominator. A denominator with both coefficients zero makes the worksheet invalid. For each nonconstant denominator, exclude x = −d/c from the original equation, even if the numerator vanishes there too.
On that common domain, multiply each side by the other side’s denominator. Subtract the two products to get A x² + B x + C = 0. For A = 0, use the resulting linear equation or classify its constant as zero or nonzero. For A ≠ 0, use the discriminant B² − 4AC. Positive discriminant gives two real algebraic candidates, zero gives a repeated candidate, and negative gives none. Keep a candidate only when both original sides are defined there. If the cleared equation is identically zero, every permitted real x satisfies it.
Calculation and substitution use rational arithmetic, with an exact square root term for irrational values. The adjustable graph is a sampled view, with separate path segments whenever a denominator vanishes. An open circle marks the canceled side’s finite limiting value. Both the allowed domain and the solution set apply across the real line, including values outside the chosen plot window.
Enter each coefficient between −1,000 and +1,000 as a decimal with up to six places or as a fraction p/q with a positive denominator up to 1,000,000. The workspace covers equality of these two affine fractions.Worked Example
If you input:
- Left side: (x + 1)/(x − 1)
- Right side: (x − 2)/(x + 2)
- Original domain: x ≠ −2, 1
Result:
Cross-multiplication gives 6x = 0. At x = 0 both original fractions equal −1, and both denominators are nonzero. The solution set is {0}.
Frequently Asked Questions
Why can cross-multiplication give a rejected candidate?
The cleared polynomial can equal zero at a denominator zero. The original equation has no value there, so the candidate is excluded when you substitute it back.
Can a hole be a solution if its plotted height matches the other side?
A hole marks a missing point of the original fraction. Both original sides must be defined at a solution.
What if the two fractions are equivalent?
If their cross-products agree identically, their values match at every x where both sides are defined. You still exclude every original denominator zero.
Why are some solutions given as radicals?
A quadratic can have irrational solutions. A fractional coefficient and a square root give an exact solution, while the graph positions use numerical estimates.
What if both denominators are constants?
Enter zero for each coefficient of x in the denominators. The solver then checks the resulting equation of two affine expressions.
Are all solutions always visible on the graph?
The selected graph window shows only part of the real plane. The candidate table reports the complete exact solution set within this model.
Similar Calculators
Rational Limit Calculator with Graph
Find exact one-sided limits of a rational function. Compare the lowest nonzero powers, cancel common factors and graph holes and vertical poles.
Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 and find its real or complex roots instantly.
Partial Fraction Decomposition Calculator
Decompose rational functions into exact partial fractions. Inspect repeated factors, coefficient equations, poles and holes, with graph and CSV export.
Polynomial Division Calculator
Divide polynomials using long or synthetic division. Inspect each step, the exact quotient and remainder, and the reconstruction identity.
