TOPIC 2 - FUNCTIONS AND RELATIONS

Table of contents

  1. Functions and relations
  2. Three methods to check the functions
  3. Ordered pairs
  4. Mapping
  5. Graph
  6. Examples:
  7. Activity 2:

1. Functions and relations

1.1 Relations and their components

A relation is defined as a set of ordered pairs of numbers. The domain of a relation is the set of all unique first elements found within these ordered pairs.

The range of a relation consists of all unique second elements from these ordered pairs.

1.2 Example of a relation

Consider the relation R = {(-5, -5), (-4, 2), (-2, -2), (0, 1), (0, 3), (2, -4), (3, 4)}.

  • The domain of R is {-5, -4, -2, 0, 2, 3}.
  • The range of R is {-5, 2, -2, 1, 3, -4, 4}.

1.3 Functions

A function is a specific type of relation where every element in the domain is associated with precisely one element in the range. This means no two ordered pairs in a function can have the same first element but different second elements.

This diagram illustrates the general form of a linear equation and a specific example, along with its domain and range.

2. Three methods to check the functions

2.1 Checking for functions using ordered pairs

A set of ordered pairs represents a function if each unique first element (input) is associated with exactly one second element (output). This is often referred to as the "vertical line test" for sets of ordered pairs, though it's more accurately a check of the definition of a function.

If any input value appears more than once with different output values, the set is not a function.

  • Function definition: A relation is a function if no two distinct ordered pairs have the same first component and different second components.
  • Example check: The set {(1, 2), (2, 4), (3, 6)} is a function because each first element (1, 2, 3) is unique.
  • Non-function example: The set {(1, 2), (1, 3), (2, 4)} is not a function because the input '1' is associated with two different outputs, '2' and '3'.

2.2 Checking for functions using mappings

A mapping diagram visually represents a relation. Similar to ordered pairs, a mapping represents a function if each element in the domain (the set of first elements) maps to exactly one element in the codomain (the set of second elements).

Arrows originating from a single domain element must all point to the same codomain element.

  • Mapping criteria: Each element in the domain must have exactly one arrow originating from it.
  • Valid mapping: If an element 'a' in the domain maps to 'x' in the codomain, and no other arrow originates from 'a', it's consistent with a function.
  • Invalid mapping: If element 'a' maps to 'x' and also to 'y' (where x ≠ y), the mapping does not represent a function.

2.3 Checking for functions using graphs

The graphical method to determine if a relation is a function is the vertical line test. This test states that if any vertical line drawn on the graph intersects the graph at more than one point, the graph does not represent a function.

This is because a vertical line represents a single x-value (input), and if it intersects the graph multiple times, that x-value is associated with multiple y-values (outputs).

  • Vertical line test: A graph represents a function if and only if no vertical line intersects the graph more than once.

  • Linear functions: Linear equations of the form y=ax+by = ax + b (where a≠0a \neq 0) represent functions. For any given xx, there is only one yy.

  • Non-function graphs: Graphs of circles or ellipses, for example, fail the vertical line test because a single vertical line can intersect them at two points.

2.4 Domain and range of functions

The domain of a function is the set of all possible input values (x-values) for which the function is defined. The range is the set of all possible output values (y-values) that the function can produce.

Understanding the domain and range is crucial for analyzing function behavior.

  • Domain: The set of all valid inputs. For many functions, the domain is all real numbers, but restrictions can apply.
  • Range: The set of all possible outputs.
  • Interval notation: Domains and ranges are often expressed using interval notation. For example, (−∞,0)∪(0,∞)(-\infty, 0) \cup (0, \infty) represents all real numbers except zero. A number line illustrating the domain of a function, excluding zero and showing intervals.

2.5 Identifying domain and range from graphs

