Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

8.8: Arithmetic Operations with Functions

( \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,  fg.
  • 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)=9x5g(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)=9x5g(x)=4x+1(f+g)(x)=f(x)+g(x)(f+g)(x)=(9x5)+(4x+1)(f+g)(x)=9x+4x5+1(f+g)(x)=13x4

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)  (fg)(x)
Multiplication  f(x)g(x)  (fg)(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)=3x24x+8

Find  (f+g)(x).

Solution
 (f+g)(x)=f(x)+g(x)=(5x+6)+(3x24x+8)=3x2+5x4x+6+8=3x2+x+14

Identify  f(x) and  g(x). Replace  f(x) with  5x+6, and  g(x) with  3x24x+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)=3x24x+8

Find  (gf)(x).

Solution
 (gf)(x)=g(x)f(x)=(3x24x+8)(5x+6)=3x24x+85x6=3x24x5x+86=3x29x+2

Replace  g(x) and  f(x) with their respective expressions.

Then subtract and combine like terms.

 (gf)(x)=3x29x+2

Example

 f(x)=5x2+2x5g(x)=7x+8h(x)=4x210

Find  (fh)(x).

Solution
 (fh)(x)=f(x)h(x)=(5x2+2x5)(4x210)=5x2+2x54x2+10=5x24x2+2x5+10=x2+2x+5

Notice:  (fh)(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.

 (fh)(x)=x2+2x+5

Exercise

 f(x)=9x3+2 and  g(x)=x34x23. What is  (fg)(x)?

  1.  10x34x21
  2.  8x34x21
  3.  8x3+4x2+5
  4.  8x34x25
Answer
  1.  10x34x21

    Incorrect.  (f+g)(x)=1034x21; this question is looking for  (fg)(x). The correct answer is  8x3+4x2+5.

  2.  8x34x21

    Incorrect. It looks like you tried to calculate  (fg)(x), but you subtracted incorrectly. Remember:  (fg)(x)=(9x3+2)(x34x23)=9x3+2x3+4x2+3. The correct answer is  8x3+4x2+5.

  3.  8x3+4x2+5

    Correct. To find  (fg)(x), subtract  g(x) from  f(x).  (fg)(x)=(9x3+2)(x34x23)=8x3+4x2+5.

  4.  8x34x25

    Incorrect. It looks like you tried to calculate  (gf)(x). This question is looking for  (fg)(x). The correct answer is  8x3+4x2+5.

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)=5x3

Find the product of  f and  g.

Solution
 (fg)(x)=f(x)g(x) To find the product, multiply the functions.
 (fg)(x)=(2x+1)(5x3)=10x26x+5x3=10x2x3 Replace  f(x) with  (2x+1), and  g(x) with  (5x3).

 (fg)(x)=10x2x3

Example

 f(x)=12x3+15x26xg(x)=3x

Find  (fg)(x).

Solution
 (fg)(x)=f(x)g(x)=12x3+15x26x3x,x0=3x(4x2+5x2)3x=1(4x2+5x2)=4x2+5x2,x0

To find the quotient, divide  f by  g.

Substitute the polynomials in for  f(x) and  g(x) and divide. We add  x0 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+5x2

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)=8x33x2g(x)=4x3+9x2h(x)=3x2

Find  (f+gh)(x).

Solution
 (f+gh)(x)=f(x)+g(x)h(x)=(8x33x2)+(4x3+9x2)3x2,x0 Replace  f(x),  g(x), and  h(x) with the equivalent polynomials.e add  x0 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,x0 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,x0

Exercise

 f(x)=9x2g(x)=4xh(x)=10x3

Find  (fh)(x).

  1.  90x5
  2.  36x3
  3.  40x4
  4.  360x6
Answer
  1.  90x5

    Correct.  (fh)(x)=9x2(10x3)=90x5.

  2.  36x3

    Incorrect. It looks like you found  (fg)(x); this problem is looking for  (fh)(x). The correct answer is  90x5.

  3.  40x4

    Incorrect. It looks like you found  (gh)(x); this problem is looking for  (fh)(x). The correct answer is  90x5.

  4.  360x6

    Incorrect. It looks like you found  (fgh)(x); this problem is looking for  (fh)(x). The correct answer is  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.


This page titled 8.8: Arithmetic Operations with Functions is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by The NROC Project via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?