# 2.14: Adding and Subtracting Rational Expressions

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\id}{\mathrm{id}}$$ $$\newcommand{\Span}{\mathrm{span}}$$

( \newcommand{\kernel}{\mathrm{null}\,}\) $$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$ $$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$ $$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\id}{\mathrm{id}}$$

$$\newcommand{\Span}{\mathrm{span}}$$

$$\newcommand{\kernel}{\mathrm{null}\,}$$

$$\newcommand{\range}{\mathrm{range}\,}$$

$$\newcommand{\RealPart}{\mathrm{Re}}$$

$$\newcommand{\ImaginaryPart}{\mathrm{Im}}$$

$$\newcommand{\Argument}{\mathrm{Arg}}$$

$$\newcommand{\norm}[1]{\| #1 \|}$$

$$\newcommand{\inner}[2]{\langle #1, #2 \rangle}$$

$$\newcommand{\Span}{\mathrm{span}}$$ $$\newcommand{\AA}{\unicode[.8,0]{x212B}}$$

$$\newcommand{\vectorA}[1]{\vec{#1}} % arrow$$

$$\newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow$$

$$\newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vectorC}[1]{\textbf{#1}}$$

$$\newcommand{\vectorD}[1]{\overrightarrow{#1}}$$

$$\newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}$$

$$\newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}}$$

$$\newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} }$$

$$\newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}}$$

