Lesson Video: Multiplying and Dividing Rational Functions | Nagwa Lesson Video: Multiplying and Dividing Rational Functions | Nagwa

Lesson Video: Multiplying and Dividing Rational Functions Mathematics • Third Year of Preparatory School

In this video, we will learn how to multiply and divide rational functions.

22:01

Video Transcript

In this video, we will learn how to multiply and divide rational functions. A function 𝑓 mapping a domain set 𝑋 to arrange set π‘Œ is called a rational function if it can be written in the form 𝑓 of π‘₯ equals 𝑝 of π‘₯ over π‘ž of π‘₯, where 𝑝 and π‘ž are polynomial functions and π‘ž of π‘₯ is not equal to zero for all values π‘₯ in the domain set 𝑋. The domain set 𝑋 depends on the denominator function π‘ž. Any π‘₯-values for which π‘ž of π‘₯ is equal to zero must be excluded from the domain set 𝑋 because otherwise we would be dividing by zero and 𝑓 of π‘₯ would be undefined.

Let’s consider what happens when we multiply two rational functions together. Recall that if we take two rational numbers, 𝑝 over π‘ž and π‘Ÿ over 𝑠, and multiply them together, their product is π‘π‘Ÿ over π‘žπ‘ . We multiply the numerators 𝑝 and π‘Ÿ together to give the new numerator π‘π‘Ÿ. And we multiply the denominators π‘ž and 𝑠 together to give the new denominator π‘žπ‘ . Rational functions work in exactly the same way. Suppose we have two rational functions: 𝑔 of π‘₯ equals 𝑝 of π‘₯ over π‘ž of π‘₯ and β„Ž of π‘₯ equals π‘Ÿ of π‘₯ over 𝑠 of π‘₯. To take the product of these two functions, we treat them the same way we would rational numbers. We take the numerators and multiply them together to give the new numerator. And we take the denominators and multiply them together to give the new denominator.

This leads to the following result. Let 𝑔 of π‘₯ equal 𝑝 of π‘₯ over π‘ž of π‘₯ and β„Ž of π‘₯ equal π‘Ÿ of π‘₯ over 𝑠 of π‘₯ be two rational functions. And suppose their product 𝑔 of π‘₯ β„Ž of π‘₯ is equal to 𝑓 of π‘₯. Then 𝑓 of π‘₯ equals 𝑝 of π‘₯ π‘Ÿ of π‘₯ over π‘ž of π‘₯ 𝑠 of π‘₯, and the domain of 𝑓 of π‘₯ is the common domain of 𝑔 of π‘₯ and β„Ž of π‘₯. The common domain of 𝑔 of π‘₯ and β„Ž of π‘₯ is the domain of 𝑔 intersected with the domain of β„Ž, that is, all of the elements which are common to both domains. We can find this common domain by finding all the values of π‘₯ which cause either π‘ž of π‘₯ or 𝑠 of π‘₯ to be zero and therefore 𝑓 of π‘₯ to be undefined and removing them from the set of real numbers.

Let’s consider a simple example. 𝑔 of π‘₯ equals two over π‘₯ minus three, and β„Ž of π‘₯ equals four π‘₯ plus one over π‘₯. To take the product of 𝑔 of π‘₯ and β„Ž of π‘₯, we take the numerators and multiply them together and we take the denominators and multiply them together. This gives two times four π‘₯ plus one over π‘₯ minus three times π‘₯. The domain of 𝑓 is the real numbers minus all of the values of π‘₯ which cause 𝑓 of π‘₯ to be undefined. The values of π‘₯ which cause 𝑓 of π‘₯ to be undefined are the same values of π‘₯ that cause 𝑔 of π‘₯ and β„Ž of π‘₯ to be undefined.

The value of π‘₯ that causes 𝑔 of π‘₯ to be undefined satisfies the equation π‘₯ minus three equals zero. Therefore, 𝑔 of π‘₯ is undefined at π‘₯ equals three. The value of π‘₯ which causes β„Ž of π‘₯ to be undefined satisfies the equation π‘₯ equals zero. Therefore, β„Ž of π‘₯ is undefined at π‘₯ equals zero. Since 𝑓 of π‘₯ is the product of 𝑔 of π‘₯ and β„Ž of π‘₯, it is undefined at both π‘₯ equals zero and π‘₯ equals three. Therefore, the domain of 𝑓 is the set of real numbers ℝ subtract the set of values zero and three. When taking the product of two rational functions, we always need to find the domain of the resultant function before simplifying it.

