Adding and Subtracting Rational Expressions Calculator

Enter two fractions of polynomials and choose plus or minus.

Use one variable, brackets and whole powers.

It cannot be 0.

Operation

Add or subtract the two fractions.

Use the same variable in every box.

It cannot be 0.

Try

Result

You entered1x+1+1x−1\frac{1}{x + 1} + \frac{1}{x - 1}

2xx2−1\displaystyle \frac{2x}{x^{2} - 1}

Factored

2x(x−1)(x+1)\displaystyle \frac{2x}{\left(x - 1\right)\left(x + 1\right)}

Restrictions

x≠−1, x≠1\displaystyle x \ne -1,\ x \ne 1
Show the work
  1. Factor the denominators

    The common denominator is built from the factors of the two denominators, so factor each completely first.

    x+1=(x+1)x−1=(x−1)\begin{gathered} x + 1 = \left(x + 1\right) \\ x - 1 = \left(x - 1\right) \end{gathered}
  2. Least common denominator

    Fractions can only be added or subtracted over the same denominator. The least common denominator contains every factor of either denominator, taken the greatest number of times it appears in one of them.

    L=(x−1)(x+1)=x2−1\begin{aligned} L &= \left(x - 1\right)\left(x + 1\right) \\ &= x^{2} - 1 \end{aligned}
  3. Rewrite over the common denominator

    Multiply the top and the bottom of each fraction by the factors its denominator is missing. This is multiplying by 1, so each value is unchanged, and now both fractions have the denominator LL.

    1x+1+1x−1=(1)(x−1)x2−1+(1)(x+1)x2−1\frac{1}{x + 1} + \frac{1}{x - 1} = \frac{\left(1\right)\left(x - 1\right)}{x^{2} - 1} + \frac{\left(1\right)\left(x + 1\right)}{x^{2} - 1}
  4. Adding the numerators

    With the same denominator, add the numerators and keep the denominator. Then collect like terms.

    (x−1)+(x+1)x2−1=2xx2−1\frac{\left(x - 1\right) + \left(x + 1\right)}{x^{2} - 1} = \frac{2x}{x^{2} - 1}
  5. Nothing to cancel

    The numerator and the denominator share no factor that contains the variable, so the fraction is already in lowest terms apart from any common number.

    2xx2−1=2xx2−1\frac{2x}{x^{2} - 1} = \frac{2x}{x^{2} - 1}
  6. Excluded values

    A fraction is undefined where its denominator is 0. These values stay excluded from the original expression even when a factor cancels, because the cancelled factor is still 0 there.

    x≠−1x≠1\begin{gathered} x \ne -1 \\ x \ne 1 \end{gathered}
  7. Result

    So the expression equals 2xx2−1\frac{2x}{x^{2} - 1} in lowest terms.

Worked examples