Adding and Subtracting Rational Expressions

April 12, 2026

Problem

Add 2/(x+1) + 3/(x−2). Find the common denominator and combine.

Explanation

Adding fractions: the same principle as arithmetic

Just like adding 23+14\frac{2}{3} + \frac{1}{4} requires a common denominator, adding rational expressions requires a common denominator made from both denominators.

Step-by-step: Add 2x+1+3x2\dfrac{2}{x+1} + \dfrac{3}{x-2}

Step 1 — Find the LCD. The denominators are (x+1)(x+1) and (x2)(x-2). Since they share no common factors, the LCD is (x+1)(x2)(x+1)(x-2).

Step 2 — Rewrite each fraction with the LCD:

2x+1x2x2+3x2x+1x+1\frac{2}{x+1} \cdot \frac{x-2}{x-2} + \frac{3}{x-2} \cdot \frac{x+1}{x+1}

=2(x2)(x+1)(x2)+3(x+1)(x+1)(x2)= \frac{2(x-2)}{(x+1)(x-2)} + \frac{3(x+1)}{(x+1)(x-2)}

Step 3 — Combine the numerators (denominators are now the same):

=2(x2)+3(x+1)(x+1)(x2)= \frac{2(x-2) + 3(x+1)}{(x+1)(x-2)}

Step 4 — Expand the numerator:

=2x4+3x+3(x+1)(x2)=5x1(x+1)(x2)= \frac{2x - 4 + 3x + 3}{(x+1)(x-2)} = \frac{5x - 1}{(x+1)(x-2)}

Step 5 — Check: can the result be simplified? The numerator 5x15x - 1 doesn't factor to include (x+1)(x+1) or (x2)(x-2), so the answer is already in simplest form.

Final answer: 5x1(x+1)(x2)\dfrac{5x - 1}{(x+1)(x-2)}, where x1x \neq -1 and x2x \neq 2.

Common mistakes

  • Forgetting to multiply the numerator. When you multiply the denominator by (x2)(x-2), you must also multiply the numerator by (x2)(x-2).
  • Sign errors when distributing. 3(x+1)=3x+33(x+1) = 3x + 3, not 3x+13x + 1.
  • Not checking for simplification. After combining, always check if the numerator shares a factor with the denominator.

Try it in the visualization

Adjust the numerators and denominators. The LCD is computed, both fractions are rewritten, and the combined result is shown step by step. The graph shows the original two functions and their sum.

Interactive Visualization

Parameters

2.00
1.00
3.00
2.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day