Functions: The Math Machine
Imagine a machine where you drop a number in one end, something happens inside, and a different number pops out the other end. That’s basically what a function is in math — a rule that takes an input and gives you exactly one output.
Let’s open up the machine and see how it works.
What IS a Function?
A function is a relationship between two quantities where every input has exactly one output. You put in a number (the input), the function does its thing, and you get back a number (the output).
We write this using a special notation:
The f is the name of the function. The (x) means “the input is x.” And the right side tells you what to do with that input.
Here’s a simple one:
This function says: “Take the input, double it, and add 1.” So if you put in 3, you get f(3) = 2(3) + 1 = 7. Try different inputs in your head — every single input gives you back exactly one answer.
Every point on this line represents an input-output pair. The x-coordinate is the input, the y-coordinate is the output. The graph is just a picture of all the input-output pairs at once.
Part 1: The Input-Output Machine
Let’s see the function machine in action. Slide the input value and watch how the output changes:
Notice the pattern:
- Input x = 0 gives output f(0) = 1
- Input x = 1 gives output f(1) = 3
- Input x = -2 gives output f(-2) = -3
- Every input maps to exactly one output — that’s the key rule!
Part 2: f(x) Notation — It’s Not Multiplication!
A common mistake: f(x) does NOT mean f times x. The parentheses here mean “function of.” It’s a label, not multiplication.
Think of it like this:
- f is the name of the machine
- (x) is what you’re feeding into it
- f(x) is what comes out
You can name functions anything: f, g, h, or even silly names. And you can evaluate them at specific numbers:
Reading the graph: To find f(3), go to x = 3 on the horizontal axis, then look up (or down) to where the curve is. The y-value at that point IS f(3). The graph is basically a lookup table drawn as a picture!
Part 3: The Vertical Line Test
Here’s the big question: how do you know if a graph represents a function?
The rule is simple: every input (x-value) can only have ONE output (y-value). If you draw a vertical line anywhere on the graph and it hits the curve in more than one place, that means one input is giving you multiple outputs. That breaks the rule — so it’s NOT a function.
This IS a function:
Draw a vertical line anywhere — it only touches the parabola once. Every x-value has exactly one y-value. This passes the vertical line test.
This is NOT a function:
Think about a circle, like x^2 + y^2 = 9. At x = 0, y could be 3 or -3. That’s two outputs for one input!
See how a vertical line at x = 0 hits the circle in two places (at y = 3 and y = -3)? Two outputs for one input means this fails the vertical line test. A circle is NOT a function.
The Vertical Line Test:
- Draw an imaginary vertical line and sweep it across the graph from left to right
- If it EVER touches the graph in more than one point, it’s NOT a function
- If every vertical line touches at most one point, it IS a function
Part 4: Domain and Range — The Boundaries
Not every input works for every function, and not every output is possible. That’s where domain and range come in.
- Domain = all the x-values (inputs) that the function can accept
- Range = all the y-values (outputs) that the function can produce
For f(x) = x^2 - 1:
- Domain: All real numbers — you can square any number and subtract 1
- Range: y >= -1 — the lowest point (vertex) is at y = -1, and the parabola goes up from there
Visual trick for domain and range:
- Domain: Look at the graph from left to right. How far does it stretch horizontally? That’s your domain.
- Range: Look at the graph from bottom to top. How far does it stretch vertically? That’s your range.
For x^2 - 1, the parabola extends infinitely left and right (domain = all real numbers), but it never dips below -1 (range = y >= -1).
Now consider a function with a restricted domain:
You can’t take the square root of a negative number (at least not with real numbers), so the domain is x >= 0. And since a square root is always non-negative, the range is y >= 0.
Part 5: Comparing Function Types
Now for the fun part — let’s put different types of functions on the same graph and see how they behave. These are the three function families you’ll meet most often in Algebra 1.
Linear vs. Quadratic vs. Absolute Value
What do you notice?
- The linear function (straight line) grows at a constant rate — same steepness everywhere
- The quadratic function (parabola) starts slow near zero, then curves up faster and faster
- The absolute value function makes a V-shape — it’s like two straight lines meeting at a sharp point
Play With All Three at Once
Use the sliders to transform each function and see how they compare:
Experiment with the sliders:
- a = 1, k = 0: The “basic” versions of each function
- Increase a: All three get steeper / narrower
- Make a negative: All three flip upside down!
- Change k: All three shift up or down together
- a = 0: All three collapse to a flat horizontal line at y = k
Part 6: How Functions Grow Differently
One of the most important things about different function types is how fast they grow. Pick an x-value with the slider and compare — the quadratic pulls ahead fast:
As you increase x, the quadratic x² pulls away from the pack. The yellow line shows how high x² is at your chosen point — it grows way faster than the linear function. That’s because squaring makes numbers grow much faster.
Growth comparison at x = 10:
- Linear: f(10) = 10
- Absolute value: h(10) = 10
- Quadratic: g(10) = 100
The quadratic is already 10 times bigger! At x = 100, it would be 10,000 while the linear is still just 100. This is why understanding function types matters — they model very different real-world situations.
Part 7: Building Intuition — Transformations
Every function type has a “parent” function — the simplest version. Transformations let you stretch, flip, and shift these parent functions to create new ones.
- a stretches (|a| > 1) or compresses (|a| < 1), and flips if negative
- h shifts left/right
- k shifts up/down
Let’s see this with a quadratic:
The faded curve is the parent function x^2. The solid curve is your transformed version. The vertex dot shows you exactly where the peak or valley lands.
Challenge: Use the sliders to create a parabola that:
- Opens downward with its vertex at (0, 5)
- Has its vertex at (3, -2) and is narrower than the parent
- Is the same shape as x^2 but shifted 4 units to the left
Hint: “Opens downward” means a is negative. “Narrower” means |a| > 1. “Shifted left” means h is negative (careful — it’s x - h, so shifting left means h is negative).
Wrapping Up
Here’s what you’ve learned about functions:
| Concept | What It Means |
|---|---|
| Function | A rule where every input has exactly one output |
| f(x) notation | f is the name, x is the input, f(x) is the output |
| Vertical line test | If a vertical line hits a graph twice, it’s NOT a function |
| Domain | All possible inputs (x-values) |
| Range | All possible outputs (y-values) |
| Linear | Straight line, constant growth rate |
| Quadratic | Parabola (U-shape), accelerating growth |
| Absolute value | V-shape, sharp corner at the vertex |
Final Challenge: Think about these real-world situations. Which function type (linear, quadratic, or absolute value) would best model each one?
- The height of a ball thrown straight up over time
- The cost of buying apples at $1.50 each
- The distance you are from your house as you walk away and then walk back
Answers: (1) Quadratic — gravity creates a parabola. (2) Linear — constant price per apple. (3) Absolute value — the V-shape captures going away then coming back.
Functions are everywhere in math, science, and everyday life. Now that you know how to read them, evaluate them, and recognize their shapes, you’ve got a powerful tool in your algebra toolkit. The machine is yours — start feeding it numbers!