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}
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.
Extra Practice