We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Study Guides > ALGEBRA / TRIG I

Adding and Subtracting Rational Expressions Part I

Learning Outcomes

  • Add and subtract rational expressions with like denominators
  • Add and subtract rational expressions with unlike denominators using a greatest common denominator
In beginning math, students usually learn how to add and subtract whole numbers before they are taught multiplication and division. However, with fractions and rational expressions, multiplication and division are sometimes taught first because these operations are easier to perform than addition and subtraction. Addition and subtraction of rational expressions are not as easy to perform as multiplication because, as with numeric fractions, the process involves finding common denominators. By working carefully and writing down the steps along the way, you can keep track of all of the numbers and variables and perform the operations accurately.
Add and Subtract Add and Subtract

Adding and Subtracting Rational Expressions with Like Denominators

Adding rational expressions with the same denominator is the simplest place to start, so let’s begin there. To add fractions with like denominators, add the numerators and keep the same denominator. Then simplify the sum. You know how to do this with numeric fractions.

29+49=6969=3233=3323=123=23 \begin{array}{c}\frac{2}{9}+\frac{4}{9}=\frac{6}{9}\\\\\frac{6}{9}=\frac{3\cdot 2}{3\cdot 3}=\frac{3}{3}\cdot \frac{2}{3}=1\cdot \frac{2}{3}=\frac{2}{3}\end{array}

Follow the same process to add rational expressions with like denominators. Let's try one.

Example

Add 2x2x+4+8xx+4 \displaystyle \frac{2{{x}^{2}}}{x+4}+\frac{8x}{x+4}, and define the domain. State the sum in simplest form.

Answer: Since the denominators are the same, add the numerators.

2x2+8xx+4\frac{2{{x}^{2}}+8x}{x+4}

Factor the numerator.

2x(x+4)x+4\frac{2x(x+4)}{x+4}

Simplify common factors and.

2x(x+4)x+4=2x1\large\begin{array}{c}\frac{2x\cancel{(x+4)}}{\cancel{x+4}}\\\\=\frac{2x}{1}\end{array}

The domain is found by setting the denominators in the original sum equal to zero.

x+4=0x=4\begin{array}{l}x+4=0\\x=-4\end{array}

The domain is x4x\ne-4

Answer

2x2x+4+8xx+4=2x,x4 \displaystyle \frac{2{{x}^{2}}}{x+4}+\frac{8x}{x+4}=2x,x\ne -4

CautionCaution!  Remember to define the domain of a sum or difference before simplifying.  You may lose important information when you simplify. In the example above, the domain is x4x\ne-4.  If we were to have defined the domain after simplifying, we would find that the domain is all real numbers which is incorrect.
To subtract rational expressions with like denominators, follow the same process you use to subtract fractions with like denominators. The process is just like the addition of rational expressions, except that you subtract instead of add.

Example

Subtract4x+7x+62x+8x+6\frac{4x+7}{x+6}-\frac{2x+8}{x+6}, and define the domain. State the difference in simplest form.

Answer: Subtract the second numerator from the first and keep the denominator the same.

4x+7(2x+8)x+6\frac{4x+7-(2x+8)}{x+6}

Be careful to distribute the negative to both terms of the second numerator.

4x+72x8x+6\frac{4x+7-2x-8}{x+6}

Combine like terms. This rational expression cannot be simplified any further.

2x1x+6\frac{2x-1}{x+6}

The domain is found from the denominators of original expression.

x+6=0x=6\begin{array}{l}x+6=0\\x=-6\end{array}

The domain is x6x\ne-6

Answer

4x+7x+62x+8x+6=2x1x+6,x6 \displaystyle \frac{4x+7}{x+6}-\frac{2x+8}{x+6}=\frac{2x-1}{x+6},\text{}x\ne-6  

Try It

[ohm_question]40242[/ohm_question]
In the video that follows, we present more examples of adding rational expressions with like denominators. Additionally, we review finding the domain of a rational expression. https://www.youtube.com/watch?v=BeaHKtxB868&feature=youtu.be

Adding and Subtracting Rational Expressions with Unlike Denominators

skateboard, motorcycle, bike, and rollerskates to illustrate that they are different but have wheels in common. What do they have in common?
Before adding and subtracting rational expressions with unlike denominators, you need to find a common denominator. Once again, this process is similar to the one used for adding and subtracting numeric fractions with unlike denominators. Remember how to do this?

56+810+34 \displaystyle \frac{5}{6}+\frac{8}{10}+\frac{3}{4}

