+++ title = "Functions & graphs" description = "Model input-output rules, work with domain and range, and sketch key function graphs and transformations." template = "chapter.html" weight = 15 [extra] subject = "math" chapter_id = "functions-graphs" strand = "Number & Algebra" +++
A function is a rule that assigns exactly one output to each allowed input. In high school, functions help you connect equations, tables, and graphs.
If \(f\) is a function, then \(f(x)\) means “the output when input is \(x\).” Example:
\[ f(x)=2x+3. \]
Then \(f(1)=5\), \(f(4)=11\), and \(f(-2)=-1\).
Key idea
\[ \text{One input} \rightarrow \text{one output}. \]
The domain is the set of allowed inputs. The range is the set of outputs produced from that domain.
Example 1. \(f(x)=\frac{1}{x-2}\)
Example 2. \(g(x)=\sqrt{x+1}\)
Not every relation is a function. If one input gives two outputs, it is not a function.
On a graph, use the vertical line test: if any vertical line crosses the curve more than once, it is not a function.
To sketch a graph:
Straight line with slope \(m\) and \(y\)-intercept \(c\). A larger \(|m|\) means steeper line.
Parabola. If \(a>0\), opens upward; if \(a<0\), opens downward.
V-shaped graph with vertex at the origin before transformations.
Hyperbola with asymptotes \(x=0\) and \(y=0\). Graph has two separate branches.
Start from \(y=f(x)\):
Example. From \(y=x^2\) to \(y=(x-3)^2+2\): move right 3, up 2.
In applications, intercepts often represent starting value and break-even/zero-output points.
Some rules change in different intervals. Example:
\[ f(x)= \begin{cases} x+2, & x<1\\ 3, & x\ge 1 \end{cases} \]
Graph each rule only on its stated interval, and mark endpoints correctly (open/closed points).
The modern idea of a function developed over centuries. Early algebra connected formulas to unknown quantities, while analytic geometry (Descartes) linked equations to curves on coordinate axes.
Later, Euler and others formalized function notation such as \(f(x)\). Today, function thinking is central in mathematics, science, economics, and computing because it models how one quantity depends on another.
If a line passes through \((x_1,y_1)\) and \((x_2,y_2)\), slope is: \[ m=\frac{y_2-y_1}{x_2-x_1}. \] Then use \(y=mx+c\) and substitute one point to find \(c\).
Writing \(y=a(x-h)^2+k\) shows the turning point immediately: vertex \((h,k)\). This is why completing the square is useful for sketching and transformations.
Answer: \(f(5)=13\), \(f(-1)=-5\).
Answer: Domain \(x\ge 4\), range \(y\ge 0\).
Answer: No.
For a positive \(x\), there are two \(y\)-values (\(+\sqrt{x}\) and \(-\sqrt{x}\)), so one \(x\) maps to two outputs.
Answer: Shift left 1 and down 3.
Answer: \(y\)-intercept: \((0,3)\).
Answer: \(x\)-intercepts: solve \(x^2-4x+3=0\Rightarrow(x-1)(x-3)=0\), so \((1,0)\), \((3,0)\).
Answer: Vertical asymptote \(x=2\), horizontal asymptote \(y=1\).
Linear functions model plans with fixed charges plus per-unit costs, such as phone plans or transport fares.
Position-time or velocity-time graphs are function graphs. Intercepts, gradients, and curvature describe physical behavior.
Exponential, quadratic, and rational models are used to approximate trends, optimize designs, and make predictions from measured data.