Lesson Explainer: Adding and Subtracting Rational Functions | Nagwa Lesson Explainer: Adding and Subtracting Rational Functions | Nagwa

Lesson Explainer: Adding and Subtracting Rational Functions Mathematics

In this explainer, we will learn how to add and subtract rational functions, identify the domains of the resulting functions, and simplify them.

We start by recalling that rational functions are the quotients of two polynomials; this means that adding and subtracting rational functions involves adding and subtracting quotients. This is similar to how we add and subtract fractions. For example, we can add the following fractions by rewriting them to have a common denominator: 12+13=12Γ—33+13Γ—22=36+26=3+26=56.

It is worth reiterating why we can just add the numerators of the fractions together when their denominators are equal. We know that 36=3Γ—ο€Ό16 and 26=2Γ—ο€Ό16, so they share a factor of 16. Taking out this shared factor, we have 36+26=3Γ—ο€Ό16+2Γ—ο€Ό16=16Γ—(3+2)=3+26.

This is true for any nonzero denominator; we can rewrite the fractions to have a common denominator and then just add the numerators. Hence, the same process applies to rational functions; the only difference is that our denominators can be zero for certain input values. In this case, the functions are not defined, so we must also consider the domains of the functions.

We will do this by considering an example. Let’s say we want to simplify the following sum of rational functions: 𝑓(π‘₯)=1π‘₯+2π‘₯+1.

Before we start simplifying, we should first find the domain of 𝑓(π‘₯); we recall that the domain of a rational function is the set of all real numbers except those that are roots of the denominator. The domain of a sum of real-valued functions is the intersection of their domains since we need both functions to be defined to add them together. So, we can apply this to each term separately to see that the domain of 𝑓(π‘₯) is β„βˆ’{βˆ’1,0}.

We now want to add these terms together. To do this, we need them to have the same denominator. We can do this by cross multiplying:

We multiply the numerator and denominator of the first fraction by π‘₯+1 and the numerator and denominator of the second by π‘₯. This gives 𝑓(π‘₯)=1π‘₯+2π‘₯+1=1π‘₯Γ—π‘₯+1π‘₯+1+2π‘₯+1Γ—π‘₯π‘₯=π‘₯+1π‘₯(π‘₯+1)+2π‘₯π‘₯(π‘₯+1).

Finally, we add the numerators together: 𝑓(π‘₯)=π‘₯+1π‘₯(π‘₯+1)+2π‘₯π‘₯(π‘₯+1)=π‘₯+1+2π‘₯π‘₯(π‘₯+1)=3π‘₯+1π‘₯(π‘₯+1), on the domain β„βˆ’{βˆ’1,0}.

Since 𝑓(π‘₯) is a rational function, we could also simplify by canceling out shared factors in the numerator and denominator over the domain. In this case, there are no shared factors, so 𝑓(π‘₯) cannot be simplified further.

In the example above, we used the property that the domain of a sum or difference of functions is the intersection of their domains to show the following useful property for determining the domain of the sum or difference of rational functions.

Property: The Domain of the Sum or Difference of Rational Functions

The domain of the sum or difference of rational functions is all real numbers except the roots of any of the denominators of the rational functions in the sum or difference.

In other words, if 𝑓(π‘₯) is the sum of rational functions given by 𝑓(π‘₯)=𝑝(π‘₯)π‘ž(π‘₯)+𝑝(π‘₯)π‘ž(π‘₯), the set of zeroes of π‘ž(π‘₯) is π‘οŠ§, and the set of zeroes of π‘ž(π‘₯) is π‘οŠ¨, then the domain of 𝑓(π‘₯) is β„βˆ’(𝑍βˆͺ𝑍).

This then allows us to simplify the sum or difference of any rational function by following this same process.

How To: Simplifying the Sum or Difference of Rational Functions

  1. Fully factor the denominators of each rational function in the sum or difference.
  2. Find the domain of the sum or difference by excluding all the roots of these denominators.
  3. Simplify each term by canceling out shared factors over the domain.
  4. Multiply the numerators and denominators of each term in the sum or difference so that each term has a common denominator.
  5. Find the sum or difference of the terms.
  6. Simplify the rational function over its domain.

