MaximCalculator Free, fun & accurate calculators
🧮 Platinum math layout
🌙Dark Mode

Rational Expressions Calculator

Build two rational expressions, simplify them (when possible), find domain restrictions, evaluate at a chosen x, and combine them using +, , ×, or ÷. This page is designed for homework checks, quick practice, and screenshot‑friendly sharing.

🧠Domain restrictions + “where it’s undefined”
🧾Algebraic combine (+ − × ÷) with clean output
🎛️Sliders for coefficients (no typing mistakes)
📱Perfect for screenshots & classroom demos

Build your rational expressions

Choose degrees and coefficients for each numerator/denominator. You can also evaluate the result at a specific x. Tip: keep coefficients small (like −10 to 10) for clean factors.

𝑥
2
R1
R2
🧩 R1 Coefficients
R1 preview
🧩 R2 Coefficients
R2 preview
Your result will appear here
Pick an operation and adjust sliders, then tap “Calculate”.
Tip: Domain restrictions come from denominators being zero. The calculator lists them clearly.

This calculator is built to help you practice algebra. Always show your steps for credit and double-check special cases (like division by zero).

📚 Formula breakdown + how it works

Rational expressions — explained like a human (with steps)

A rational expression is a fraction where the numerator and denominator are polynomials. The general form is:

R(x) = P(x) / Q(x)

where P(x) and Q(x) are polynomials and Q(x) ≠ 0. That last part is the first big idea: you can’t divide by zero. So a rational expression is only defined at values of x where the denominator is not zero.

1) Domain restrictions (the “undefined” x values)

The domain of a rational expression is “all real numbers except the ones that make the denominator zero.” To find restrictions, solve:

Q(x) = 0

Any solution is excluded from the domain. If Q(x) is linear, it’s one restriction. If Q(x) is quadratic, there may be 0, 1, or 2 restrictions (depending on the roots). This calculator computes those roots (when they exist) and lists them as: Undefined at x = …

2) Simplifying (cancel factors, not terms)

Simplifying a rational expression means rewriting it in an equivalent simpler form. The rule that saves you from errors is: you may cancel a common factor, but you may not cancel a common term. For example:

(x^2 - 4) / (x - 2) = ((x - 2)(x + 2)) / (x - 2) = x + 2, x ≠ 2

Notice that even after cancellation, we keep the restriction x ≠ 2. The simplified expression is x + 2 but the original had a “hole” at 2 (because the denominator was zero there). In algebra classes, teachers love asking about this distinction because it’s where many people lose points.

In this calculator, coefficients are usually small integers (because sliders), so factoring is often clean. When factoring is clean (especially for degree 1 and degree 2), the tool attempts to detect shared linear factors and show a simplified form. If factoring isn’t clean (irrational roots, messy decimals), the tool still gives a correct combined expression — it just won’t pretend to factor what isn’t nice.

3) Adding and subtracting rational expressions

You can only add/subtract fractions with a common denominator. If:

R1 = A/B, R2 = C/D

then:

R1 + R2 = (A·D + C·B) / (B·D)
R1 − R2 = (A·D − C·B) / (B·D)

The denominator becomes the product B·D (a common denominator). Then you combine the numerators. This is exactly what the calculator does using polynomial arithmetic. It also merges the domain restrictions: if either B=0 or D=0, the whole expression is undefined there.

4) Multiplying and dividing rational expressions

These are more straightforward:

R1 × R2 = (A·C) / (B·D)
R1 ÷ R2 = (A/B) ÷ (C/D) = (A/B) × (D/C) = (A·D) / (B·C)

The key “viral” memory trick: division means flip the second fraction. Also note that when dividing, you must also exclude values that make the divisor zero (because dividing by zero is illegal). In rational-expression language, that means: if R2 = C/D, then you must exclude values where C=0 as well (since that makes R2=0 and you can’t divide by it). The calculator flags this.

5) Evaluation (plug in x carefully)