Consider, for example, if we had 𝑓 of π‘₯ equals π‘₯ squared over π‘₯ minus one times π‘₯ minus one over π‘₯. Taking this product gives us π‘₯ squared times π‘₯ minus one over π‘₯ minus one times π‘₯. If we attempt to simplify this expression first by canceling the π‘₯ minus ones on the numerator and denominator and then one of the π‘₯’s on the numerator with the π‘₯ on the denominator, this would give us 𝑓 of π‘₯ equals π‘₯, a function which is defined for any real value of π‘₯. But this ignores the fact that the original product was undefined at two values of π‘₯, π‘₯ equals one and π‘₯ equals zero. It’s therefore crucial that we verify the domain of 𝑓 before canceling any terms in the expression.

Now let’s look at an example question.

Simplify the function 𝑓 of π‘₯ equals π‘₯ squared plus 16π‘₯ plus 64 over π‘₯ squared plus eight π‘₯ times seven π‘₯ minus 56 over 64 minus π‘₯ squared, and determine its domain.

The best way to approach a problem like this is to simplify the expressions by factorization before taking the product. In the first quotient, both the numerator and the denominator are quadratics and can be factorized. Let’s consider the numerator first. This expression can be factorized into π‘₯ plus eight times π‘₯ plus eight, which can be rewritten as π‘₯ plus eight all squared. Now, let’s look at the denominator. This can be factorized into π‘₯ times π‘₯ plus eight. Now, let’s look at the numerator of the second term. Here, we can take out a common factor of seven to give seven times π‘₯ minus eight. And finally, for the denominator of the second term, we have a difference of two squares since 64 is equal to eight squared. We can therefore factorize this into eight minus π‘₯ times eight plus π‘₯.

We can therefore simplify the whole of 𝑓 of π‘₯ into π‘₯ plus eight all squared over π‘₯ times π‘₯ plus eight times seven times π‘₯ minus eight over eight minus π‘₯ times eight plus π‘₯. We now need to find the domain of 𝑓 of π‘₯ before taking the product and simplifying with cancelations. 𝑓 of π‘₯ is undefined if any of the terms in the products on the denominator are equal to zero. So if π‘₯ is equal to zero, π‘₯ plus eight is equal to zero, eight minus π‘₯ is equal to zero, or eight plus π‘₯ is equal to zero.

The values of π‘₯ for which 𝑓 of π‘₯ is undefined are the values which satisfy these equations. So we have π‘₯ equals zero, π‘₯ equals negative eight, π‘₯ equals eight, and π‘₯ equals negative eight once more. Therefore, the domain of 𝑓 is the set of real numbers ℝ subtract the set of values negative eight, zero, and eight. And notice that we do not need to include negative eight twice.

Now, we can proceed with canceling terms to simplify the expressions. For the first term in the product, we can cancel one of the π‘₯ plus eights on the numerator with the π‘₯ plus eight on the denominator. And for the second term, notice that one of the terms on the numerator, π‘₯ minus eight, is exactly negative one times one of the terms on the denominator, eight minus π‘₯. If we take out a factor of negative one from the π‘₯ minus eight on the numerator, it becomes eight minus π‘₯. This will then cancel with the term on the denominator. So far then, we have simplified 𝑓 of π‘₯ to π‘₯ plus eight over π‘₯ times negative seven over eight plus π‘₯.

Now taking this product by multiplying the numerators together and the denominators together, we get π‘₯ plus eight times negative seven over π‘₯ times eight plus π‘₯. The π‘₯ plus eight on the numerator will cancel with the eight plus π‘₯ on the denominator. This gives us the second part of our answer, 𝑓 of π‘₯ equals negative seven over π‘₯.

In this example, we were dealing with quadratics on the numerators and denominators. Let’s look at an example where we have cubic expressions.

Simplify the function 𝑓 of π‘₯ equals π‘₯ cubed plus 343 over two π‘₯ squared plus 14π‘₯ times π‘₯ plus three over π‘₯ squared minus seven π‘₯ plus 49, and determine its domain.

Before taking the product, it’s best to simplify the expressions as much as possible by factorization, since this will allow us to easily determine 𝑓 of π‘₯’s domain. Let’s start with the numerator of the first term, π‘₯ cubed plus 343. Recall that if we have a sum of two cubes, π‘₯ cubed and 𝑐 cubed, we can factorize this expression as π‘₯ plus 𝑐 times π‘₯ squared minus 𝑐π‘₯ plus 𝑐 squared. The expression here is a sum of two cubes since we have π‘₯ cubed and 343, which will be something cubed. In fact, 343 happens to be precisely seven cubed. Therefore, we can factorize this expression to give π‘₯ plus seven times π‘₯ squared minus seven π‘₯ plus seven squared, which is 49.

