Introduction to Functions - Complete Interactive Lesson
Part 1: ⚙️ Introduction to Functions
⚙️ Introduction to Functions
Part 1 of 5 — Concept Introduction
Think about a vending machine. You press a button (the input), and exactly one snack drops out (the output). You would be pretty upset if you pressed B4 and sometimes got chips and sometimes got a candy bar! A good machine gives you one predictable result for each button.
That is the whole idea behind a function.
What Is a Function?
A function is a relationship where each input has exactly one output.
- The input is the value you put in (often called ).
- The output is the value you get back (often called ).
The key word is exactly one. One input can never lead to two different outputs.
A Simple Example
For each value of , there is exactly one value of :
| Input | Calculation | Output |
|---|---|---|
Notice that no input ever produces two different outputs. That makes this a function. ✅
Function Notation
Mathematicians have a special, tidy way to write functions called function notation:
You read this as "f of x equals 2x plus 3."
⚠️ Careful: does not mean "f times x." The is the name of the function, and the inside the parentheses is the input you are plugging in.
Function notation is handy because it tells you the input right there in the parentheses. When you see , it is asking: "What is the output when the input is 4?"
Finding
To find , replace every with :
So . The input produces the output .
Quick practice in your head: What is ? Replace with : .
Concept Check 🎯
Remember the defining rule: each input must give exactly one output.
Part 2: 📝 Worked Examples
📝 Worked Examples
Part 2 of 5 — Evaluating Functions Step by Step
When you evaluate a function, you find the output for a specific input. Follow the same steps every time:
- Write the function rule.
- Replace every with the input value (use parentheses!).
- Simplify using order of operations.
Example 1: Evaluate at
- Write:
- Replace with :
- Simplify:
So . ✅
Example 2: Evaluate at
- Write:
- Replace with :
- Simplify:
So . The parentheses keep you from making sign and order mistakes.
💡 Tip: Always put the input inside parentheses when you substitute. This matters a lot when the input is negative, like .
Your Turn 🧮
Use the function to fill in the table. Replace with each input and simplify.
-
What is ? (Type a single number.)
-
What is ? (Type a single number.)
-
What is ? (Type a single number.)
Part 3: 🧭 Guided Practice
🧭 Guided Practice
Part 3 of 5 — Guided Practice
There are four ways to represent the same function: an equation, a table, a graph, and words. Let's practice spotting and using them.
Identify the Representation 🔎
Each item below is one of the four ways to represent a function. Choose the correct name for each.
- Item A:
- Item B: "The output is three times the input."
Part 4: 🌎 Functions in the Real World
🌎 Functions in the Real World
Part 4 of 5 — Application & Word Problems
Functions are everywhere once you start looking. Anytime one quantity depends on another in a predictable way, you have a function.
Renting a Bike 🚲
A bike-share company charges a flat $3 fee plus $2 for every hour you ride. We can write the total cost as a function of the number of hours, :
- The input is the number of hours you ride.
- The output is the total cost in dollars.
| Hours | Cost | Total |
|---|---|---|
| $5 | ||
| $7 | ||
| $11 |
This is a function because each number of hours produces exactly one total cost. You will never be charged two different prices for the same ride length.
Apply It 🧮
Use the bike-rental function , where is the number of hours and is the total cost in dollars.
-
What is the total cost for a -hour ride? (Type the number of dollars only.)
-
What is the total cost for a -hour ride? (Type the number of dollars only.)
-
What is the cost if you ride for hours (just the flat fee)? (Type the number of dollars only.)
Application Check 🎯
Think about what the input and output mean in the real-world story.
Part 5: Review & Challenge
🏆 Review & Challenge
Part 5 of 5 — Putting It All Together
You have learned what a function is, how to read function notation, the four ways to represent functions, and how to test whether something is a function. Here is the big picture:
Function Cheat Sheet
| Idea | What to Remember |
|---|---|
| Function | Each input has exactly one output |
| Notation | means "the output when the input is " |
| Evaluate | Replace with the input, then simplify |
| Four representations | Equation, table, graph, words |
| Vertical Line Test | If a vertical line hits a graph more than once, it is not a function |
The Vertical Line Test 📏
To check a graph, imagine sliding a vertical line across it:
- Hits the graph at one point everywhere → it is a function. ✅
- Hits the graph at two or more points anywhere → it is not a function. ❌
This works because a single input () should never line up with two different outputs ().
Challenge Round 🎯
These questions mix everything from this lesson. Take your time and reason through each one.