To evaluate R(x)=P(x)/Q(x) at a number (like x=2): compute P(2) and Q(2), then divide. But: if Q(2)=0 the expression is undefined. That’s why this calculator prints a simple “Defined/Undefined at x=…” check before giving a numeric value.

Why this page is “virality-friendly”

Rational expressions are one of those topics where people want instant certainty: “Did I do the common denominator right?” “Can I cancel this?” “Why did my teacher say x=2 is excluded?” This tool is built to make those moments screenshot‑able: you can randomize clean examples, use it in class, or share “holes vs simplifications” with friends.

🧪 Examples you can copy

Worked examples (common homework styles)

Below are example patterns that match what teachers usually assign. You can recreate these quickly by adjusting sliders.

Example A: Simplify and state restrictions
(x^2 - 9) / (x - 3)

Factor the numerator: x^2 - 9 = (x-3)(x+3). Cancel (x-3) to get x+3. Restriction: x ≠ 3.

Example B: Add
1/(x-1) + 2/(x+1)

Common denominator: (x-1)(x+1). New numerator: 1(x+1) + 2(x-1) = x+1 + 2x-2 = 3x-1. Result: (3x-1)/((x-1)(x+1)). Restrictions: x ≠ 1, x ≠ -1.

Example C: Multiply with cancellation
(x^2 - 4)/(x - 2) × (x - 2)/(x + 5)

Factor x^2 - 4 = (x-2)(x+2). After multiplying, you can cancel (x-2). Simplified result: (x+2)/(x+5). Restrictions still include x ≠ 2 (from the original).

Example D: Divide
(x+2)/(x-3) ÷ (x-1)/(x+4)

Flip the second fraction: (x+2)/(x-3) × (x+4)/(x-1). Result: ((x+2)(x+4))/((x-3)(x-1)). Restrictions: x ≠ 3, x ≠ 1, and also x ≠ -4 if it makes the original divisor undefined (from its denominator). Plus, exclude any x where the divisor equals zero (here: x ≠ 1 because numerator of divisor is zero).

Tip: if your homework asks for “simplified form,” your teacher might expect factoring and cancellation. But it’s totally okay to leave results as a single fraction with expanded polynomials if factoring gets messy.

❓ FAQ

Frequently Asked Questions

  • Can I cancel x in (x+1)/x?

    No — you can’t cancel a single term unless it’s a factor of the entire numerator and denominator. (x+1) is not a multiple of x, so cancelling would be illegal.

  • If a factor cancels, do I still exclude that x value?

    Yes. The original denominator was zero there, so the original function was undefined there. Cancellation creates a hole (removable discontinuity) rather than “fixing” the original restriction.

  • Why does addition look harder than multiplication?

    Because addition needs a common denominator first. Multiplication just multiplies across. The “common denominator step” is where most algebra mistakes happen.

  • What if my denominator has no real roots?

    Then there are no real domain restrictions from that denominator (it’s never zero for real x). For quadratics, this happens when the discriminant is negative.

  • Does this handle every possible polynomial?

    This page is optimized for the most common class cases: linear and quadratic numerators/denominators with small integer coefficients. It still produces correct combined expressions beyond that (degrees can grow during multiplication), but simplification is “best effort” when factoring isn’t clean.

🧾 Quick rules (save this)

The 7 rules that cover 95% of test questions

  • Domain: Denominator can’t be zero.
  • Simplify: Factor first, then cancel common factors.
  • Never: Cancel terms inside a sum (like cancelling the “x” in x+2).
  • Add/Subtract: Find common denominator, then combine numerators.
  • Multiply: Multiply across; cancel factors before or after.
  • Divide: Multiply by the reciprocal (flip the second fraction).
  • Restrictions stick: Even if a factor cancels, the original restriction remains.

Screenshot these rules and you basically have a rational-expression cheat sheet.

MaximCalculator provides simple, user-friendly tools. Always treat results as educational help and double-check important work.