Algebra 1

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:

f(x)=some rule involving xf(x) = \text{some rule involving } x

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:

f(x)=2x+1f(x) = 2x + 1

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.

-6-4-2246-6-4-2246810

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:

Input (x)2
-55
f(x)=2x+1f(x) = 2x + 1
f(2)=2(2)+1f(2) = 2 \cdot (2) + 1
-6-4-2246-10-8-6-4-224681012f(x) = 2x + 1← output
Try This

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:

You can name functions anything: f, g, h, or even silly names. And you can evaluate them at specific numbers:

f(x)=x24f(x) = x^2 - 4
Evaluate at x =3
-55
f(3)=(3)24f(3) = (3)^2 - 4
-6-4-2246-6-4-224681012x = -2x = 2f(x) = x² - 4← f(x) at slider
Connection

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:

-5-4-3-2-112345-2-112345678910

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!

-5-4-3-2-112345-5-4-3-2-112345top half: y = sqrt(9 - x^2)bottom half: y = -sqrt(9 - x^2)

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.

Try This

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.

Trace x (input)2
-55
-6-4-2246-224681012(0, -1)(-6, 3)f(x) = x² - 1← output at slider

For f(x) = x^2 - 1:

Connection

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:

f(x)=0f(x) = \sqrt0
-2-112345678910-2-112345

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

-4-3-2-11234-2-112345678Linear: f(x) = xQuadratic: g(x) = x^2Absolute value: h(x) = |x|

What do you notice?

Play With All Three at Once

Use the sliders to transform each function and see how they compare:

a (stretch)1
-33
k (shift up/down)0
-55
-6-4-2246-8-6-4-2246810Linear: ax + kQuadratic: ax^2 + kAbs value: a|x| + k
Try This

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:

Pick an x-value3
110
At x=3:\text{At } x = 3:
f(x)=x3f(x) = x \Rightarrow 3
g(x)=x232g(x) = x^2 \Rightarrow 3^2
510-55101520253035404550f(x) = x (linear)g(x) = x² (quadratic)h(x) = |x| (absolute value)x² at slider

As you increase x, the quadratic 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.

Connection

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.

f(x)=a(0)(xh)+kf(x) = a \cdot (\text0)(x - h) + k

Let’s see this with a quadratic:

a (stretch/flip)1
-33
h (shift left/right)0
-55
k (shift up/down)0
-55
f(x)=1(x0)2+0f(x) = 1(x - 0)^2 + 0
-8-6-4-22468-8-6-4-2246810(0, 0)(0, 0)parent: x^2transformed

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

Challenge: Use the sliders to create a parabola that:

  1. Opens downward with its vertex at (0, 5)
  2. Has its vertex at (3, -2) and is narrower than the parent
  3. 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:

ConceptWhat It Means
FunctionA rule where every input has exactly one output
f(x) notationf is the name, x is the input, f(x) is the output
Vertical line testIf a vertical line hits a graph twice, it’s NOT a function
DomainAll possible inputs (x-values)
RangeAll possible outputs (y-values)
LinearStraight line, constant growth rate
QuadraticParabola (U-shape), accelerating growth
Absolute valueV-shape, sharp corner at the vertex
Challenge

Final Challenge: Think about these real-world situations. Which function type (linear, quadratic, or absolute value) would best model each one?

  1. The height of a ball thrown straight up over time
  2. The cost of buying apples at $1.50 each
  3. 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!

Take the Quiz