We can add, subtract, multiply, and divide functions just as we can add subtract, multiply, and divide real numbers.
Operations with functions are defined using special notation.
Operation | Definition |
---|---|
Sum | $$(f+g)(x)=f(x)+g(x) |
Difference | $$(f−g)(x)=f(x)−g(x) |
Product | $$(f×g)(x)=f(x)×g(x) |
Quotient | $$(fg)(x)=f(x)g(x) where $$g(x)≠0 |
With each operation, the domain of the new function becomes the intersection or overlap of the domains of the original functions. The exception is that in the case of a quotient function, the new function's domain is further restricted to exclude values that make the denominator function zero.
Evaluate: Given $$f(x)=√x and $$g(x)=x2−9, find $$(f−g)(x) and its domain.
Think: The domain of $$f(x) is $$[0,∞) and the domain of $$g(x) is $$(−∞,∞). Therefore, the intersection of these sets is $$[0,∞).
Do: Substitute and simplify. Then state the domain.
$$(f−g)(x) | $$= | $$f(x)−g(x) |
By definition |
$$= | $$√x−(x2−9) |
Substitution |
|
$$= | $$√x−x2+9 |
Simplify |
|
|
|||
$$D | $$: | $$[0,∞) |
The intersection of the two domains |
Evaluate: Given $$f(x)=x+3 and $$g(x)=x2−9, find $$(fg)(x)=f(x)g(x) and its domain.
Think: The domain of $$f(x) both and $$g(x) is $$(−∞,∞). However, since we are finding the quotient, we need to consider the case where $$g(x)=0 and remove it from the domain.
Do: Substitute and simplify. Then state the domain.
For the quotient we have:
$$(fg)(x) | $$= | $$f(x)g(x) |
By definition |
$$= | $$x+3x2−9 |
Substitution |
|
$$= | $$x+3(x+3)(x−3) |
Factor the denominator |
|
$$= | $$1(x−3) |
Cancel common factors |
|
$$D | $$: | $$(−∞,3)∪(−3,3)∪(3,∞) |
The intersection of $$D:f(x), $$D:g(x), and where $$g(x)≠0. |
Given the following values:
$$f(2)=4, $$f(7)=14, $$f(9)=18, $$f(8)=16
$$g(2)=8, $$g(7)=28, $$g(9)=36, $$g(8)=32
Find $$(f+g)$$(2)
If $$f(x)=3x−5 and $$g(x)=5x+7, find each of the following:
$$(f+g)(x)
$$(f+g)$$(4)
$$(f−g)(x)
$$(f−g)$$(10)
Let $$f(x)=9x−7 and $$g(x)=√x−2.
What is the domain of $$f(x)?
$$($$−∞$$,$$∞$$)
$$($$−∞$$,$$0$$)$$∪$$($$0$$,$$∞$$)
$$($$−∞$$,$$9$$)$$∪$$($$9$$,$$∞$$)
$$($$−∞$$,$$7$$)$$∪$$($$7$$,$$∞$$)
What is the domain of $$g(x)?
$$($$−∞$$,$$∞$$)
$$($$−∞$$,$$2$$)$$∪$$($$2$$,$$∞$$)
$$[$$2$$,$$∞$$)
$$($$2$$,$$∞$$)
What is the domain of the function $$(ff)(x)?
$$($$−∞$$,$$7$$)$$∪$$($$7$$,$$∞$$)
$$[$$2$$,$$∞$$)
$$($$−∞$$,$$9$$)$$∪$$($$9$$,$$∞$$)
$$($$−∞$$,$$∞$$)
Find the function $$(ff)(x):
What is the domain of the function $$(f/g)(x)?
$$($$−∞$$,$$7$$)$$∪$$($$7$$,$$∞$$)
$$($$2$$,$$7$$)$$∪$$($$7$$,$$∞$$)
$$($$2$$,$$∞$$)
$$[$$2$$,$$7$$)$$∪$$($$7$$,$$∞$$)
Find the function $$(f/g)(x):
A fifth way of combining functions exists that does not involve addition, subtraction, multiplication, or addition. Let's consider the meaning of a composition of functions through the following example.
Consider the function given by $$f(x)=2x+1. We understand that the function takes values of $$x in the domain and maps them to values $$y=2x+1 in the range.
Let's suppose, however, that this is only the first part of a two-stage treatment of $$x. We now take these function values and map them using another function, say $$g(x)=x2. This means that the $$y values given by $$(2x+1) become the squared values $$(2x+1)2. The diagram below captures the idea.
The output, or function values $$f(x) have become the input, or $$x values of $$g(x). We can describe the complete two-stage process by the expression $$g(f(x)). This is sometimes written as $$(g∘f)(x) and is called the composition of functions.
Algebraically, we can write $$g(f(x))=g[2x+1]=(2x+1)2.
Note that if we reversed the order of the two-stage processing, we would, in this instance, develop a different composite function. Here, $$f(g(x))=(f∘g)(x)=f(x2)=2(x2)+1=2x2+1.
Using our understanding of function notation and evaluation, we are able to create and simplify the equations of composite functions as well as evaluate substitutions into them.
In a composition of functions, the inner function is evaluated first, followed by the outer function.
For example, in the composition $$f(g(x)) or $$(f∘g)(x), the function $$g is applied first, followed by the function $$f.
The domain of $$(f∘g)(x) is restricted to all $$x-values in the domain of $$g whose range values, $$g(x), are in the domain of $$f.
Consider the functions $$f(x)=−2x−3 and $$g(x)=−2x−6.
Find $$f(7).
Hence, or otherwise, evaluate $$g(f(7)).
Now find $$g(7).
Hence, evaluate $$f(g(7)).
Is it true that $$f(g(x))=g(f(x)) for all $$x?
Yes
No
Consider the functions $$f(x)=4x−6 and $$g(x)=2x−1.
The function $$r(x) is defined as $$r(x)=f(x2). Define $$r(x).
Using the results of the previous part, define $$q(x), which is $$g(f(x2)).
Consider the functions $$f(x)=x2 and $$g(x)=x+5.
If $$y is defined as $$y=f(g(x)), state the equation for $$y.
Graph the function $$y.
What transformation of $$f(x) does $$y correspond to?
A vertical translation $$5 units up.
A horizontal translation $$5 units to the left.
A horizontal translation $$5 units to the right.
A vertical translation $$5 units down.