Functions and Graphs
From the math curriculum
TL;DR
Functions describe how one quantity depends on another, and graphs visually represent these relationships, making complex patterns easier to understand. You'll learn to identify functions, interpret their key features like domain and range, and sketch their graphs. Understanding functions and graphs is crucial for modeling real-world situations in math and science.
1. The Mental Model
Think of a function as a rule machine: you put an "input" in, and it reliably spits out one specific "output." A graph is just a picture of all the possible input-output pairs that machine generates.
2. The Core Material
A function is a special kind of relationship where every input has exactly one output. We often use $f(x)$ notation, where $x$ is the input and $f(x)$ is the output.
Identifying Functions
Not every relationship is a function. The key is that each input maps to only one output.
- Example of a function: $y = x^2$. If you input $x=2$, $y$ is $4$. If you input $x=-2$, $y$ is also $4$. This is okay because each input ($2$ or $-2$) gives only one output.
- Example of NOT a function: $x = y^2$. If you input $x=4$, $y$ could be $2$ or $-2$. Since one input ($4$) gives two outputs ($2$ and $-2$), it's not a function.
When looking at a graph, you can use the Vertical Line Test: if any vertical line you draw crosses the graph more than once, it's not a function.
Domain and Range
These terms describe the possible inputs and outputs of a function:
- Domain: All possible input values (x-values) for which the function is defined.
- Range: All possible output values (y-values) that the function can produce.
You'll often express domain and range using interval notation or inequalities.
Common Types of Functions and Their Graphs
Understanding basic function types helps you quickly sketch and analyze graphs.
-
Linear Functions: $f(x) = mx + b$
- Graph is a straight line.
- $m$ is the slope (how steep the line is), $b$ is the y-intercept (where it crosses the y-axis).
- Domain: All real numbers $(-\infty, \infty)$.
- Range: All real numbers $(-\infty, \infty)$ (unless it's a horizontal line, $m=0$, then range is just $b$).
-
Quadratic Functions: $f(x) = ax^2 + bx + c$
- Graph is a parabola (a U-shaped curve).
- If $a > 0$, it opens upwards. If $a < 0$, it opens downwards.
- Domain: All real numbers $(-\infty, \infty)$.
- Range: Depends on the vertex (the turning point).
-
Square Root Functions: $f(x) = \sqrt{x}$
- Graph starts at $(0,0)$ and curves upwards to the right.
- You can't take the square root of a negative number in real math.
- Domain: $[0, \infty)$ (all non-negative numbers).
- Range: $[0, \infty)$ (all non-negative numbers).
-
Rational Functions: $f(x) = \frac{1}{x}$ or $\frac{P(x)}{Q(x)}$
- Often have asymptotes, which are lines the graph approaches but never touches.
- You can't divide by zero.
- Domain: All real numbers except where the denominator is zero.
Here's a diagram showing the relationship between these key concepts:
graph TD
A["Function Concept"] --> B["Input (Domain)"]
A --> C["Output (Range)"]
B --> D["Rules (e.g., y=x^2)"]
C --> D
D --> E["Graph Visualization"]
E --> F{"Vertical Line Test"}
F -- "Passes" --> G["Is a Function"]
F -- "Fails" --> H["Not a Function"]
E --> I["Identify Features (e.g., intercepts, asymptotes)"]
Sketching Graphs
To sketch a graph:
1. Identify the function type: Linear, quadratic, etc., to know its basic shape.
2. Find key points:
* Intercepts: Where the graph crosses the x-axis ($y=0$) and y-axis ($x=0$).
* Vertex: For parabolas.
3. Consider domain restrictions: Are there values $x$ can't be (like dividing by zero or square rooting negatives)?
4. Check for asymptotes: For rational functions.
5. Plot a few points: Choose some x-values, calculate $f(x)$, and plot $(x, f(x))$.
6. Connect the dots: Draw a smooth curve or line, respecting the function type and features.
3. Worked Example
Let's analyze and sketch the graph for the function $f(x) = \sqrt{x - 2}$.
-
Function Type: This is a square root function, so we expect a curve starting at some point and going off to the right.
-
Domain: We can't take the square root of a negative number. So, $x - 2$ must be greater than or equal to zero.
$x - 2 \ge 0 \implies x \ge 2$.
The domain is $[2, \infty)$. -
Range: Since $\sqrt{\text{anything non-negative}}$ is always non-negative, the output $f(x)$ will be greater than or equal to zero.
The range is $[0, \infty)$. -
Key Points (Intercepts):
- x-intercept: Set $f(x) = 0$.
$\sqrt{x - 2} = 0 \implies x - 2 = 0 \implies x = 2$.
So, the x-intercept is $(2, 0)$. This is also the starting point of our graph. - y-intercept: Set $x = 0$.
$f(0) = \sqrt{0 - 2} = \sqrt{-2}$. This isn't a real number, so there's no y-intercept. This makes sense because our domain starts at $x=2$.
- x-intercept: Set $f(x) = 0$.
-
Plotting Additional Points:
- If $x = 3$, $f(3) = \sqrt{3 - 2} = \sqrt{1} = 1$. Point: $(3, 1)$.
- If $x = 6$, $f(6) = \sqrt{6 - 2} = \sqrt{4} = 2$. Point: $(6, 2)$.
- If $x = 11$, $f(11) = \sqrt{11 - 2} = \sqrt{9} = 3$. Point: $(11, 3)$.
-
Sketching: Start at $(2,0)$, plot $(3,1)$, $(6,2)$, and $(11,3)$, then draw a smooth curve connecting them, extending to the right. The graph will only exist for $x \ge 2$.
4. Key Takeaways
- Every input in a function must have exactly one output.
- The Vertical Line Test quickly tells you if a graph represents a function.
- Domain specifies all possible inputs; range specifies all possible outputs.
- Different function types (linear, quadratic, square root) have distinct graph shapes.
- Intercepts are crucial points where the graph crosses the x or y-axis.
- Asymptotes are lines that the graph approaches but never touches.
Common Mistakes to Avoid:
- Confusing functions with relations where an input can have multiple outputs.
- Incorrectly determining domain, especially with square roots (needs to be $\ge 0$) or fractions (denominator $\ne 0$).
- Assuming the range is always all real numbers; it's often restricted.
- Mixing up x-intercepts (where $y=0$) and y-intercepts (where $x=0$).
5. Now Try It
Sketch the graph of the function $g(x) = \frac{1}{x + 1}$. Determine its domain, range, and any intercepts or asymptotes.
What to do:
1. Figure out the function type.
2. Identify any values of $x$ that would make the denominator zero to find domain restrictions and vertical asymptotes.
3. Think about what happens to $g(x)$ as $x$ gets very large (positive or negative) to find horizontal asymptotes.
4. Calculate the x-intercept (set $g(x)=0$) and y-intercept (set $x=0$).
5. Plot a few points (e.g., $x=-3, -2, 0, 1$) and sketch the curve, making sure it approaches the asymptotes without touching them.
What success looks like: Your sketch will show two distinct parts of a curve separated by a vertical asymptote at $x=-1$ and a horizontal asymptote at $y=0$. You'll correctly state the domain as $x \ne -1$ and the range as $y \ne 0$, and find only a y-intercept, no x-intercept.
Frequently asked about Functions and Graphs
Study this next
Get the full math curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Save this course free