Skip to content
๐ŸŽฏโญ INTERACTIVE LESSON

Understanding Functions

Learn step-by-step with interactive practice!

Understanding Functions - Complete Interactive Lesson

Part 1: What Is a Function?

โš™๏ธ Understanding Functions

Part 1 of 5 โ€” What Is a Function?


Topics in This Part

Section
The Inputโ€“Output Machine
The One Rule: One Output per Input
Spotting Functions in a Table

๐Ÿ”‘ Key Concept: A function is a rule that takes each input and gives back exactly one output. Same input in โ†’ same single output out, every time.

The Inputโ€“Output Machine

Picture a function as a machine. You drop an input in the top, the machine applies its rule, and exactly one output drops out the bottom.

inputโ€…โ€ŠโŸถโ€…โ€Šruleโ€…โ€ŠโŸถโ€…โ€Šoutput\text{input} \;\longrightarrow\; \boxed{\text{rule}} \;\longrightarrow\; \text{output}

For example, a "double it" machine:

InputRuleOutput
33ร—2\times 266
55ร—2\times 21010
00ร—2\times 200

The inputs together are called the domain. The outputs together are called the range.

๐Ÿ’ก You already use functions every day. "Hours worked" โ†’ "pay earned" is a function. So is "number of tacos" โ†’ "total cost."

The One Rule That Defines a Function

Here is the single test that decides everything:

๐Ÿ”‘ Function Rule: Each input is allowed exactly one output. An input may never point to two different outputs.

It is perfectly fine for two different inputs to share the same output:

RelationOne output per input?Function?
1โ†’4,โ€…โ€Šโ€…โ€Š2โ†’4,โ€…โ€Šโ€…โ€Š3โ†’91\to 4,\;\; 2\to 4,\;\; 3\to 9Yes โ€” each input has one outputโœ… Function
1โ†’4,โ€…โ€Šโ€…โ€Š1โ†’7,โ€…โ€Šโ€…โ€Š2โ†’51\to 4,\;\; 1\to 7,\;\; 2\to 5No โ€” input 11 gives 44 and 77โŒ Not a function

The first relation is fine even though 11 and 22 both output 44. The problem in the second is that the same input 11 produces two different outputs.

โš ๏ธ Watch the direction. Repeated outputs are allowed. Repeated inputs with different outputs are NOT.

Concept Check ๐ŸŽฏ

Function or Not? ๐Ÿ”ฝ

For each table of (x,y)(x, y) pairs, decide whether yy is a function of xx.

Run the Machine ๐Ÿงฎ

A "double it" function uses the rule y=2xy = 2x โ€” it sends each input to twice itself.

1) Input 44 gives output โ€‰?\,? 2) Input 77 gives output โ€‰?\,? 3) Which input gives the output 2020? Input =โ€‰?= \,?

You've Got the Definition

You can now state the one rule that makes a relation a function: one output per input. You can test a table by scanning the input column for a repeat that points to different outputs.

In Part 2 we'll see the four ways the same function can be written โ€” table, mapping diagram, graph, and equation โ€” and meet the famous vertical line test.

Part 2: Four Ways to Show a Function

โš™๏ธ Understanding Functions

Part 2 of 5 โ€” Four Ways to Show a Function


๐Ÿ”‘ The Idea: The same function can be shown as a table, a mapping diagram, a graph, or an equation. They all carry the same input โ†’ output information.

The Four Representations

Here is the rule "add 1" shown four ways:

1) Table

xx (input)yy (output)
0011
1122
2233

2) Mapping diagram โ€” arrows from each input to its output:

0โ†’1,1โ†’2,2โ†’30 \to 1, \quad 1 \to 2, \quad 2 \to 3

3) Equation (rule):

y=x+1y = x + 1

4) Graph โ€” the points (0,1)(0,1), (1,2)(1,2), (2,3)(2,3) plotted on a coordinate grid.

๐Ÿ’ก Whenever you switch representations, the pairs never change. The point (2,3)(2,3), the table row 2โ†’32 \to 3, and "plug x=2x=2 into y=x+1y=x+1" all say the same thing.

Concept Check ๐ŸŽฏ

The Vertical Line Test