We could try factorizing this further by factorizing this quadratic term. However, if we consider the discriminant of this quadratic term, 𝑏 squared minus four π‘Žπ‘, we get negative 147, which is less than zero. Therefore, this expression has no real roots and therefore cannot be factorized. Next, looking at the denominator of the first term, two π‘₯ squared plus 14π‘₯, this can be factorized by taking out a common factor of two π‘₯ to give two π‘₯ times π‘₯ plus seven. The numerator on the right-hand term, π‘₯ plus three, is already as simple as it can be. And for the denominator of the right-hand term, we have exactly the same expression as we had up here, π‘₯ squared minus seven π‘₯ plus 49. Therefore, this cannot be factorized any further.

We have so far simplified 𝑓 of π‘₯ to π‘₯ plus seven times π‘₯ squared minus seven π‘₯ plus 49 over two π‘₯ times π‘₯ plus seven timesed by π‘₯ plus three over π‘₯ squared minus seven π‘₯ plus 49. Before taking the product, we need to establish the domain of 𝑓 by finding all the values of π‘₯ for which 𝑓 of π‘₯ is undefined and taking them away from the set of real numbers. 𝑓 of π‘₯ will be undefined for any values of π‘₯ which cause either of the denominators in this product to be equal to zero. These values of π‘₯ will therefore satisfy two π‘₯ equals zero, π‘₯ plus seven equals zero, and π‘₯ squared minus seven π‘₯ plus 49 equals zero. These first two equations we can solve easily for π‘₯ to give π‘₯ equals zero and π‘₯ equals negative seven.

For the final equation, we have already shown that this quadratic expression has a discriminant of less than zero and therefore has no real solutions. Therefore, there are no values of π‘₯ which cause this denominator to be equal to zero. Therefore, the domain of 𝑓 is the set of real numbers ℝ subtract the values zero and seven. Now, we can proceed with taking the product of these two expressions by multiplying the numerators together and the denominators together to give π‘₯ plus seven times π‘₯ squared minus seven π‘₯ plus 49 times π‘₯ plus three all over two π‘₯ times π‘₯ plus seven times π‘₯ squared minus seven π‘₯ plus 49.

Since we’ve established the domain of 𝑓, we can now safely cancel terms. The π‘₯ plus seven on the numerator will cancel with the π‘₯ plus seven on the denominator. And the π‘₯ squared minus seven π‘₯ plus 49 on the numerator will cancel with the same on the denominator. And this gives us the second part of our answer, 𝑓 of π‘₯ equals π‘₯ plus three over two π‘₯.

Sometimes, instead of finding the domain of a product of rational functions, we simply need to evaluate the function at a given point. In this situation, we don’t need to simplify or cancel any terms, and we simply substitute the value of π‘₯ into the expression. Let’s look at an example.

Given the function 𝑓 of π‘₯ equals π‘₯ minus six over π‘₯ squared minus 15π‘₯ plus 54 times π‘₯ squared minus three π‘₯ minus 28 over two π‘₯ squared minus 15π‘₯ plus seven, evaluate 𝑓 of seven if possible.

To evaluate 𝑓 of seven, all we need to do is substitute the value π‘₯ equals seven into the expression. Doing so gives us 𝑓 of seven equals seven minus six over seven squared minus 15 times seven plus 54 all multiplied by seven squared minus three times seven minus 28 over two times seven squared minus 15 times seven plus seven. Simplifying both terms in the expression gives us one divided by negative two times zero divided by zero, which is undefined. Therefore, we cannot evaluate 𝑓 of seven because 𝑓 is undefined at this point.

We have so far explored how to multiply two rational functions together. But what if we want to divide one rational function by another? Consider how we do this with rational numbers, say, 𝑝 over π‘ž and π‘Ÿ over 𝑠. To take 𝑝 over π‘ž divided by π‘Ÿ over 𝑠, we reciprocate the second rational number, π‘Ÿ over 𝑠, and then take the product. This then gives us 𝑝 over π‘ž multiplied by 𝑠 over π‘Ÿ. We then proceed with the multiplication as normal, giving 𝑝𝑠 over π‘žπ‘Ÿ. Recall also that when dividing rational numbers, we need to take even more care with zeros.

