Introduction to Functions and Graphing
From the algebra 1 curriculum
TL;DR
Functions are like rules that take an input, do something with it, and give you exactly one output. We often use graphs to visually show how these inputs and outputs are related. Understanding functions helps you describe relationships and predict outcomes in math and the real world.
1. The Mental Model
Think of a function as a special kind of machine. You put something into the machine (the input), the machine does its specific job (the rule), and out pops one, and only one, thing (the output). This "one input, one output" rule is super important!
2. The Core Material
In algebra, functions help us describe relationships between two quantities. We usually call the input x and the output y (or f(x), read as "f of x").
What is a Function?
A function is a relationship where every input (x) has exactly one output (y).
Let's look at examples:
* Is a function: For every person, there is only one biological mother. (Person = input, Mother = output)
* Is NOT a function: For every person, there are many favorite colors. (Person = input, Colors = multiple outputs)
Representing Functions
You can represent functions in a few ways:
-
Tables:
|x(Input) |y(Output) |
| :---------- | :----------- |
| 1 | 3 |
| 2 | 5 |
| 3 | 7 |
This table showsy = 2x + 1. Eachxhas only oney. -
Equations:
y = 2x + 1
Here, if you plug inx = 1, you always gety = 3. You can't gety = 5fromx = 1with this rule. -
Graphs:
When you plot the input-output pairs (x,y) on a coordinate plane, you get a graph. A graph represents a function if it passes the Vertical Line Test.
The Vertical Line Test
This is a quick way to check if a graph represents a function. Imagine drawing vertical lines all across your graph. If any vertical line touches the graph at more than one point, then it's NOT a function. If every vertical line touches the graph at most one point, then it IS a function.
graph TD
A["Start"] --> B{"Graph is given"};
B --> C["Draw many vertical lines"];
C --> D{"Does any vertical line intersect the graph at more than one point?"};
D -- "Yes" --> E["NOT a function"];
D -- "No" --> F["IS a function"];
E --> G["End"];
F --> G;
The Coordinate Plane
This is the flat surface where we draw graphs. It has two main axes:
* The x-axis: The horizontal line, representing your inputs.
* The y-axis: The vertical line, representing your outputs.
* The origin: The point (0,0) where the axes cross.
Points on the plane are written as (x, y), where x is how far left/right from the origin you go, and y is how far up/down.
Plotting Points
To plot (2, 3):
1. Start at the origin (0,0).
2. Move 2 units right (because x is positive 2).
3. From there, move 3 units up (because y is positive 3).
4. Put a dot!
To plot (-1, 4):
1. Start at (0,0).
2. Move 1 unit left (because x is negative 1).
3. From there, move 4 units up (because y is positive 4).
4. Put a dot!
Graphing a Function from an Equation
Let's graph y = x + 2.
1. Choose some x values: Pick easy numbers like -2, -1, 0, 1, 2.
2. Calculate the corresponding y values: Plug each x into the equation.
* If x = -2, y = -2 + 2 = 0. Point: (-2, 0)
* If x = -1, y = -1 + 2 = 1. Point: (-1, 1)
* If x = 0, y = 0 + 2 = 2. Point: (0, 2)
* If x = 1, y = 1 + 2 = 3. Point: (1, 3)
* If x = 2, y = 2 + 2 = 4. Point: (2, 4)
3. Plot these points on the coordinate plane.
4. Connect the points with a smooth line or curve. Since y = x + 2 is a linear equation, it will be a straight line.
3. Worked Example
Let's determine if the relationship represented by the following points is a function, and then graph it:
Points: (-2, 3), (0, 1), (1, -1), (1, 2)
Step 1: Check if it's a function.
Look at the input values (x).
We have x = -2, x = 0, x = 1, x = 1.
Notice that x = 1 appears twice, with two different y outputs: y = -1 and y = 2.
Since one input (x = 1) leads to two different outputs (y = -1 and y = 2), this relationship is NOT a function.
Step 2: Graph the points.
1. Plot (-2, 3): Go left 2, up 3.
2. Plot (0, 1): Stay at x=0, go up 1.
3. Plot (1, -1): Go right 1, down 1.
4. Plot (1, 2): Go right 1, up 2.
When you plot these points, you'll see that the points (1, -1) and (1, 2) are directly above each other. If you drew a vertical line through x = 1, it would pass through both of these points. This visually confirms it fails the Vertical Line Test, meaning it's not a function.
4. Key Takeaways
- A function is a rule where each input (
x) gives you exactly one output (y). - The Vertical Line Test helps you quickly identify if a graph represents a function.
- The coordinate plane uses
x(horizontal) andy(vertical) axes to plot points(x, y). - To graph an equation, pick several
xvalues, calculate theiryvalues, plot the(x, y)pairs, and connect them. - Functions can be represented by tables, equations, or graphs.
Common Mistakes to Avoid:
* Confusing the x and y coordinates when plotting; (x, y) is always (horizontal, vertical).
* Forgetting that a single x input cannot have multiple y outputs in a function.
* Ignoring the direction of movement on the axes (negative x is left, negative y is down).
* Assuming all lines or curves on a graph are functions; always apply the Vertical Line Test.
5. Now Try It
Take the equation y = -x + 3.
1. Create a table of x and y values for x = -3, -1, 0, 2, 4.
2. On graph paper (or by hand drawing axes), plot these five points.
3. Connect the points.
4. Does your graph represent a function? How do you know?
Success looks like: You have a table with 5 (x, y) pairs, 5 correctly plotted points on a coordinate plane forming a straight line, and you can explain why it passes (or fails) the Vertical Line Test.
Frequently asked about Introduction to Functions and Graphing
Study this next
Get the full algebra 1 curriculum
Clone the complete plan to your dashboard for unlimited AI-generated notes, practice quizzes, and a personalised revision schedule.
Save this course free