On a graph, every input xx corresponds to a vertical line. If that vertical line hits the graph more than once, then that single input has two outputs โ€” so the graph is not a function.

๐Ÿ”‘ Vertical Line Test (VLT): If any vertical line crosses the graph more than once, the graph is not a function. If every vertical line crosses at most once, it is a function.

GraphVertical line hits itโ€ฆFunction?
A straight line like y=x+1y = x+1onceโœ… Yes
A parabola like y=x2y = x^2onceโœ… Yes
A full circletwice (top & bottom)โŒ No
A sideways "U" (opens right)twiceโŒ No

โš ๏ธ A parabola passes the VLT even though it has a repeated output (e.g. y=4y=4 at x=2x=2 and x=โˆ’2x=-2). Remember: repeated outputs are allowed.

Apply the Vertical Line Test ๐Ÿ”ฝ

Decide whether each graph passes the vertical line test (and is therefore a function).

Translate Between Representations ๐Ÿงฎ

The function is given by the rule y=3xy = 3x.

1) Complete the table: when x=2x = 2, y=โ€‰?y = \,? 2) When x=5x = 5, y=โ€‰?y = \,? 3) The graph passes through the point (4,โ€‰?)(4, \,?) โ€” enter the missing yy.

Part 3: Function Rules & Evaluating

โš™๏ธ Understanding Functions

Part 3 of 5 โ€” Function Rules & Evaluating


๐Ÿ”‘ Why it matters: A function's rule (its equation) lets you find the output for any input โ€” even inputs not in the table โ€” by substituting and simplifying.

Evaluating a Function Rule

To evaluate a function, replace xx with the input value and simplify.

Example: y=2x+5y = 2x + 5

Input xxSubstituteOutput yy
002(0)+52(0)+555
332(3)+52(3)+51111
โˆ’1-12(โˆ’1)+52(-1)+533

Work the order of operations carefully โ€” multiply before you add.

Example: y=x2โˆ’4y = x^2 - 4 at x=3x = 3

y=(3)2โˆ’4=9โˆ’4=5y = (3)^2 - 4 = 9 - 4 = 5

โš ๏ธ Square the input before subtracting. 32=93^2 = 9, not 3โ‹…2=63 \cdot 2 = 6.

Concept Check ๐ŸŽฏ

Evaluate the Rule ๐Ÿงฎ

Use the rule y=3xโˆ’4y = 3x - 4.

1) x=0โ€…โ€Šโ‡’โ€…โ€Šy=โ€‰?x = 0 \;\Rightarrow\; y = \,? 2) x=5โ€…โ€Šโ‡’โ€…โ€Šy=โ€‰?x = 5 \;\Rightarrow\; y = \,? 3) x=โˆ’2โ€…โ€Šโ‡’โ€…โ€Šy=โ€‰?x = -2 \;\Rightarrow\; y = \,?

Reading a Rule From Words

Many word problems hide a function. Translate the words into a rule.

Example: Taco truck

Tacos cost $2 each plus a $3 flat delivery fee. The total cost CC for tt tacos is:

C=2t+3C = 2t + 3

  • The $2 per taco is the number multiplied by the input (the rate).
  • The $3 fee is added once no matter what (the starting value).

So 55 tacos cost C=2(5)+3=13C = 2(5) + 3 = 13, giving $13.

๐Ÿ’ก "Per," "each," and "every" signal the number you multiply by. "Flat fee," "starting," and "one-time" signal the number you add.

Build the Rule ๐Ÿ”ฝ

A gym charges a $20 sign-up fee plus $15 each month. Let mm be the number of months and CC the total cost.

Part 4: Rate of Change, Initial Value & Linear vs. Nonlinear

โš™๏ธ Understanding Functions

Part 4 of 5 โ€” Rate of Change, Initial Value & Linear vs. Nonlinear


๐Ÿ”‘ Big Idea: A linear function changes by the same amount every time the input goes up by 11. That steady change is the rate of change (slope), and the output at x=0x=0 is the initial value.

Rate of Change & Initial Value

For a linear function written y=mx+by = mx + b:

  • mm is the rate of change (slope) โ€” how much yy changes each time xx increases by 11.
  • bb is the initial value โ€” the output when x=0x = 0 (the yy-intercept).

