11.2 Operations on Functions
In Chapter 5, you solved systems of linear equations through substitution, addition, subtraction, multiplication, and division. A similar process is employed in this topic, where you will add, subtract, multiply, divide, or substitute functions. The notation used for this looks like the following:
Given two functions [latex]f(x)[/latex] and [latex]g(x)[/latex]:
[latex]\begin{array}{clcl} f(x) + g(x)&\text{ is the same as }&(f + g)(x)&\text{ and means the addition of these two functions} \\ f(x) - g(x)&\text{ is the same as }&(f - g)(x)&\text{ and means the subtraction of these two functions} \\ f(x)\cdot g(x)&\text{ is the same as }&(f\cdot g)(x)&\text{ and means the multiplication of these two functions} \\ f(x)\div g(x)&\text{ is the same as }&(f\div g)(x)&\text{ and means the addition of these two functions} \end{array}[/latex]
When encountering questions about operations on functions, you will generally be asked to do two things: combine the equations in some described fashion and to substitute some value to replace the variable in the original equation. These are illustrated in the following examples.
Example 11.2.1
Perform the following operations on [latex]f(x) = 2x^2 - 4[/latex] and [latex]g(x) = x^2 + 4x - 2[/latex].
- [latex]f(x) + g(x)[/latex]Addition yields [latex]2x^2 - 4 + x^2 + 4x - 2[/latex], which simplifies to [latex]3x^2 + 4x - 6[/latex].
- [latex]f(x) - g(x)[/latex]Subtraction yields [latex]2x^2-4-(x^2+4x-2)[/latex], which simplifies to [latex]x^2-4x-2[/latex].
- [latex]f(x)\cdot g(x)[/latex]Multiplication yields [latex](2x^2-4)(x^2+4x-2)[/latex], which simplifies to [latex]2x^4+8x^3-4x^2-16x+8[/latex].
- [latex]f(x)\div g(x)[/latex]Division yields [latex](2x^2-4)\div (x^2+4x-2)[/latex], which cannot be reduced any further.
Often, you are asked to evaluate operations on functions where you must substitute some given value into the combined functions. Consider the following.
Example 11.2.2
Perform the following operations on [latex]f(x) = x^2 - 3[/latex] and [latex]g(x) = 2x^2 + 3x[/latex] and evaluate for the given values.
- [latex]f(2) + g(2)[/latex]
[latex][x^2-3]+[2x^2+3x][/latex]
[latex][(2)^2-3]+[2(2)^2+3(2)][/latex]
[latex]4-3+8+6=15[/latex]
[latex]f(2)+g(2)=15[/latex] - [latex]f(1) - g(3)[/latex]
[latex][x^2-3]-[2x^2+3x][/latex]
[latex][(1)^2-3]-[2(3)^2+3(3)][/latex]
[latex][1-3]-[18+9]=-29[/latex]
[latex]f(1)-g(3)=-29[/latex] - [latex]f(0)\cdot g(2)[/latex]
[latex][x^2-3]\cdot [2x^2+3x][/latex]
[latex][0^2-3]\cdot [2(2)^2+3(2)][/latex]
[latex][-3]\cdot [8+6]=-42[/latex]
[latex]f(0)\cdot g(2)=-42[/latex] - [latex]f(2)\div g(0)[/latex]
[latex][x^2-3]\div [2x^2+3x][/latex]
[latex][2^2-3]\div [2(0)^2+3(0)][/latex]
[latex][1]\div [0]=\text{ undefined}[/latex]
Composite functions are functions that involve substitution of functions, such as [latex]f(x)[/latex] is substituted for the [latex]x[/latex]-value in the [latex]g(x)[/latex] function or the reverse. Which goes where is outlined by the way the equation is written:
[latex]\begin{array}{l} (f \circ g)(x)\text{ means that the }g(x)\text{ function is used to replace the }x\text{-values in the }f(x)\text{ function} \\ (g\circ f)(x)\text{ means that the }f(x)\text{ function is used to replace the }x\text{-values in the }g(x)\text{ function} \end{array}[/latex]
The more conventional way to write these composite functions is:
\[(f\circ g)(x) = f(g(x))\text{ and }(g\circ f)(x) = g(f(x))\]
Consider the following examples of composite functions.
Example 11.2.3
Given the functions [latex]f(x) = 3x - 5[/latex] and [latex]g(x) = x^2 + 2[/latex], evaluate for:
- [latex](f\circ g)(2)[/latex][latex]\begin{array}{rrl} (f\circ g)(x)&=&f(g(x)) \\ f(g(x))&=&3(x^2+2)-5 \\ f(g(2))&=&3(2^2+2)-5 \\ f(g(2))&=&3(6)-5=13 \end{array}[/latex]
- [latex](g\circ f)(-1)[/latex][latex]\begin{array}{rrl} (g\circ f)(x)&=&g(f(x)) \\ g(f(x))&=&[3x-5]^2+2 \\ g(f(-1))&=&[3(-1)-5]^2+2 \\ g(f(-1))&=&[-8]^2+2 \\ g(f(-1))&=&66 \end{array}[/latex]
Questions
Perform the indicated operations.
- [latex]g(a) = a^3 + 5a^2[/latex]
[latex]f(a) = 2a + 4[/latex]
Find [latex]g(3) + f(3)[/latex] - [latex]f(x) = -3x^2 + 3x[/latex]
[latex]g(x) = 2x + 5[/latex]
Find [latex]\dfrac{f(-4)}{g(-4)}[/latex] - [latex]g(x) = -4x + 1[/latex]
[latex]h(x) = -2x - 1[/latex]
Find [latex]g(5) + h(5)[/latex] - [latex]g(x) = 3x + 1[/latex]
[latex]f(x) = x^3 + 3x^2[/latex]
Find [latex]g(2)\cdot f(2)[/latex] - [latex]g(t) = t - 3[/latex]
[latex]h(t) = -3t^3 + 6t[/latex]
Find [latex]g(1) + h(1)[/latex] - [latex]g(x) = x^2 - 2[/latex]
[latex]h(x) = 2x + 5[/latex]
Find [latex]g(-6) + h(-6)[/latex] - [latex]h(n) = 2n - 1[/latex]
[latex]g(n) = 3n - 5[/latex]
Find [latex]\dfrac{h(0)}{g(0)}[/latex] - [latex]g(a) = 3a - 2[/latex]
[latex]h(a) = 4a - 2[/latex]
Find [latex](g + h)(10)[/latex] - [latex]g(a) = 3a + 3[/latex]
[latex]f(a) = 2a - 2[/latex]
Find [latex](g + f)(9)[/latex] - [latex]g(x) = 4x + 3[/latex]
[latex]h(x) = x^3 - 2x^2[/latex]
Find [latex](g - h)(-1)[/latex] - [latex]g(x) = x + 3[/latex]
[latex]f(x) = -x + 4[/latex]
Find [latex](g - f)(3)[/latex] - [latex]g(x) = x^2 + 2[/latex]
[latex]f(x) = 2x + 5[/latex]
Find [latex](g - f)(0)[/latex] - [latex]f(n) = n - 5[/latex]
[latex]g(n) = 4n + 2[/latex]
Find [latex](f + g)(-8)[/latex] - [latex]h(t) = t + 5[/latex]
[latex]g(t) = 3t - 5[/latex]
Find [latex](h\cdot g)(5)[/latex] - [latex]g(t) = t - 4[/latex]
[latex]h(t) = 2t[/latex]
Find [latex](g\cdot h)(3t)[/latex] - [latex]g(n) = n^2 + 5[/latex]
[latex]f(n) = 3n + 5[/latex]
Find [latex]\dfrac{g(n)}{f(n)}[/latex] - [latex]g(a) = -2a + 5[/latex]
[latex]f(a) = 3a + 5[/latex]
Find [latex]\left(\dfrac{g}{f}\right)(a^2)[/latex] - [latex]h(n) = n^3 + 4n[/latex]
[latex]g(n) = 4n + 5[/latex]
Find [latex]h(n) + g(n)[/latex] - [latex]g(n) = n^2 - 4n[/latex]
[latex]h(n) = n - 5[/latex]
Find [latex]g(n^2)\cdot h(n^2)[/latex] - [latex]g(n) = n + 5[/latex]
[latex]h(n) = 2n - 5[/latex]
Find [latex](g\cdot h)(-3n)[/latex]
Solve the following composite functions.
- [latex]f(x) = -4x + 1[/latex]
[latex]g(x) = 4x + 3[/latex]
Find [latex](f\circ g)(9)[/latex] - [latex]h(a) = 3a + 3[/latex]
[latex]g(a) = a + 1[/latex]
Find [latex](h \circ g)(5)[/latex] - [latex]g(x) = x + 4[/latex]
[latex]h(x) = x^2 - 1[/latex]
Find [latex](g \circ h)(10)[/latex] - [latex]f(n) = -4n + 2[/latex]
[latex]g(n) = n + 4[/latex]
Find [latex](f \circ g)(9)[/latex] - [latex]g(x) = 2x - 4[/latex]
[latex]h(x) = 2x^3 + 4x^2[/latex]
Find [latex](g \circ h)(3)[/latex] - [latex]g(x) = x^2 - 5x[/latex]
[latex]h(x) = 4x + 4[/latex]
Find [latex](g \circ h)(x)[/latex] - [latex]f(a) = -2a + 2[/latex]
[latex]g(a) = 4a[/latex]
Find [latex](f \circ g)(a)[/latex] - [latex]g(x) = 4x + 4[/latex]
[latex]f(x) = x^3 - 1[/latex]
Find [latex](g \circ f)(x)[/latex] - [latex]g(x) = -x + 5[/latex]
[latex]f(x) = 2x - 3[/latex]
Find [latex](g \circ f)(x)[/latex] - [latex]f(t) = 4t + 3[/latex]
[latex]g(t) = -4t - 2[/latex]
Find [latex](f \circ g)(t)[/latex]