Functions and Graphing
From the Math curriculum
TL;DR
Functions are like machines that take an input, process it, and give a single output. Graphing helps you visually understand how these inputs and outputs relate to each other. You'll learn to recognize different types of functions and plot them accurately on a coordinate plane.
1. The Mental Model
Think of a function as a rule or a recipe. You put an ingredient (input) into it, and it always produces one specific dish (output) based on that recipe. Graphing is just drawing a picture of all the possible ingredient-dish pairs.
2. The Core Material
A function is a special relationship where each input has exactly one output. We often use f(x) to denote a function, where x is the input.
Identifying Functions
Not every relationship is a function. The key is that "one input gives one output."
Consider these examples:
- y = x + 2: If x = 1, then y = 3. If x = 5, then y = 7. Each x gives only one y. This is a function.
- x = y²: If x = 4, then y could be 2 or -2. Since one x (input) gives two y's (outputs), this is not a function.
A quick way to check if a graph represents a function is the Vertical Line Test. If you can draw any vertical line that crosses the graph more than once, it's not a function.
graph TD
Input(Start with an input value X) --> ApplyRule{Apply the function's rule to X};
ApplyRule --> UniqueOutput{Does X always produce exactly ONE output Y?};
UniqueOutput -- Yes --> IsFunction(It IS a Function);
UniqueOutput -- No --> NotFunction(It is NOT a Function);
Graphing Basics
To graph a function, you're essentially plotting pairs of (input, output) on a coordinate plane. The input (x) goes on the horizontal axis, and the output (y or f(x)) goes on the vertical axis.
- Choose some
xvalues: Start with a few simple ones like -2, -1, 0, 1, 2. - Calculate the corresponding
yvalues: Plug eachxinto the function's rule to find itsy. - Plot the points: Each
(x, y)pair is a point on your graph. - Connect the points: Draw a line or curve through the points. For most functions you'll see initially, this will be a smooth line or curve.
Common Types of Functions
a) Linear Functions
These have the form f(x) = mx + b. When graphed, they form a straight line.
- m is the slope (how steep the line is and its direction).
- b is the y-intercept (where the line crosses the vertical y-axis).
Example: f(x) = 2x - 1
- If x = 0, f(x) = -1. Point: (0, -1)
- If x = 1, f(x) = 1. Point: (1, 1)
- If x = 2, f(x) = 3. Point: (2, 3)
b) Quadratic Functions
These have the form f(x) = ax² + bx + c (where a isn't zero). When graphed, they form a parabola (a U-shaped curve).
- If a > 0, the parabola opens upwards.
- If a < 0, it opens downwards.
Example: f(x) = x²
- If x = -2, f(x) = 4. Point: (-2, 4)
- If x = -1, f(x) = 1. Point: (-1, 1)
- If x = 0, f(x) = 0. Point: (0, 0)
- If x = 1, f(x) = 1. Point: (1, 1)
- If x = 2, f(x) = 4. Point: (2, 4)
c) Absolute Value Functions
These have the form f(x) = |x|. The absolute value of a number is its distance from zero, so it's always positive. Their graph forms a "V" shape.
Example: f(x) = |x|
- If x = -2, f(x) = |-2| = 2. Point: (-2, 2)
- If x = -1, f(x) = |-1| = 1. Point: (-1, 1)
- If x = 0, f(x) = |0| = 0. Point: (0, 0)
- If x = 1, f(x) = |1| = 1. Point: (1, 1)
- If x = 2, f(x) = |2| = 2. Point: (2, 2)
3. Worked Example
Let's graph the function f(x) = -x + 3.
-
Identify the type: This is a linear function (
y = mx + b) wherem = -1andb = 3. This means it's a straight line with a negative slope (going down from left to right) and crosses the y-axis aty = 3. -
Choose input values (
x): Let's pickx = -1, 0, 1, 2, 3. -
Calculate output values (
f(x)):- If
x = -1,f(-1) = -(-1) + 3 = 1 + 3 = 4. Point:(-1, 4) - If
x = 0,f(0) = -(0) + 3 = 0 + 3 = 3. Point:(0, 3) - If
x = 1,f(1) = -(1) + 3 = -1 + 3 = 2. Point:(1, 2) - If
x = 2,f(2) = -(2) + 3 = -2 + 3 = 1. Point:(2, 1) - If
x = 3,f(3) = -(3) + 3 = -3 + 3 = 0. Point:(3, 0)
- If
-
Plot the points: On a coordinate plane, mark
(-1, 4),(0, 3),(1, 2),(2, 1), and(3, 0). -
Connect the points: Draw a straight line passing through all these points. You'll see it slopes downwards and crosses the y-axis at
(0, 3), just as predicted by theb = 3value.
4. Key Takeaways
- A function gives exactly one output for every input.
- The Vertical Line Test helps identify if a graph represents a function.
- Graphing visually shows the relationship between a function's inputs and outputs.
- Linear functions
f(x) = mx + bcreate straight lines; quadratic functionsf(x) = ax² + bx + ccreate parabolas. - To graph, choose input
xvalues, calculatef(x)outputs, plot the(x, f(x))points, and connect them.
Common Mistakes to Avoid:
- Assuming every equation is a function; always check the one input, one output rule.
- Confusing x (input, horizontal) with y (output, vertical) on the graph.
- Not plotting enough points for non-linear functions, which can hide the true shape of the curve.
- Forgetting that the x and y axes should be clearly labeled and scaled.
5. Now Try It
Graph the function f(x) = x² - 2.
1. Choose at least five x values, including positive, negative, and zero.
2. Calculate the corresponding f(x) values.
3. Plot these (x, f(x)) points on a coordinate plane.
4. Connect the points to reveal the shape of the graph.
Success looks like: You'll have plotted points for inputs like -2, -1, 0, 1, 2 and connected them to form an upward-opening parabola that dips below the x-axis, with its lowest point (vertex) at (0, -2).
Frequently asked about Functions and Graphing
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