Philippines ยท Maths & Statistics

Rational Equation Calculator

Solving (ax + b) / (cx + d) = (ex + f) / (gx + h)

Left side
Right side
Solutions—

Enter the coefficients of a rational equation in the form (ax+b)/(cx+d) = (ex+f)/(gx+h). The calculator states the domain restrictions before solving, cross-multiplies, solves, and then tests every root against those restrictions โ€” which is the step that gets missed.

What is an extraneous solution?

A root that satisfies the equation you get after clearing denominators, but not the original equation โ€” because it makes a denominator zero. Cross-multiplying can introduce these, so every root must be checked against the values excluded from the domain. A root that is excluded must be discarded, even though the algebra produced it correctly.

How to use this calculator

  1. Match your equation to the templateRead off the eight coefficients. A missing x term means that coefficient is zero; a denominator of just a number means its x coefficient is zero and its constant is that number.
  2. Note the domain restrictions firstThe breakdown states the excluded values before it states the roots. Doing this first, by hand as well, is what makes the extraneous check possible at the end.
  3. Read the root labelsEvery root is marked valid or EXTRANEOUS. An extraneous root is not a mistake in the algebra โ€” it is a real consequence of cross-multiplying, and it must be discarded.
  4. Expect no solution sometimesAn equation whose only root is excluded genuinely has no solution. So does one where cross-multiplying leaves a contradiction. Both outcomes are reported explicitly.

Why cross-multiplying creates roots that were never there

The step from A/B = C/D to AD = BC looks like simple algebra, and it is โ€” but it quietly changes the problem.

The original equation is only defined where B and D are non-zero. Division by zero is undefined, so any x making a denominator vanish is not merely a bad answer; it is not in the domain at all, and the equation makes no claim about it.

The equation AD = BC has no such restriction. It is a polynomial equation, defined for every x. So it can โ€” and often does โ€” have solutions that the original equation never had, precisely at the points where the original was undefined.

Those are extraneous roots. They are not errors. The algebra is correct at every step; the domain simply widened when the denominators were cleared, and roots appeared in the new territory.

The fix is procedural and non-negotiable: write down the excluded values before you start solving, and check every root against them at the end. A root equal to an excluded value gets discarded regardless of how cleanly the algebra produced it.

This is one of the few places in school algebra where a correct method reliably produces wrong answers unless a separate check is applied. That is why examiners like it, and why the check is worth a mark or two on its own.

FormulaA/B = C/D โŸน AD = BC, provided B โ‰  0 and D โ‰  0

Worked example: (3x + 1)/(x + 2) = (x + 5)/(x โˆ’ 1)

First the domain. The left denominator x + 2 is zero at x = โˆ’2. The right denominator x โˆ’ 1 is zero at x = 1. So x โ‰  โˆ’2 and x โ‰  1, written down before any solving.

Cross-multiply: (3x + 1)(x โˆ’ 1) = (x + 5)(x + 2).

Expand the left: 3xยฒ โˆ’ 3x + x โˆ’ 1 = 3xยฒ โˆ’ 2x โˆ’ 1.

Expand the right: xยฒ + 2x + 5x + 10 = xยฒ + 7x + 10.

Bring everything to one side: 3xยฒ โˆ’ 2x โˆ’ 1 โˆ’ xยฒ โˆ’ 7x โˆ’ 10 = 0, which is 2xยฒ โˆ’ 9x โˆ’ 11 = 0.

The discriminant is (โˆ’9)ยฒ โˆ’ 4(2)(โˆ’11) = 81 + 88 = 169, and โˆš169 = 13 exactly.

Roots: x = (9 ยฑ 13) รท 4. That gives x = 22/4 = 5.5 and x = โˆ’4/4 = โˆ’1.

Now the check. Is 5.5 equal to โˆ’2 or 1? No. Is โˆ’1 equal to โˆ’2 or 1? No. Both roots are in the domain, so both are valid.

Verify by substitution. At x = 5.5: left side is (16.5 + 1)/(5.5 + 2) = 17.5/7.5 = 2.333. Right side is (5.5 + 5)/(5.5 โˆ’ 1) = 10.5/4.5 = 2.333. They agree.

At x = โˆ’1: left is (โˆ’3 + 1)/(โˆ’1 + 2) = โˆ’2/1 = โˆ’2. Right is (โˆ’1 + 5)/(โˆ’1 โˆ’ 1) = 4/(โˆ’2) = โˆ’2. They agree.

What the four outcomes mean