Let’s now see some examples of applying this process to add two rational functions together.

Example 1: Adding Rational Functions

Simplify 𝑛(π‘₯)=3π‘₯+27π‘₯+3π‘₯2βˆ’π‘₯.

Answer

We start by finding the domain of this function. We recall that this is the set of all real numbers except for the roots of any of the denominators. Since all of the denominators are fully factored, we can see that these roots are π‘₯=0 and π‘₯=2, so the domain of 𝑛(π‘₯) is β„βˆ’{0,2}.

We recall that to add rational functions, we need them to have the same denominator. We can rewrite these terms by cross multiplying and then adding the numerators: 𝑛(π‘₯)=3π‘₯+27π‘₯+3π‘₯2βˆ’π‘₯=3π‘₯+27π‘₯Γ—2βˆ’π‘₯2βˆ’π‘₯+3π‘₯2βˆ’π‘₯Γ—7π‘₯7π‘₯=(3π‘₯+2)(2βˆ’π‘₯)+ο€Ή3π‘₯(7π‘₯)7π‘₯(2βˆ’π‘₯).

We can then simplify the numerator by distributing. We have (3π‘₯+2)(2βˆ’π‘₯)=6π‘₯βˆ’3π‘₯+4βˆ’2π‘₯ο€Ή3π‘₯(7π‘₯)=21π‘₯.

Hence, 𝑛(π‘₯)=(3π‘₯+2)(2βˆ’π‘₯)+ο€Ή3π‘₯(7π‘₯)7π‘₯(2βˆ’π‘₯)=6π‘₯βˆ’3π‘₯+4βˆ’2π‘₯+21π‘₯7π‘₯(2βˆ’π‘₯)=21π‘₯βˆ’3π‘₯+4π‘₯+47π‘₯(2βˆ’π‘₯), on the domain β„βˆ’{0,2}.

We can now attempt to simplify this rational function by canceling out shared factors in the numerator and denominator. Since the denominator has roots π‘₯=0 and π‘₯=2, we can use the factor theorem to check if the numerator also has these linear factors.

Substituting π‘₯=0 and π‘₯=2 into the numerator gives us 21(0)βˆ’3(0)+4(0)+4=4,21(2)βˆ’3(2)+4(2)+4=168.

Since these are both nonzero, π‘₯=0 and π‘₯=2 are not roots of the numerator by the factor theorem. Hence, we cannot simplify the rational function any further.

We note that since there has been no change to the domain after adding the terms together (i.e., it is still β„βˆ’{0,2}), we do not need to include the domain as part of the answer.

Therefore, 𝑛(π‘₯)=21π‘₯βˆ’3π‘₯+4π‘₯+47π‘₯(2βˆ’π‘₯).

In our next example, we will simplify the difference between two rational functions.

Example 2: Calculations Involving Properties of Rational Functions

Simplify 𝑛(π‘₯)=3π‘₯βˆ’2π‘₯2π‘₯+8βˆ’5π‘₯βˆ’23π‘₯.

Answer

We start by finding the domain of 𝑛(π‘₯). Since this is the difference of two rational functions, we recall that this is the set of all real numbers except for the roots of any of the denominators. We first factor 2π‘₯+8 to get 2(π‘₯+4). We can then set each denominator equal to zero and solve them for π‘₯. Solving these equations, we find that the roots are π‘₯=βˆ’4 and π‘₯=0. Hence, the domain of 𝑛(π‘₯) is β„βˆ’{βˆ’4,0}.

