Canadian flagMath101 · Independent Ontario learning libraryCreated and edited by Kamran
Pre-AlgebraGrades 5–8Grades 9–123 min read

Introduction to Functions

A function assigns exactly one output to each allowed input and provides a precise language for relationships, graphs, tables, and models.

Cheat sheet
A function is a relationship in which every allowed input has exactly one output.

The machine idea

Imagine a machine that accepts an input, applies one dependable rule, and produces an output. If the rule is “triple, then subtract two,” input $5$ produces $13$.

Different inputs may share an output, but one input cannot produce two different outputs within the same function. That single-output rule is the defining feature.

Function notation

$f(x)$ means “the output of function $f$ at input $x$.” It does not mean $f$ multiplied by $x$.

If $f(x)=3x-2$, then

$$ f(5)=3(5)-2=13. $$

The letter naming a function can change. $g(t)$ may describe height at time $t$; notation helps identify both the rule and input variable.

Domain and range

The domain is the set of allowed inputs. The range is the set of outputs actually produced.

Context and algebra can restrict the domain. For $f(x)=1/(x-4)$, $x=4$ is excluded because it would divide by zero. In a model of ticket sales, negative or fractional ticket counts may be excluded even if the formula accepts them algebraically.

Tables and ordered pairs

A function may be represented by a table or set of ordered pairs. The pairs

$$ \{(-1,3),(0,1),(2,5)\} $$

form a function because each first coordinate appears with only one second coordinate. Adding $(2,7)$ would break the function rule because input $2$ would have two outputs.

Graphs and the vertical-line test

A graph represents a function when every vertical line intersects it at most once. A vertical line fixes one input $x$; two intersections would mean that input has two outputs.

A circle fails the test. A nonvertical line, parabola, and many curves pass. The test concerns output uniqueness, not whether the graph is straight.

Evaluating and solving

Evaluating supplies an input and asks for the output. Solving $f(x)=10$ supplies an output and asks which inputs produce it.

Comparing representations

An equation shows an exact rule. A table highlights selected values. A graph reveals shape, intercepts, intervals, and trends. A verbal description provides context. Strong mathematical reasoning moves between these forms rather than treating them as separate topics.

Linear and nonlinear functions

A linear function has constant rate of change and graphs as a nonvertical line. A quadratic function does not have constant first differences; its graph is a parabola. Both are functions because every input has one output.

Common mistakes

Reading $f(x)$ as multiplication. It names an output.

Reversing domain and range. Domain is input; range is output.

Believing repeated outputs are forbidden. Repeated inputs with different outputs are forbidden.

Applying the horizontal-line test. The vertical-line test identifies functions; horizontal lines test one-to-one behaviour.

Quick self-check

  • Does each input have exactly one output?
  • What restrictions belong to the domain?
  • Am I evaluating an input or solving for an input?
  • Which representation best reveals the feature I need?

Explore the idea

Function transformation

Change one quantity at a time and connect what moves to Introduction to Functions.

Works offline
Interactive function transformation graphThe selected parent function transformed by vertical scale a and shifts h and k.
What the model is showing Static example: y = x². Changing h moves the reference point horizontally, k vertically, and a changes orientation and vertical scale.Continue in the full Graphing Lab →
Check your understanding

Try it yourself

Hints are part of learning. Open one whenever it makes the next step feel possible.

1 practice question
Question 1Evaluate function notation · Gentle

If f(x) = x² + 1, find f(−3).

End of lesson

Nice work making it this far.

Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.

Lesson complete

That one is yours now.

Introduction to Functions is saved to My Learning. Take the win—you earned it.

1Your Math101 collectionlesson completed
Search 464 published lessons, 123 answer guides, courses, and learning tools.
Your experience

Settings

Ontario math tutoringWork with KamranBook ↗