Since the denominators are 66, 1010, and 44, you want to find the least common denominator and express each fraction with this denominator before adding. (BTW, you can add fractions by finding any common denominator; it does not have to be the least. You focus on using the least because then there is less simplifying to do. But either way works.) Finding the least common denominator is the same as finding the least common multiple of  44, 66, and 1010. There are a couple of ways to do this. The first is to list the multiples of each number and determine which multiples they have in common. The least of these numbers will be the least common denominator.
Number

Multiples

44 88 1212 1616 2020 2424 2828 3232 3636 4040 4444 4848 5252 5656 60\textbf{60} 6464
66 1212 1818 2424 3030 3636 4242 4848 5454 60\textbf{60} 6666 6868
1010 2020 3030 4040 5050 60\textbf{60}  7070 8080
The other method is to use prime factorization, the process of finding the prime factors of a number. This is how the method works with numbers.

Example

Use prime factorization to find the least common multiple of 66, 1010, and 44.

Answer: First, find the prime factorization of each denominator.

6=3210=524=22\begin{array}{r}6=3\cdot2\\10=5\cdot2\\4=2\cdot2\end{array}

The LCM will contain factors of  22,33, and 55. Multiply each number the maximum number of times it appears in a single factorization. In this case, 33 appears once, 55 appears once, and 22 is used twice because it appears twice in the prime factorization of 44. Therefore, the LCM of 66, 1010, and 44 is 35223\cdot5\cdot2\cdot2, or 6060.

           6=32        10=52           4=22LCM=3522\begin{array}{l}\,\,\,\,\,\,\,\,\,\,\,6=3\cdot2\\\,\,\,\,\,\,\,\,10=5\cdot2\\\,\,\,\,\,\,\,\,\,\,\,4=2\cdot2\\\text{LCM}=3\cdot5\cdot2\cdot2\end{array}

Answer

The least common multiple of  6,106, 10, and 44 is 6060.

Both methods give the same result, but prime factorization is faster. Your choice! Now that you have found the least common multiple, you can use that number as the least common denominator of the fractions. Multiply each fraction by the fractional form of 11 that will produce a denominator of 6060:

561010=506081066=4860341515=4560\begin{array}{r}\frac{5}{6}\cdot \frac{10}{10}=\frac{50}{60}\\\\\frac{8}{10}\cdot\frac{6}{6}=\frac{48}{60}\\\\\frac{3}{4}\cdot\frac{15}{15}=\frac{45}{60}\end{array}

Now that you have like denominators, add the fractions:

5060+4860+4560=14360\frac{50}{60}+\frac{48}{60}+\frac{45}{60}=\frac{143}{60}

In the next example, we show how to find the least common multiple of a rational expression with a monomial in the denominator.

Example

Add2n15m2+3n21m\frac{2n}{15m^{2}}+\frac{3n}{21m}, and give the domain. State the sum in simplest form.

Answer: Find the prime factorization of each denominator.

15m2=35mm   21m=37m\begin{array}{l}15m^{2}\,=\,3\cdot5\cdot{m}\cdot{m}\\\,\,\,21m\,=\,3\cdot7\cdot{m}\end{array}

Find the least common multiple. 33 appears exactly once in both of the expressions, so it will appear once in the least common multiple. Both 55 and 77 appear at most once. For the variables, the most m appears is twice. Use the least common multiple for your new common denominator, it will be the LCD.

15m2=35mm21m   =37mLCM:357mmLCM:105m2\begin{array}{l}15m^{2}\,=\,3\cdot5\cdot{m}\cdot{m}\\21m\,\,\,=\,3\cdot7\cdot{m}\\\text{LCM}:3\cdot5\cdot7\cdot{m}\cdot{m}\\\text{LCM}:105m^{2}\end{array}

Compare each original denominator and the new common denominator. Now rewrite the rational expressions to each have the common denominator of 105m2105m^{2}. Remember that m cannot be 0 because the denominators would be 00. The first denominator is 15m215m^{2} and the LCD is 105m2105m^{2}. You need to multiply 15m215m^{2} by 77 to get the LCD, so multiply the entire rational expression by 77\frac{7}{7}. The second denominator is 21m21m and the LCD is 105m2105m^{2}. You need to multiply 21m21m by 5m5m to get the LCD, so multiply the entire rational expression by 5m5m\frac{5m}{5m}.

2n15m277=14n105m23n21m5m5m=15mn105m2\begin{array}{c}\frac{2n}{15m^{2}}\cdot\frac{7}{7}=\frac{14n}{105m^{2}}\\\\\frac{3n}{21m}\cdot\frac{5m}{5m}=\frac{15mn}{105m^{2}}\end{array}