We recall that to find the difference of rational functions, we need them to have the same denominator. We can rewrite these terms by cross multiplying and then finding the difference in the numerators: 𝑛(π‘₯)=3π‘₯βˆ’2π‘₯2π‘₯+8βˆ’5π‘₯βˆ’23π‘₯=3π‘₯βˆ’2π‘₯2(π‘₯+4)Γ—3π‘₯3π‘₯βˆ’5π‘₯βˆ’23π‘₯Γ—2(π‘₯+4)2(π‘₯+4)=ο€Ή3π‘₯βˆ’2π‘₯(3π‘₯)βˆ’(5π‘₯βˆ’2)(2(π‘₯+4))3π‘₯(2(π‘₯+4))=ο€Ή3π‘₯βˆ’2π‘₯(3π‘₯)βˆ’(5π‘₯βˆ’2)(2(π‘₯+4))6π‘₯(π‘₯+4).

We can then simplify the numerator by distributing. In the first term, we have ο€Ή3π‘₯βˆ’2π‘₯(3π‘₯)=9π‘₯βˆ’6π‘₯.

In the second term, we have (5π‘₯βˆ’2)(2(π‘₯+4))=10π‘₯+40π‘₯βˆ’4π‘₯βˆ’16.

Hence, 𝑛(π‘₯)=ο€Ή3π‘₯βˆ’2π‘₯(3π‘₯)βˆ’(5π‘₯βˆ’2)(2(π‘₯+4))6π‘₯(π‘₯+4)=9π‘₯βˆ’6π‘₯βˆ’ο€Ή10π‘₯+40π‘₯βˆ’4π‘₯βˆ’166π‘₯(π‘₯+4)=9π‘₯βˆ’6π‘₯βˆ’10π‘₯βˆ’40π‘₯+4π‘₯+166π‘₯(π‘₯+4)=9π‘₯βˆ’16π‘₯βˆ’36π‘₯+166π‘₯(π‘₯+4).

We can now attempt to simplify this rational function by canceling out shared factors in the numerator and denominator. Since the denominator has roots π‘₯=βˆ’4 and π‘₯=0, we can use the factor theorem to check if the numerator also has these linear factors.

Substituting π‘₯=βˆ’4 and π‘₯=0 into the numerator gives us 9(βˆ’4)βˆ’16(βˆ’4)βˆ’36(βˆ’4)+16=βˆ’672,9(0)βˆ’16(0)βˆ’36(0)+16=16.

Since these are both nonzero, π‘₯=βˆ’4 and π‘₯=0 are not roots of the numerator by the factor theorem. Hence, we cannot simplify the rational function any further.

We note that as the domain has not changed since the start of the problem (i.e., it is still β„βˆ’{βˆ’4,0}), we do not need to state it as part of the answer.

Therefore, 𝑛(π‘₯)=9π‘₯βˆ’16π‘₯βˆ’36π‘₯+166π‘₯(π‘₯+4).

In our previous two examples, we did not need to simplify the rational function by canceling out shared factors at any point. This is not always the case as we will see in our next two examples.

Example 3: Simplifying the Difference of Two Rational Functions and Determining Its Domain

Simplify the function 𝑛(π‘₯)=5π‘₯π‘₯βˆ’4βˆ’π‘₯+4π‘₯βˆ’16, and determine its domain.

Answer

We start by finding the domain of 𝑛(π‘₯) since this is the difference of two rational functions. We recall that this is the set of all real numbers except for the roots of any of the denominators. We first factor the second denominator to get π‘₯βˆ’16=(π‘₯βˆ’4)(π‘₯+4).

This gives us 𝑛(π‘₯)=5π‘₯π‘₯βˆ’4βˆ’π‘₯+4(π‘₯βˆ’4)(π‘₯+4).

We can then set each denominator equal to zero and solve these equations for π‘₯. Solving these equations gives π‘₯=βˆ’4 and π‘₯=4. Hence, the domain of 𝑛(π‘₯) is β„βˆ’{βˆ’4,4}.

We can now move on to the cross multiplication step. However, we can simplify the second term by canceling out the shared factor of π‘₯+4 in the numerator and denominator of the second term over the domain of 𝑛(π‘₯). This gives us 𝑛(π‘₯)=5π‘₯π‘₯βˆ’4βˆ’π‘₯+4(π‘₯βˆ’4)(π‘₯+4)=5π‘₯π‘₯βˆ’4βˆ’1π‘₯βˆ’4, on the domain β„βˆ’{βˆ’4,4}.

