MathQuizily ranked #372 in TIME and Statista's World's Top EdTech Companies 2026.Read the announcement

What Is the Functions?(With Examples)

A function is a special relationship between inputs and outputs where each input has exactly one output. Think of it as a machine: you put in a number (input), and the function gives you back exactly one result (output). Functions are written as f(x).

Grades 8-9 (Pre-Algebra/Algebra)Key Stage 3-4Årskurs 8-9Klasse 8-9

📖Definition

A function is a special relationship between inputs and outputs where each input has exactly one output. Think of it as a machine: you put in a number (input), and the function gives you back exactly one result (output). Functions are written as f(x).

📐Formula

f(x) = expression in terms of x

In f(x) = 2x + 3: f is the function name, x is the input, and 2x + 3 tells you how to calculate the output. f(4) means "substitute 4 for x": f(4) = 2(4) + 3 = 11.

📝Step-by-Step Guide

1

Understanding Function Notation

f(x) is read "f of x." The letter in parentheses is the input variable.

f(x) = x² means "square the input"
2

Evaluating Functions

To find f(a), replace every x in the function rule with a.

If f(x) = 3x - 1, then f(5) = 3(5) - 1 = 14
3

Identify Domain and Range

Domain is all possible inputs; range is all possible outputs.

4

Use the Vertical Line Test

A graph represents a function if any vertical line crosses it at most once.

⚠️Common Mistakes to Avoid

  • Thinking f(x) means f times x
  • Confusing function notation with multiplication
  • Forgetting that each input can only have one output
  • Not substituting correctly when evaluating
  • Confusing domain (inputs) with range (outputs)

✏️Practice Problems

Easy

If f(x) = x + 7, find f(3)

Answer: 10

Medium

If g(x) = x² - 4x, find g(-2)

Answer: 12

Hard

If f(x) = 2x + 1, find x when f(x) = 15

Answer: x = 7

Printable Functions practice

Need more than a few examples? Create a printable functions test with a worked answer key, balanced difficulty, and a teacher-reviewed PDF.

Ready to Practice Functions?

Generate a personalized practice test with MathQuizily. Get instant PDF downloads with answer keys.

Curriculum Alignment

CommonCore (8.F.A.1)KS3KMK

Classroom assessment context

Build the assessment, not just the questions

MathQuizily helps teachers move from a topic or standard to a printable math test with answer keys, balanced difficulty, and classroom-ready PDF output.

A useful assessment should make the learning target clear, cover the intended skills, and give the teacher enough information to review the result before students see it. The workflow supports short quizzes, chapter checks, diagnostic tests, homework packets, make-up assessments, and equivalent retake versions.

Choose a grade, topic, curriculum context, and difficulty level. The generated PDF includes a student version and a separate worked answer key, so teachers can print, review, and grade without reformatting questions or building solutions from scratch. No student account is required to create or print a test.