Philippines ยท Maths & Statistics

Rational Expression Calculator

First expression โ€” (axยฒ + bx + c) / (dxยฒ + ex + f)
Second expression โ€” (gxยฒ + hx + i) / (jxยฒ + kx + l), for multiply and divide
Simplified expression—

Enter the coefficients of your quadratics. The calculator factors both, cancels what it can, and then does the thing textbooks emphasise and most calculators skip โ€” separating removable holes from genuine vertical asymptotes.

How do you simplify a rational expression?

Factor the numerator and denominator completely, then cancel any factor appearing in both. The critical step is writing the domain restrictions from the original denominator rather than the simplified one โ€” a factor that cancels still makes the original expression undefined, and creates a hole rather than an asymptote.

How to use this calculator

  1. Enter coefficients, not the expressionFor xยฒ โˆ’ 4 enter a = 1, b = 0, c = โˆ’4. A missing term means that coefficient is zero.
  2. Use a linear expression by setting a = 0A zero leading coefficient makes the expression linear, which the calculator handles as a single factor.
  3. Read the holes and asymptotes separatelyThis is the point of the tool. Both are excluded from the domain, but they behave completely differently on a graph and exams test the distinction.
  4. Second expression is for multiply and divide onlyIt is ignored in simplify mode. In divide mode the second fraction is inverted automatically.

Why the simplified form has a different domain

Cancelling a common factor changes the expression in a way that is easy to miss, and it is the single most tested idea in this topic.

Take (xยฒ โˆ’ 4) รท (xยฒ โˆ’ x โˆ’ 6). Factor both: (x โˆ’ 2)(x + 2) on top, (x โˆ’ 3)(x + 2) underneath. The (x + 2) cancels, leaving (x โˆ’ 2) รท (x โˆ’ 3).

Those two expressions are not identical functions. The original is undefined at x = โˆ’2, because the denominator was zero there before cancelling. The simplified version is perfectly happy at x = โˆ’2, giving โˆ’4 รท โˆ’5 = 0.8.

So the correct answer is (x โˆ’ 2) รท (x โˆ’ 3), where x โ‰  3 and x โ‰  โˆ’2. The second restriction has to be carried across explicitly, because nothing in the simplified expression shows it any more.

Graphically the difference is visible. At x = 3 the denominator survives cancellation, so the function runs off to infinity โ€” a vertical asymptote. At x = โˆ’2 the factor cancelled, so the curve is perfectly well behaved either side and simply has a single point missing. That is a hole, or removable discontinuity.

The word removable is precise: the discontinuity can be removed by defining the function to equal 0.8 at that one point. An asymptote cannot be removed by any definition, because the function genuinely has no finite limit there.

Cancelling without recording the restriction is the standard way to lose marks on this topic, and it is why the breakdown lists holes and asymptotes as separate rows.

Formularestrictions come from the original denominator, not the simplified one

Worked example: (xยฒ โˆ’ 4) รท (xยฒ โˆ’ x โˆ’ 6)

Factor the numerator. xยฒ โˆ’ 4 is a difference of two squares: (x โˆ’ 2)(x + 2). Its roots are 2 and โˆ’2.

Factor the denominator. xยฒ โˆ’ x โˆ’ 6 needs two numbers multiplying to โˆ’6 and adding to โˆ’1: those are โˆ’3 and 2, giving (x โˆ’ 3)(x + 2). Its roots are 3 and โˆ’2.

Before cancelling anything, write down the restrictions from the denominator: x โ‰  3 and x โ‰  โˆ’2.

Now cancel. The factor (x + 2) appears in both, so it goes.

Simplified: (x โˆ’ 2) รท (x โˆ’ 3).

The restrictions stay as they were: x โ‰  3 and x โ‰  โˆ’2.

Of those two, x = 3 is a vertical asymptote โ€” the factor survived in the denominator, so the function diverges there. And x = โˆ’2 is a hole, because the factor cancelled.

You can find the height of the hole by substituting into the simplified form: (โˆ’2 โˆ’ 2) รท (โˆ’2 โˆ’ 3) = โˆ’4 รท โˆ’5 = 0.8. So the graph passes through (โˆ’2, 0.8) except that this exact point is missing.

A quick sanity check on any cancellation: pick a value that is not excluded, say x = 0. The original gives (0 โˆ’ 4) รท (0 โˆ’ 0 โˆ’ 6) = โˆ’4 รท โˆ’6 = 0.667. The simplified gives (0 โˆ’ 2) รท (0 โˆ’ 3) = โˆ’2 รท โˆ’3 = 0.667. They agree, as they must everywhere except at the hole.

