Math ClubMath Club
v1 · padrão canônico

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ã

f:AB,xf(x)f : A \to B,\quad x \mapsto f(x)

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.

Choose your door

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

A (domain)B (codomain)x_1f(x_1)x_2f(x_2)x_3

Each element of the domain points to exactly one element of the codomain. Note that x3x_3 can map to the same output as f(x1)f(x_1) — 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%)

Application 26Understanding 7Modeling 4Challenge 5
  1. Ex. 2.1Understanding

    What is the difference between a relation and a function?

    Select the correct option
    Select an option first
    Show solution
    A relation is any subset of A×BA \times B. 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)
    1. Relation: a subset of A×BA \times B with no additional restriction.
    2. Function: a relation in which each xAx \in A has exactly one yBy \in B assigned.
    3. Every function is a relation, but not every relation is a function.
  2. Ex. 2.2Understanding

    What is the difference between the input and the output of a function?

    Select the correct option
    Select an option first
    Show solution
    In f:ABf: A \to B, the input xx belongs to the domain AA; the output f(x)f(x) belongs to the codomain BB. The output depends on the input — that is why the output is the dependent variable.
  3. Ex. 2.3Understanding

    Why does the vertical line test indicate whether a graph represents a function?

    Select the correct option
    Select an option first
    Show solution
    If x=cx = c cuts the graph at (c,y1)(c, y_1) and (c,y2)(c, y_2) with y1y2y_1 \neq y_2, then the input cc has two outputs — this violates the uniqueness required in the definition of a function.
  4. Ex. 2.4Understanding

    How do you determine whether a relation is an injective (one-to-one) function?

    Select the correct option
    Select an option first
    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)
    1. Injective means x1x2f(x1)f(x2)x_1 \neq x_2 \Rightarrow f(x_1) \neq f(x_2).
    2. Two points with the same yy would lie on the same horizontal line.
    3. If no horizontal line cuts the graph twice, the function is injective.
  5. Ex. 2.5Understanding

    Why does the horizontal line test indicate whether a function is injective?

    Select the correct option
    Select an option first
    Show solution
    If y=ky = k cuts the graph at (x1,k)(x_1, k) and (x2,k)(x_2, k) with x1x2x_1 \neq x_2, then f(x1)=f(x2)f(x_1) = f(x_2) with distinct inputs — not injective.
  6. Ex. 2.6Application

    Does the relation {(1,1),(2,2),(3,3)}\{(-1,-1),(-2,-2),(-3,-3)\} represent a function? Identify the domain and range.

    Select the correct option
    Select an option first
    Show solution
    Each first element 1,2,3-1, -2, -3 is distinct and appears exactly once. It is a function. Domain = range = {1,2,3}\{-1,-2,-3\}.
  7. Ex. 2.7Application

    Does the relation {(3,4),(4,5),(5,6)}\{(3,4),(4,5),(5,6)\} represent a function? Identify the domain and range.

    Select the correct option
    Select an option first
    Show solution
    First elements 3,4,53, 4, 5 are distinct, each with a unique image. It is a function. Domain = {3,4,5}\{3,4,5\}, range = {4,5,6}\{4,5,6\}.
  8. Ex. 2.8ApplicationAnswer key

    Does the relation {(2,5),(7,11),(15,8),(7,9)}\{(2,5),(7,11),(15,8),(7,9)\} represent a function? Justify.

    Select the correct option
    Select an option first
    Show solution
    The pair (7,11)(7,11) and the pair (7,9)(7,9) show the same element 77 with two distinct images — uniqueness is violated. Not a function.
    Show step-by-step (with the why)
    1. First elements: 2,7,15,72, 7, 15, 7.
    2. 77 appears twice with images 1111 and 99.
    3. Uniqueness violated — not a function.
  9. Ex. 2.9Application

    Does the table with inputs x=5,10,15x = 5, 10, 15 and outputs y=3,8,14y = 3, 8, 14 respectively represent a function? Identify the domain and range.

    Select the correct option
    Select an option first
    Show solution
    Each xx appears exactly once with exactly one yy. It is a function. Domain = {5,10,15}\{5,10,15\}, range = {3,8,14}\{3,8,14\}.
  10. Ex. 2.10Application

    Does the table with inputs x=5,10,10x = 5, 10, 10 and outputs y=3,8,14y = 3, 8, 14 represent a function? Justify.

    Select the correct option
    Select an option first
    Show solution
    x=10x = 10 appears twice with y=8y = 8 and y=14y = 14. Same input with two distinct outputs — not a function.
  11. Ex. 2.11Application

    For f(x)=2x5f(x) = 2x - 5, compute f(3)f(-3) and f(2)f(2). (Ans: -11 and -1)

    Select the correct option
    Select an option first
    Show solution
    f(3)=2(3)5=11f(-3) = 2(-3)-5 = -11. f(2)=2(2)5=1f(2) = 2(2)-5 = -1.
    Show step-by-step (with the why)
    1. Substitute x=3x = -3: 2(3)5=65=112(-3)-5 = -6-5 = -11.
    2. Substitute x=2x = 2: 2(2)5=45=12(2)-5 = 4-5 = -1.
  12. Ex. 2.12ApplicationAnswer key

    For f(x)=5x2+2x1f(x) = -5x^2 + 2x - 1, compute f(3)f(-3) and f(2)f(2). (Ans: -52 and -17)

    Select the correct option
    Select an option first
    Show solution
    f(3)=5(9)+2(3)1=4561=52f(-3) = -5(9)+2(-3)-1 = -45-6-1 = -52. f(2)=5(4)+41=17f(2) = -5(4)+4-1 = -17.
  13. Ex. 2.13Application

    For g(x)=x2+2xg(x) = x^2 + 2x, compute g(3)g(-3) and g(2)g(2). (Ans: 3 and 8)

    Select the correct option
    Select an option first
    Show solution
    g(3)=(3)2+2(3)=96=3g(-3) = (-3)^2 + 2(-3) = 9-6 = 3. g(2)=4+4=8g(2) = 4+4 = 8.
    Show step-by-step (with the why)
    1. g(3):(3)2=9g(-3): (-3)^2 = 9, so 9+2(3)=96=39+2(-3) = 9-6 = 3.
    2. g(2):4+4=8g(2): 4+4 = 8.
  14. Ex. 2.14Application

    For k(t)=2t1k(t) = \sqrt{2t - 1}, compute k(2)k(2) and k(6)k(6). (Ans: 3\sqrt{3} and 11\sqrt{11})

    Select the correct option
    Select an option first
    Show solution
    k(2)=2(2)1=3k(2) = \sqrt{2(2)-1} = \sqrt{3}. k(6)=121=11k(6) = \sqrt{12-1} = \sqrt{11}.
  15. Ex. 2.15Application

    Evaluate f(x)=42xf(x) = 4 - 2x at x=2,1,0,1,2x = -2, -1, 0, 1, 2. (Ans: 8, 6, 4, 2, 0)

    Select the correct option
    Select an option first
    Show solution
    f(x)=42xf(x) = 4-2x: f(2)=8f(-2)=8, f(1)=6f(-1)=6, f(0)=4f(0)=4, f(1)=2f(1)=2, f(2)=0f(2)=0.
  16. Ex. 2.16Application

    Evaluate f(x)=8x27f(x) = 8x^2 - 7 at x=2,1,0,1,2x = -2, -1, 0, 1, 2. (Ans: 25, 1, -7, 1, 25)

    Select the correct option
    Select an option first
    Show solution
    f(x)=8x27f(x) = 8x^2-7: f(2)=327=25f(-2)=32-7=25, f(1)=87=1f(-1)=8-7=1, f(0)=7f(0)=-7, f(1)=1f(1)=1, f(2)=25f(2)=25.
  17. Ex. 2.17Modeling

    Write the function A(s)A(s) giving the area of a square with side ss and compute A(6,5)A(6{,}5).

    Select the correct option
    Select an option first
    Show solution
    Area of a square: A(s)=s2A(s) = s^2. A(6,5)=6,52=42,25A(6{,}5) = 6{,}5^2 = 42{,}25 m2^2.
  18. Ex. 2.18Modeling

    A rental shop charges a fixed fee of R$ 20 plus R$ 10.25 per hour. Write C(t)C(t) and compute C(5)C(5).

    Select the correct option
    Select an option first
    Show solution
    Fixed fee = 20; hourly rate = 10.25. C(t)=20+10,25tC(t) = 20 + 10{,}25t. C(5)=20+51,25=71,25C(5) = 20 + 51{,}25 = 71{,}25.
  19. Ex. 2.19Understanding

    Why can the domain of one function differ from that of another?

    Select the correct option
    Select an option first
    Show solution
    Roots of negative numbers and division by zero are not defined in R\mathbb{R}. That is why different functions have different domains.
  20. Ex. 2.20ApplicationAnswer key

    Find the domain of f(x)=52x2f(x) = 5 - 2x^2 in interval notation.

    Select the correct option
    Select an option first
    Show solution
    f(x)=52x2f(x) = 5 - 2x^2 is a polynomial, defined for every real number. Domain = R\mathbb{R}.
  21. Ex. 2.21ApplicationAnswer key

    Find the domain of f(x)=32xf(x) = \sqrt{3 - 2x} in interval notation. (Ans: (,32](-\infty, \tfrac{3}{2}])

    Select the correct option
    Select an option first
    Show solution
    32x0x323 - 2x \geq 0 \Rightarrow x \leq \tfrac{3}{2}. Domain = (,32]\left(-\infty, \tfrac{3}{2}\right].
    Show step-by-step (with the why)
    1. Restriction: radicand 0\geq 0.
    2. Solve 32x03-2x \geq 0.
    3. Isolate: x32x \leq \tfrac{3}{2}.
    4. Domain = (,32]\left(-\infty, \tfrac{3}{2}\right].
  22. Ex. 2.22ApplicationAnswer key

    Find the domain of f(x)=43xf(x) = \sqrt{4 - 3x} in interval notation. (Ans: (,43](-\infty, \tfrac{4}{3}])

    Select the correct option
    Select an option first
    Show solution
    43x0x434 - 3x \geq 0 \Rightarrow x \leq \tfrac{4}{3}. Domain = (,43]\left(-\infty, \tfrac{4}{3}\right].
  23. Ex. 2.23Application

    Find the domain of f(x)=x2+4f(x) = x^2 + 4 in interval notation.

    Select the correct option
    Select an option first
    Show solution
    f(x)=x2+4f(x) = x^2 + 4 is a polynomial, no restriction. Domain = R\mathbb{R}.
  24. Ex. 2.24Application

    Find the domain of f(x)=9x6f(x) = \sqrt{9x - 6} in interval notation. (Ans: [23,+)[\tfrac{2}{3}, +\infty))

    Select the correct option
    Select an option first
    Show solution
    9x60x69=239x - 6 \geq 0 \Rightarrow x \geq \tfrac{6}{9} = \tfrac{2}{3}. Domain = [23,+)\left[\tfrac{2}{3}, +\infty\right).
    Show step-by-step (with the why)
    1. Radicand 0\geq 0: 9x609x-6 \geq 0.
    2. Isolate: x69=23x \geq \tfrac{6}{9} = \tfrac{2}{3}.
    3. Domain = [23,+)[\tfrac{2}{3}, +\infty).
  25. Ex. 2.25Application

    Find the domain of f(x)=3x+14x+2f(x) = \dfrac{3x+1}{4x+2} in interval notation.

    Select the correct option
    Select an option first
    Show solution
    4x+2=0x=124x + 2 = 0 \Rightarrow x = -\tfrac{1}{2}. Exclude. Domain = R{12}\mathbb{R} \setminus \{-\tfrac{1}{2}\}.
  26. Ex. 2.26ApplicationAnswer key

    Find the domain of f(x)=x+4x4f(x) = \dfrac{x+4}{x-4} in interval notation. (Ans: (,4)(4,+)(-\infty,4)\cup(4,+\infty))

    Select the correct option
    Select an option first
    Show solution
    x4=0x - 4 = 0 when x=4x = 4. Exclude. Domain = (,4)(4,+)(-\infty, 4) \cup (4, +\infty).
  27. Ex. 2.27Challenge

    Find the domain of f(x)=x3x2+9x22f(x) = \dfrac{x-3}{x^2+9x-22}. (Ans: R{11,2}\mathbb{R}\setminus\{-11,2\})

    Select the correct option
    Select an option first
    Show solution
    Denominator: x2+9x22=(x+11)(x2)=0x^2+9x-22 = (x+11)(x-2) = 0 for x=11x = -11 and x=2x = 2. Domain = R{11,2}\mathbb{R} \setminus \{-11, 2\}.
    Show step-by-step (with the why)
    1. Denominator: x2+9x22x^2+9x-22.
    2. Factor: (x+11)(x2)(x+11)(x-2).
    3. Zeros: x=11x=-11 and x=2x=2.
    4. Domain = (,11)(11,2)(2,+)(-\infty,-11)\cup(-11,2)\cup(2,+\infty).
  28. Ex. 2.28Challenge

    Find the domain of f(x)=1x2x6f(x) = \dfrac{1}{x^2-x-6}. (Ans: R{2,3}\mathbb{R}\setminus\{-2,3\})

    Select the correct option
    Select an option first
    Show solution
    Denominator: x2x6=(x3)(x+2)=0x^2-x-6 = (x-3)(x+2) = 0 for x=3x = 3 and x=2x = -2. Domain = R{2,3}\mathbb{R} \setminus \{-2, 3\}.
  29. Ex. 2.29Application

    Find the domain of f(x)=5x3f(x) = \dfrac{5}{\sqrt{x-3}}. (Ans: (3,+)(3, +\infty))

    Select the correct option
    Select an option first
    Show solution
    x3\sqrt{x-3} is in the denominator: it must be strictly positive. x3>0x>3x-3 > 0 \Rightarrow x > 3. Domain = (3,+)(3, +\infty).
  30. Ex. 2.30ApplicationAnswer key

    Find the domain of f(x)=x5xf(x) = \dfrac{\sqrt{x}}{5-x} in interval notation.

    Select the correct option
    Select an option first
    Show solution
    Restriction 1: x0x \geq 0 (square root). Restriction 2: 5x0x55-x \neq 0 \Rightarrow x \neq 5. Intersection: [0,5)(5,+)[0,5) \cup (5,+\infty).
    Show step-by-step (with the why)
    1. x\sqrt{x} requires x0x \geq 0.
    2. Denominator 5x0x55-x \neq 0 \Rightarrow x \neq 5.
    3. Intersection: [0,+){5}=[0,5)(5,+)[0,+\infty) \setminus \{5\} = [0,5)\cup(5,+\infty).
  31. Ex. 2.31Application

    Evaluate f(3),f(2),f(1),f(0)f(-3), f(-2), f(-1), f(0) for f(x)=x+1f(x) = x+1 if x<2x < -2; f(x)=2x3f(x) = -2x-3 if x2x \geq -2.

    Select the correct option
    Select an option first
    Show solution
    x=3<2x=-3 < -2: branch 1, 3+1=2-3+1=-2. x=22x=-2 \geq -2: branch 2, 2(2)3=1-2(-2)-3=1. x=1x=-1: 2(1)3=1-2(-1)-3=-1. x=0x=0: 3-3.
  32. Ex. 2.32Application

    Evaluate f(3),f(2),f(1),f(0)f(-3), f(-2), f(-1), f(0) for f(x)=1f(x) = 1 if x3x \leq -3; f(x)=0f(x) = 0 if x>3x > -3.

    Select the correct option
    Select an option first
    Show solution
    Branch 1 (x3x \leq -3): f=1f=1. Branch 2 (x>3x > -3): f=0f=0. f(3)=1f(-3)=1 (boundary included in branch 1), f(2)=f(1)=f(0)=0f(-2)=f(-1)=f(0)=0.
    Show step-by-step (with the why)
    1. x=33x=-3 \leq -3: branch 1, f(3)=1f(-3)=1.
    2. x=2,1,0>3x=-2,-1,0 > -3: branch 2, f=0f=0.
  33. Ex. 2.33Application

    Evaluate f(3),f(2),f(1),f(0)f(-3), f(-2), f(-1), f(0) for f(x)=2x2+3f(x) = -2x^2+3 if x1x \leq -1; f(x)=5x7f(x) = 5x-7 if x>1x > -1.

    Select the correct option
    Select an option first
    Show solution
    Branch 1 (x1x \leq -1): 2x2+3-2x^2+3. f(3)=18+3=15f(-3)=-18+3=-15, f(2)=8+3=5f(-2)=-8+3=-5, f(1)=2+3=1f(-1)=-2+3=1. Branch 2 (x>1x>-1): 5x75x-7. f(0)=7f(0)=-7.
  34. Ex. 2.34ApplicationAnswer key

    Evaluate f(1),f(0),f(2),f(4)f(-1), f(0), f(2), f(4) for f(x)=7x+3f(x) = 7x+3 if x<0x<0; f(x)=7x+6f(x) = 7x+6 if x0x \geq 0. (Ans: -4, 6, 20, 34)

    Select the correct option
    Select an option first
    Show solution
    Branch 1 (x<0x<0): 7x+37x+3. f(1)=4f(-1)=-4. Branch 2 (x0x\geq 0): 7x+67x+6. f(0)=6,f(2)=20,f(4)=34f(0)=6, f(2)=20, f(4)=34.
  35. Ex. 2.35Application

    Evaluate f(1),f(0),f(2),f(4)f(-1), f(0), f(2), f(4) for f(x)=x22f(x) = x^2-2 if x<2x<2; f(x)=4+x5f(x) = 4+|x-5| if x2x \geq 2. (Ans: -1, -2, 7, 5)

    Select the correct option
    Select an option first
    Show solution
    Branch 1 (x<2x<2): x22x^2-2. f(1)=1f(-1)=-1, f(0)=2f(0)=-2. Branch 2 (x2x\geq 2): 4+x54+|x-5|. f(2)=4+3=7f(2)=4+3=7, f(4)=4+1=5f(4)=4+1=5.
  36. Ex. 2.36Application

    Evaluate f(1),f(0),f(2),f(4)f(-1), f(0), f(2), f(4) for f(x)=5xf(x)=5x if x<0x<0; f(x)=3f(x)=3 if 0x30 \leq x \leq 3; f(x)=x2f(x)=x^2 if x>3x>3. (Ans: -5, 3, 3, 16)

    Select the correct option
    Select an option first
    Show solution
    x=1<0x=-1 < 0: branch 1, 5(1)=55(-1)=-5. x=0,2[0,3]x=0,2 \in [0,3]: branch 2, f=3f=3. x=4>3x=4>3: branch 3, f=16f=16.
    Show step-by-step (with the why)
    1. x=1x=-1: branch 5x5x, result 5-5.
    2. x=0x=0 and x=2x=2: constant branch 33.
    3. x=4x=4: branch x2x^2, result 1616.
  37. Ex. 2.37Modeling

    The height (in feet) of a projectile after tt seconds is h(t)=16t2+96th(t) = -16t^2 + 96t. What is the maximum height reached?

    Select the correct option
    Select an option first
    Show solution
    h(t)=16t2+96th(t) = -16t^2 + 96t. Vertex at t=962(16)=3t = -\tfrac{96}{2(-16)} = 3 s. h(3)=144+288=144h(3) = -144+288 = 144 feet.
    Show step-by-step (with the why)
    1. Parabola with a=16<0a=-16 < 0: maximum at the vertex.
    2. tmax=b/(2a)=96/(32)=3t_{\max} = -b/(2a) = -96/(-32) = 3 s.
    3. h(3)=16(9)+96(3)=144+288=144h(3) = -16(9)+96(3) = -144+288 = 144 feet.
  38. Ex. 2.38Modeling

    The cost (in reais) of producing xx items is C(x)=10x+500C(x) = 10x + 500. What is the fixed cost and the cost of producing 100 items?

    Select the correct option
    Select an option first
    Show solution
    C(0)=500C(0) = 500 — fixed cost. C(100)=10(100)+500=1500C(100) = 10(100)+500 = 1500.
  39. Ex. 2.39ChallengeAnswer key

    If the range of ff is [5,8][-5, 8], what is the range of f(x)|f(x)|?

    Select the correct option
    Select an option first
    Show solution
    Values in [5,0)[-5,0) become (0,5](0,5] under the absolute value; values in [0,8][0,8] remain unchanged. Union: [0,8][0,8].
    Show step-by-step (with the why)
    1. Range of ff: [5,8][-5, 8].
    2. Negative values [5,0)[-5,0) become (0,5](0,5].
    3. Non-negative values [0,8][0,8] remain in [0,8][0,8].
    4. Union: [0,8][0,8].
  40. Ex. 2.40Challenge

    Find the domain of f(x)=x4x6f(x) = \dfrac{\sqrt{x-4}}{x-6}. (Ans: [4,6)(6,+)[4,6)\cup(6,+\infty))

    Select the correct option
    Select an option first
    Show solution
    Restriction 1: x40x4x-4 \geq 0 \Rightarrow x \geq 4. Restriction 2: x60x6x-6 \neq 0 \Rightarrow x \neq 6. Intersection: [4,6)(6,+)[4,6)\cup(6,+\infty).
    Show step-by-step (with the why)
    1. Root in numerator: x40x-4 \geq 0, so x4x \geq 4.
    2. Denominator: x60x-6 \neq 0, so x6x \neq 6.
    3. Intersection: [4,+){6}=[4,6)(6,+)[4,+\infty) \setminus \{6\} = [4,6)\cup(6,+\infty).
  41. Ex. 2.41Challenge

    Find the domain of f(x)=x6x4f(x) = \dfrac{x-6}{\sqrt{x-4}}. (Ans: (4,+)(4, +\infty))

    Select the correct option
    Select an option first
    Show solution
    x4\sqrt{x-4} is in the denominator: requires x4>0x>4x-4 > 0 \Rightarrow x > 4. Numerator x6x-6 has no additional restriction. Domain = (4,+)(4,+\infty).
  42. Ex. 2.42UnderstandingAnswer key

    Why does the domain of f(x)=x1/3f(x) = x^{1/3} differ from the domain of f(x)=xf(x) = \sqrt{x}?

    Select the correct option
    Select an option first
    Show solution
    x1/3x^{1/3} is defined for every real number (e.g., (8)1/3=2(-8)^{1/3} = -2). Whereas x\sqrt{x} requires x0x \geq 0.

Sources

Only books that directly informed the text and exercises. Full catalog at /livros.

Updated on 2026-05-04 · Author(s): Clube da Matemática

Found an error? Open an issue on GitHub or submit a PR — open source forever.