7.5: Addition and Subtraction of Rational Functions

Learning Outcomes

  • Perform addition and subtraction of rational expressions
  • Perform addition and subtraction of rational functions
The concept and skills for adding or subtracting rational expressions are similar to those for adding or subtracting numerical fractions. We will find a common denominator (or common multiple) among the rational expressions, build each rational expression to get all rational expressions with the same denominator, and then perform the addition or subtraction on the numerators. The common denominator is the common multiple of the denominators. Although any common multiple of the denominators can be used as the common denominator for adding or subtracting the rational expressions, the least common multiple is recommended because it could help us avoid complicated algebra or further simplification of our answer. Therefore, we use the Least Common Multiple (LCM) as the common denominator when adding or subtracting fractions.

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 x24,x24x5x24,x24x5 and x27x+10x27x+10.

Solution

We factor each expression:

x24=(x2)(x+2)x24=(x2)(x+2)

x24x5=(x5)(x+1)x24x5=(x5)(x+1)

x27x+10=(x5)(x2)x27x+10=(x5)(x2)

The LCM must contain the highest power of every factor:

LCM =(x2)(x+2)(x5)(x+1)=(x2)(x+2)(x5)(x+1)

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 x29,x2x6x29,x2x6 and x26x+9x26x+9.

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: 5x3x+6x+4x5x3x+6x+4x. State any restrictions on the variable.

Solution

In this example we already have a common denominator, xx.

5x3x+6x+4x=5x3+6x+4xCombine numerators with the common denominator. x0=11x+1xSimplify numerator5x3x+6x+4x=5x3+6x+4xCombine numerators with the common denominator. x0=11x+1xSimplify numerator

Try It 2

Add: 4x1x+2+3x+4x+24x1x+2+3x+4x+2. State any restrictions on the variable.

To subtract rational expressions, we need to subtract the complete numerator of the second fraction.

Example 3

Subtract: 4xx1x5x14xx1x5x1

Solution

In this example we have a common denominator, x1x1, with a restriction that x1x1.

4xx1x5x1=4x(x5)x1Combine the numerators=4xx+5x1Subtract using the distributive property=3x+5x1Simplify4xx1x5x1=4x(x5)x1Combine the numerators=4xx+5x1Subtract using the distributive property=3x+5x1Simplify

Try It 3

Subtract: 4x3x+52x5x+54x3x+52x5x+5

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: 2x2x24+xx22x2x24+xx2. State any restrictions on the variable.

Solution

2x2x24+xx2=2x2(x2)(x+2)+x(x2)Factor. LCM =(x2)(x+2)x±2=2x2(x2)(x+2)+x(x+2)(x2)(x+2)Build fractions with a common denominator=2x2+x(x+2)(x2)(x+2)Combine numerators; use common denominator=2x2+x2+2x(x2)(x+2)Distribute x into (x+2)=3x2+2x(x2)(x+2)Simplify=x(3x+2)(x2)(x+2)Factor numerator to see if fraction will simplify2x2x24+xx2=2x2(x2)(x+2)+x(x2)Factor. LCM =(x2)(x+2)x±2=2x2(x2)(x+2)+x(x+2)(x2)(x+2)Build fractions with a common denominator=2x2+x(x+2)(x2)(x+2)Combine numerators; use common denominator=2x2+x2+2x(x2)(x+2)Distribute x into (x+2)=3x2+2x(x2)(x+2)Simplify=x(3x+2)(x2)(x+2)Factor numerator to see if fraction will simplify

Try It 4

Add: 4x+3x225+5x1x+54x+3x225+5x1x+5. State any restrictions on the variable.

Example 5

Subtract: 2x2x24x53xx52x2x24x53xx5. State any restrictions on the variable.

Solution

2x2x24x53xx5=2x2(x5)(x+1)3x(x5)Factor. LCM =(x5)(x+1)x5,1=2x2(x5)(x+1)3x(x+1)(x5)(x+1)Build fractions using LCM as common denominator=2x23x(x+1)(x5)(x+1)Combine fractions=2x23x23x(x5)(x+1)Distribute 3x into (x+1)=x23x(x5)(x+1)Simplify=x(x+3)(x5)(x+1)Factor to look for common factors2x2x24x53xx5=2x2(x5)(x+1)3x(x5)Factor. LCM =(x5)(x+1)x5,1=2x2(x5)(x+1)3x(x+1)(x5)(x+1)Build fractions using LCM as common denominator=2x23x(x+1)(x5)(x+1)Combine fractions=2x23x23x(x5)(x+1)Distribute 3x into (x+1)=x23x(x5)(x+1)Simplify=x(x+3)(x5)(x+1)Factor to look for common factors

