Skip to content
🎯⭐ INTERACTIVE LESSON

Introduction to Functions

Learn step-by-step with interactive practice!

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 xx).
  • The output is the value you get back (often called yy).

The key word is exactly one. One input can never lead to two different outputs.

A Simple Example

y=2x+3y = 2x + 3

For each value of xx, there is exactly one value of yy:

Input xxCalculationOutput yy
002(0)+32(0) + 333
112(1)+32(1) + 355
222(2)+32(2) + 377

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:

f(x)=2x+3f(x) = 2x + 3

You read this as "f of x equals 2x plus 3."

⚠️ Careful: f(x)f(x) does not mean "f times x." The ff is the name of the function, and the xx 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 f(4)f(4), it is asking: "What is the output when the input is 4?"

Finding f(4)f(4)

To find f(4)f(4), replace every xx with 44:

f(4)=2(4)+3=8+3=11f(4) = 2(4) + 3 = 8 + 3 = 11

So f(4)=11f(4) = 11. The input 44 produces the output 1111.

Quick practice in your head: What is f(0)f(0)? Replace xx with 00: f(0)=2(0)+3=3f(0) = 2(0) + 3 = 3.

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:

  1. Write the function rule.
  2. Replace every xx with the input value (use parentheses!).
  3. Simplify using order of operations.

Example 1: Evaluate f(x)=3x−5f(x) = 3x - 5 at x=4x = 4

  • Write: f(x)=3x−5f(x) = 3x - 5
  • Replace xx with 44: f(4)=3(4)−5f(4) = 3(4) - 5
  • Simplify: f(4)=12−5=7f(4) = 12 - 5 = 7

So f(4)=7f(4) = 7. ✅

Example 2: Evaluate g(x)=x2+1g(x) = x^2 + 1 at x=3x = 3

  • Write: g(x)=x2+1g(x) = x^2 + 1
  • Replace xx with 33: g(3)=(3)2+1g(3) = (3)^2 + 1
  • Simplify: g(3)=9+1=10g(3) = 9 + 1 = 10

So g(3)=10g(3) = 10. 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 f(−2)f(-2).

Your Turn 🧮

Use the function f(x)=2x+1f(x) = 2x + 1 to fill in the table. Replace xx with each input and simplify.

  1. What is f(0)f(0)? (Type a single number.)

  2. What is f(3)f(3)? (Type a single number.)

  3. What is f(5)f(5)? (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: f(x)=4x−2f(x) = 4x - 2
  • 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, hh:

C(h)=2h+3C(h) = 2h + 3

  • The input hh is the number of hours you ride.
  • The output C(h)C(h) is the total cost in dollars.
Hours hhCost C(h)=2h+3C(h) = 2h + 3Total
112(1)+32(1) + 3$5
222(2)+32(2) + 3$7
442(4)+32(4) + 3$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 C(h)=2h+3C(h) = 2h + 3, where hh is the number of hours and C(h)C(h) is the total cost in dollars.

  1. What is the total cost for a 33-hour ride? (Type the number of dollars only.)

  2. What is the total cost for a 55-hour ride? (Type the number of dollars only.)

  3. What is the cost if you ride for 00 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

IdeaWhat to Remember
FunctionEach input has exactly one output
Notationf(x)f(x) means "the output when the input is xx"
EvaluateReplace xx with the input, then simplify
Four representationsEquation, table, graph, words
Vertical Line TestIf 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 (xx) should never line up with two different outputs (yy).

Challenge Round 🎯

These questions mix everything from this lesson. Take your time and reason through each one.