These now have the same denominator, so we have 𝑛(π‘₯)=5π‘₯π‘₯βˆ’4βˆ’1π‘₯βˆ’4=5π‘₯βˆ’1π‘₯βˆ’4, on the domain β„βˆ’{βˆ’4,4}.

Since the numerator and denominator share no common factors, we cannot simplify further.

Hence, 𝑛(π‘₯)=5π‘₯βˆ’1π‘₯βˆ’4 and the domain is β„βˆ’{βˆ’4,4}.

In our next example, we will simplify the sum of two rational functions with quadratic denominators.

Example 4: Simplifying the Sum of Two Rational Functions and Determining Its Domain

Simplify the function 𝑛(π‘₯)=8π‘₯+7π‘₯βˆ’14π‘₯+45+3π‘₯βˆ’24π‘₯βˆ’17π‘₯+72, and determine its domain.

Answer

We start by finding the domain of 𝑛(π‘₯). Since this is the difference of two rational functions, we recall that this is the set of all real numbers except for the roots of any of the denominators.

We need to factor both denominators. We have π‘₯βˆ’14π‘₯+45=(π‘₯βˆ’5)(π‘₯βˆ’9),π‘₯βˆ’17π‘₯+72=(π‘₯βˆ’8)(π‘₯βˆ’9).

Therefore, the domain of 𝑛(π‘₯) is β„βˆ’{5,8,9}.

Using the above factoring, we can then rewrite 𝑛(π‘₯) as follows: 𝑛(π‘₯)=8π‘₯+7π‘₯βˆ’14π‘₯+45+3π‘₯βˆ’24π‘₯βˆ’17π‘₯+72=8π‘₯+7(π‘₯βˆ’9)(π‘₯βˆ’5)+3(π‘₯βˆ’8)(π‘₯βˆ’8)(π‘₯βˆ’9).

We can simplify the second term over the domain of 𝑛(π‘₯) by canceling out the shared factor. This gives 𝑛(π‘₯)=8π‘₯+7(π‘₯βˆ’9)(π‘₯βˆ’5)+3(π‘₯βˆ’9), on the domain β„βˆ’{5,8,9}.

We now need to express both terms with the same denominator. We can do this by multiplying the numerator and denominator of the second term by π‘₯βˆ’5. This gives us 𝑛(π‘₯)=8π‘₯+7(π‘₯βˆ’9)(π‘₯βˆ’5)+3(π‘₯βˆ’9)Γ—(π‘₯βˆ’5)(π‘₯βˆ’5)=8π‘₯+7(π‘₯βˆ’9)(π‘₯βˆ’5)+3(π‘₯βˆ’5)(π‘₯βˆ’9)(π‘₯βˆ’5), on the domain β„βˆ’{5,8,9}. We can then add the numerators: 𝑛(π‘₯)=8π‘₯+7+3(π‘₯βˆ’5)(π‘₯βˆ’9)(π‘₯βˆ’5)=8π‘₯+7+3π‘₯βˆ’15(π‘₯βˆ’9)(π‘₯βˆ’5)=11π‘₯βˆ’8(π‘₯βˆ’9)(π‘₯βˆ’5), on the domain β„βˆ’{5,8,9}.

There are no shared factors in the numerator and denominator, so we cannot simplify any further. Hence, 𝑛(π‘₯)=11π‘₯βˆ’8(π‘₯βˆ’9)(π‘₯βˆ’5) and the domain is β„βˆ’{5,8,9}.

In our final example, we will use the domain of a sum of rational functions and a given output of the function to determine the values of two unknowns in the function.

Example 5: Finding Unknowns in a Function given Its Domain