To begin with, both π‘ž and 𝑠 must be nonzero for the rational numbers to be defined. But then, when taking the product, π‘Ÿ must also be nonzero since we’re dividing by it here. The same applies to rational functions. If 𝑔 of π‘₯ equal to 𝑝 of π‘₯ over π‘ž of π‘₯ and β„Ž of π‘₯ equal to π‘Ÿ of π‘₯ over 𝑠 of π‘₯ are two rational functions and their quotient is 𝑓 of π‘₯ equals 𝑔 of π‘₯ over β„Ž of π‘₯, then 𝑓 of π‘₯ equals 𝑝 of π‘₯ 𝑠 of π‘₯ over π‘ž of π‘₯ π‘Ÿ of π‘₯. And the domain of 𝑓 is the set of real numbers ℝ minus 𝑍 of π‘ž of π‘₯ minus 𝑍 of π‘Ÿ of π‘₯ minus 𝑍 of 𝑠 of π‘₯. 𝑍 denotes the zeros of a function.

So, for instance, 𝑍 of π‘ž of π‘₯ is the set of π‘₯-values that satisfy π‘ž of π‘₯ equals zero. We need to subtract the zeros of π‘ž of π‘₯, π‘Ÿ of π‘₯, and 𝑠 of π‘₯ from the domain of 𝑓 by the same reasoning that π‘ž, π‘Ÿ, and 𝑠 when dividing rational numbers cannot be equal to zero.

Let’s see exactly how this works with an example.

Determine the domain of the function 𝑓 of π‘₯ equals three π‘₯ minus 15 over π‘₯ minus six divided by six π‘₯ minus 30 over four π‘₯ minus 24.

Recall that when we have a function 𝑓 of π‘₯ that is the quotient of two rational functions, 𝑝 of π‘₯ over π‘ž of π‘₯ and π‘Ÿ of π‘₯ over 𝑠 of π‘₯, we need to ensure that we exclude any values of π‘₯ from the domain of 𝑓 that satisfy π‘ž of π‘₯ equals zero, π‘Ÿ of π‘₯ equals zero, and 𝑠 of π‘₯ equals zero. π‘ž of π‘₯ and 𝑠 of π‘₯ must never be equal to zero because then we would be dividing by zero and 𝑓 would be undefined. In addition, π‘Ÿ of π‘₯ must also be not equal to zero since when taking the quotient here, we will be taking the reciprocal of π‘Ÿ of π‘₯ over 𝑠 of π‘₯ and then multiplying the two fractions. Therefore, the domain of 𝑓 is the set of real numbers ℝ minus 𝑍 of π‘ž of π‘₯ minus 𝑍 of π‘Ÿ of π‘₯ minus 𝑍 of 𝑠 of π‘₯, where 𝑍 denotes the zeros of the function, that is, the values of π‘₯ for which the function is equal to zero.

In our case, π‘ž of π‘₯ is equal to π‘₯ minus six, π‘Ÿ of π‘₯ is six π‘₯ minus 30, and 𝑠 of π‘₯ is four π‘₯ minus 24. We therefore need to solve these three equations for π‘₯ and subtract these values of π‘₯ from the set of real numbers to give the domain of 𝑓. The first equation solves to π‘₯ equals six, the second equation solves to π‘₯ equals five, and the third equation solves to π‘₯ equals six once again. Therefore, the domain of 𝑓 is the set of real numbers ℝ minus the set of values five and six. And notice we do not have to subtract six twice.

In the final example, we will look at the quotient of rational functions containing cubic expressions.

Simplify the function 𝑓 of π‘₯ equals π‘₯ squared minus 12π‘₯ plus 36 over π‘₯ cubed minus 216 divided by seven π‘₯ minus 42 over π‘₯ squared plus six π‘₯ plus 36, and determine its domain.

To simplify 𝑓 of π‘₯, let’s begin by factorizing each of the terms in the rational expressions, starting with the numerator of the left-hand term, π‘₯ squared minus 12π‘₯ plus 36. This readily factorizes to π‘₯ minus six times π‘₯ minus six, which is π‘₯ minus six all squared. For the denominator of the left-hand term, we have a difference of two cubes. Recall that when we have a difference of two cubes, π‘₯ cubed minus 𝑐 cubed, we can factorize this as π‘₯ minus 𝑐 times π‘₯ squared plus 𝑐π‘₯ plus 𝑐 squared. 216 will be something cubed, and it so happens that it’s a perfect cube, six cubed. Therefore, we can factorize this as π‘₯ minus six times π‘₯ squared plus six π‘₯ plus six squared, which is 36.

