Learning Outcomes
- Perform addition and subtraction of rational expressions
- Perform addition and subtraction of rational functions
Least Common Multiple
To find the least common multiple (LCM) of two or more algebraic expressions, we factor the expressions and multiply all of the distinct factors.
Example 1
Determine the least common multiple of [latex]x^2-4,\;x^2-4x-5[/latex] and [latex]x^2-7x+10[/latex].
Solution
We factor each expression:
[latex]x^2-4=\color{blue}{(x-2)}(x+2)[/latex]
[latex]x^2-4x-5=\color{red}{(x-5)}(x+1)[/latex]
[latex]x^2-7x+10=\color{red}{(x-5)}\color{blue}{(x-2)}[/latex]
The LCM must contain the highest power of every factor:
LCM [latex]=\color{blue}{(x-2)}(x+2)\color{red}{(x-5)}(x+1)[/latex]
The colors indicate factors that are common to two expressions. Notice that they are written in the LCM only once.
Try It 1
Determine the least common multiple of [latex]x^2-9,\;x^2-x-6[/latex] and [latex]x^2-6x+9[/latex].
Adding and Subtracting Rational Expressions
To add rational expressions we need a common denominator. We can use the LCM of the denominators as the common denominator.
Example 2
Add: [latex]\dfrac{5x-3}{x}+\dfrac{6x+4}{x}[/latex]. State any restrictions on the variable.
Solution
In this example we already have a common denominator, [latex]x[/latex].
[latex]\begin{aligned}\dfrac{5x-3}{x}+\dfrac{6x+4}{x}&=\dfrac{5x-3+6x+4}{x}&&\text{Combine numerators with the common denominator. }x\neq 0\\\\&=\dfrac{11x+1}{x}&&\text{Simplify numerator}\end{aligned}[/latex]
Try It 2
Add: [latex]\dfrac{4x-1}{x+2}+\dfrac{-3x+4}{x+2}[/latex]. State any restrictions on the variable.
To subtract rational expressions, we need to subtract the complete numerator of the second fraction.
Example 3
Subtract: [latex]\dfrac{4x}{x-1}-\dfrac{x-5}{x-1}[/latex]
Solution
In this example we have a common denominator, [latex]x-1[/latex], with a restriction that [latex]x\neq 1[/latex].
[latex]\begin{aligned}\dfrac{4x}{x-1}-\dfrac{x-5}{x-1}&=\dfrac{4x-(x-5)}{x-1}&&\text{Combine the numerators}\\\\&=\dfrac{4x-x+5}{x-1}&&\text{Subtract using the distributive property}\\\\&=\dfrac{3x+5}{x-1}&&\text{Simplify}\end{aligned}[/latex]
Try It 3
Subtract: [latex]\dfrac{4x-3}{x+5}-\dfrac{2x-5}{x+5}[/latex]
Usually, we need to start by finding a common denominator and building equivalent fractions with that new denominator. To build a fraction, we multiply the numerator and denominator by the same factors.
Example 4
Add: [latex]\dfrac{2x^2}{x^2-4}+\dfrac{x}{x-2}[/latex]. State any restrictions on the variable.
Solution
[latex]\begin{aligned}\dfrac{2x^2}{x^2-4}+\dfrac{x}{x-2}&=\dfrac{2x^2}{(x-2)(x+2)}+\dfrac{x}{(x-2)}&&\text{Factor. LCM }=(x-2)(x+2)\;\;x\neq\pm2\\\\&=\dfrac{2x^2}{(x-2)(x+2)}+\dfrac{x\color{blue}{(x+2)}}{(x-2)\color{blue}{(x+2)}}&&\text{Build fractions with a common denominator}\\\\&=\dfrac{2x^2+x(x+2)}{(x-2)(x+2)}&&\text{Combine numerators; use common denominator}\\\\&=\dfrac{2x^2+x^2+2x}{(x-2)(x+2)}&&\text{Distribute }x\text{ into }(x+2)\\\\&=\dfrac{3x^2+2x}{(x-2)(x+2)}&&\text{Simplify}\\\\&=\dfrac{x(3x+2)}{(x-2)(x+2)}&&\text{Factor numerator to see if fraction will simplify}\end{aligned}[/latex]
Try It 4
Add: [latex]\dfrac{4x+3}{x^2-25}+\dfrac{5x-1}{x+5}[/latex]. State any restrictions on the variable.
Example 5
Subtract: [latex]\dfrac{2x^2}{x^2-4x-5}-\dfrac{3x}{x-5}[/latex]. State any restrictions on the variable.
Solution
[latex]\begin{aligned}\dfrac{2x^2}{x^2-4x-5}-\dfrac{3x}{x-5}&=\dfrac{2x^2}{(x-5)(x+1)}-\dfrac{3x}{(x-5)}&&\text{Factor. LCM }=(x-5)(x+1)\;\;x\neq5,\,-1\\\\&=\dfrac{2x^2}{(x-5)(x+1)}-\dfrac{3x\color{blue}{(x+1)}}{(x-5)\color{blue}{(x+1)}}&&\text{Build fractions using LCM as common denominator}\\\\&=\dfrac{2x^2-3x(x+1)}{(x-5)(x+1)}&&\text{Combine fractions}\\\\&=\dfrac{2x^2-3x^2-3x}{(x-5)(x+1)}&&\text{Distribute }-3x\text{ into }(x+1)\\\\&=\dfrac{-x^2-3x}{(x-5)(x+1)}&&\text{Simplify}\\\\&=\dfrac{-x(x+3)}{(x-5)(x+1)}&&\text{Factor to look for common factors}\end{aligned}[/latex]
Try It 5
Subtract: [latex]\dfrac{4x+3}{x^2+9x+8}-\dfrac{2x-3}{x+1}[/latex]. State any restrictions on the variable.
The video presents an example of adding two rational expressions whose denominators are binomials with no common factors.
The next video contains an example of subtracting rational expressions.
Adding and Subtracting Rational Functions
Now, we may use the methods we learned above to add two rational functions. The domain of the sum function will equal all real numbers with the combined restrictions of each function.
adding and subtracting functions
[latex]\left(f+g\right)(x)=f(x)+g(x)[/latex]
[latex]\left(f-g\right)(x)=f(x)-g(x)[/latex]
The domain of the sum or difference function will be all real numbers except the combined restricted values of [latex]f(x)[/latex] and [latex]g(x)[/latex].
Example 6
Add the two functions [latex]f(x)=\dfrac{x+2}{x^2-1}[/latex] and [latex]g(x)=\dfrac{x-3}{x^2+x-2}[/latex]. State the domain of the function. State the restrictions and the domain.
Solution
Before we perform the addition, we need to discuss the domain. The denominators of the two functions cannot be zero because it is not defined for a fraction with zero in the denominator. The denominator [latex]x^2-1[/latex] can be factored as [latex](x-1)(x+1)[/latex]. Setting [latex](x-1)(x+1)=0[/latex] results in [latex]x=1, -1[/latex]. Therefore, [latex]x \neq 1, -1[/latex]. The denominator [latex]x^2+x-2[/latex] can be factored as [latex](x+2)(x-1)[/latex]. Setting [latex](x+2)(x-1)=0[/latex] results in [latex]x=-2, 1[/latex]. Therefore, [latex]x \neq -2, 1[/latex]. In summary, the domain of [latex](f+g)(x)[/latex] is all real numbers except for the numbers [latex]1, -1, -2[/latex].
Domain = [latex]\{x\;|\;x\in\mathbb{R},\;x\neq\pm1,\,-2\}[/latex]
[latex]\begin{aligned}(f+g)(x)&=\dfrac{x+2}{x^2-1}+\dfrac{x-3}{x^2+x-2}&&\text{Factor}\\\\&=\dfrac{x+2}{(x-1)(x+1)}+\dfrac{x-3}{(x+2)(x-1)}&&\text{LCD }=(x-1)(x+1)(x+2)\\\\&=\dfrac{x+2}{(x-1)(x+1)}\color{blue}{\times\frac{(x+2)}{(x+2)}}+\dfrac{x-3}{(x+2)(x-1)}\color{blue}{\times \frac{(x+1)}{(x+1)}}&&\text{Build equivalent fractions}\\\\&=\dfrac{x^2+4x+4}{(x-1)(x+1)(x+2)}+\dfrac{x^2-2x-3}{(x-1)(x+1)(x+2)}&&\text{Combine numerators}\\\\&=\dfrac{(x^2+4x+4)+(x^2-2x-3)}{(x+1)(x-1)(x+2)}&&\text{Add like terms}\\\\&=\dfrac{2x^2+2x+1}{(x+1)(x-1)(x+2)}\end{aligned}[/latex]
Try It 6
Add the two functions [latex]f(x)=\dfrac{x}{(x-3)^2}[/latex] and [latex]g(x)=\dfrac{x-1}{x^2-2x-3}[/latex]. State the domain of the function.
Example 7
Subtract the function [latex]g(x)=\dfrac{x+3}{3x^2+9x+6}[/latex] from the function [latex]f(x)=\dfrac{x+2}{x^2-2x-8}[/latex]. State the restrictions and the domain.
Solution
Before we perform the addition, we need to discuss the domain first. The denominators of the two functions (or rational expressions) cannot be zero because it is not defined for a fraction with zero in the denominator. The denominator [latex]x^2-2x-8[/latex] can be factored as [latex](x-4)(x+2)[/latex]. Let [latex](x-4)(x+2)=0[/latex]. According to the zero product rule, [latex]x=4, -2[/latex]. Therefore, [latex]x \neq 4, -2[/latex]. The denominator [latex]3x^2+9x+6[/latex] can be factored as [latex]3(x+1)(x+2)[/latex]. Let [latex]3(x+1)(x+2)=0[/latex]. According to the zero product rule, [latex]x=-1, -2[/latex]. Therefore, [latex]x \neq -1, -2[/latex]. In summary, the domain of [latex](f-g)(x)[/latex] is all real numbers except for the numbers [latex]4, -1, -2[/latex].
[latex]\begin{aligned}(f-g)(x)&=\dfrac{x+2}{x^2-2x-8}-\dfrac{x+3}{3x^2+9x+6}\\\\&=\dfrac{x+2}{(x-4)(x+2)}-\dfrac{x+3}{3(x^2+3x+2)}&&\text{Factor}\\\\&=\dfrac{x+2}{(x-4)(x+2)}-\dfrac{x+3}{3(x+1)(x+2)}&&\text{LCD }=3(x+1)(x+2)(x-4)\\\\&=\dfrac{x+2}{(x-4)(x+2)} \times \color{blue}{\frac{3(x+1)}{3(x+1)}}-\dfrac{x+3}{3(x+1)(x+2)} \times \color{blue}{\frac{(x-4)}{(x-4)}}&&\text{Build equivalent fractions}\\\\&=\dfrac{3x^2+9x+6}{3(x-4)(x+2)(x+1)}-\dfrac{x^2-x-12}{3(x-4)(x+2)(x+1)}&&\text{Combine numerators}\\\\&=\dfrac{3x^2+9x+6-(x^2-x-12)}{3(x-4)(x+2)(x+1)}&&\text{Distribute the }-\text{ sign}\\\\&=\dfrac{3x^2+9x+6-x^2+x+12}{3(x-4)(x+2)(x+1)}&&\text{Combine like terms}\\&=\dfrac{2x^2+10x+18}{3(x-4)(x+2)(x+1)}&&\text{Factor}\\\\&=\dfrac{2(x^2+5x+9)}{3(x-4)(x+2)(x+1)}\end{aligned}[/latex]
Try It 7
Subtract the function [latex]g(x)=\dfrac{2}{x^2-4}[/latex] from the function [latex]f(x)=\dfrac{6}{x^2+4x+4}[/latex].
Adding and subtracting rational functions can be extended to include more than two functions.
Example 8
Combine [latex]f(x)+g(x)-h(x)[/latex], when [latex]f(x)=\dfrac{2x}{x-1},\;g(x)=\dfrac{1}{x},\;h(x)=\dfrac{2x-1}{x^2-x}[/latex]. State the domain of [latex]\left(f+g-h\right)(x)[/latex].
Solution
[latex]\begin{aligned}f(x)+g(x)-h(x)&=\dfrac{2x}{x-1}+\dfrac{1}{x}-\dfrac{2x-1}{x^2-x}\\\\&=\dfrac{2x}{(x-1)}+\dfrac{1}{x}-\dfrac{(2x-1)}{x(x-1)}&&\text{Factor. LCM}=x(x-1),\;x\neq0,\,1\\\\&=\color{blue}{\dfrac{x}{x}}\cdot\dfrac{2x}{(x-1)}+\color{blue}{\dfrac{(x-1)}{(x-1)}}\cdot\dfrac{1}{x}-\dfrac{(2x-1)}{x(x-1)}&&\text{Build fractions with common denominator}\\\\&=\dfrac{2x^2+(x-1)-(2x-1)}{x(x-1)}&&\text{Combine numerators}\\\\&=\dfrac{2x^2+x-1-2x+1}{x(x-1)}&&\text{distribute + and – signs}\\\\&=\dfrac{2x^2-x}{x(x-1)}&&\text{Combine like terms}\\\\&=\dfrac{x(2x-1)}{x(x-1)}&&\text{Factor numerator}\\\\&=\dfrac{2x-1}{x-1}&&\text{Cancel: }\dfrac{x}{x}=1\end{aligned}[/latex]
Domain of [latex]\left(f+g-h\right)(x)=\{x\;|\;x\in\mathbb{R},\;x\neq0,\,1\}[/latex]
Try It 8
Combine [latex]f(x)+g(x)-h(x)[/latex], when [latex]f(x)=\dfrac{x}{x+1},\;g(x)=\dfrac{3}{x-1},\;h(x)=\dfrac{6}{x^2-1}[/latex]. State the domain of [latex]\left(f+g-h\right)(x)[/latex].
Try It 9
Combine [latex]f(x)+g(x)-h(x)[/latex], when [latex]f(x)=\dfrac{2x}{x+5},\;g(x)=\dfrac{3}{x-3},\;h(x)=\dfrac{13x+15}{x^2+2x-15}[/latex]. State the domain of [latex]\left(f+g-h\right)(x)[/latex].
Candela Citations
- Examples 1 and 8, Try It: hjm985; hjm435; hjm548; hjm727; hjm782; hjm824; hjm382; hjm186; hjm188. Authored by: Hazel McKenna. Provided by: Utah Valley University. License: CC BY: Attribution
- Least Common Multiple. Authored by: Hazel McKenna. Provided by: Utah Valley University. License: CC BY: Attribution
- Revision and Adaptation. Authored by: Hazel McKenna and Leo Chang. Provided by: Utah Valley University. License: CC BY: Attribution
- Ex: Add Rational Expressions with Unlike Denominators. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. Located at: https://www.youtube.com/watch?v=CKGpiTE5vIg&feature=youtu.be. License: CC BY: Attribution
- Subtract Rational Expressions with Unlike Denominators and Give the Domain. Authored by: James Sousa (Mathispower4u.com) for Lumen Learning. Located at: https://youtu.be/MMlNtCrkakI. License: CC BY: Attribution
- Ex6: Adding Rational Functions, Ex7: Subtracting Rational Functions. Authored by: Leo Chang. Provided by: Utah Valley University. License: CC BY: Attribution
- Unit 15: Rational Expressions, from Developmental Math: An Open Program. Provided by: Lumen Learning. License: CC BY: Attribution