Add the numerators and keep the denominator the same.

14n105m2+15mn105m2=14n+15mn105m2\frac{14n}{105{{m}^{2}}}+\frac{15mn}{105{{m}^{2}}}=\frac{14n+15mn}{105{{m}^{2}}}

If possible, simplify by finding common factors in the numerator and denominator. This rational expression is already in simplest form because the numerator and denominator have no factors in common.

n(14+15m)105m2 \displaystyle \frac{n(14+15m)}{105{{m}^{2}}}

Answer

2n15m2+3n21m=n(14+15m)105m2,m0 \displaystyle \frac{2n}{15{{m}^{2}}}+\frac{3n}{21m}=\frac{n(14+15m)}{105{{m}^{2}}},m\ne 0

That took a while, but you got through it. Adding rational expressions can be a lengthy process, but taken one step at a time, it can be done.  Now let's take a look at some examples where the denominator is not a monomial. To find the least common denominator (LCD) of two rational expressions, we factor the expressions and multiply all of the distinct factors. For instance, consider the following rational expressions:

6(x+3)(x+4), and 9x(x+4)(x+5)\dfrac{6}{\left(x+3\right)\left(x+4\right)},\text{ and }\frac{9x}{\left(x+4\right)\left(x+5\right)}

The LCD would be (x+3)(x+4)(x+5)\left(x+3\right)\left(x+4\right)\left(x+5\right).

To find the LCD, we count the greatest number of times a factor appears in each denominator and include it in the LCD that many times. For example, in 6(x+3)(x+4)\dfrac{6}{\left(x+3\right)\left(x+4\right)}, (x+3)\left(x+3\right) is represented once and  (x+4)\left(x+4\right) is represented once, so they both appear exactly once in the LCD. In 9x(x+4)(x+5)\dfrac{9x}{\left(x+4\right)\left(x+5\right)}, (x+4)\left(x+4\right) appears once and (x+5)\left(x+5\right) appears once. We have already accounted for (x+4)\left(x+4\right), so the LCD just needs one factor of (x+5)\left(x+5\right) to be complete. Once we find the LCD, we need to multiply each expression by the form of 11 that will change the denominator to the LCD. What do we mean by " the form of 11"? x+5x+5=1\frac{x+5}{x+5}=1 so multiplying an expression by it will not change its value. For example, we would need to multiply the expression 6(x+3)(x+4)\dfrac{6}{\left(x+3\right)\left(x+4\right)} by x+5x+5\frac{x+5}{x+5} and the expression 9x(x+4)(x+5)\frac{9x}{\left(x+4\right)\left(x+5\right)} by x+3x+3\frac{x+3}{x+3}. Hopefully this process will become clear after you practice it yourself.  As you look through the examples on this page, try to identify the LCD before you look at the answers. Also, try figuring out which "form of 1" you will need to multiply each expression by so that it has the LCD.

Example

Add the rational expressions 5x+6y\frac{5}{x}+\frac{6}{y} and define the domain. State the sum in simplest form.

Answer: First, define the domain of each expression. Since we have x and y in the denominators, we can say x0, and y0x\ne0 ,\text{ and }y\ne0. Now we have to find the LCD. Since x appears once and y appears once,  the LCD will be xyxy.  We then multiply each expression by the appropriate form of 1 to obtain xyxy as the denominator for each fraction.

5xyy+6yxx5yxy+6xxy\begin{array}{l}\frac{5}{x}\cdot \frac{y}{y}+\frac{6}{y}\cdot \frac{x}{x}\\ \frac{5y}{xy}+\frac{6x}{xy}\end{array}
Now that the expressions have the same denominator, we simply add the numerators to find the sum.
6x+5yxy\frac{6x+5y}{xy}
5x+6y=(6x+5y)xy[/latex], [latex]x0, and y0\frac{5}{x}+\frac{6}{y}=\frac{(6x+5y)}{xy}[/latex], [latex]x\ne0 ,\text{ and }y\ne0

Here is one more example of adding rational expressions where the denominators are multi-term polynomials. First, we will factor and then find the LCD. Note that x24x^2-4 is a difference of squares and can be factored using special products.

Example

Simplify2x2x24+xx2\frac{2{{x}^{2}}}{{{x}^{2}}-4}+\frac{x}{x-2} and give the domain. State the result in simplest form.

