Sommaire
Maison des Mathématiques  ·  Atelier No 3

Fonctions

From the definition to the trigonometric circle  ·  all of it settled by hand
01

The definition

A function is a machine with one rule: one input, one output. Never two.

Feed it a number, it gives back exactly one number. That "exactly one" is the whole definition. A rule that answers maybe 2, maybe −2 is not a function, it is a relation, and everything on this page would collapse without the difference.

The machine

Input  ·  x3
Rule  ·  f
Output  ·  f(x)9
Input3
every input lands on exactly one height
Notation
$f:x\mapsto f(x)$, read "f sends x to f of x". $f(3)$ is a number, $f$ is the machine.
Vertical line
slide a vertical line across the picture. It may never cross the curve twice.
02

Domain & image

What you are allowed to put in, and what can possibly come out.

The domain is the set of legal inputs. The range is the set of values actually reached. Two rules generate almost every restriction you will meet: never divide by zero, never take an even root of a negative number.

Restrict the domain

Left edge−4
Right edge4
Natural domain
Range on the slice
the lit part of the curve is what your slice allows
Fraction
$\dfrac{1}{x-2}$ needs $x\neq 2$. The graph answers with a vertical asymptote.
Even root
$\sqrt{x+3}$ needs $x\geqslant -3$. The curve simply starts there.
Logarithm
$\log_b x$ needs $x>0$, strictly.
Tangent
$\tan x$ needs $x\neq\frac{\pi}{2}+\pi k$, one hole every half turn.
03

The graph

A graph is not a drawing. It is the complete list of pairs (x, f(x)), plotted.

Every point on the curve is one answer from the machine. Drag the tracer and watch the pair move together: the horizontal distance is what you put in, the vertical distance is what came out.

The tracer

x1.0
Input1
Output1
The pair(1, 1)
Sign of fpositive
one input, one height, one point
04

The kitchen

Pick your dough, then stretch it, flip it, and move it around the plate.

Every transformation you will ever need sits in one line. Choose a base shape, then four knobs do the rest. Nothing here is memorised, it is tasted: move a slider and watch which way the curve answers.

Ingredient

Seasoning

a vertical stretch1
b horizontal squeeze1
h slide sideways0
k slide up0
Your own recipe
Second curve · g(x)
dashed: before  ·  gold: after  ·  marine: g(x)
solutions of f(x) = g(x)
area between, in view

Table de valeurs

a
stretches vertically. $|a|>1$ taller, $|a|<1$ flatter, $a<0$ flips it upside down.
b
squeezes horizontally by the factor $1/b$. Bigger $b$, narrower shape. $b<0$ mirrors left to right.
h
slides right by $h$. The sign lies: $f(x-3)$ moves right three.
k
slides up by $k$. This one is honest.
Order mattersstretch and mirror happen before the shift. Rewrite as $a\,f\big(b(x-h)\big)+k$ first, then read it left to right.

Épreuves the page checks by itself

Five little commissions. Press commencer, set the kitchen so the curve obeys — the counter advances on its own.
05

Composition

Two machines wired in series. The output of one becomes the input of the next.

$(f\circ g)(x)=f(g(x))$ means: run $g$ first, hand the result to $f$. Swap the order and you usually get a different function, which is the point of the exercise.

First machine  ·  g

Second machine  ·  f

Trace x1.0
x1
g(x)1
f(g(x))1
g(f(x))1
emerald: g  ·  gold: f∘g  ·  camellia: g∘f
Domain first$x$ must be legal for $g$, and $g(x)$ must be legal for $f$. Both gates, in that order.
06

The inverse

Run the machine backwards. Only some machines allow it.

The inverse undoes the function: $f^{-1}(f(x))=x$. It exists only when no output is ever produced twice, because otherwise running backwards would have to guess. Geometrically the inverse is the same curve reflected in the line $y=x$.

Choose a machine

Test height1.0
Invertibleyes
Hits at that height1
gold: f  ·  marine: its reflection
Restriction$x^2$ fails the test on all of $\mathbb{R}$, so we cut the domain to $x\geqslant0$ and only then call $\sqrt{x}$ its inverse.
07

Parity & period

Symmetry you can see, and repetition you can count.

Test a shape

Even f(−x)=f(x)no
Odd f(−x)=−f(x)no
Periodnone
Verdictneither
camellia dashed: the mirrored copy. If it hides the gold curve, the function is even
Even
mirror across the vertical axis. $x^2$, $\cos x$, $|x|$.
Odd
half turn around the origin. $x$, $x^3$, $\sin x$, $\tan x$.
Periodic
$f(x+T)=f(x)$ for every $x$. $\sin$ and $\cos$ repeat every $2\pi$, $\tan$ every $\pi$.
08

