Evaluate a function with a sum or difference as the input such as f(x+1).
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 f(x)=3x2−2x+1:
1) Find f(−1)
2) Find f(x+1)
Show Solution
1)
f(−1)=3(−1)2−2(−1)+1substitute -1 for each x in the polynomial=3(1)−2(−1)+1follow order of operations, evaluate exponents first, then multiply=3+2+1add=6
2)
f(x+1)=3(x+1)2−2(x+1)+1substitute x+1 for each x in the polynomial=3(x+1)(x+1)−2(x+1)+1follow order of operations=3(x2+2x+1)−2x−2+1=3x2+6x+3−2x−2+1combine like terms=3x2+4x+2
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 f and g are functions and x is in the domain of both functions, then:
Addition: (f+g)(x)=f(x)+g(x)
Subtraction: (f−g)(x)=f(x)−g(x)
Multiplication: (f⋅g)(x)=f(x)⋅g(x)
Division: (fg)(x)=f(x)g(x), provided g(x)≠0
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 f(x)=3x2−6x−2 and g(x)=4x−1
Compute the following:
1)f(−1)+g(4)
2)f(−1)−g(4)
3)g(−2)−g(3)
Show Solution
1)
f(−1)+g(4)
To find f(−1), substitute −1 in place of x in the given function. To find f(4) substitute 4 in place of x in the given function.
f(−1)=3(−1)2−6(−1)−2=(3)(1)−6(−1)−2=3+6−2=7
and
g(4)=4(4)−1(=16−1=15
We now have, f(−1)=7 and g(4)=15.
Let’s substitute these in place of f(−1) and g(4).
f(−1)+g(4)
=7+15=22
2)
f(−1)−g(4)
In part 1 we found f(−1)=7 and g(4)=15.
Let’s substitute these in place of f(−1) and g(4).
f(−1)−g(4)
=7−15=−8
3)
g(−2)−g(3)
To find g(−2), substitute −2 in place of x in the given function. To find g(3) substitute 3 in place of x in the given function.
g(−2)=4(−2)−1=−8−1=−9
and
g(3)=4(3)−1=12−1=11
We now have, g(−2)=−9 and g(3)=11.
Let’s substitute these in place of g(−2) and g(3).
g(−2)−g(3)
=−9−11=−20
Here is a video with more examples like the one above.
Example
Let f(x)=2x3−5x+3 and h(x)=x−5,
Find the following:
1)(f+h)(x) and state the domain of the combined function.
2)(h−f)(x) and state the domain of the combined function.
Show Solution
1)
(f+h)(x)=f(x)+h(x)=(2x3−5x+3)+(x−5)=2x3−5x+x+3−5group like terms=2x3−4x−2simplify
The domain of the combined function is the intersection of the domains of the original functions.
The domain of f(x)=2x3−5x+3 is (−∞,∞) because there are no restrictions on the domain.
The domain of h(x)=x−5 is (−∞,∞) because there are also no restrictions on the domain.
The intersection of the two domains will also be (−∞,∞).
The domain of the combined function is the intersection of the domains of the original functions.
The domain of f(x)=2x3−5x+3 is (−∞,∞) because there are no restrictions on the domain.
The domain of h(x)=x−5 is (−∞,∞) because there are also no restrictions on the domain.
The intersection of the two domains will also be (−∞,∞).
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 f(x)=2x3−5x+3 and h(x)=x−5
Evaluate: (f+h)(2)
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.
Show Solution
1) First, we will evaluate the functions separately:
f(2)=2(2)3−5(2)+3=16−10+3=9
h(2)=(2)−5=−3
Now we will perform the indicated operation using the results:
(f+h)(2)=f(2)+h(2)=9+(−3)=6
2) We can get the same result by adding the functions first and then evaluating the result at x=2.
(f+h)(x)=f(x)+h(x)=(2x3−5x+3)+(x−5)=2x3−4x−2.
Now we can evaluate this result at x=2
(f+h)(2)=2(2)3−4(2)−2=16−8−2=6
Both methods give the same result, and both require about the same amount of work.
ExAMPLE
Given: f(x)=x2−3x
Find:
1)f(x+1)−f(2)
2)f(x+1)+f(x)
3)f(x+h)−f(x)
Show Solution
1)f(x+1)−f(2)
To find f(x+1), substitute x+1 in place of x in the given function. To find f(2) substitute 2 in place of x in the given function.
f(x)=x2−3xf(x+1)=(x+1)2−3(x+1)f(2)=(2)2−3(2)
We now have, f(x+1)=(x+1)2−3(x+1) and f(2)=(2)2−3(2).
Let’s substitute these in place of f(x+1) and f(2).
f(x+1)+f(2)
=(x+1)2−3(x+1)+(2)2−3(2)substitute=(x+1)(x+1)−3(x+1)+(2)(2)−3(2)=x2+2x+1−3x−3+4−6multiply=x2−x−2+(−2)combine like terms=x2−x−4combine like terms
2)f(x+1)+f(x)
To find f(x+1), substitute x+1 in place of x in the given function.
f(x)=x2−3xf(x+1)=(x+1)2−3(x+1)
We now have, f(x+1)=(x+1)2−3(x+1) and f(x)=x2−3x.
Let’s substitute these in place of f(x+1) and f(x).
f(x+1)+f(x)
=(x+1)2−3(x+1)+x2−3xsubstitute=(x+1)(x+1)−3(x+1)+x2−3x=x2+2x+1−3x−3+x2−3xmultiply=2x2−4x−2combine like terms
3)f(x+h)−f(x)
To find f(x+h), substitute x+h in place of x in the given function.
f(x)=x2−3xf(x+h)=(x+h)2−3(x+h)
We now have, f(x+h)=(x+h)2−3(x+h) and f(x)=x2−3x.
Let’s substitute these in place of f(x+h) and f(x).
f(x+h)−f(x)
=(x+h)2−3(x+h)−(x2−3x)substitute=(x+h)(x+h)−3(x+h)−(x2−3x)=x2+2xh+h2−3x−3h−x2+3xdistributive property=2xh+h2−3hcombine like terms
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 g(t)=t+7 and f(t)=5t2−3
1) Find (g⋅f)(t)
2) Evaluate (g⋅f)(−1)
3) Evaluate (f⋅g)(−1)
Should Part 2 and Part 3 have the same answer? Explain.
Show Solution
1)
(g⋅f)(t)=(t+7)(5t2−3)=t⋅(5t2)+t⋅(−3)+7⋅(5t2)+7⋅(−3)apply the distributive property=5t3−3t+35t2−21simplify=5t3+35t2−3t−21write in descending order
2)
Evaluate (g⋅f)(−1)
(g⋅f)(t)=5t3+35t2−3t−21from above(g⋅f)(−1)=5(−1)3+35(−1)2−3(−1)−21evaluate exponents and multiply=−5+35+3−21add and subtract=12
3)
Evaluate (f⋅g)(−1)
We could take the same steps as we did above by finding (f⋅g)(t) and then substituting −1 in place of t. Here is another way you can evaluate (f⋅g)(−1).
(f⋅g)(−1)=f(−1)⋅g(−1)
Let’s first find f(−1) and g(−1). Then multiply the results together.
f(−1)=5(−1)2−3=5(1)−3=5−3=2
g(−1)=−1+7=6
Multiply results together.
(f⋅g)(−1)=f(−1)⋅g(−1)=(2)⋅(6)=12
Part 2 and Part 3 have the same answer because multiplication is commutative.
In the next example, we will divide polynomial functions and then evaluate the new function.
Example
Given p(x)=4x and r(x)=x+3
Find (pr)(x) and state its domain. Then evaluate (pr)(−2)
Show Solution
(pr)(x)=p(x)r(x)=4xx+3,
Domain: All real numbers except x≠−3.The value x=−3 will make the denominator equal to zero and therefore the expression will be undefined.
Domain in Interval Notation: (−∞,−3)⋃(−3,∞)
Domain in Set-Builder Notation: {x|x≠−3}
Evaluate this quotient for x=−2.
(pr)(−2)=p(−2)r(−2)=4(−2)−2+3=−81=−8
In our next example we will find function values from a graph.
EXAMPLE
For the functions f(x), red graph, and g(x), blue graph, pictured, find the function values.