We could try to factorize this quadratic expression further. By taking the discriminant 𝑏 squared minus four π‘Žπ‘, we get a result of negative 108, which is less than zero. Therefore, this quadratic expression has no real roots and cannot be factorized further. For the numerator of the second rational function, we have seven π‘₯ minus 42. We can take out a common factor of seven to give seven times π‘₯ minus six. And finally, for the denominator of the second rational function, we have π‘₯ squared plus six π‘₯ plus 36. We have just shown that this exact expression has no real roots and cannot be factorized further.

So far then, we can simplify 𝑓 of π‘₯ to π‘₯ minus six all squared over π‘₯ minus six times π‘₯ squared plus six π‘₯ plus 36 divided by seven times π‘₯ minus six over π‘₯ squared plus six π‘₯ plus 36. Recall that if we have a function 𝑓 of π‘₯ that is the quotient of two rational functions, 𝑝 of π‘₯ over π‘ž of π‘₯ and π‘Ÿ of π‘₯ over 𝑠 of π‘₯, the domain of 𝑓 is the set of real numbers ℝ minus 𝑍 of π‘ž of π‘₯ minus 𝑍 of π‘Ÿ of π‘₯ minus 𝑍 of 𝑠 of π‘₯, where 𝑍 denotes the zeros of a function. In our case, π‘ž of π‘₯ is the denominator of the first rational function, π‘₯ minus six times π‘₯ squared plus six π‘₯ plus 36. π‘Ÿ of π‘₯ is the numerator of the second rational function, seven times π‘₯ minus six. And 𝑠 of π‘₯ is the denominator of the second rational function, π‘₯ squared plus six π‘₯ plus 36.

We need to find all the values of π‘₯ that solve the equations π‘ž of π‘₯ equals zero, π‘Ÿ of π‘₯ equals zero, and 𝑠 of π‘₯ equals zero and subtract them from the set of real numbers to find the domain of 𝑓. For the first equation, either π‘₯ minus six must equal zero or π‘₯ squared plus six π‘₯ plus 36 must equal zero. If π‘₯ minus six equals zero, π‘₯ is equal to six.

For this quadratic expression, we already saw earlier that the discriminant, 𝑏 squared minus four π‘Žπ‘, was less than zero. Therefore, this expression has no real roots and therefore cannot equal zero for any real value of π‘₯. The second equation solves easily to give π‘₯ equals six once again. And for the third equation, we have exactly the same quadratic expression with the discriminant less than zero. Therefore, there are no real values of π‘₯ that solve this equation. Therefore, the only value of π‘₯ for which any of these functions are equal to zero is six. Therefore, the domain of 𝑓 is the set of real numbers ℝ minus the single element six.

Now, we can safely proceed with taking the quotient and simplifying. To take the quotient, we reciprocate the dividing rational function. So we swap the numerator and denominator and then we change the division to multiplication. Taking the multiplication by multiplying the numerators together and the denominators together, we get π‘₯ minus six all squared times π‘₯ squared plus six π‘₯ plus 36 all over π‘₯ minus six times π‘₯ squared plus six π‘₯ plus 36 times seven times π‘₯ minus six. The π‘₯ minus six all squared on the numerator will cancel with both π‘₯ minus six terms on the denominator. And the π‘₯ squared plus six π‘₯ plus 36 will cancel with the same on the denominator. This leaves us with just one on the numerator and seven on the denominator, so 𝑓 of π‘₯ equals one-seventh.

Let’s finish this video by recapping some key points. If we have two rational functions, 𝑝 of π‘₯ over π‘ž of π‘₯ and π‘Ÿ of π‘₯ over 𝑠 of π‘₯, their product is given by 𝑝 of π‘₯ π‘Ÿ of π‘₯ over π‘ž of π‘₯ 𝑠 of π‘₯. The domain of the resulting function is the set of real numbers ℝ subtract any values of π‘₯ which cause the function to be undefined, that is, the zeros of π‘ž of π‘₯ and 𝑠 of π‘₯. To take the quotient to two rational functions, we reciprocate the dividing rational function, π‘Ÿ of π‘₯ over 𝑠 of π‘₯, by switching the numerator with the denominator. And then we take the product of the two resulting rational functions, giving 𝑝 of π‘₯ 𝑠 of π‘₯ over π‘ž of π‘₯ π‘Ÿ of π‘₯. The domain of the resulting function will be the set of real numbers ℝ subtract the zeros of π‘ž of π‘₯, π‘Ÿ of π‘₯, and 𝑠 of π‘₯.

Remember that we need to subtract the zeros of π‘Ÿ of π‘₯, since we will be reciprocating it and then dividing by it. So it being equal to zero will also cause the function to be undefined. Remember that we always need to find the domain of the resultant function before simplifying and canceling any terms.

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