Operations on functions

This lesson will teach you how to perform operations on functions. Basically, you can add, subtract, multiply, and divide functions. 

Examples showing how to do operations on functions.

How to do addition of functions

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

Example #1

Find f + g if  f(x) = 2x - 7 and g(x) = 5x + 8

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

                 = 2x - 7 + 5x + 8

                 = 2x + 5x + - 7 + 8
 
                = 7x + 1


How to do subtraction of functions

( f - g )(x) = f(x) - g(x)

Example #2

Find f - g if  f(x) = 3x + 9 and g(x) = 6x - 3

(f - g)(x)   =   f(x) - g(x)

                 = 3x + 9  -  (6x - 3)

                 = 3x + 9  - 6x - - 3
  
                 = 3x + 9 - 6x + 3

                 = 3x - 6x + 9 + 3

                = -3x + 12

How to do multiplication of functions

( f × g )(x) = f(x) × g(x)

Example #3

Find f × g if f(x) = x + 1 and g(x) = x + 5

(f × g)(x) = f(x) × g(x)

= (x + 1) × (x + 5)

= x × x + x × 5 + 1 × x + 1 × 5

= x2 + 5x + 1x + 5

x2 + 6x + 5

How to do division of functions

( f / g )(x) = f(x) / g(x)     with g(x) ≠ 0

Example #4

Find f / g if f(x) = x2 - 1 and g(x) = x + 1

(f / g)(x) = f(x) / g(x)

= (x2 - 1) / (x + 1)    with x + 1 ≠ 0

= [(x - 1) × (x + 1)] / x + 1    with x + 1 ≠ 0

= x - 1     with x + 1 ≠ 0

= x - 1     with x ≠ -1

Notice that we were able to cancel x + 1 since x + 1 is on top and at the bottom in the rational expression.

Summary

Let f and g be functions. Take a look at the following figure to see how we can perform these operations on a function.

Operations on functions

Recent Articles

  1. Fundamental Counting Principle

    Jun 06, 23 07:32 AM

    Multiplication principle and addition principle
    The fundamental counting principle is introduced in this lesson. Learn how to count with the multiplication principle and the addition principle.

    Read More

  2. 45-45-90 Triangle

    May 01, 23 07:00 AM

    45-45-90 triangle
    What is a 45-45-90 triangle? Definition, proof, area, and easy to follow real-world examples.

    Read More

Tough algebra word problems

100 Tough Algebra Word Problems.

If you can solve these problems with no help, you must be a genius!

Math quizzes

 Recommended

Math vocabulary quizzes