Holes against asymptotes

SituationWhat happens at that xOn the graph
Factor cancels completelyRemovable discontinuityA single missing point โ€” a hole
Factor survives in the denominatorFunction divergesA vertical asymptote
Factor survives in the numerator onlyFunction equals zeroAn x-intercept
Repeated factor, higher power belowFunction divergesAsymptote, same sign both sides
Repeated factor, higher power aboveRemovableA hole

The last two rows matter when a factor appears more than once. Compare the powers: whichever side has the higher power determines the behaviour. (x โˆ’ 1)ยฒ in the numerator over (x โˆ’ 1) in the denominator cancels down to (x โˆ’ 1), giving a hole. The reverse gives an asymptote. Cancelling one occurrence at a time, as this calculator does, handles both correctly.

Multiplying, dividing and the operations that need more care

Multiplying rational expressions is the easy case. Factor everything, cancel across both fractions in any combination, and multiply what remains. There is no need to find a common denominator, and cancelling before multiplying is far less work than multiplying out first and factoring afterwards.

Dividing is multiplication by the reciprocal. Invert the second fraction and proceed as for multiplication. The one trap is the domain: the numerator of the second fraction becomes a denominator after inverting, so its roots become excluded values too. An expression divided by something that could be zero carries that restriction even though it looks like a numerator in the original.

Adding and subtracting are genuinely harder, and this calculator does not attempt them. They require a common denominator, which means factoring both denominators, finding the least common multiple of the factors, rewriting each fraction over it, and only then combining numerators. The result usually needs factoring again to see whether it simplifies. It is several steps of work where multiplication is one.

A specific warning about cancelling: only factors cancel, never terms. In (x + 3) รท (x + 5) the x values do not cancel, because they are terms added to something, not factors multiplying something. This is probably the most common error in all of algebra, and it produces answers that are confidently and completely wrong.

The test is simple. If the thing you want to cancel is joined to its neighbours by multiplication, it can go. If it is joined by addition or subtraction, it cannot.

Finally, complex fractions โ€” a fraction whose numerator or denominator is itself a fraction โ€” are handled by multiplying through by the least common denominator of all the small fractions, which clears them in one step.

Always factor completely before cancelling. A partially factored expression can hide a common factor, and cancelling what you can see while missing what you cannot leaves the answer not fully simplified.

Assumptions and limitations

  • Handles quadratic numerators and denominators โ€” cubics and higher must be factored by hand first
  • Does not add or subtract rational expressions, which need a common denominator
  • Quadratics with no real roots cannot be cancelled and are reported as already in lowest terms
  • Roots are computed numerically, so irrational factors are shown as decimals rather than surds
  • Does not identify horizontal or slant asymptotes, only vertical ones
  • Does not compute the coordinates of a hole automatically โ€” substitute into the simplified form
  • Assumes a single variable x throughout

Questions people ask about this in Philippines

How do you simplify a rational expression?

Factor the numerator and denominator completely, then cancel any factor appearing in both.

Write the domain restrictions from the original denominator โ€” a cancelled factor still makes the original undefined.

What is the difference between a hole and an asymptote?

A hole is where a factor cancelled โ€” the curve is fine either side and one point is missing. An asymptote is where a factor survives in the denominator, so the function runs off to infinity.

Both are excluded from the domain; only one is removable.

Why do I keep the restriction after cancelling?

Because the original expression was undefined there, and simplifying cannot change what the original function was.

(xยฒ โˆ’ 4)/(xยฒ โˆ’ x โˆ’ 6) simplifies to (x โˆ’ 2)/(x โˆ’ 3), but x = โˆ’2 remains excluded.

Can I cancel the x in (x + 3)/(x + 5)?

No. Only factors cancel, never terms. Here the x values are added to something, not multiplying something.

This is the most common error in algebra and it gives completely wrong answers.

How do I find the height of a hole?

Substitute the excluded value into the simplified expression. For (x โˆ’ 2)/(x โˆ’ 3) at x = โˆ’2 that gives โˆ’4/โˆ’5 = 0.8.

The graph passes through (โˆ’2, 0.8) with that exact point missing.

How do I divide rational expressions?

Invert the second fraction and multiply. Factor everything first and cancel across both fractions before multiplying out.

Watch the domain โ€” the second numerator becomes a denominator, so its roots become excluded values too.

Method, source and review date

How it is worked out
Quadratic factorisation with domain analysis
Formula used
Axยฒ + Bx + C = A(x โˆ’ rโ‚)(x โˆ’ rโ‚‚), then cancel common factors
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.