Skip to content
Tutorials Center
My learning

Topics

Lesson 2 of 39 · Getting Started

Functions and Graphs Review

Refresh the function skills calculus needs: notation, domain and range, common graph shapes, composition and transformations, with runnable plots.

Calculus is built on functions. Before you start, make sure the vocabulary is solid, because every later lesson assumes it. This lesson is a fast review, not a full course.

A function is a rule that gives exactly one output for each allowed input. We write f(x) and read it "f of x". If f(x) = x² + 1, then f(3) = 3² + 1 = 10.

Domain and range

The domain is the set of inputs a function accepts. The range is the set of outputs it produces.

Function Domain Range
f(x) = x² all real numbers y ≥ 0
f(x) = √x x ≥ 0 y ≥ 0
f(x) = 1/x x ≠ 0 y ≠ 0

Two things usually restrict a domain: you cannot divide by zero, and you cannot take the square root of a negative number (in real numbers).

Graphs you should recognize

You will meet these shapes constantly. Plot them and look at how they behave.

Python Six familiar graphs

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Notice which graphs rise, which fall, and which have a sharp corner (|x|). Those details will matter when we study slopes.

Composition and inverses

Applying one function after another is composition. Write (f∘g)(x) = f(g(x)). If f(x) = x² and g(x) = x + 1, then f(g(x)) = (x + 1)², but g(f(x)) = x² + 1. Order matters.

An inverse function f⁻¹ undoes f: f⁻¹(f(x)) = x. The inverse of f(x) = 2x + 3 is f⁻¹(x) = (x - 3)/2. The graph of an inverse is the reflection of the original over the line y = x.

Transformations

Starting from a graph y = f(x):

  • y = f(x) + c moves it up by c.
  • y = f(x - c) moves it right by c.
  • y = a·f(x) stretches it vertically by a factor a (flips it if a is negative).
Python Shift and stretch a parabola

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Reading a function from its graph

Use the vertical line test: if any vertical line meets a graph more than once, it is not a function. Look for intercepts (where the graph meets the axes), intervals where it increases or decreases, and its behavior far to the left and right. Calculus will give you precise tools for the "increasing or decreasing" question.

When you meet a new function, ask three questions: what is its domain, what does its graph look like, and what happens at large inputs? Those answers guard against many errors later.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the domain of f(x) = √(x - 4)?

    The expression under the root must be at least 0, so x - 4 ≥ 0, giving x ≥ 4.
  2. 2. If f(x) = x² and g(x) = x + 1, what is f(g(2))?

    g(2) = 3, then f(3) = 9.
  3. 3. The graph of y = (x - 3)² is the graph of y = x² moved

    Replacing x by x - 3 shifts the graph 3 units to the right.
  4. 4. The inverse of f(x) = 2x + 3 is

    Solve y = 2x + 3 for x: x = (y - 3)/2.

Summary

  • A function gives one output per input; know its domain and range.
  • Recognize the basic graphs: lines, parabolas, cubics, absolute value, exponentials, sine.
  • Composition applies functions in order; inverses undo them.
  • Shifts and stretches change a graph in predictable ways.

Next: Average Rate of Change