Adding and Subtracting Rational Functions
A rational function is a fraction whose numerator and denominator are polynomials, like \(\frac{4x+4}{6x-9}\). Adding or subtracting two of them works exactly the way adding regular fractions does: nothing can be combined until both fractions share a common denominator. The only new wrinkle is that the denominators are now expressions instead of numbers.
The Easy Case: Same Denominator
When the denominators already match, add or subtract the numerators and keep the denominator as-is:
$$ \frac{2x+1}{x+3} + \frac{x-4}{x+3} = \frac{(2x+1) + (x-4)}{x+3} = \frac{3x-3}{x+3} $$
One finishing touch: check whether the result simplifies. The numerator \(3x - 3\) factors as \(3(x-1)\), so the cleanest form is \(\frac{3(x-1)}{x+3}\). Nothing cancels here since \(x - 1\) and \(x + 3\) share no factor, but checking takes five seconds and sometimes collapses the whole answer.
Different Denominators
With numbers, adding \(\frac{1}{2} + \frac{1}{3}\) means rewriting both fractions over 6, giving \(\frac{3}{6} + \frac{2}{6} = \frac{5}{6}\). The same plan runs on rational functions. Take:
$$ \frac{x+1}{x+3} + \frac{2x+5}{x-2} $$
The two denominators share no common factor, so the least common denominator is their product, \((x+3)(x-2)\). Rewrite each fraction by multiplying top and bottom by whatever it's missing. The first fraction is missing \((x-2)\); the second is missing \((x+3)\). Multiplying by \(\frac{x-2}{x-2}\) or \(\frac{x+3}{x+3}\) is multiplying by 1, so neither fraction's value changes:
$$ \frac{(x+1)(x-2)}{(x+3)(x-2)} + \frac{(2x+5)(x+3)}{(x+3)(x-2)} $$
Now expand the numerators (and only the numerators — leave the denominator factored):
$$ \frac{x^2 - x - 2}{(x+3)(x-2)} + \frac{2x^2 + 11x + 15}{(x+3)(x-2)} $$
With matching denominators, add the tops:
$$ \frac{3x^2 + 10x + 13}{(x+3)(x-2)} $$
That's the answer. The numerator doesn't factor (nothing multiplies to \(3 \cdot 13 = 39\) and adds to 10), so no cancellation is possible.
Keeping the denominator in factored form isn't laziness — it's the more useful form. Factored, you can see at a glance that the function is undefined at \(x = -3\) and \(x = 2\), and you can check for factors that cancel with the numerator. Multiplied out to \(x^2 + x - 6\), all of that information goes into hiding.
Factor the Denominators First
The example above had denominators that were already as simple as possible. When they're not, factor them before building the common denominator — otherwise you'll overshoot and drag extra factors through the whole problem. Consider:
$$ \frac{3}{x^2 - 9} + \frac{2}{x+3} $$
It's tempting to use \((x^2-9)(x+3)\) as the common denominator, and it would technically work. But factoring first reveals that \(x^2 - 9 = (x+3)(x-3)\), which already contains \(x + 3\). The least common denominator is just \((x+3)(x-3)\), and only the second fraction needs adjusting:
$$ \frac{3}{(x+3)(x-3)} + \frac{2(x-3)}{(x+3)(x-3)} = \frac{3 + 2x - 6}{(x+3)(x-3)} = \frac{2x - 3}{(x+3)(x-3)} $$
Factoring first kept every polynomial small and left an answer that's already in simplest form.
Subtraction: Watch the Signs
Subtraction follows the identical playbook with one hazard: the minus sign applies to the entire numerator being subtracted, not only its first term. Wrap it in parentheses and distribute:
$$ \frac{4x}{x+1} - \frac{x-2}{x+1} = \frac{4x - (x - 2)}{x+1} = \frac{4x - x + 2}{x+1} = \frac{3x+2}{x+1} $$
Dropping those parentheses and writing \(4x - x - 2\) produces \(\frac{3x-2}{x+1}\), which looks entirely plausible and is entirely wrong. This one error probably accounts for most lost points on rational expression subtraction, so it's worth being deliberately slow at that step.
Practice
Combine and simplify each expression.
-
\(\dfrac{5}{x+2} + \dfrac{3}{x-1}\) Show answerLCD is \((x+2)(x-1)\): \(\frac{5(x-1) + 3(x+2)}{(x+2)(x-1)} = \frac{5x - 5 + 3x + 6}{(x+2)(x-1)} = \frac{8x+1}{(x+2)(x-1)}\)
-
\(\dfrac{2x}{x+4} - \dfrac{x-3}{x+4}\) Show answerSame denominator — subtract the tops, distributing the minus: \(\frac{2x - (x-3)}{x+4} = \frac{x+3}{x+4}\)
-
\(\dfrac{1}{x^2-4} + \dfrac{2}{x+2}\) Show answerFactor first: \(x^2 - 4 = (x+2)(x-2)\), so the LCD is \((x+2)(x-2)\): \(\frac{1 + 2(x-2)}{(x+2)(x-2)} = \frac{2x-3}{(x+2)(x-2)}\)
What's Next
Multiplying and dividing rational functions skip the common-denominator step entirely and lean on factoring even harder — see Multiplying Rational Functions and Dividing Rational Functions. And since every denominator you factored marks an input where the function blows up, Rational Functions covers how those excluded values shape the graph.