rateย ofย change=changeย inย ychangeย inย x=ฮ”yฮ”x\text{rate of change} = \frac{\text{change in } y}{\text{change in } x} = \frac{\Delta y}{\Delta x}

Example: From a table

xx00112233
yy447710101313

Each time xx goes up by 11, yy goes up by 33, so the rate of change is 33. The initial value (at x=0x=0) is 44. The rule is y=3x+4y = 3x + 4.

๐Ÿ’ก To find the rate of change between two points (x1,y1)(x_1,y_1) and (x2,y2)(x_2,y_2), use y2โˆ’y1x2โˆ’x1\dfrac{y_2 - y_1}{x_2 - x_1}.

Find Rate of Change & Initial Value ๐Ÿงฎ

A linear function passes through these points:

xx00112233
yy1010886644

1) Rate of change (change in yy per +1+1 in xx) =โ€‰?= \,? 2) Initial value (output at x=0x = 0) =โ€‰?= \,? 3) Using y=mx+by = mx + b, what is the output at x=5x = 5? โ€‰?\,?

Linear vs. Nonlinear

A function is linear if it has a constant rate of change โ€” its graph is a straight line and its equation can be written y=mx+by = mx + b (no x2x^2, no xx in a denominator, no xx under a root).

FunctionRate of changeLinear?
y=2x+1y = 2x + 1constant 22โœ… Linear
y=โˆ’x+7y = -x + 7constant โˆ’1-1โœ… Linear
y=x2y = x^2changes (1, 3, 5, โ€ฆ)โŒ Nonlinear
y=6xy = \dfrac{6}{x}changesโŒ Nonlinear

Check y=x2y = x^2 with a table

xx00112233
yy00114499

The jumps are +1,+3,+5+1, +3, +5 โ€” not constant โ€” so y=x2y = x^2 is nonlinear.

โš ๏ธ A table is linear only if the output changes by the same amount for each equal step in xx.

Concept Check ๐ŸŽฏ

Comparing Two Functions

You can compare functions even when they're written differently โ€” pull the rate of change and initial value from each.

Example

Function A (equation): y=4x+1y = 4x + 1. Rate of change =4= 4, initial value =1= 1.

Function B (table):

xx001122
yy335577

Function B has rate of change 22 and initial value 33.

So A grows faster (rate 4>24 > 2), but B starts higher (initial value 3>13 > 1).

๐Ÿ’ก To compare, get every function into the same language: how fast it grows (rate of change) and where it starts (initial value).

Compare the Functions ๐Ÿ”ฝ

Function A: y=2x+6y = 2x + 6. Function B: a line through (0,2)(0, 2) and (1,7)(1, 7).

Part 5: Mixed Practice & Mastery Check

โš™๏ธ Understanding Functions

Part 5 of 5 โ€” Mixed Practice & Mastery Check


You can now (1) define a function and test relations, (2) move between table, mapping, graph, and equation, (3) evaluate and build rules, and (4) find rate of change, initial value, and tell linear from nonlinear. Let's put it together.

Quick Reference

IdeaWhat to remember
Functioneach input โ†’ exactly one output
Test a tablescan inputs; same input + different outputs = not a function
Vertical line testa vertical line hitting the graph twice = not a function
Evaluate a rulesubstitute the input for xx, then simplify
Linear functionconstant rate of change; form y=mx+by = mx + b; straight line
Rate of changeฮ”yฮ”x\dfrac{\Delta y}{\Delta x} โ€” change in yy per +1+1 in xx
Initial valueoutput when x=0x = 0 (the yy-intercept, bb)

โš ๏ธ Repeated outputs are allowed. Repeated inputs with different outputs are not.

Mixed Practice ๐ŸŽฏ

Mixed Drill ๐Ÿงฎ

A line passes through (0,5)(0, 5) and (2,11)(2, 11).

1) Rate of change =11โˆ’52โˆ’0=โ€‰?= \dfrac{11 - 5}{2 - 0} = \,? 2) Initial value (output at x=0x=0) =โ€‰?= \,? 3) Write the output at x=4x = 4 using y=mx+by = mx + b: โ€‰?\,?

Exit Quiz โœ…

Answer all three to finish the lesson.