Try It 5

Subtract: 4x+3x2+9x+82x3x+14x+3x2+9x+82x3x+1. 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

(f+g)(x)=f(x)+g(x)(f+g)(x)=f(x)+g(x)

(fg)(x)=f(x)g(x)(fg)(x)=f(x)g(x)

The domain of the sum or difference function will be all real numbers except the combined restricted values of f(x)f(x) and g(x)g(x).

Example 6

Add the two functions f(x)=x+2x21f(x)=x+2x21 and g(x)=x3x2+x2g(x)=x3x2+x2. 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 x21 can be factored as (x1)(x+1). Setting (x1)(x+1)=0 results in x=1,1. Therefore, x1,1. The denominator x2+x2 can be factored as (x+2)(x1). Setting (x+2)(x1)=0 results in x=2,1. Therefore, x2,1. In summary, the domain of (f+g)(x) is all real numbers except for the numbers 1,1,2.

Domain = {x|xR,x±1,2}

 

(f+g)(x)=x+2x21+x3x2+x2Factor=x+2(x1)(x+1)+x3(x+2)(x1)LCD =(x1)(x+1)(x+2)=x+2(x1)(x+1)×(x+2)(x+2)+x3(x+2)(x1)×(x+1)(x+1)Build equivalent fractions=x2+4x+4(x1)(x+1)(x+2)+x22x3(x1)(x+1)(x+2)Combine numerators=(x2+4x+4)+(x22x3)(x+1)(x1)(x+2)Add like terms=2x2+2x+1(x+1)(x1)(x+2)

Try It 6

Add the two functions f(x)=x(x3)2 and g(x)=x1x22x3. State the domain of the function.

Example 7

Subtract the function g(x)=x+33x2+9x+6 from the function f(x)=x+2x22x8. 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 x22x8 can be factored as (x4)(x+2). Let (x4)(x+2)=0. According to the zero product rule, x=4,2. Therefore, x4,2. The denominator 3x2+9x+6 can be factored as 3(x+1)(x+2). Let 3(x+1)(x+2)=0. According to the zero product rule, x=1,2. Therefore, x1,2. In summary, the domain of (fg)(x) is all real numbers except for the numbers 4,1,2.

(fg)(x)=x+2x22x8x+33x2+9x+6=x+2(x4)(x+2)x+33(x2+3x+2)Factor=x+2(x4)(x+2)x+33(x+1)(x+2)LCD =3(x+1)(x+2)(x4)=x+2(x4)(x+2)×3(x+1)3(x+1)x+33(x+1)(x+2)×(x4)(x4)Build equivalent fractions=3x2+9x+63(x4)(x+2)(x+1)x2x123(x4)(x+2)(x+1)Combine numerators=3x2+9x+6(x2x12)3(x4)(x+2)(x+1)Distribute the  sign=3x2+9x+6x2+x+123(x4)(x+2)(x+1)Combine like terms=2x2+10x+183(x4)(x+2)(x+1)Factor=2(x2+5x+9)3(x4)(x+2)(x+1)

Try It 7

Subtract the function g(x)=2x24 from the function f(x)=6x2+4x+4.

Adding and subtracting rational functions can be extended to include more than two functions.

Example 8

Combine f(x)+g(x)h(x), when f(x)=2xx1,g(x)=1x,h(x)=2x1x2x. State the domain of (f+gh)(x).

Solution

f(x)+g(x)h(x)=2xx1+1x2x1x2x=2x(x1)+1x(2x1)x(x1)Factor. LCM=x(x1),x0,1=xx2x(x1)+(x1)(x1)1x(2x1)x(x1)Build fractions with common denominator=2x2+(x1)(2x1)x(x1)Combine numerators=2x2+x12x+1x(x1)distribute + and – signs=2x2xx(x1)Combine like terms=x(2x1)x(x1)Factor numerator=2x1x1Cancel: xx=1

 

Domain of (f+gh)(x)={x|xR,x0,1}

Try It 8

Combine f(x)+g(x)h(x), when f(x)=xx+1,g(x)=3x1,h(x)=6x21. State the domain of (f+gh)(x).

Try It 9

Combine f(x)+g(x)h(x), when f(x)=2xx+5,g(x)=3x3,h(x)=13x+15x2+2x15. State the domain of (f+gh)(x).