When given the graph of a function, the domain can be determined by observing the extent of the graph along the x-axis. Similarly, the range is determined by observing the extent of the graph along the y-axis.

  • Domain from graph: Project the graph onto the x-axis. The union of all x-values covered by the projection is the domain.
  • Range from graph: Project the graph onto the y-axis. The union of all y-values covered by the projection is the range.
  • Example: For the graph of y=xy = \sqrt{x}, the domain is [0,∞)[0, \infty) because the square root is only defined for non-negative numbers, and the range is also [0,∞)[0, \infty).

3. Ordered pairs

3.1 Ordered pairs and relations

An ordered pair (x,y)(x, y) represents a relationship between an input value xx and an output value yy. The set of all such ordered pairs defines a relation.

The first element, xx, is the input, and the second element, yy, is the output.

3.2 Determining if a set of ordered pairs is a function

A relation is a function if each input value xx corresponds to exactly one output value yy. This means that no two ordered pairs in the set can have the same first element (xx) but different second elements (yy).

3.3 Example: Set A

Set A = {(-5, -5), (-4, 2), (-2, -2), (0, 1)} In this set, each xx-value is unique, meaning each input has only one output. Therefore, Set A represents a function.

3.4 Example: Set B

Set B = {(2, 3), (3, 4), (4, 5), (5, 6)} Similar to Set A, all the xx-values in Set B are distinct. Each input is associated with a single output, so Set B is a function.

3.5 Example: Set C

Set C = {(-5, -5), (-4, 2), (-2, -2), (0, 1), (0, 3)} In Set C, the input value x=0x=0 is associated with two different output values: y=1y=1 and y=3y=3. Since one input has multiple outputs, Set C is not a function.

📝 To determine if a set of ordered pairs is a function, check if any xx-value appears more than once with a different yy-value. For instance, in the set {(1, 2), (1, 3), (2, 4)}, the xx-value 1 is paired with both 2 and 3, so it is not a function.

4. Mapping

4.1 Mapping diagrams

A mapping diagram visually represents the pairing of elements between two sets, similar to a flowchart for a function. It illustrates how input values correspond to output values.

A mapping diagram is constructed with two parallel columns, each representing a set.

  • The left column lists the input values, also known as the domain.
  • The right column lists the output values, also known as the range.
  • Arrows are drawn from each input value to its corresponding output value.

A mapping diagram is used to determine if a relation is a function. For a relation to be a function, each element in the domain must be paired with exactly one element in the range.

4.2 Determining if a mapping is a function

To determine if a mapping diagram represents a function, examine the arrows originating from the domain.

  • If every element in the domain has exactly one arrow pointing to an element in the range, the mapping represents a function.
  • If any element in the domain has more than one arrow pointing to different elements in the range, or if an element in the domain has no arrow pointing to the range, it is not a function.

📝 Consider a mapping where the domain is {1, 2, 3} and the range is {a, b, c}. If there is one arrow from 1 to a, one arrow from 2 to b, and one arrow from 3 to c, this mapping represents a function because each input has exactly one output.

4.3 Examples of mappings

Here are examples illustrating whether a given mapping represents a function.

4.4 Example 1

1 2 3 a b c

In this mapping, each element in the domain {1, 2, 3} is paired with exactly one element in the range {a, b, c}. Therefore, this mapping represents a function.

4.5 Example 2

1 2 3 a b c

In this mapping, the element '1' in the domain is paired with both 'a' and 'b' in the range. Since an input element is associated with more than one output element, this mapping does not represent a function.

4.6 Example 3

1 2 3 a b c

In this mapping, the element '1' in the domain is paired with 'a', '2' is paired with 'b', and '3' is paired with 'c'. Each input has exactly one output, so this mapping represents a function.

4.7 Example 4

1 2 3 a b c

In this mapping, the element '1' in the domain is paired with 'a', '2' is paired with 'b', and '3' is paired with 'c'. Each input has exactly one output, so this mapping represents a function.

5. Graph

5.1 The graph of a relation or function

The graph of a relation or function is the set of all points in the coordinate plane whose coordinates satisfy that relation or function. When a relation or function is expressed as an equation, the graph of that equation is identical to the graph of the relation or function it represents.