Answer: Find the least common denominator by factoring each denominator. The least common denominator includes the maximum number of times it appears in a single factorization. Remember that x cannot be 22 or 2-2 because the denominators would be 00. (x+2)\left(x+2\right) appears a maximum of one time and so does (x2)\left(x–2\right). This means the LCD is (x+2)(x2)\left(x+2\right)\left(x–2\right). Multiply each expression by the equivalent of 11 that will give it the common denominator. Notice the first fraction already has the LCD and as a result remains unchanged.

2x2x24=2x2(x+2)(x2)xx2x+2x+2=x(x+2)(x+2)(x2)\begin{array}{r}\frac{2{{x}^{2}}}{{{x}^{2}}-4}=\frac{2{{x}^{2}}}{(x+2)(x-2)}\\\frac{x}{x-2}\cdot \frac{x+2}{x+2}=\frac{x(x+2)}{(x+2)(x-2)}\end{array}

Rewrite the original problem with the common denominator. It makes sense to keep the denominator in factored form in order to check for common factors.

2x2(x+2)(x2)+x(x+2)(x+2)(x2) \displaystyle \frac{2{{x}^{2}}}{(x+2)(x-2)}+\frac{x(x+2)}{(x+2)(x-2)}

Combine the numerators.

2x2+x(x+2)(x+2)(x2)2x2+x2+2x(x+2)(x2) \begin{array}{c}\frac{2{{x}^{2}}+x(x+2)}{(x+2)(x-2)}\\\\\frac{2{{x}^{2}}+{{x}^{2}}+2x}{(x+2)(x-2)}\end{array}

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

Check for simplest form. Since neither (x+2)\left(x+2\right) nor (x2)\left(x-2\right) is a factor of 3x2+2x3{{x}^{2}}+2x, this expression is in simplest form. 2x2x24+xx2=3x2+2x(x+2)(x2)[/latex]  [latex]x2,2 \displaystyle \frac{2{{x}^{2}}}{{{x}^{2}}-4}+\frac{x}{x-2}=\frac{3{{x}^{2}}+2x}{(x+2)(x-2)}[/latex]    [latex] \displaystyle x\ne 2,-2

The video that follows contains an example of adding rational expressions whose denominators are not alike.  The denominators of both expressions contain only monomials. https://www.youtube.com/watch?v=Wk8ZZhE9ZjI&feature=youtu.be

Subtracting Rational Expressions

Now let’s try subtracting rational expressions. You'll use the same basic technique of finding the least common denominator and rewriting each rational expression to have that denominator.

Example

Subtract2t+1t2t2t2\frac{2}{t+1}-\frac{t-2}{{{t}^{2}}-t-2}, define the domain. State the difference in simplest form.

Answer: Find the prime factorization of each denominator. t+1t+1 cannot be factored any further, but t2t2{{t}^{2}}-t-2 can be. Remember that t cannot be 1-1 or 22 because the denominators would be 00.

t+1=t+1t2t2=(t2)(t+1)\begin{array}{c}t+1=t+1\\t^{2}-t-2=\left(t-2\right)\left(t+1\right)\end{array}

Find the least common multiple. t+1t+1 appears exactly once in both of the expressions, so it will appear once in the least common denominator. t2t–2 also appears once. This means that (t2)(t+1)\left(t-2\right)\left(t+1\right) is the least common multiple. In this case, it is easier to leave the common multiple in terms of the factors, so you will not multiply it out. Use the least common multiple for your new common denominator, it will be the LCD.

t+1=t+1t2t2=(t2)(t+1)LCM:(t+1)(t1)\begin{array}{c}t+1=t+1\\t^{2}-t-2=\left(t-2\right)\left(t+1\right)\\\text{LCM}:\left(t+1\right)\left(t-1\right)\end{array}

Compare each original denominator and the new common denominator. Now rewrite the rational expressions to each have the common denominator of (t+1)(t2)\left(t+1\right)\left(t–2\right). You need to multiply t+1t+1 by t2t–2 to get the LCD, so multiply the entire rational expression by t2t2 \displaystyle \frac{t-2}{t-2}. The second expression already has a denominator of (t+1)(t2)\left(t+1\right)\left(t–2\right), so you do not need to multiply it by anything.

2t+1t2t2=2(t2)(t+1)(t2)   t2t2t2=t2(t+1)(t2) \begin{array}{c}\frac{2}{t+1}\cdot \frac{t-2}{t-2}=\frac{2(t-2)}{(t+1)(t-2)}\\\\\,\,\,\frac{t-2}{{{t}^{2}}-t-2}=\frac{t-2}{(t+1)(t-2)}\end{array}

Then rewrite the subtraction problem with the common denominator.

