Lesson 2 — Functions: definition, domain, range
Function as a mathematical object: unique correspondence rule between two sets. Domain, codomain, range. Cartesian graph. Injective, surjective, bijective functions.
Used in: 1.º ano do EM (15 anos) · Math I japonês cap. 2 · Klasse 10 alemã
A function from A to B is a rule that assigns each element of A to exactly one element of B. A is the domain, B the codomain, and the set of values actually attained is the range.
Rigorous notation, full derivation, hypotheses
Rigorous definition
"A function is a relation in which each input value produces exactly one output value." — OpenStax College Algebra 2e, §3.1
Each element of the domain points to exactly one element of the codomain. Note that can map to the same output as — a function can send different inputs to the same destination.
Classification
Worked examples
Five examples of increasing difficulty — from the most direct (numerical evaluation and reading the domain) to real-world modeling (composition in a production pipeline). Each example cites its source: the original problem always comes from an open book.
Exercise list
42 exercises · 10 with worked solution (25%)
- Ex. 2.1Understanding
What is the difference between a relation and a function?
Show solution
A relation is any subset of . A function is a relation satisfying the additional condition: each element of the domain has exactly one image.Show step-by-step (with the why)
- Relation: a subset of with no additional restriction.
- Function: a relation in which each has exactly one assigned.
- Every function is a relation, but not every relation is a function.
- Ex. 2.2Understanding
What is the difference between the input and the output of a function?
Show solution
In , the input belongs to the domain ; the output belongs to the codomain . The output depends on the input — that is why the output is the dependent variable. - Ex. 2.3Understanding
Why does the vertical line test indicate whether a graph represents a function?
Show solution
If cuts the graph at and with , then the input has two outputs — this violates the uniqueness required in the definition of a function. - Ex. 2.4Understanding
How do you determine whether a relation is an injective (one-to-one) function?
Show solution
A function is injective when distinct inputs produce distinct outputs. Graphically: if no horizontal line cuts the graph more than once, the function is injective.Show step-by-step (with the why)
- Injective means .
- Two points with the same would lie on the same horizontal line.
- If no horizontal line cuts the graph twice, the function is injective.
- Ex. 2.5Understanding
Why does the horizontal line test indicate whether a function is injective?
Show solution
If cuts the graph at and with , then with distinct inputs — not injective. - Ex. 2.6Application
Does the relation represent a function? Identify the domain and range.
Show solution
Each first element is distinct and appears exactly once. It is a function. Domain = range = . - Ex. 2.7Application
Does the relation represent a function? Identify the domain and range.
Show solution
First elements are distinct, each with a unique image. It is a function. Domain = , range = . - Ex. 2.8ApplicationAnswer key
Does the relation represent a function? Justify.
Show solution
The pair and the pair show the same element with two distinct images — uniqueness is violated. Not a function.Show step-by-step (with the why)
- First elements: .
- appears twice with images and .
- Uniqueness violated — not a function.
- Ex. 2.9Application
Does the table with inputs and outputs respectively represent a function? Identify the domain and range.
Show solution
Each appears exactly once with exactly one . It is a function. Domain = , range = . - Ex. 2.10Application
Does the table with inputs and outputs represent a function? Justify.
Show solution
appears twice with and . Same input with two distinct outputs — not a function. - Ex. 2.11Application
For , compute and . (Ans: -11 and -1)
Show solution
. .Show step-by-step (with the why)
- Substitute : .
- Substitute : .
- Ex. 2.12ApplicationAnswer key
For , compute and . (Ans: -52 and -17)
Show solution
. . - Ex. 2.13Application
For , compute and . (Ans: 3 and 8)
Show solution
. .Show step-by-step (with the why)
- , so .
- .
- Ex. 2.14Application
For , compute and . (Ans: and )
Show solution
. . - Ex. 2.15Application
Evaluate at . (Ans: 8, 6, 4, 2, 0)
Show solution
: , , , , . - Ex. 2.16Application
Evaluate at . (Ans: 25, 1, -7, 1, 25)
Show solution
: , , , , . - Ex. 2.17Modeling
Write the function giving the area of a square with side and compute .
Show solution
Area of a square: . m. - Ex. 2.18Modeling
A rental shop charges a fixed fee of R$ 20 plus R$ 10.25 per hour. Write and compute .
Show solution
Fixed fee = 20; hourly rate = 10.25. . . - Ex. 2.19Understanding
Why can the domain of one function differ from that of another?
Show solution
Roots of negative numbers and division by zero are not defined in . That is why different functions have different domains. - Ex. 2.20ApplicationAnswer key
Find the domain of in interval notation.
Show solution
is a polynomial, defined for every real number. Domain = . - Ex. 2.21ApplicationAnswer key
Find the domain of in interval notation. (Ans: )
Show solution
. Domain = .Show step-by-step (with the why)
- Restriction: radicand .
- Solve .
- Isolate: .
- Domain = .
- Ex. 2.22ApplicationAnswer key
Find the domain of in interval notation. (Ans: )
Show solution
. Domain = . - Ex. 2.23Application
Find the domain of in interval notation.
Show solution
is a polynomial, no restriction. Domain = . - Ex. 2.24Application
Find the domain of in interval notation. (Ans: )
Show solution
. Domain = .Show step-by-step (with the why)
- Radicand : .
- Isolate: .
- Domain = .
- Ex. 2.25Application
Find the domain of in interval notation.
Show solution
. Exclude. Domain = . - Ex. 2.26ApplicationAnswer key
Find the domain of in interval notation. (Ans: )
Show solution
when . Exclude. Domain = . - Ex. 2.27Challenge
Find the domain of . (Ans: )
Show solution
Denominator: for and . Domain = .Show step-by-step (with the why)
- Denominator: .
- Factor: .
- Zeros: and .
- Domain = .
- Ex. 2.28Challenge
Find the domain of . (Ans: )
Show solution
Denominator: for and . Domain = . - Ex. 2.29Application
Find the domain of . (Ans: )
Show solution
is in the denominator: it must be strictly positive. . Domain = . - Ex. 2.30ApplicationAnswer key
Find the domain of in interval notation.
Show solution
Restriction 1: (square root). Restriction 2: . Intersection: .Show step-by-step (with the why)
- requires .
- Denominator .
- Intersection: .
- Ex. 2.31Application
Evaluate for if ; if .
Show solution
: branch 1, . : branch 2, . : . : . - Ex. 2.32Application
Evaluate for if ; if .
Show solution
Branch 1 (): . Branch 2 (): . (boundary included in branch 1), .Show step-by-step (with the why)
- : branch 1, .
- : branch 2, .
- Ex. 2.33Application
Evaluate for if ; if .
Show solution
Branch 1 (): . , , . Branch 2 (): . . - Ex. 2.34ApplicationAnswer key
Evaluate for if ; if . (Ans: -4, 6, 20, 34)
Show solution
Branch 1 (): . . Branch 2 (): . . - Ex. 2.35Application
Evaluate for if ; if . (Ans: -1, -2, 7, 5)
Show solution
Branch 1 (): . , . Branch 2 (): . , . - Ex. 2.36Application
Evaluate for if ; if ; if . (Ans: -5, 3, 3, 16)
Show solution
: branch 1, . : branch 2, . : branch 3, .Show step-by-step (with the why)
- : branch , result .
- and : constant branch .
- : branch , result .
- Ex. 2.37Modeling
The height (in feet) of a projectile after seconds is . What is the maximum height reached?
Show solution
. Vertex at s. feet.Show step-by-step (with the why)
- Parabola with : maximum at the vertex.
- s.
- feet.
- Ex. 2.38Modeling
The cost (in reais) of producing items is . What is the fixed cost and the cost of producing 100 items?
Show solution
— fixed cost. . - Ex. 2.39ChallengeAnswer key
If the range of is , what is the range of ?
Show solution
Values in become under the absolute value; values in remain unchanged. Union: .Show step-by-step (with the why)
- Range of : .
- Negative values become .
- Non-negative values remain in .
- Union: .
- Ex. 2.40Challenge
Find the domain of . (Ans: )
Show solution
Restriction 1: . Restriction 2: . Intersection: .Show step-by-step (with the why)
- Root in numerator: , so .
- Denominator: , so .
- Intersection: .
- Ex. 2.41Challenge
Find the domain of . (Ans: )
Show solution
is in the denominator: requires . Numerator has no additional restriction. Domain = . - Ex. 2.42UnderstandingAnswer key
Why does the domain of differ from the domain of ?
Show solution
is defined for every real number (e.g., ). Whereas requires .
Sources
Only books that directly informed the text and exercises. Full catalog at /livros.
- OpenStax College Algebra 2e — Jay Abramson et al. · 2022 · EN · CC-BY 4.0 · §3.1–3.7. Primary source for blocks A, B, D.
- Stitz–Zeager Precalculus — Carl Stitz, Jeff Zeager · 2013, v3 · EN · CC-BY-NC-SA · §1.4–1.6, §2.3, §5.1–5.2.
- Yoshiwara — Modeling, Functions, and Graphs — Katherine Yoshiwara · 2020 · EN · free · chs. 1–2, 4, 6. Source for block E (modeling).
- Active Calculus — Matt Boelkins · 2024, ed. 2.0 · EN · CC-BY-NC-SA · §1.1.
- Hammack — Book of Proof — Richard Hammack · 2018 · EN · free · §12 (functions and bijections). Source for exercise 2.20.