Chuyển tới nội dung

Functions & Graphs

CALCULUS · LEARN & PRACTICE

Understand functions. Explain your reasoning.

Build the foundations for limits and derivatives through precise definitions, worked examples, and independent practice. Unless stated otherwise, all variables and function values are real.

Read the theory · Try the exercises · Calculus course

Learning objectives

  • Evaluate functions and determine their domains.
  • Distinguish the domain, codomain, and range.
  • Find intercepts and describe graph transformations.
  • Form composite functions with the correct domains.
  • Support each conclusion with a mathematical argument.

Suggested study time: 20 minutes of theory and 20 minutes of practice.

Core theory

1. What is a function?

A function f: D → C assigns to each x ∈ D exactly one value f(x) ∈ C. The set D is the domain; C is the codomain. The range is f(D) = {f(x) : x ∈ D}, so f(D) ⊆ C.

For f: ℝ → ℝ given by f(x) = x², the domain and codomain are ℝ, but the range is [0, ∞). For f(x) = 2x + 1, substitution gives f(3) = 2·3 + 1 = 7.

2. Determining a domain

If a formula is given without a specified domain, we use its natural real domain: all real inputs for which the original expression is defined.

  • A polynomial is defined for every real input.
  • In a rational expression, every denominator must be nonzero.
  • A real square root requires a nonnegative radicand.
  • A logarithm requires a positive argument; its base must be positive and different from 1.

When restrictions occur together, they must hold simultaneously. Simplifying a formula does not restore inputs excluded from the original expression. For example, (x² − 1)/(x − 1) = x + 1 only for x ≠ 1.

3. Graphs, zeros, and intercepts

The graph of f is {(x, f(x)) : x ∈ D}. A graph represents a real-valued function of x if every vertical line meets it at most once. A zero is an input a ∈ D with f(a) = 0; it gives the x-intercept (a, 0). If 0 ∈ D, the y-intercept is (0, f(0)).

4. Transformations

For h, k > 0, y = f(x − h) shifts the graph right by h; y = f(x) + k shifts it up by k; y = −f(x) reflects it across the x-axis. In the first transformation, x − h must lie in the original domain.

Thus y = (x − 2)² + 1 is the graph of y = x² shifted right by 2 and up by 1. Its vertex is (2, 1).

5. Composition

The composite function is (f ∘ g)(x) = f(g(x)), with domain

Dom(f ∘ g) = {x ∈ Dom(g) : g(x) ∈ Dom(f)}.

First evaluate the inner function g; then apply f to its output. In general, f ∘ g and g ∘ f need not be equal and may have different domains.

Worked examples

Example 1 · Domain of √(x − 1)/(x − 3)
  1. The square root is real if and only if x − 1 ≥ 0, or x ≥ 1.
  2. The denominator is nonzero if and only if x ≠ 3.
  3. Both conditions hold exactly when x ∈ [1, 3) ∪ (3, ∞).

Therefore the domain is [1, 3) ∪ (3, ∞). The endpoint 1 is included; 3 is excluded.

Example 2 · Range of (x − 2)² + 1 on ℝ

For every real x, (x − 2)² ≥ 0, so f(x) ≥ 1. To prove that every y ≥ 1 occurs, choose x = 2 + √(y − 1). Then f(x) = y. Hence the range is exactly [1, ∞).

A lower bound alone is not a complete range argument: we must also show that every proposed output can be attained.

Independent practice

Write your solution before revealing a hint or answer. State domain restrictions and justify your conclusions. These exercises are for self-study; scores and submissions are not recorded.

Exercise 1 · Evaluation

Let f(x) = 2x² − 3x + 1. Find f(−1).

Show solution 1

Substitute −1 for every occurrence of x: f(−1) = 2(−1)² − 3(−1) + 1 = 2 + 3 + 1 = 6. Parentheses preserve the sign when squaring.

Exercise 2 · Rational functions

Determine the natural real domain of f(x) = 1/(x² − 4).

Hint for exercise 2

Factor the denominator and exclude its zeros.

Show solution 2

x² − 4 = (x − 2)(x + 2). The expression is defined if and only if x ≠ −2 and x ≠ 2. Thus D = ℝ ∖ {−2, 2}.

Exercise 3 · Combined restrictions

Determine the natural real domain of g(x) = √(5 − x)/(x + 1).

Hint for exercise 3

Use a logical AND: 5 − x ≥ 0 and x + 1 ≠ 0.

Show solution 3

The radicand condition gives x ≤ 5; the denominator condition gives x ≠ −1. Their intersection is (−∞, −1) ∪ (−1, 5]. At x = 5, the numerator is 0 and the denominator is 6, so 5 is allowed.

Exercise 4 · Graph transformations

Describe how to obtain y = (x + 3)² − 2 from y = x². State the vertex.

Show solution 4

Replacing x by x + 3 shifts the graph left by 3; subtracting 2 shifts it down by 2. The original vertex (0, 0) becomes (−3, −2). The squared term is zero exactly at x = −3, confirming the vertex.

Exercise 5 · Intercepts

Find all x- and y-intercepts of y = x² − 5x + 6.

Show solution 5

For x-intercepts, y = 0 ⇔ (x − 2)(x − 3) = 0 ⇔ x = 2 or x = 3. Thus the x-intercepts are (2, 0) and (3, 0). Setting x = 0 gives y = 6, so the y-intercept is (0, 6).

Exercise 6 · Composition and domain

Let f(x) = √x and g(x) = x − 2, each with its natural real domain. Find f ∘ g and g ∘ f, including their domains.

Show solution 6

Here Dom(f) = [0, ∞) and Dom(g) = ℝ.

(f ∘ g)(x) = √(x − 2). The inner output must satisfy x − 2 ≥ 0, so its domain is [2, ∞).

(g ∘ f)(x) = √x − 2. The square root requires x ≥ 0, and g accepts every real output, so its domain is [0, ∞).

Exercise 7 · Proving a range

Find the range of h(x) = 4 − (x + 1)² for x ∈ ℝ. Justify both inclusions.

Show solution 7

Since (x + 1)² ≥ 0, every output satisfies h(x) ≤ 4. Conversely, given any y ≤ 4, choose x = −1 + √(4 − y). This real input satisfies h(x) = y. Therefore the range is exactly (−∞, 4].

Review your understanding

Award yourself one point per fully justified solution. With 6–7 points, move on to limits; with 4–5, revisit the missed exercises; with 0–3, review the examples and try again.

Before continuing, can you explain why a domain condition uses AND, why a range proof needs two directions, and why composition depends on order?

Next chapter: Limits · Practice hub