2(t2)(t+1)(t2)t2(t+1)(t2) \frac{2\left(t-2\right)}{\left(t+1\right)\left(t-2\right)}-\frac{t-2}{\left(t+1\right)\left(t-2\right)}

Subtract the numerators and simplify. Remember that parentheses need to be included around the second (t2)\left(t–2\right) in the numerator because the whole quantity is subtracted. Otherwise you would be subtracting just the t.

2(t2)(t2)(t+1)(t2)2t4t+2(t+1)(t2)t2(t+1)(t2) \begin{array}{c}\frac{2(t-2)-(t-2)}{(t+1)(t-2)}\\\\\frac{2t-4-t+2}{(t+1)(t-2)}\\\\\frac{t-2}{(t+1)(t-2)}\end{array}

The numerator and denominator have a common factor of t2t–2, so the rational expression can be simplified.

t2(t+1)(t2)=1t+1\large\begin{array}{c}\frac{\cancel{t-2}}{(t+1)\cancel{(t-2)}}\\\\=\frac{1}{t+1}\end{array}

Answer

2t+1t2t2t2=1t+1,t1,2 \displaystyle \frac{2}{t+1}-\frac{t-2}{{{t}^{2}}-t-2}=\frac{1}{t+1},t\ne -1,2

In the next example, we will give less instruction. See if you can find the LCD yourself before you look at the answer.

Example

Subtract the rational expressions: 6x2+4x+42x24\frac{6}{{x}^{2}+4x+4}-\frac{2}{{x}^{2}-4}, and define the domain. State the difference in simplest form.

Answer: Note that the denominator of the first expression is a perfect square trinomial, and the denominator of the second expression is a difference of squares so they can be factored using special products. 6(x+2)22(x+2)(x2)Factor.6(x+2)2x2x22(x+2)(x2)x+2x+2Multiply each fraction to get LCD as denominator.6(x2)(x+2)2(x2)2(x+2)(x+2)2(x2)Multiply.6x12(2x+4)(x+2)2(x2)Apply distributive property.4x16(x+2)2(x2)Subtract.4(x4)(x+2)2(x2)Simplify.\begin{array}{cc}\frac{6}{{\left(x+2\right)}^{2}}-\frac{2}{\left(x+2\right)\left(x - 2\right)}\hfill & \text{Factor}.\hfill \\ \frac{6}{{\left(x+2\right)}^{2}}\cdot \frac{x - 2}{x - 2}-\frac{2}{\left(x+2\right)\left(x - 2\right)}\cdot \frac{x+2}{x+2}\hfill & \text{Multiply each fraction to get LCD as denominator}.\hfill \\ \frac{6\left(x - 2\right)}{{\left(x+2\right)}^{2}\left(x - 2\right)}-\frac{2\left(x+2\right)}{{\left(x+2\right)}^{2}\left(x - 2\right)}\hfill & \text{Multiply}.\hfill \\ \frac{6x - 12-\left(2x+4\right)}{{\left(x+2\right)}^{2}\left(x - 2\right)}\hfill & \text{Apply distributive property}.\hfill \\ \frac{4x - 16}{{\left(x+2\right)}^{2}\left(x - 2\right)}\hfill & \text{Subtract}.\hfill \\ \frac{4\left(x - 4\right)}{{\left(x+2\right)}^{2}\left(x - 2\right)}\hfill & \text{Simplify}.\hfill \end{array}

The domain is x2,2x\ne-2,2

6x2+4x+42x24=4(x4)(x+2)2(x2)[/latex],  [latex]x2,2\frac{6}{{x}^{2}+4x+4}-\frac{2}{{x}^{2}-4}=\frac{4(x-4)}{(x+2)^2(x-2)}[/latex],   [latex]x\ne-2,2

In the previous example, the LCD was  (x+2)2(x2)\left(x+2\right)^2\left(x-2\right).  The reason we need to include (x+2)\left(x+2\right) two times is because it appears two times in the expression 6x2+4x+4\frac{6}{{x}^{2}+4x+4}. The video that follows contains an example of subtracting rational expressions whose denominators are not alike.  The denominators are a trinomial and a binomial. https://www.youtube.com/watch?v=MMlNtCrkakI&feature=youtu.be

Try it

[ohm_question]3434[/ohm_question]
On the next page, we will show you how to find the greatest common denominator for a rational sum or difference that does not share any common factors.  We will also show you how to manage a sum or difference of more than two rational expressions.

Contribute!

Did you have an idea for improving this content? We’d love your input.

Licenses & Attributions