New functions from old [1.8]
Composite functions, and function transformations
Composite functions
Let's say we have a table of values of two functions of $x$:
$x$ | 0 | 1 | 2 | 3 | 4 | 5 |
---|---|---|---|---|---|---|
$f(x)$ | 10 | 6 | 3 | 4 | 7 | 11 |
$g(x)$ | 2 | 3 | 5 | 8 | 12 | 15 |
How do you evaluate: $$f(g(2)) ?$$
Work your way from the inside out!
- Start with the inside function:
$g(2)=\color{blue}{5}$
- Working your way out:
$f(\color{blue}{5}\color{black})=11$
So... $f(g(2))=11$ .another example
Given $f(x)=x^3$ and $u(t)=t-1$...
$f(u(t))=f(t-1)=(t-1)^3$ and...
$u(f(x))=u(x^3)=x^3-1$.
Transformations
- $a$ - vertical stretching / shrinking
- $b$ - horizontal stretching / shrinking
- $c$ - shift horizontally
- $d$ - shift vertically
Think about the order: $$6+4*2 \stackrel{?}{=} 4*2+6\nonumber$$ Without parentheses, always
- multiply first,
- then add.
Similarly, $$a+c*f(x)$$ always
- muliply: do the vertical stretch first,
- then add...the vertical shift.
Alternatively, tweak this a bit to $a*f(\,b(x-c)\,)+d$ in order to stretch first, then shift horizontally. Sometimes that's more convenient.
- Practicing... (.ppt) refers to today's class handout. if (! $homepage){ $stylesheet="/~paulmr/class/comments.css"; if (file_exists("/home/httpd/html/cment/comments.h")){ include "/home/httpd/html/cment/comments.h"; } } ?>