3.2 The Algebra of Functions

Learning Outcomes

  • Evaluate polynomial functions.
  • Evaluate a function with a sum or difference as the input such as [latex]f(x+1)[/latex].
  • Evaluate the sum, difference, product, or quotient of two functions at given inputs.
  • Find the sum, difference, product, or quotient of two functions and state the domain.

Just as we have performed algebraic operations on polynomials, we can do the same with polynomial functions.

Evaluate Polynomial Functions

You can evaluate polynomial functions similar to how you have been evaluating expressions all along. To evaluate an expression for a value of the variable, you substitute the value for the variable every time it appears. Then use the order of operations to find the resulting value for the expression.

Example

Given the function [latex]f(x)=3x^{2}-2x+1[/latex]:

1) Find [latex]f(-1)[/latex]

2) Find [latex] f(x+1) [/latex]

In the following video, we show more examples of evaluating polynomials for given values of the variable.

In this section, we will focus on how to perform algebraic operations on polynomial functions and introduce related notation.

The four basic operations on functions are adding, subtracting, multiplying, and dividing. If [latex] f [/latex] and [latex] g [/latex] are functions and [latex] x [/latex] is in the domain of both functions, then:

Addition: [latex](f + g)(x) = f(x)+ g(x)[/latex]

Subtraction: [latex](f − g)(x)= f(x) − g(x)[/latex]

Multiplication: [latex](f · g)(x)= f(x)\cdot g(x)[/latex]

Division: [latex]\left(\dfrac{f}{ g}\right) (x) = \dfrac{f(x)}{g(x)}[/latex], provided [latex]g(x) \not= 0[/latex]

We will focus on applying these operations to polynomial functions in this section.

Operations such as addition, subtraction, multiplication, and division can be used to produce a new function from two or more functions. The domain of the new function will be the intersection of the domains of the initial functions.

Add and Subtract Polynomial Functions

Adding and subtracting polynomial functions is the same as adding and subtracting polynomials. When you evaluate a sum or difference of functions, you can either evaluate first or perform the operation on the functions first as we will see. Our next examples describe the notation used to add and subtract polynomial functions.

ExAMPLE

Let [latex] f(x)=3x^2-6x-2 [/latex] and [latex] g(x)=4x-1 [/latex]

Compute the following:

[latex] 1)\, f(-1)+g(4)\\ [/latex]

[latex] 2)\, f(-1)-g(4)\\ [/latex]

[latex] 3)\, g(-2)-g(3)\\ [/latex]

 

Here is a video with more examples like the one above.

Example

Let [latex]f(x)=2x^3-5x+3[/latex] and [latex]h(x)=x-5[/latex],

Find the following:

[latex]1) (f+h)(x)[/latex] and state the domain of the combined function.

[latex]2) (h-f)(x)[/latex] and state the domain of the combined function.

In our next example, we will evaluate a sum and difference of functions and show that you can get to the same result in one of two ways.

Example

Let [latex]f(x)=2x^3-5x+3[/latex] and [latex]h(x)=x-5[/latex]

Evaluate: [latex](f+h)(2)[/latex]

Show that you get the same result by

1) Evaluating the functions first, then performing the indicated operation on the result.

2) Performing the operation on the functions first then evaluating the result.

 

ExAMPLE

Given: [latex] f(x)=x^2-3x\\ [/latex]

Find:

[latex] 1)f(x+1)-f(2)\\ [/latex]

[latex] 2)f(x+1)+f(x)\\ [/latex]

[latex] 3)f(x+h)-f(x)\\ [/latex]

 

Multiply and Divide Polynomial Functions

To multiply and divide polynomial functions, we can either evaluate the function first and then perform the indicated operation or vice-versa.

Example

Let [latex]g(t)=t+7[/latex] and [latex]f(t)=5t^2-3[/latex]

1) Find [latex](g · f)(t)[/latex]

2) Evaluate [latex](g · f)(-1)[/latex]

3) Evaluate [latex] (f \cdot g)(-1) [/latex]

Should Part 2 and Part 3 have the same answer? Explain.

In the next example, we will divide polynomial functions and then evaluate the new function.

Example

Given [latex]p(x)=4x[/latex] and [latex]r(x)=x+3[/latex]

Find [latex]\left(\dfrac{p}{r}\right)(x)[/latex] and state its domain. Then evaluate [latex]\left(\dfrac{p}{r}\right)(-2)[/latex]

In our next example we will find function values from a graph.

EXAMPLE

For the functions [latex] \color{DarkRed}{f(x)} [/latex], red graph, and [latex] \color{blue}{g(x)} [/latex], blue graph, pictured, find the function values.

[latex] 1)f(-1) [/latex]

[latex] 2)(f-g)(2) [/latex]

[latex] 3)(f+g)(0) [/latex]

[latex] 4)\left(\dfrac{f}{g}\right)(2)\\ [/latex]

Now try this next example: