1.2 Functions
The language of functions
A function takes each input to exactly one output.
| Term | Meaning |
|---|
| Domain | The set of allowed inputs |
| Range | The set of outputs the function actually gives |
| One-one | Each output comes from only one input |
| Many-one | Some output comes from more than one input |
f(x)=x2 for all real x is many-one, because f(2)=f(−2). With the domain x≥0 it becomes one-one.
Finding the range
Sketch the graph over the given domain, or complete the square for a quadratic, and read off the y-values.
f(x)=(x−2)2+3, and the bracket is never negative, so f(x)≥3.
On this domain the function is increasing, since the turning point at x=2 is outside it. f(3)=4 and f(5)=12, so 4≤f(x)≤12.
Composite functions
fg(x) means f(g(x)): apply g first, then f.
fg(x)=2x2+3gf(x)=(2x+3)2
They are different. Order matters.
Inverse functions
Only a one-one function has an inverse. The inverse undoes the function, so f−1f(x)=x.
To find it: write y=f(x), make x the subject, then swap the letters.
y=(x−1)2+2⇒x−1=±y−2
The domain x≥1 means x−1≥0, so take the positive root. Then
f−1(x)=1+x−2,x≥2
y(x−3)=2x+1⇒xy−2x=1+3y⇒x=y−23y+1
So f−1(x)=x−23x+1, x=2.
Graphs of a function and its inverse
The graph of y=f−1(x) is the reflection of y=f(x) in the line y=x. Any point where the two meet on that line satisfies f(x)=x.
Making a function one-one
A quadratic is one-one only on one side of its turning point.
The turning point is at x=2, since f(x)=(x−2)2−3. So the least value is k=2.
| Equation | Transformation of y=f(x) |
|---|
| y=f(x)+a | Translation by (0a): up by a |
| y=f(x+a) | Translation by (−a0): left by a |
| y=af(x) | Stretch parallel to the y-axis, scale factor a |
| y=f(ax) | Stretch parallel to the x-axis, scale factor a1 |
| y=−f(x) | Reflection in the x-axis |
| y=f(−x) | Reflection in the y-axis |
Apply the changes inside the bracket first, then those outside. Outside the bracket, a multiplication comes before an addition, just as in arithmetic.
- Translation by (20), giving y=(x−2)2.
- Stretch parallel to the y-axis, scale factor 3, giving y=3(x−2)2.
- Translation by (01).
Reflecting gives y=−f(x). Translating gives y=4−f(x). Doing them in the other order gives y=−f(x)−4, which is different.