Mathwords logoMathwords

Image of a Function — Definition, Formula & Examples

The image of a function is the set of all output values the function actually produces. If you feed every element of the domain into the function, the collection of results you get is the image.

Given a function f:ABf: A \to B, the image of ff is the set im(f)={f(x)xA}B\text{im}(f) = \{f(x) \mid x \in A\} \subseteq B. The image is a subset of the codomain consisting of exactly those elements in BB that are mapped to by at least one element in AA.

Key Formula

im(f)={f(x)xA}\text{im}(f) = \{ f(x) \mid x \in A \}
Where:
  • ff = The function from set A to set B
  • AA = The domain (set of all inputs)
  • xx = An element of the domain
  • im(f)\text{im}(f) = The image — the set of all output values

How It Works

To find the image, determine which output values are reachable. For a formula like f(x)=x2f(x) = x^2 with domain R\mathbb{R}, every input squares to a non-negative number, so the image is [0,)[0, \infty). For a finite set, just apply the function to each input and collect the results. The image can be smaller than the codomain — when they are equal, the function is called surjective (onto).

Worked Example

Problem: Let f: {1, 2, 3, 4} → ℤ be defined by f(x) = 2x − 1. Find the image of f.
Step 1: Apply the function to each element of the domain.
f(1)=1,f(2)=3,f(3)=5,f(4)=7f(1) = 1,\quad f(2) = 3,\quad f(3) = 5,\quad f(4) = 7
Step 2: Collect all the output values into a set.
im(f)={1,3,5,7}\text{im}(f) = \{1, 3, 5, 7\}
Answer: The image of f is {1, 3, 5, 7}.

Why It Matters

Finding the image tells you the actual range of a function, which is essential when composing functions or determining if a function is surjective. In precalculus and calculus, identifying the image helps you sketch graphs, find inverse functions, and understand transformations.

Common Mistakes

Mistake: Confusing the image (range) with the codomain.
Correction: The codomain is the set a function is declared to map into; the image is the subset of the codomain that actually gets hit. For f(x) = x² with codomain ℝ, the codomain is all of ℝ but the image is only [0, ∞).