algebraunstuck.com

Unit 1 · Functions, domain & notation

Combining and composing functions

About 15 minFree, no account needed
Goal
Add, subtract, multiply, divide and compose functions, and simplify a difference quotient.

Functions combine like numbers: (f+g)(x)=f(x)+g(x)(f+g)(x) = f(x) + g(x), (fg)(x)=f(x) g(x)(fg)(x) = f(x)\,g(x), and (fg)(x)=f(x)g(x)\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)} wherever g(x)≠0g(x) \ne 0. To find (f+g)(2)(f+g)(2), evaluate each function at 2, then add the outputs.

Example 1

(fg)(2): evaluate each function at 2, then multiply

f(x)=x2−1,g(x)=x+3,(fg)(2)= ?f(x)=x^2-1,\quad g(x)=x+3,\quad (fg)(2)=\ ?
  1. Evaluate f at 2

    f(2)=22−1=3f(2)=2^2-1=\mv{f}{3}
  2. Evaluate g at 2

    g(2)=2+3=5g(2)=2+3=\mv{g}{5}
  3. Multiply the two outputs

    (fg)(2)=3⋅5=15(fg)(2)=\mv{f}{3}\cdot\mv{g}{5}=15

Check: (x² − 1)(x + 3) at x = 2: 3 · 5 = 15 ✓

Composition f(g(x))f(g(x)) feeds the output of gg into ff. Work from the inside out: put the whole expression g(x)g(x), in parentheses, wherever ff has an xx. Order matters: f(g(x))f(g(x)) and g(f(x))g(f(x)) are usually different.

Example 2

f(g(x)) means substitute—not multiply the functions

f(x)=x2+1g(x)=3x−2f(g(x))= ?\begin{aligned}&f(x)=x^2+\mv{constant}{1}\\&g(x)=\mv{input}{3x-2}\\&f(g(x))=\ ?\end{aligned}
  1. Put all of g(x) into f's input; use parentheses

    f(g(x))=(3x−2)2+1f(g(x))=\mv{square}{(\mv{input}{3x-2})^2}+\mv{constant}{1}
  2. Square a binomial: keep the middle term

    (3x−2)2=9x2−12x+4(3x-2)^2=\mv{square}{9x^2-12x+4}
  3. Add the outer +1 and combine constants

    f(g(x))=9x2−12x+5f(g(x))=\mv{square}{9x^2-12x+5}

Check: x = 1: g(1) = 1, f(1) = 2; formula gives 2 ✓

Example 3

The difference quotient: expand f(x + h) and let terms cancel

f(x+h)−f(x)h,f(x)=x2+3x\frac{f(x+h)-f(x)}{h},\quad f(x)=x^2+3x
  1. Replace x with (x + h) in f

    f(x+h)=(x+h)2+3(x+h)f(x+h)=\mv{sq}{(x+h)^2}+\mv{lin}{3(x+h)}
  2. Expand both parts

    f(x+h)=x2+2xh+h2+3x+3hf(x+h)=\mv{sq}{x^2+2xh+h^2}+\mv{lin}{3x+3h}
  3. Subtract f(x) = x² + 3x: those terms cancel

    f(x+h)−f(x)=2xh+h2+3hf(x+h)-f(x)=\mv{top}{2xh+h^2+3h}
  4. Divide every term by h

    2xh+h2+3hh=2x+h+3\frac{\mv{top}{2xh+h^2+3h}}{h}=2x+h+3

Check: x = 1, h = 1: f(2) − f(1) = 10 − 4 = 6 = 2 + 1 + 3 ✓

Practice

10 practice problems with hints, then a mastery check of 8 questions, right on this page.