Functions - f(x)

Concepts

f(x)=x+1, can be treated as y=x+1

Composite Function

fg(x)=f(g(x))
So to get the expression for fg(x),

  1. solve for g(x),
  2. set output of g(x) as the input of f(x) then solve it.
Order matters

fg(x)gf(x)

Alt syntax

fg(x)=(fg)(x)
---------------^ circle

Example

Let there be 2 functions:

Compositing the functions:

  1. fh(x)
fg(x)=f(x1x+5)=(x1x+5)21
  1. fh(x)
fh(x)=f(x+1)=(x+1)21=x+11=x

NOTE: Since fh(x) gives x, it means that f(x) and g(x) are Inverse Function Example.

Inverse Function

Syntax: f1(x)
To solve,

  1. Write out the whole equation as f(x) but substitute f(x) with y
  2. Swap x and y
  3. Solve y

Example

Let f(x)=x21, find the expression for f1(x)

f(x)=x21y=x21

Swap x and y

x=y21y2=x+1y=x+1f1(x)=x+1

Transforming functions

You can composite the functions to shift, scale and reflect
For the examples below, let f(x)=x2+c

Summary

Vertically Horizontally Comments
Shift g(x)=f(x)+c g(x)=f(x+c)
Stretch &
Compression
g(x)=cf(x) g(x)=f(cx) If c<0, it'll flip
If 0<c<1, it'll compress

Transforming vertically vs horizontally

Transforming horizontally is opposite of what's expected

g(x)=f(x3) will shift the graph up by 3 units
For example,

  • Let x=0, y will be -3
  • Let x=3, y will be 0

This also happens with stretching.
g(x)=f(2x) will compress the graph by half

Transform types

Visualisation

Try to modify

Terminology