$$\newcommand{\avec}{\mathbf a}$$ $$\newcommand{\bvec}{\mathbf b}$$ $$\newcommand{\cvec}{\mathbf c}$$ $$\newcommand{\dvec}{\mathbf d}$$ $$\newcommand{\dtil}{\widetilde{\mathbf d}}$$ $$\newcommand{\evec}{\mathbf e}$$ $$\newcommand{\fvec}{\mathbf f}$$ $$\newcommand{\nvec}{\mathbf n}$$ $$\newcommand{\pvec}{\mathbf p}$$ $$\newcommand{\qvec}{\mathbf q}$$ $$\newcommand{\svec}{\mathbf s}$$ $$\newcommand{\tvec}{\mathbf t}$$ $$\newcommand{\uvec}{\mathbf u}$$ $$\newcommand{\vvec}{\mathbf v}$$ $$\newcommand{\wvec}{\mathbf w}$$ $$\newcommand{\xvec}{\mathbf x}$$ $$\newcommand{\yvec}{\mathbf y}$$ $$\newcommand{\zvec}{\mathbf z}$$ $$\newcommand{\rvec}{\mathbf r}$$ $$\newcommand{\mvec}{\mathbf m}$$ $$\newcommand{\zerovec}{\mathbf 0}$$ $$\newcommand{\onevec}{\mathbf 1}$$ $$\newcommand{\real}{\mathbb R}$$ $$\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}$$ $$\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}$$ $$\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}$$ $$\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}$$ $$\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}$$ $$\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}$$ $$\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}$$ $$\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}$$ $$\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}$$ $$\newcommand{\laspan}[1]{\text{Span}\{#1\}}$$ $$\newcommand{\bcal}{\cal B}$$ $$\newcommand{\ccal}{\cal C}$$ $$\newcommand{\scal}{\cal S}$$ $$\newcommand{\wcal}{\cal W}$$ $$\newcommand{\ecal}{\cal E}$$ $$\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}$$ $$\newcommand{\gray}[1]{\color{gray}{#1}}$$ $$\newcommand{\lgray}[1]{\color{lightgray}{#1}}$$ $$\newcommand{\rank}{\operatorname{rank}}$$ $$\newcommand{\row}{\text{Row}}$$ $$\newcommand{\col}{\text{Col}}$$ $$\renewcommand{\row}{\text{Row}}$$ $$\newcommand{\nul}{\text{Nul}}$$ $$\newcommand{\var}{\text{Var}}$$ $$\newcommand{\corr}{\text{corr}}$$ $$\newcommand{\len}[1]{\left|#1\right|}$$ $$\newcommand{\bbar}{\overline{\bvec}}$$ $$\newcommand{\bhat}{\widehat{\bvec}}$$ $$\newcommand{\bperp}{\bvec^\perp}$$ $$\newcommand{\xhat}{\widehat{\xvec}}$$ $$\newcommand{\vhat}{\widehat{\vvec}}$$ $$\newcommand{\uhat}{\widehat{\uvec}}$$ $$\newcommand{\what}{\widehat{\wvec}}$$ $$\newcommand{\Sighat}{\widehat{\Sigma}}$$ $$\newcommand{\lt}{<}$$ $$\newcommand{\gt}{>}$$ $$\newcommand{\amp}{&}$$ $$\definecolor{fillinmathshade}{gray}{0.9}$$

## Adding and Subtracting Rational Expressions with a Common Denominator

What is the first step you take when you add numerical fractions? You check if they have a common denominator. If they do, you add the numerators and place the sum over the common denominator. If they do not have a common denominator, you find one before you add.

It is the same with rational expressions. To add rational expressions, they must have a common denominator. When the denominators are the same, you add the numerators and place the sum over the common denominator.

###### Adding and Subtracting of Rational Expressions with Common Denominators

If p, q, and r are polynomials where $$r\neq 0$$, then

$\dfrac{p}{r}+\dfrac{q}{r}=\dfrac{p+q}{r} \quad \text{and} \quad \dfrac{p}{r}−\dfrac{q}{r}=\dfrac{p−q}{r}\nonumber$

To add or subtract rational expressions with a common denominator, add or subtract the numerators and place the result over the common denominator.

We always simplify rational expressions. Be sure to factor, if possible, after you subtract the numerators so you can identify any common factors.

Remember, too, we do not allow values that would make the denominator zero. What value of x should be excluded in the next example?

###### Example $$\PageIndex{1}$$

Add: $$\dfrac{11x+28}{x+4}+\dfrac{x^2}{x+4}$$

Solution

Since the denominator is $$x+4$$, we must exclude the value $$x=−4$$.

$$\begin{array} {ll} &\dfrac{11x+28}{x+4}+\dfrac{x^2}{x+4},\space x\neq −4 \\ \begin{array} {l} \text{The fractions have a common denominator,} \\ \text{so add the numerators and place the sum} \\ \text{over the common denominator.} \end{array} &\dfrac{11x+28+x^2}{x+4} \\ & \\ \text{Write the degrees in descending order.} &\dfrac{x^2+11x+28}{x+4} \\ & \\ \text{Factor the numerator.} &\dfrac{(x+4)(x+7)}{x+4} \\ & \\ \text{Simplify by removing common factors.} &\dfrac{\cancel{(x+4)}(x+7)}{\cancel{x+4}} \\ & \\ \text{Simplify.} &x+7 \end{array}$$

The expression simplifies to $$x+7$$ but the original expression had a denominator of $$x+4$$ so $$x\neq −4$$.

###### You Try $$\PageIndex{1}$$

Simplify: $$\dfrac{m^2+8m}{m+5}+\dfrac{15}{m+5}$$

$$m+3$$

To subtract rational expressions, they must also have a common denominator. When the denominators are the same, you subtract the numerators and place the difference over the common denominator. Be careful of the signs when you subtract a binomial or trinomial.

###### Example $$\PageIndex{2}$$

Subtract: $$\dfrac{5x^2−7x+3}{x^2−3x+18}−\dfrac{4x^2+x−9}{x^2−3x+18}$$

Solution

$$\begin{array} {ll} &\dfrac{5x^2−7x+3}{x^2−3x+18}−\dfrac{4x^2+x−9}{x^2−3x+18} \\ & \\ \begin{array} {l} \text{Subtract the numerators and place the} \\ \text{difference over the common denominator.} \end{array} &\dfrac{5x^2−7x+3−(4x^2+x−9)}{x^2−3x+18} \\ & \\ \text{Distribute the sign in the numerator.} &\dfrac{5x^2−7x+3−4x^2−x+9}{x^2−3x−18} \\ & \\ \text{Combine like terms.} &\dfrac{x^2−8x+12}{x^2−3x−18} \\ & \\ \text{Factor the numerator and the denominator.} &\dfrac{(x−2)(x−6)}{(x+3)(x−6)} \\ & \\ \text{Simplify by removing common factors.} &\dfrac{(x−2)\cancel{(x−6)}}{(x+3)\cancel{(x−6)}} \\ & \\ & \dfrac{x−2}{x+3} \end{array}$$

###### You Try $$\PageIndex{2}$$

Subtract: $$\dfrac{4p^2−11p+8}{p^2−3p+2}−\dfrac{3p^2+p−3}{p^2−3p+2}$$

$$\dfrac{p−11}{p−2}$$

## Adding and Subtracting Rational Expressions Whose Denominators are Opposites

When the denominators of two rational expressions are opposites, it is easy to get a common denominator. We just have to multiply one of the fractions by $$\dfrac{−1}{−1}$$.

Let’s see how this works.

 Multiply the second fraction by $$\dfrac{−1}{−1}$$. The denominators are the same. Simplify.

Be careful with the signs as you work with the opposites when the fractions are being subtracted.

###### Example $$\PageIndex{3}$$

Subtract: $$\dfrac{m^2−6m}{m^2−1}−\dfrac{3m+2}{1−m^2}$$

Solution
 The denominators are opposites, so multiply the second fraction by $$\dfrac{−1}{−1}$$. Simplify the second fraction. The denominators are the same. Subtract the numerators. Distribute. Combine like terms. Factor the numerator and denominator. Simplify by removing common factors. Simplify.
###### You Try $$\PageIndex{3}$$

Subtract: $$\dfrac{y^2−5y}{y^2−4}−\dfrac{6y−6}{4−y^2}$$

$$\dfrac{y+3}{y+2}$$

## Finding the Least Common Denominator of Rational Expressions

When we add or subtract rational expressions with unlike denominators, we will need to get common denominators. If we review the procedure we used with numerical fractions, we will know what to do with rational expressions.

Let’s look at this example: $$\dfrac{7}{12}+\dfrac{5}{18}$$. Since the denominators are not the same, the first step was to find the least common denominator (LCD).

To find the LCD of the fractions, we factored 12 and 18 into primes, lining up any common primes in columns. Then we “brought down” one prime from each column. Finally, we multiplied the factors to find the LCD.

When we add numerical fractions, once we found the LCD, we rewrote each fraction as an equivalent fraction with the LCD by multiplying the numerator and denominator by the same number. We are now ready to add.

We do the same thing for rational expressions. However, we leave the LCD in factored form.

###### Finding the Least Common Denominator of Rational Expressions
1. Factor each denominator completely.
2. List the factors of each denominator. Match factors vertically when possible.
3. Bring down the columns by including all factors, but do not include common factors twice.
4. Write the LCD as the product of the factors.

Remember, we always exclude values that would make the denominator zero. What values of xx should we exclude in this next example?

###### Example $$\PageIndex{4}$$
1. Find the LCD for the expressions $$\dfrac{8}{x^2−2x−3}$$, $$\dfrac{3x}{x^2+4x+3}$$
2. Rewrite them as equivalent rational expressions with the lowest common denominator.
Solution
1.
 Find the LCD for $$\dfrac{8}{x^2−2x−3}$$, $$\dfrac{3x}{x^2+4x+3}$$. Factor each denominator completely, lining up common factors. Bring down the columns. Write the LCD as the product of the factors.
1.
 Factor each denominator. Multiply each denominator by the ‘missing’ LCD factor and multiply each numerator by the same factor. Simplify the numerators.
###### You Try $$\PageIndex{4}$$
1. Find the LCD for the expressions $$\dfrac{2}{x^2−x−12}$$, $$\dfrac{1}{x^2−16}$$
2. Rewrite them as equivalent rational expressions with the lowest common denominator.
1. $$(x−4)(x+3)(x+4)$$
2. $$\dfrac{2x+8}{(x−4)(x+3)(x+4)} \text{, } \quad \dfrac{x+3}{(x−4)(x+3)(x+4)}$$

## Adding and Subtracting Rational Expressions with Unlike Denominators

Now we have all the steps we need to add or subtract rational expressions with unlike denominators.

###### Example $$\PageIndex{5}$$

Add: $$\dfrac{3}{x−3}+\dfrac{2}{x−2}$$

Solution

###### You Try $$\PageIndex{5}$$

Add: $$\dfrac{4}{m+3}+\dfrac{3}{m+4}$$

$$\dfrac{7m+25}{(m+3)(m+4)}$$

The steps used to add rational expressions are summarized here.

###### Adding and Subtracting Rational Expressions
1. Determine if the expressions have a common denominator.
• Yes – go to step 2.
• No – Rewrite each rational expression with the LCD.
• Find the LCD.
• Rewrite each rational expression as an equivalent rational expression with the LCD.
2. Add or subtract the rational expressions.
3. Simplify, if possible.

Avoid the temptation to simplify too soon. In the example above, we must leave the first rational expression as $$\dfrac{3x−6}{(x−3)(x−2)}$$ to be able to add it to $$\dfrac{2x−6}{(x−2)(x−3)}$$. Simplify only after you have combined the numerators.

###### Example $$\PageIndex{6}$$

Add: $$\dfrac{8}{x^2−2x−3}+\dfrac{3x}{x^2+4x+3}$$

Solution
 Do the expressions have a common denominator? No. Rewrite each expression with the LCD. $$\begin{array} {ll} & \\ & \\ \text{Find the LCD.} &\begin{array} {l} \hspace{5mm} x^2−2x−3=(x+1)(x−3) \\ \underline{x^2+4x+3=(x+1)\quad (x+3)} \\ & \\ \qquad LCD=(x+1)(x−3)(x+3) \end{array} \end{array}$$ Rewrite each rational expression as an equivalent rational expression with the LCD. Simplify the numerators. Add the rational expressions. Simplify the numerator. The numerator is prime, so there are no common factors.
###### You Try $$\PageIndex{6}$$

Add: $$\dfrac{1}{m^2−m−2}+\dfrac{5m}{m^2+3m+2}$$

$$\dfrac{5m^2−9m+2}{(m+1)(m−2)(m+2)}$$

The process we use to subtract rational expressions with different denominators is the same as for addition. We just have to be very careful of the signs when subtracting the numerators.

###### Example $$\PageIndex{7}$$

Subtract: $$\dfrac{8y}{y^2−16}−\dfrac{4}{y−4}$$

Solution
 Do the expressions have a common denominator? No. Rewrite each expression with the LCD. $$\begin{array} {ll} \text{Find the LCD.} &\begin{array} {l} y^2−16=(y−4)(y+4) \\ \quad \underline{y−4=y−4} \\ LCD=(y−4)(y+4) \end{array} \end{array}$$ Rewrite each rational expression as an equivalent rational expression with the LCD. Simplify the numerators. Subtract the rational expressions. Simplify the numerator. Factor the numerator to look for common factors. Remove common factors Simplify.
###### You Try $$\PageIndex{7}$$

Subtract: $$\dfrac{2x}{x^2−4}−\dfrac{1}{x+2}$$

$$\dfrac{1}{x−2}$$

There are lots of negative signs in the next example. Be extra careful.

###### Example $$\PageIndex{8}$$

Subtract: $$\dfrac{−3n−9}{n^2+n−6}−\dfrac{n+3}{2−n}$$

Solution
 Factor the denominator. Since $$n−2$$ and $$2−n$$ are opposites, we will multiply the second rational expression by $$\dfrac{−1}{−1}$$. Simplify. Remember, $$a−(−b)=a+b$$. Do the rational expressions have a common denominator? No. $$\begin{array} {ll} \text{Find the LCD.} &\begin{array} {l} n^2+n−6=(n−2)(n+3) \\ \quad\underline{n−2=(n−2)} \\ LCD=\quad (n−2)(n+3) \end{array} \end{array}$$ Rewrite each rational expression as an equivalent rational expression with the LCD. Simplify the numerators. Add the rational expressions. Simplify the numerator. Factor the numerator to look for common factors. Simplify.
###### You Try $$\PageIndex{8}$$

Subtract: $$\dfrac{−2y−2}{y^2+2y−8}−\dfrac{y−1}{2−y}$$

$$\dfrac{y+3}{y+4}$$

Things can get very messy when both fractions must be multiplied by a binomial to get the common denominator.

###### Example $$\PageIndex{9}$$

Subtract: $$\dfrac{4}{a^2+6a+5}−\dfrac{3}{a^2+7a+10}$$

Solution
 Factor the denominators. Do the rational expressions have a common denominator? No. $$\begin{array} {ll} \text{Find the LCD.} &\begin{array} {l} a^2+6a+5=(a+1)(a+5) \\ \underline{a^2+7a+10=(a+5)(a+2)} \\ LCD=(a+1)(a+5)(a+2) \end{array} \end{array}$$ Rewrite each rational expression as an equivalent rational expression with the LCD. Simplify the numerators. Subtract the rational expressions. Simplify the numerator. Look for common factors. Simplify.
###### You Try $$\PageIndex{9}$$

Subtract: $$\dfrac{3}{b^2−4b−5}−\dfrac{2}{b^2−6b+5}$$

$$\dfrac{1}{(b+1)(b−1)}$$

We follow the same steps as before to find the LCD when we have more than two rational expressions. In the next example, we will start by factoring all three denominators to find their LCD.

###### Example $$\PageIndex{10}$$

Simplify: $$\dfrac{2u}{u−1}+\dfrac{1}{u}−\dfrac{2u−1}{u^2−u}$$

Solution
 Do the expressions have a common denominator? No. Rewrite each expression with the LCD. $$\begin{array} {ll} \text{Find the LCD.} &\begin{array} {l} u−1=(u−1) \\ u=u \\ \underline{u^2−u=u(u−1)} \\ LCD=u(u−1) \end{array} \end{array}$$ Rewrite each rational expression as an equivalent rational expression with the LCD. Write as one rational expression. Simplify. Factor the numerator, and remove common factors. Simplify.
###### You Try $$\PageIndex{10}$$

Simplify: $$\dfrac{3w}{w+2}+\dfrac{2}{w+7}−\dfrac{17w+4}{w^2+9w+14}$$

$$\dfrac{3w}{w+7}$$