The catalogue

The families worth recognising on sight. Tap any card to load it into the kitchen.
09

The quadratic

One curve, three faces: standard, vertex, factored. All three live at once.

Coefficients

a1
b0
c-3
Discriminant12
Roots2
Vertex(0, −3)
Axisx = 0
gold dots: the roots  ·  camellia: the vertex
The three forms
10

The circle

Where sine and cosine actually come from. Drag the angle and watch the wave being written.

Walk around a circle of radius 1. Your height above the centre is $\sin\theta$, your distance sideways is $\cos\theta$. Unroll that walk along a horizontal axis and the wave appears. Nothing else is happening.

The angle

θ0.79
θ in degrees45°
θ in radiansπ/4
cos θ0.707
sin θ0.707
tan θ1.000
QuadrantI
the unit circle
the same walk, unrolled
Radians
the angle measured as arc length on the unit circle. A full turn is $2\pi$, a straight angle is $\pi$, a right angle is $\frac{\pi}{2}$. Degrees to radians: multiply by $\frac{\pi}{180}$.
Signs
quadrant I all positive, II only sine, III only tangent, IV only cosine.
Exact values
$\sin\frac{\pi}{6}=\frac12$, $\sin\frac{\pi}{4}=\frac{\sqrt2}{2}$, $\sin\frac{\pi}{3}=\frac{\sqrt3}{2}$, and cosine reads the same list backwards.
11

The wave

The same four knobs as the kitchen, with names the trigonometry world uses.
A amplitude1
B frequency1
C phase shift0
D midline0
Amplitude |A|1
Period 2π/B6.28
Shifted by0
Midliney = 0
dashed: the plain wave  ·  gold: yours  ·  thin line: the midline
12

The identities

An identity is true for every x. So both sides must draw the same curve. Check it yourself.

Pick one

Left side
Right side
Curves agreeyes, everywhere
Largest gap0.000
gold: left side  ·  camellia dashed: right side. One curve means the identity holds
13

Reading a graph

Eight questions that empty a curve of everything it knows.
Zeros
where it meets the horizontal axis. These are the solutions of $f(x)=0$.
y-intercept
the single value $f(0)$, if $0$ is in the domain.
Sign
above the axis $f>0$, below it $f<0$. Sign can only change at a zero or at a hole.
Growth
as $x$ moves right, does the height rise or fall? Name the intervals.
Extremes
the highest and lowest points reached, locally or over the whole domain.
Asymptotes
lines the curve hugs without touching. Vertical from zeros of a denominator, horizontal from the far behaviour.
Ends
what happens far left and far right.
Symmetry
even, odd, periodic, or none of the three.

Interrogate this curve

Zeros
f(0)
Where it is positive
Asymptotesnone
Far left and far right
gold dots: zeros  ·  dotted: asymptotes
14

The slope

A curve leans a definite way at every point — that reading is the derivative.

Pin two points on the curve and draw the line through them. Now slide them together: the secant settles into the tangent, and its slope $f'(x_0)$ is the number the whole of calculus is built on. Squeeze $\Delta$ to almost nothing and watch the two slopes agree.

Ingredient

The point

x₀ where you stand1
Δ secant width2
f(x₀)
secant slope
f′(x₀)
angle
the curve here is
tangent
gold: f  ·  emeraude: tangent  ·  dashed camellia: secant  ·  dotted: f′
Corners have no slopetry $|x|$ at $x_0=0$: the secant never settles — the left side says $-1$, the right says $+1$, so $f'(0)$ does not exist.
15

Pitfalls

The eight mistakes that cost the most marks.
Sign of the shift$f(x-3)$ moves right, not left. The bracket lies about direction, always.
Order of operationsstretching after shifting gives a different curve. Factor to $a f(b(x-h))+k$ before reading anything.
f(x+y)is not $f(x)+f(y)$. Almost never. $\sqrt{9+16}=5$, not $3+4$.
Inverse$f^{-1}$ is not $\dfrac{1}{f}$. Different object, unfortunate notation.
Domain survivessimplifying the formula does not restore inputs the original never allowed.
Asymptotea curve may cross a horizontal asymptote. It is a trend far away, not a wall.
Degrees and radians$\sin 30$ is not $0.5$ unless you said degrees. On this page everything is radians.
Period of sin(Bx)is $\dfrac{2\pi}{B}$, not $2\pi B$. Bigger $B$ means faster, so shorter.