After cross-multiplyingWhat it meansAnswer
A quadratic with two valid rootsBoth satisfy the originalTwo solutions
A quadratic with one excluded rootCross-multiplying invented oneOne solution
A quadratic with both roots excludedEvery root falls outside the domainNo solution
Negative discriminantThe quadratic never crosses zeroNo real solution
0 = 0The two sides are the same expressionAll x in the domain
k = 0 for non-zero kA contradictionNo solution

The last two rows arise when the xยฒ and x terms cancel during expansion. They are easy to mistake for an arithmetic slip, but both are genuine outcomes โ€” an identity in the first case, an inconsistent equation in the second. The calculator distinguishes them explicitly rather than reporting an error.

Beyond the two-fraction case

The template here covers one fraction equal to another, which is the standard exam form. Real problems sometimes arrive with three or more terms, and those need a preliminary step.

The general method is to find the least common denominator across every term and multiply the whole equation by it. That clears all denominators at once and leaves a polynomial equation. The domain restrictions still come from the original denominators, and the extraneous check is still required โ€” in fact it becomes more important, because there are now more excluded values to collide with.

Where a denominator is quadratic, factorise it first. An equation containing 1/(xยฒ โˆ’ 4) has excluded values at both x = 2 and x = โˆ’2, which only becomes visible after factorising to (x โˆ’ 2)(x + 2). A student who does not factorise will miss one of them and may accept an extraneous root.

Work-rate problems are the most common word-problem source of rational equations. Two pipes filling a tank in 6 and 9 hours respectively give 1/6 + 1/9 = 1/t, and the structure is rational because rates add while times do not. The same shape appears in problems about workers, taps and travel at different speeds.

One useful sanity check on any word problem: an extraneous root is often physically meaningless anyway โ€” a negative time, a negative number of workers. When the algebraic check and the physical check agree that a root is invalid, that is reassuring rather than redundant.

Graphically, the solutions are where two rational functions intersect. The excluded values are vertical asymptotes, and a curve never touches its own asymptote โ€” which is a picture of why an excluded value can never be a genuine solution.

Multiplying both sides by an expression containing x is the operation that introduces extraneous roots. Adding, subtracting or multiplying by a non-zero constant never does โ€” so the check is only needed when a variable expression was cleared.

Assumptions and limitations

  • Handles one linear-over-linear fraction on each side, which is the standard exam form
  • Equations with three or more terms must be combined over a common denominator first
  • Quadratic denominators need factorising before their excluded values can be read off
  • Reports real roots only โ€” a negative discriminant returns no real solution
  • Roots are shown as decimals rather than exact surds
  • Does not solve rational inequalities, which need sign analysis rather than root finding
  • Does not simplify or factor rational expressions on their own

Questions people ask about this in Philippines

What is an extraneous solution?

A root that satisfies the equation after clearing denominators but not the original, because it makes a denominator zero.

Cross-multiplying widens the domain, so roots can appear where the original equation was undefined. They must be discarded.

Why do I have to check my answers?

Because multiplying both sides by an expression containing x can introduce roots the original equation never had.

Write down the excluded values before solving, then test every root against them. This step is usually worth marks on its own.

How do I find the excluded values?

Set each denominator equal to zero and solve. For (x + 2) that gives x = โˆ’2; for a quadratic denominator, factorise first so you catch both values.

Those values are excluded from the domain no matter what the algebra produces.

Can a rational equation have no solution?

Yes, in three ways: every root turns out to be extraneous, the quadratic has a negative discriminant, or cross-multiplying leaves a contradiction such as 5 = 0.

All three are reported explicitly rather than as an error.

What if my equation has three fractions?

Multiply the whole equation by the least common denominator to clear them all at once, then solve the resulting polynomial.

The excluded values still come from the original denominators, and the extraneous check matters more because there are more of them.

What does an extraneous root look like on a graph?

It sits on a vertical asymptote. The excluded values are where the rational function is undefined, and a curve never touches its own asymptote โ€” which is why a root there cannot be a genuine intersection.

Method, source and review date

How it is worked out
Cross-multiplication to a quadratic with domain verification
Formula used
(ax+b)(gx+h) = (ex+f)(cx+d), then test each root against cx+d โ‰  0 and gx+h โ‰  0
Checked against
Standard algebra
Last reviewed
Confidence
High

Spotted a figure that has moved, or a formula you can show is wrong? Tell us โ€” send a correction. Fixes to rates and formulas are treated as urgent.

Disclaimer

This calculator gives an estimate for guidance only. Check the figures against your own measurements or paperwork before you commit money to them.