0:00 / 0:00

Operations with Functions

Let f(x) f(x)~and g(x) g(x)~be two functions. There are 4 basic operations of functions that can be used:
  • Function Addition: f(x)+g(x)f(x)+g(x)
  • Function Subtraction: f(x)g(x)f(x)-g(x)
  • Function Multiplication: f(x)g(x)f(x)\cdot g(x)
  • Function Division: f(x)g(x);  g(x)0\frac{f(x)}{g(x)};~~g(x)\neq 0

PAGE BREAK
Example 1
Given f(x)=2x+1f(x)=2x+1 and g(x)=x25g(x)=x^2-5, find:
a. f(x)+g(x)f(x)+g(x)
f(x)+g(x)=(2x+1)+(x25)       =x2+2x4f(x)+g(x)=(2x+1)+(x^2-5)~~~~~~~\newline{}\newline{} =x^2+2x-4

b. f(x)g(x)f(x)-g(x)

f(x)g(x)=(2x+1)(x25)          =x2+2x+6f(x)-g(x)=(2x+1)-(x^2-5)~~~~~~~~~~\newline{}\newline{} =-x^2+2x+6

c. f(x)g(x)f(x)\cdot g(x)
f(x)g(x)=(2x+1)(x25)                       =2x310x+x25=2x3+x210x5f(x)\cdot g(x)=(2x+1)(x^2-5)~~~~~~~~~~~~~~~~~~~~~~~\newline{}\newline{} =2x^3-10x+x^2-5\newline{}\newline{} =2x^3+x^2-10x-5

d. f(x)g(x)\displaystyle\frac{f(x)}{g(x)}

f(x)g(x)=2x+1x25\frac{f(x)}{g(x)}=\frac{2x+1}{x^2-5}

PAGE BREAK

Function Composition (composite function)

Additionally, we can combine functions in one more by way composing them. (putting one function "inside" another)

To compute f(g(x))f\left(g\left(x\right)\right), substitute g(x)g\left(x\right) for xxin f(x)f\left(x\right). The domain of f(g(x))f\left(g\left(x\right)\right) is {xDg:g(x)Df}\lbrace x\in D_g:g(x)\in D_f\rbrace.

Note: Another common notation for f(g(x))f\left(g\left(x\right)\right) is (fg)(x)\left(f\circ g\right)(x). \circ is the symbol for composition.
0:00 / 0:00

Example: Function Composition

Find (fg)(x)(f\circ g)(x) and its domain if

f(x)=1x1\displaystyle f(x)=\frac{1}{x-1} and g(x)=1x+2\displaystyle g(x)=\frac{1}{x+2}

fg(x)=11x+21x+20    x21x+21    x+21    x1x1,2D:x(,2)(2,1)(1,)\begin{array}{c} \displaystyle f\circ g(x)=\frac{1}{\frac{1}{x+2}-1} \\ \\ x+2\neq 0\iff x\neq -2\\ \\ \displaystyle \frac{1}{x+2}\ne 1 \iff x+2\neq1\iff x\neq -1 \\ \\x\neq -1,-2\\ \\D:x\in(-\infty,-2)\cup (-2,-1) \cup (-1,\infty) \end{array}

Example: Operations with Functions

Two functions, f(x) f(x)~in green and g(x) g(x)~in purple, and graphed below:

Find and graph the following:
  1. f(x)+g(x)f(x)+g(x)
  2. f(x)g(x)f(x)-g(x)
  3. g(x)f(x)g(x)-f(x)
  4. f(x)×g(x)f(x)\times g(x)
First, pull a table of values from the graph for f(x) and g(x) using the same x-coordinate points for both f(x) and g(x):
xf(x)xg(x)4449333422211110000111142229\begin{array} {|c|c||c|c|} \hline x&f(x)&x&g(x)\\\hline -4&4&-4&9\\ -3&3&-3&4\\ -2&2&-2&1\\ -1&1&-1&0\\ 0&0&0&1\\ 1&1&1&4\\ 2&2&2&9\\\hline \end{array}
a. f(x)+g(x):f(x)+g(x):

xf(x)g(x)f(x)+g(x)449133347221311010011114522911\begin{array} {|c|c|c|c|} \hline x&f(x)&g(x)&f(x)+g(x)\\\hline -4&4&9&13\\ -3&3&4&7\\ -2&2&1&3\\ -1&1&0&1\\ 0&0&1&1\\ 1&1&4&5\\ 2&2&9&11\\\hline \end{array}


b. f(x)g(x):f(x)-g(x):

xf(x)g(x)f(x)g(x)4495334122111101001111432297\begin{array} {|c|c|c|c|} \hline x&f(x)&g(x)&f(x)-g(x)\\\hline -4&4&9&-5\\ -3&3&4&-1\\ -2&2&1&1\\ -1&1&0&1\\ 0&0&1&-1\\ 1&1&4&-3\\ 2&2&9&-7\\\hline \end{array}



c. g(x)f(x):g(x)-f(x):

xf(x)g(x)g(x)f(x)4495334122111101001111432297\begin{array} {|c|c|c|c|} \hline x&f(x)&g(x)&g(x)-f(x)\\\hline -4&4&9&5\\ -3&3&4&1\\ -2&2&1&-1\\ -1&1&0&-1\\ 0&0&1&1\\ 1&1&4&3\\ 2&2&9&7\\\hline \end{array}


d. f(x)×g(x):f(x)\times g(x):

xf(x)g(x)f(x)×g(x)4493633412221211000010114422918\begin{array} {|c|c|c|c|} \hline x&f(x)&g(x)&f(x)\times g(x)\\\hline -4&4&9&36\\ -3&3&4&12\\ -2&2&1&2\\ -1&1&0&0\\ 0&0&1&0\\ 1&1&4&4\\ 2&2&9&18\\\hline \end{array}


The graphs of f(x)f(x) (in green) and g(x)g(x) (in purple) are provided on the same plot shown below:


Let f(x)=4x21 f(x)=4x^2-1~ and g(x)=2x1g(x)=2x-1.

Determine f(x)g(x)\frac{f(x)}{g(x)} in simplified form.

Practice: Operations with Functions

Blake runs a tutoring company for high-school students. Blake has a fixed monthly cost of $400/month plus an additional cost of $5/student (for supplies, marketing, etc...) Blake charges $60/student.

Note: Let 'x' be the number of students
Extra Practice