8.8: Arithmetic Operations with Functions
- Last updated
- Jun 3, 2024
- Save as PDF
- Page ID
- 155369
( \newcommand{\kernel}{\mathrm{null}\,}\)
Learning Objectives
- Given two functions, f and g, find their sum, f+g.
- Given two functions, f and g, find their difference, f−g.
- Given two functions, f and g, find their product, fg.
- Given two functions, f and g, find their quotient, fg.
Introduction
You are used to adding, subtracting, multiplying, and dividing real numbers. You do these operations every day in a variety of situations. You have also learned how to perform these four basic operations on algebraic expressions. So while you may not need to calculate 30x2+10x too often, you do know how to do it.
If you know how to perform the four basic operations on polynomials, then you can also add, subtract, multiply, and divide functions. The notation will look different at first, but knowing a couple of steps can help you arrive at the correct answer.
Understanding Notation
A function is a correspondence between two sets: the domain and the range. In addition to evaluating functions, you can do operations with functions.
Let’s say you are working with the following two functions.
f(x)=9x−5g(x)=4x+1
The sum of these functions can be written f(x)+g(x) or as (f+g)(x). Watch what happens when these two functions are added.
f(x)=9x−5g(x)=4x+1(f+g)(x)=f(x)+g(x)(f+g)(x)=(9x−5)+(4x+1)(f+g)(x)=9x+4x−5+1(f+g)(x)=13x−4
That’s it! The sum of the two functions is the sum of the two polynomials.
Addition, subtraction, multiplication, and division will all be explained in turn. The table below shows the notation that is used for each type of arithmetic operation.
Addition | f(x)+g(x) | (f+g)(x) |
Subtraction | f(x)−g(x) | (f−g)(x) |
Multiplication | f(x)⋅g(x) | (f⋅g)(x) |
Division | f(x)g(x) | (fg)(x) |
Adding and Subtracting
You have already seen one example of adding two functions. Let’s look at another one. The domain (x-values) for both functions is all real numbers.
Example
f(x)=5x+6g(x)=3x2−4x+8
Find (f+g)(x).
Solution
(f+g)(x)=f(x)+g(x)=(5x+6)+(3x2−4x+8)=3x2+5x−4x+6+8=3x2+x+14 |
Identify f(x) and g(x). Replace f(x) with 5x+6, and g(x) with 3x2−4x+8. Then add and combine like terms. |
(f+g)(x)=3x2+x+14
Subtracting follows the same process. As long as you remember how to subtract one polynomial from another, you can figure out how to subtract one function from another.
Example
f(x)=5x+6g(x)=3x2−4x+8
Find (g−f)(x).
Solution
(g−f)(x)=g(x)−f(x)=(3x2−4x+8)−(5x+6)=3x2−4x+8−5x−6=3x2−4x−5x+8−6=3x2−9x+2 |
Replace g(x) and f(x) with their respective expressions. Then subtract and combine like terms. |
(g−f)(x)=3x2−9x+2
Example
f(x)=5x2+2x−5g(x)=7x+8h(x)=4x2−10
Find (f−h)(x).
Solution
(f−h)(x)=f(x)−h(x)=(5x2+2x−5)−(4x2−10)=5x2+2x−5−4x2+10=5x2−4x2+2x−5+10=x2+2x+5 |
Notice: (f−h)(x)=f(x)−h(x) You can ignore g(x) since it is not required to solve this problem. Replace the function notations with their appropriate polynomials and subtract. |
(f−h)(x)=x2+2x+5
Exercise
f(x)=9x3+2 and g(x)=x3−4x2−3. What is (f−g)(x)?
- 10x3−4x2−1
- 8x3−4x2−1
- 8x3+4x2+5
- −8x3−4x2−5
- Answer
-
- 10x3−4x2−1
Incorrect. (f+g)(x)=103−4x2−1; this question is looking for (f−g)(x). The correct answer is 8x3+4x2+5.
- 8x3−4x2−1
Incorrect. It looks like you tried to calculate (f−g)(x), but you subtracted incorrectly. Remember: (f−g)(x)=(9x3+2)−(x3−4x2−3)=9x3+2−x3+4x2+3. The correct answer is 8x3+4x2+5.
- 8x3+4x2+5
Correct. To find (f−g)(x), subtract g(x) from f(x). (f−g)(x)=(9x3+2)−(x3−4x2−3)=8x3+4x2+5.
- −8x3−4x2−5
Incorrect. It looks like you tried to calculate (g−f)(x). This question is looking for (f−g)(x). The correct answer is 8x3+4x2+5.
- 10x3−4x2−1
Multiplying and Dividing
Multiplying and dividing functions is also just like multiplying and dividing polynomials. Review the following examples.
Example
f(x)=2x+1g(x)=5x−3
Find the product of f and g.
Solution
(f⋅g)(x)=f(x)⋅g(x) | To find the product, multiply the functions. |
(f⋅g)(x)=(2x+1)(5x−3)=10x2−6x+5x−3=10x2−x−3 | Replace f(x) with (2x+1), and g(x) with (5x−3). |
(f⋅g)(x)=10x2−x−3
Example
f(x)=12x3+15x2−6xg(x)=3x
Find (fg)(x).
Solution
(fg)(x)=f(x)g(x)=12x3+15x2−6x3x,x≠0=3x(4x2+5x−2)3x=1⋅(4x2+5x−2)=4x2+5x−2,x≠0 |
To find the quotient, divide f by g. Substitute the polynomials in for f(x) and g(x) and divide. We add x≠0 because x=0 would make the denominator g(x)=0 and f(x)g(x) undefined. Remember to rename 3x3x as 1. |
(fg)(x)=4x2+5x−2
Operations with three functions work the same way. In the example below, two functions are added and then divided by a third. It is no different than what you have already done with polynomials; just continue to substitute the polynomials in for the correct functions, combine, divide, and simplify.
Example
f(x)=8x3−3x2g(x)=4x3+9x2h(x)=3x2
Find (f+gh)(x).
Solution
(f+gh)(x)=f(x)+g(x)h(x)=(8x3−3x2)+(4x3+9x2)3x2,x≠0 | Replace f(x), g(x), and h(x) with the equivalent polynomials.e add x≠0 because that would make the denominator h(x) of f(x)+g(x)h(x) zero and the fraction undefined. |
(f+gh)(x)=3x2(4x+2)3x2=1⋅(4x+2)=4x+2,x≠0 | Add f(x) and g(x). Divide by h(x). Pull out a factor of 3x2 from the numerator, and then simplify the expression, using 3x23x2=1. |
(f+gh)(x)=4x+2,x≠0
Exercise
f(x)=9x2g(x)=−4xh(x)=−10x3
Find (f⋅h)(x).
- −90x5
- −36x3
- 40x4
- 360x6
- Answer
-
- −90x5
Correct. (f⋅h)(x)=9x2⋅(−10x3)=90x5.
- −36x3
Incorrect. It looks like you found (f⋅g)(x); this problem is looking for (f⋅h)(x). The correct answer is −90x5.
- 40x4
Incorrect. It looks like you found (g⋅h)(x); this problem is looking for (f⋅h)(x). The correct answer is −90x5.
- 360x6
Incorrect. It looks like you found (f⋅g⋅h)(x); this problem is looking for (f⋅h)(x). The correct answer is −90x5.
- −90x5
Summary
Just like integers and algebraic expressions, functions can be added, subtracted, multiplied, and divided. To perform an arithmetic operation upon two or more functions, replace the indicated function with its respective polynomial, then combine using the regular rules of addition, subtraction, multiplication, and division.