Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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


Example 1

Given f(x)=2x+1f(x)=2x+1 and g(x)=x2−5g(x)=x^2-5, find:

a. f(x)+g(x)f(x)+g(x)

f(x)+g(x)=(2x+1)+(x2−5)       =x2+2x−4f(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)−(x2−5)          =−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)(x2−5)                       =2x3−10x+x2−5=2x3+x2−10x−5f(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+1x2−5\frac{f(x)}{g(x)}=\frac{2x+1}{x^2-5}


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 {x∈Dg: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 (f∘g)(x)\left(f\circ g\right)(x). ∘\circ is the symbol for composition.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Example: Function Composition

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


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


f∘g(x)=11x+2−1x+2≠0  ⟺  x≠−21x+2≠1  ⟺  x+2≠1  ⟺  x≠−1x≠−1,−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:


Illustration for practice question: Operations with Functions


Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let f(x)=4x2−1 f(x)=4x^2-1~ and g(x)=2x−1g(x)=2x-1.


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

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Extra Practice