5.2 Examples

📝 Consider the equation y=2x+1y = 2x + 1. The graph of this equation includes points like (0,1)(0, 1), (1,3)(1, 3), and (−1,−1)(-1, -1), because for each of these pairs, substituting the x-coordinate into the equation yields the corresponding y-coordinate.

6. Examples:

6.1 Finding the domain and range of given equations

The domain of a function represents all possible input values (x-values) for which the function is defined. The range of a function represents all possible output values (y-values) that the function can produce.

For linear functions, which are represented by equations of the form y=mx+by = mx + b, where mm is the slope and bb is the y-intercept, both the domain and range are typically all real numbers. This is because you can input any real number for xx and obtain a corresponding real number for yy, and conversely, any real number can be an output yy for some input xx.

6.2 Linear function: y = 3x + 1

For the linear function y=3x+1y = 3x + 1, there are no restrictions on the values that xx can take. Therefore, the domain is all real numbers.

Similarly, there are no restrictions on the output values yy can take, as the line extends infinitely in both directions.

  • Domain: All real numbers. This can be expressed in interval notation as (−∞,∞)(-\infty, \infty) or using set notation as {x∣x∈R}\{x \mid x \in \mathbb{R}\}.
  • Range: All real numbers. This can be expressed in interval notation as (−∞,∞)(-\infty, \infty) or using set notation as {y∣y∈R}\{y \mid y \in \mathbb{R}\}.

📝 For the function y=3x+1y = 3x + 1, if we input x=2x=2, the output is y=3(2)+1=7y = 3(2) + 1 = 7. If we want to find an input for y=10y=10, we solve 10=3x+110 = 3x + 1, which gives 9=3x9 = 3x, so x=3x=3. This demonstrates that any real number can be an input or an output.

6.3 Linear function: y = 5 – x

The linear function y=5−xy = 5 - x also allows for any real number to be an input for xx. The slope is -1, and the y-intercept is 5. As xx can be any real number, yy can also be any real number.

  • Domain: All real numbers, denoted as (−∞,∞)(-\infty, \infty) or {x∣x∈R}\{x \mid x \in \mathbb{R}\}.
  • Range: All real numbers, denoted as (−∞,∞)(-\infty, \infty) or {y∣y∈R}\{y \mid y \in \mathbb{R}\}.

📝 Consider the function y=5−xy = 5 - x. If x=−4x = -4, then y=5−(−4)=9y = 5 - (-4) = 9. To find the xx value for y=−2y = -2, we set −2=5−x-2 = 5 - x, which leads to x=5−(−2)=7x = 5 - (-2) = 7. This confirms that all real numbers are possible inputs and outputs.

7. Activity 2:

7.1 Find the domain and range of the given below.

This activity focuses on determining the domain and range of mathematical expressions. The domain represents all possible input values (x-values) for which a function is defined, while the range represents all possible output values (y-values) that the function can produce.

To find the domain, consider restrictions such as:

  • Division by zero: The denominator of a fraction cannot be zero.
  • Even roots of negative numbers: For square roots or other even roots, the expression under the radical must be non-negative.
  • Logarithms of non-positive numbers: The argument of a logarithm must be positive.

To find the range, you can:

  • Analyze the function's behavior: Consider the minimum and maximum values the function can attain.
  • Graph the function: Visual inspection of the graph can reveal the range.
  • Solve for x in terms of y: If possible, rearrange the function to express x as a function of y, and then determine the possible values for y.

📝 Find the domain and range of f(x)=x−2f(x) = \sqrt{x-2}.

Domain: The expression under the square root must be non-negative: x−2≥0x-2 \ge 0, which means x≥2x \ge 2. So, the domain is [2,∞)[2, \infty).

Range: Since the square root function always returns a non-negative value, and the smallest input is 2 (giving 0=0\sqrt{0}=0), the smallest output is 0. As x increases, x−2\sqrt{x-2} also increases without bound. So, the range is [0,∞)[0, \infty).

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also