Given that the domain of the function 𝑛(π‘₯)=𝑏π‘₯+6π‘₯+π‘Ž is β„βˆ’{βˆ’4,0} and 𝑛(βˆ’1)=2, find the values of π‘Ž and 𝑏.

Answer

We start by noting that 𝑛(π‘₯) is the sum of rational functions, and we recall that the domain will be the set of real numbers excluding the roots of the denominators. We can see that the roots of the denominators are π‘₯=0 and π‘₯=βˆ’π‘Ž, so the domain of 𝑛(π‘₯) is β„βˆ’{βˆ’π‘Ž,0}. As we are told the domain is β„βˆ’{βˆ’4,0}, for these sets to be equal, we must have π‘Ž=4.

We now need to find 𝑏, which we can do by using the other piece of information given to us: 𝑛(βˆ’1)=2. We may be tempted to add the rational functions together and simplify; however, it is easier to evaluate the expression at the given value. We have 𝑛(βˆ’1)=𝑏(βˆ’1)+6(βˆ’1)+4=βˆ’π‘+2.

Since 𝑛(βˆ’1)=2, we have 2=βˆ’π‘+2𝑏=0.

Therefore, π‘Ž=4 and 𝑏=0.

Before we finish, let’s see one example where we need to simplify the rational function after adding the terms together. We will do this with the following function: 𝑛(π‘₯)=2π‘₯+1βˆ’1π‘₯βˆ’1+4π‘₯βˆ’1.

We first factor the denominators to get 𝑛(π‘₯)=2π‘₯+1βˆ’1π‘₯βˆ’1+4(π‘₯βˆ’1)(π‘₯+1).

We can then note that the domain of 𝑛(π‘₯) is β„βˆ’{βˆ’1,1}. We can rewrite each term to have the same denominator as follows: 𝑛(π‘₯)=2π‘₯+1βˆ’1π‘₯βˆ’1+4(π‘₯βˆ’1)(π‘₯+1)=2π‘₯+1Γ—(π‘₯βˆ’1)(π‘₯βˆ’1)βˆ’1π‘₯βˆ’1Γ—(π‘₯+1)(π‘₯+1)+4(π‘₯βˆ’1)(π‘₯+1)=2(π‘₯βˆ’1)(π‘₯βˆ’1)(π‘₯+1)βˆ’π‘₯+1(π‘₯βˆ’1)(π‘₯+1)+4(π‘₯βˆ’1)(π‘₯+1).

We can then add these together to get 𝑛(π‘₯)=2(π‘₯βˆ’1)βˆ’(π‘₯+1)+4(π‘₯βˆ’1)(π‘₯+1)=2π‘₯βˆ’2βˆ’π‘₯βˆ’1+4(π‘₯βˆ’1)(π‘₯+1)=π‘₯+1(π‘₯βˆ’1)(π‘₯+1).

Finally, we can simplify by noting that since the domain of 𝑛(π‘₯) is β„βˆ’{βˆ’1,1}, π‘₯ is never equal to βˆ’1, so π‘₯+1 is never 0. So, we can cancel out the shared factor of (π‘₯+1) to get 𝑛(π‘₯)=1π‘₯βˆ’1, on the domain β„βˆ’{βˆ’1,1}.

Let’s now finish by recapping some of the important points in this explainer.

Key Points

  • The domain of the sum or difference of rational functions is all real numbers except the roots of any of the denominators of the rational functions in the sum or difference.
  • We can simplify the sum or difference of rational functions by using the following steps:
    1. Fully factor the denominators of each rational function in the sum or difference.
    2. Find the domain of the sum or difference by excluding all the roots of these denominators.
    3. Simplify each term by canceling out shared factors over the domain.
    4. Multiply the numerators and denominators of each term in the sum or difference so that each term has a common denominator.
    5. Find the sum or difference of the terms.
    6. Simplify the rational function over its domain.

Join Nagwa Classes

Attend live sessions on Nagwa Classes to boost your learning with guidance and advice from an expert teacher!

  • Interactive Sessions
  • Chat & Messaging
  • Realistic Exam Questions

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy