Subject: Class 12 Mathematics Chapter: Functions Topic: 1.5 Functions – Understand functions and their mappings
A function is one of the central ideas in mathematics. It describes a rule that assigns to every element of one set exactly one element of another set. In everyday terms, a function behaves like a machine: you feed it an input, and it produces a single output. The set of possible inputs is called the domain, and the set of possible outputs is called the codomain. The actual outputs produced are called the range.
Functions are everywhere in mathematics. Formulas such as y = 2x + 1, tables of values, graphs, and word descriptions are all ways of representing functions. A function is sometimes called a mapping or a map, and the notation f : A to B means that f assigns, to every element of set A, an element of set B. The crucial requirement is that each input produces exactly one output, never two or zero.
In this chapter we define functions precisely, distinguish them from general relations, learn the notation for evaluating functions, and study the domain, codomain and range of standard functions. We also solve worked examples showing how to check whether a given relation is a function and how to evaluate function values at specific inputs.
A function f from a set A to a set B is a rule that associates to each element x of A a unique element f(x) of B. The set A is called the domain, the set B is called the codomain, and the set of all actual outputs {f(x) : x in A} is called the range. We write f : A to B and say f maps A into B.
Every function is a relation, but not every relation is a function. A relation R from A to B is a function if and only if:
In an arrow diagram, a function shows exactly one arrow leaving each element of the domain, though many arrows may arrive at the same element of the codomain.
Example 1: Which of the following relations from A = {1, 2, 3} to B = {4, 5, 6} are functions? (i) R1 = {(1, 4), (2, 5), (3, 6)} (ii) R2 = {(1, 4), (1, 5), (2, 6)} Solution: - Step 1: In R1, each of 1, 2, 3 appears exactly once as a first component, so R1 is a function. - Step 2: In R2, element 1 appears twice with outputs 4 and 5, violating uniqueness. - Step 3: Therefore R1 is a function but R2 is not.
Example 2: If f : R to R is defined by f(x) = 3x + 2, find f(1), f(-2) and f(0). Solution: - Step 1: f(1) = 3(1) + 2 = 5. - Step 2: f(-2) = 3(-2) + 2 = -6 + 2 = -4. - Step 3: f(0) = 3(0) + 2 = 2. - Step 4: Hence f(1) = 5, f(-2) = -4 and f(0) = 2.
Example 3: Find the domain and range of the function f(x) = x squared, where the domain is the set of real numbers. Solution: - Step 1: Every real number can be squared, so the domain is the set of all real numbers. - Step 2: The square of a real number is always non-negative. - Step 3: Every non-negative real number is attained, for example as the square of its square root. - Step 4: Hence the range is the set of all non-negative real numbers.
The domain of a function is the set of all allowed inputs. The codomain is the set of all possible outputs stated by the definition. The range is the set of outputs that are actually produced by the function. The range is always a subset of the codomain, but the two need not be equal. When the range equals the codomain, the function is called onto or surjective.
To find the domain of a real-valued function, we must exclude values that make the expression undefined, such as values that make a denominator zero or that make the expression inside an even root negative.
Example 4: Find the domain of the function f(x) = 1 divided by (x - 3). Solution: - Step 1: The expression is undefined when the denominator is zero, that is, when x - 3 = 0. - Step 2: Therefore x = 3 is excluded. - Step 3: The domain is all real numbers except 3, written as R minus {3}. - Step 4: The range is also all real numbers except 0.
Example 5: Find the domain of f(x) = square root of (x - 5). Solution: - Step 1: The expression under the square root must be non-negative. - Step 2: So x - 5 is greater than or equal to 0, giving x is greater than or equal to 5. - Step 3: The domain is the interval from 5 to positive infinity. - Step 4: The range is all non-negative real numbers.
Example 6: Let f : Z to Z be defined by f(x) = 2x + 1. Find the domain, codomain and range. Solution: - Step 1: The domain is Z, the integers, as stated. - Step 2: The codomain is Z, the integers, as stated. - Step 3: The outputs are 2x + 1, which are always odd integers. - Step 4: Hence the range is the set of odd integers, which is a proper subset of Z.
Two functions f and g are equal if they have the same domain, and f(x) = g(x) for every x in the common domain. The codomain is also conventionally required to be the same. Changing the domain changes the function, even if the formula looks identical.
A real-valued function is a function whose codomain is a subset of the real numbers. Such functions are usually given by formulas, and we must remember the standard domain restrictions: denominators must not vanish, even roots require non-negative radicands, and logarithmic arguments must be positive.
Example 7: Are f(x) = x and g(x) = x squared divided by x equal functions on the real numbers? Solution: - Step 1: The domain of f(x) = x is all real numbers. - Step 2: The expression g(x) = x squared divided by x is undefined at x = 0. - Step 3: Therefore the domains differ, so f and g are not equal functions. - Step 4: Note that g equals f on all nonzero real numbers, but equality of functions requires the same domain.
Example 8: Let f(x) = 2x + 3 and g(x) = 2x + 3 for all real x. Are they equal? Solution: - Step 1: Both have the same domain, all real numbers. - Step 2: For every real x, f(x) = 2x + 3 = g(x). - Step 3: Hence f and g are equal functions. - Step 4: Equal functions share both domain and rule.
Example 9: A function f : R to R is defined by f(x) = x cubed. Find f(-1), f(2) and f(0), and identify the range. Solution: - Step 1: f(-1) = (-1) cubed = -1. - Step 2: f(2) = 2 cubed = 8. - Step 3: f(0) = 0 cubed = 0. - Step 4: Every real number is a cube of some real number, so the range is all real numbers.
| Concept | Meaning | Notation |
|---|---|---|
| Domain | Set of allowed inputs | A in f : A to B |
| Codomain | Set of possible outputs | B in f : A to B |
| Range | Set of actual outputs | {f(x) : x in A} |
| Function value | Output for input x | f(x) |
| Function | Domain | Range |
|---|---|---|
| f(x) = x squared | All real numbers | Non-negative reals |
| f(x) = 1/x | Reals except 0 | Reals except 0 |
| f(x) = square root of x | Non-negative reals | Non-negative reals |
| f(x) = 1/(x - 3) | Reals except 3 | Reals except 0 |
flowchart TD
A[Functions] --> B[Definition]
A --> C[Domain, Codomain, Range]
A --> D[Function Notation f(x)]
A --> E[Equal Functions]
B --> F[Each input has one output]
B --> G[Every function is a relation]
C --> H[Domain: allowed inputs]
C --> I[Codomain: possible outputs]
C --> J[Range: actual outputs]
D --> K[Evaluate by substitution]
E --> L[Same domain and rule]
H --> M[Exclude undefined values]
Functions provide the precise language for describing how inputs determine outputs, and they are the backbone of calculus, algebra and applied mathematics. The essential ideas of domain, codomain and range clarify exactly where a function can be applied and what it can produce, while the rule f(x) encodes the relationship between input and output. By learning to distinguish functions from general relations and to find domains and ranges of standard formulas, a student builds the skills needed for the study of one-one and onto functions, composition, and inverse functions. The worked examples in this chapter show the standard techniques: verifying uniqueness of outputs, excluding undefined inputs, and evaluating function values. Mastery of these fundamentals ensures success in the more advanced function topics that follow.