For an interactive study experience with progress tracking, bookmarks, and solutions, try our reader.
Open in Interactive ReaderChapter Overview
A Function is a specialized type of relation where every element in the starting set (domain) is connected to exactly one element in the target set (co-domain). Unlike general relations, functions follow a strict rule: no input can produce multiple outputs. Think of a function as a 'machine' that takes an input value and produces a single, definite output value. This chapter bridges your understanding from relations to functions, exploring how to identify, classify, and work with functions using various representations.
What this chapter covers
Relations and Functions: Differences and ConnectionsDomain, Co-domain, and RangeFunction Representations (Mapping, Ordered Pairs, Tables, Graphs, Equations)Vertical Line Test for Function IdentificationClassification of Functions (One-to-one, Onto, Bijective)Algebra of Functions (Sum, Difference, Product, Quotient)Composition of FunctionsInverse Functions and Finding InversesTypes of Functions (Algebraic, Transcendental, Logarithmic, Exponential)Logarithmic Functions and Properties
Learning Objectives
1
Clearly distinguish between a relation and a function using formal definitions and practical examples.
2
Accurately identify and calculate the domain, co-domain, and range of functions presented in various forms.
3
Represent functions using multiple methods: mapping diagrams, ordered pairs, tables, graphs, and algebraic equations.
4
Apply the Vertical Line Test to determine whether a given graph represents a function.
5
Classify functions as injective (one-to-one), surjective (onto), or bijective, and prove these properties algebraically.
6
Perform algebraic operations on functions including addition, subtraction, multiplication, and division.
7
Understand function composition $(g \circ f)(x)$ and compute composite functions accurately.
8
Find inverse functions and verify the correctness of inverses using composition properties.
9
Work with logarithmic and exponential functions, applying key properties and formulas.
10
Solve complex function-related problems from NEB examination papers.
The Essence of Functions: Order and Uniqueness
Key Insight
The core principle that distinguishes a function from a general relation is uniqueness of output. Every input must map to exactly one output. This seemingly simple rule creates a mathematical structure so powerful that it becomes the foundation of calculus, coordinate geometry, and all higher mathematics.
Think of it this way: A function is like a ticket machine at a cinema. You insert a ticket number (input), and the machine outputs exactly one movie (output). No ticket number can produce two different movies. This uniqueness is what makes functions reliable, predictable, and useful for modeling real-world phenomena.
Critical distinction: A relation allows one input to connect to multiple outputs. But a function forbids this. The moment you see an input with multiple outputs, you know it is not a function.
Think of it this way: A function is like a ticket machine at a cinema. You insert a ticket number (input), and the machine outputs exactly one movie (output). No ticket number can produce two different movies. This uniqueness is what makes functions reliable, predictable, and useful for modeling real-world phenomena.
Critical distinction: A relation allows one input to connect to multiple outputs. But a function forbids this. The moment you see an input with multiple outputs, you know it is not a function.
In NEB exams, the most common way to test your understanding of this concept is through the Vertical Line Test. If a vertical line intersects a graph at more than one point, it is not a function. This visual test embodies the uniqueness principle perfectly.
Key Definitions
Relation
A relation from set $A$ to set $B$ is a subset of the Cartesian product $A \times B$. In other words, a relation is any collection of ordered pairs $(a, b)$ where $a \in A$ and $b \in B$. A relation has no restrictions; one element of $A$ can relate to zero, one, or many elements of $B$.
Function
A function $f: A \to B$ is a special relation where every element in set $A$ (the domain) is associated with exactly one element in set $B$ (the co-domain). Formally, if $f(x) = y$ and $f(x) = z$, then $y = z$. This uniqueness of output is the defining characteristic of a function.
Domain
The domain of a function $f: A \to B$ is the set $A$. It consists of all possible input values for which the function is defined. When finding the domain, we must identify which values are allowed (e.g., denominators cannot be zero, values under square roots must be non-negative).
Co-domain
The co-domain of a function $f: A \to B$ is the set $B$. It is the 'target set' into which the function is intended to map all elements of the domain. The co-domain may include elements that are never actually 'reached' by the function.
Range
The range of a function is the set of all actual outputs (images) produced by the function. It is a subset of the co-domain. Formally, Range$(f) = \{f(x) : x \in \text{Domain}(f)\}$. The range contains only values that are actually mapped to; the co-domain may contain additional elements.
Image and Pre-image
If $f(x) = y$, then $y$ is called the image of $x$ under the function $f$, and $x$ is called a pre-image of $y$. Every element in the domain has an image, but not every element in the co-domain has a pre-image.
One-to-One Function (Injective)
A function $f: A \to B$ is one-to-one (injective) if different inputs produce different outputs. Formally, if $f(x_1) = f(x_2)$, then $x_1 = x_2$. Equivalently, if $x_1 \neq x_2$, then $f(x_1) \neq f(x_2)$. Graphically, the Horizontal Line Test can identify injective functions.
Onto Function (Surjective)
A function $f: A \to B$ is onto (surjective) if every element in the co-domain $B$ has at least one pre-image in the domain $A$. In other words, Range$(f) =$ Co-domain$(B)$. Every element in $B$ is the image of some element in $A$.
Bijective Function
A function is bijective if it is both one-to-one (injective) and onto (surjective). Only bijective functions have inverses. A bijection establishes a perfect 'pairing' between elements of the domain and co-domain, with no element left unpaired.
Inverse Function
If $f: A \to B$ is a bijection, then the inverse function $f^{-1}: B \to A$ is defined such that $f^{-1}(b) = a$ if and only if $f(a) = b$. The inverse 'undoes' the function. We have the property: $f(f^{-1}(x)) = x$ and $f^{-1}(f(x)) = x$ for all appropriate $x$.
Function Composition
If $f: A \to B$ and $g: B \to C$ are two functions, their composition $(g \circ f): A \to C$ is defined by $(g \circ f)(x) = g(f(x))$. We read this as '$g$ composed with $f$'. The function $f$ is applied first, then $g$ is applied to the result.
Relation vs. Function: The Critical Differences
Understanding how relations differ from functions is fundamental. Every function is a relation, but not every relation is a function. Use this comparison to identify which is which.
Relation
$$General Connection$$
Definition: Any subset of the Cartesian product $A \times B$.
Uniqueness: One element from $A$ can connect to zero, one, or many elements from $B$.
Example: 'Is the parent of' relation. Person $x$ can be the parent of multiple persons (children).
Representation: Can show one-to-many, many-to-one, and many-to-many connections.
Testing Visually: No special test required; simply look for all connections.
VS
Function
$$Strict Rule$$
Definition: A relation where every input has exactly one output.
Uniqueness: Every element from $A$ must connect to exactly one element from $B$. Never zero outputs, never multiple outputs.
Example: '$f(x) = x + 1$ function'. Input 2 always produces output 3. Never two outputs.
Representation: Only one-to-one connections allowed (from input perspective).
Testing Visually: Use the Vertical Line Test. If a vertical line cuts the graph more than once, it is not a function.
Memory Aid - V.L.T.: The Vertical Line Test is your visual check. Draw a vertical line anywhere on the graph. If it intersects the curve at exactly one point everywhere, it is a function. If at any position it intersects at two or more points, it is not a function.
Formula Sheet & Key Properties
Logarithm Product Rule
$$\log_a(xy) = \log_a x + \log_a y$$
The logarithm of a product equals the sum of the logarithms. This is one of the most important properties for simplifying logarithmic expressions.
Logarithm Quotient Rule
$$\log_a\left(\frac{x}{y}\right) = \log_a x - \log_a y$$
The logarithm of a quotient equals the difference of the logarithms.
Logarithm Power Rule
$$\log_a(x^p) = p \log_a x$$
The logarithm of a power equals the exponent times the logarithm of the base.
Change of Base Formula
$$\log_a x = \frac{\log_b x}{\log_b a}$$
Convert logarithms from one base to another. Commonly used to calculate logarithms with calculators (base 10 or natural log).
Special Logarithm Values
$$\log_a 1 = 0, \quad \log_a a = 1, \quad \log_a a^p = p$$
These fundamental values simplify calculations and appear frequently in exams.
Algebra of Functions
$$(f \pm g)(x) = f(x) \pm g(x), \quad (f \cdot g)(x) = f(x) \cdot g(x), \quad \left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}, g(x) \neq 0$$
These are operations you can perform when combining two functions.
Function Composition
$$(g \circ f)(x) = g(f(x))$$
Function composition applies functions in sequence. The function $f$ is applied first, then $g$ is applied to the result.
Step-by-Step: Finding Domain and Range
When faced with a function in the exam, follow this logical sequence to find its domain and range correctly.
Does the function contain a square root, cube root, or even root?
Yes
The expression under an even root must be $\geq 0$. Set up an inequality and solve.
No
Continue to next step ↓
Does the function have a denominator (fraction)?
Yes
The denominator must never equal zero. Set denominator = 0, solve, and exclude those values from domain.
No
Continue to next step ↓
Does the function contain logarithms?
Yes
The argument of a logarithm must be strictly positive (> 0). Set up inequalities for all logarithmic arguments.
No
Continue to next step ↓
Are there any other restrictions mentioned in the problem?
Yes
Apply those restrictions to the domain.
No
If no restrictions apply, the domain is all real numbers ($\mathbb{R}$). Now find the range.
To find the range, can you solve for $x$ in terms of $y$ (where $y = f(x)$)?
Yes
If you can express $x = g(y)$, then the restrictions that prevent valid $x$ values tell you the excluded $y$ values. These exclusions form the complement of the range.
No
Sketch the graph or analyze the behavior. Identify the minimum and maximum values (if they exist).
Top 5 Memory Tricks for Functions and Logarithms
Trick: These memory devices will help you recall key concepts and formulas quickly during exams.
Steps to Remember:
- Trick 1 - V.L.T. (Vertical Line Test): A function means Vertical lines should cut the graph at exactly one point. Remember 'V' for 'Vertical' and 'V' for 'Valid function'. If the vertical line cuts twice, the graph is not a valid function.
- Trick 2 - B-I-O for Bijective: Bijective = Injective (one-one) + Onto (onto). A bijective function must be both. Think 'B' stands for 'Both'.
- Trick 3 - 'Log Multiply = Add': When you see $\log(A \times B)$, remember it becomes $\log A + \log B$. Multiplication inside the log becomes addition outside. 'Multiply to Add' rhyme helps recall this.
- Trick 4 - 'Inverse = Swap and Solve': To find $f^{-1}(x)$ from $f(x)$: (1) Write $y = f(x)$, (2) Swap $x$ and $y$, (3) Solve for $y$. This three-step process never changes.
- Trick 5 - 'Range is Real; Co-domain is Target': The co-domain is the 'intended target' (what the problem says), but the range is 'what actually happens' (what the function produces). Range $\subseteq$ Co-domain always.
Mnemonic: Remember: Functions demand UNIQUENESS of output. Domain = Starting Set. Range = Actual Outputs. Codomain = Intended Target. VLT = Function Check Tool.
Common Mistakes in NEB Function Exams
These errors are made by many students and result in significant mark loss. Study them carefully to avoid repeating them.
- Mistake 1 - Confusing Range with Co-domain: A student writes: 'The function $f(x) = x^2$ has range $\mathbb{R}$.' This is incorrect! The range of $f(x) = x^2$ is $[0, \infty)$ (only non-negative values). The co-domain might be $\mathbb{R}$, but the range excludes negative numbers. Always compute the actual outputs, not just the stated target set.
- Mistake 2 - Forgetting Domain Restrictions: Given $f(x) = \sqrt{x-3}$, a student writes: 'Domain = $\mathbb{R}$'. Wrong! The expression under the square root must be non-negative: $x - 3 \geq 0$, so $x \geq 3$. Domain = $[3, \infty)$. Always check for square roots, fractions, and logarithms.
- Mistake 3 - Incorrect Inverse Procedure: A student tries to find the inverse of $f(x) = 2x + 3$ but writes: '$f^{-1}(x) = \frac{x}{2} - 3$'. The error is not swapping correctly. The correct method: $y = 2x + 3 \Rightarrow x = 2y + 3 \Rightarrow x - 3 = 2y \Rightarrow y = \frac{x-3}{2}$. So $f^{-1}(x) = \frac{x-3}{2}$.
- Mistake 4 - Wrong Order in Composition: Given $f(x) = x+1$ and $g(x) = x^2$, a student computes $g \circ f$ as $f(g(x)) = x^2 + 1$. This is wrong! $(g \circ f)(x)$ means $g(f(x)) = g(x+1) = (x+1)^2 = x^2 + 2x + 1$. The notation $(g \circ f)$ means apply $f$ first, then $g$.
- Mistake 5 - Logarithm Domain Errors: Given $f(x) = \log(x^2 - 1)$, a student writes: 'Domain = $x > 0$'. Incorrect! The argument must be positive: $x^2 - 1 > 0 \Rightarrow (x-1)(x+1) > 0 \Rightarrow x < -1$ or $x > 1$. Domain = $(-\infty, -1) \cup (1, \infty)$. Note: $x^2 > 1$ is the correct condition, not $x > 0$.
- Mistake 6 - Not Checking if Inverse Exists: Students often try to find the inverse of a function that is not bijective. The inverse of $f(x) = x^2$ does not exist on $\mathbb{R} \to \mathbb{R}$ because it is not one-to-one. You must first verify that the function is bijective (or restrict the domain to make it bijective) before finding an inverse.
Solved Examples (Easy → Medium → Hard)
1
Find $f(3)$ if $f(x) = 2x^2 - 5x + 1$.
Easy
2
Identify the domain of $f(x) = \frac{1}{x-2}$.
Easy
3
Given $f = \{(1, 2), (2, 3), (3, 4)\}$, find the range of $f$.
Easy
4
Evaluate $\log_3 81$.
Easy
5
Find the inverse of the function $f(x) = 3x + 5$.
Medium
6
Find the domain of $f(x) = \sqrt{x - 4}$.
Medium
7
If $f(x) = 2x + 1$ and $g(x) = x^2$, find $(g \circ f)(x)$.
Medium
8
Determine the range of $f(x) = \frac{1}{x+1}$ for $x \in \mathbb{R}, x \neq -1$.
Medium
9
Prove that $f(x) = 2x + 3$ is a one-to-one (injective) function on $\mathbb{R}$.
Hard
10
Find the domain of $f(x) = \sqrt{9 - x^2}$.
Hard
11
Simplify $\log_2 32 + \log_2 8 - \log_2 4$ using logarithm properties.
Hard
12
Prove that $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = x^3$ is bijective.
Hard
MCQ Practice
Mixed Level — MCQ
1
Which of the following relations is a function?
Correct!
Incorrect. Correct: $\{(1, 2), (2, 3), (3, 4)\}$
2
The domain of $f(x) = \frac{1}{x-3}$ is:
Correct!
Incorrect. Correct: $\mathbb{R} - \{3\}$
3
If $f(x) = 2x + 1$ and $g(x) = x^2 - 1$, then $(f \circ g)(2) = ?$
Correct!
Incorrect. Correct: $7$
4
The range of $f(x) = x^2 + 1$ for $x \in \mathbb{R}$ is:
Correct!
Incorrect. Correct: $[1, \infty)$
5
$\log_2(16) = ?$
Correct!
Incorrect. Correct: $4$
6
Which statement about logarithms is true?
Correct!
Incorrect. Correct: $\log_a(xy) = \log_a x + \log_a y$
7
The inverse function of $f(x) = \frac{x+2}{3}$ is:
Correct!
Incorrect. Correct: $f^{-1}(x) = 3x - 2$
8
A function is onto (surjective) if:
Correct!
Incorrect. Correct: Every element in the co-domain has at least one pre-image
9
If $f(x) = \sqrt{x}$, what is the domain?
Correct!
Incorrect. Correct: $[0, \infty)$
10
The value of $\log_a 1$ for any valid base $a$ is:
Correct!
Incorrect. Correct: $0$
11
Which of the following functions is bijective on $\mathbb{R} \to \mathbb{R}$?
Correct!
Incorrect. Correct: $f(x) = 2x + 5$
Short Questions (2-4 Marks Each)
1
Define a function and explain how it differs from a relation.
[2 marks]
2
Find the range of $f(x) = 2x + 3$ where $x \in \{1, 2, 3, 4\}$.
[2 marks]
3
Verify that $f(x) = 3x + 1$ and $g(x) = \frac{x-1}{3}$ are inverse functions.
[3 marks]
4
Find the domain of $f(x) = \frac{1}{\sqrt{x-2}}$.
[3 marks]
5
Simplify $\log_5 25 + \log_5 5 - \log_5 1$.
[2 marks]
6
Determine whether $f(x) = x^3 - 2$ is one-to-one.
[2 marks]
7
If $f(x) = \sqrt{x+1}$ and $g(x) = x^2 - 3$, find $(f \circ g)(3)$.
[3 marks]
8
State the domain and range of $f(x) = \log_2(x)$.
[2 marks]
9
Prove using the definition that $f(x) = \frac{1}{x}$ is onto (surjective) on $\mathbb{R}^* \to \mathbb{R}^*$ (where $\mathbb{R}^*$ denotes non-zero reals).
[3 marks]
Long Questions (5-8 Marks Each)
1
Prove that $f: \mathbb{R} \to \mathbb{R}$ defined by $f(x) = 2x + 3$ is bijective and find its inverse function.
[8 marks]
2
Find the domain and range of $f(x) = \sqrt{x^2 - 4}$, and sketch the function.
[6 marks]
3
Given $f(x) = x + 1$ and $g(x) = 2x - 3$, find $(f \circ g)(x)$, $(g \circ f)(x)$, and show that $f \circ g \neq g \circ f$.
[5 marks]
4
Prove the logarithm product rule: $\log_a(xy) = \log_a x + \log_a y$ for all positive $x, y$ and valid base $a$.
[5 marks]
5
Find the inverse of $f(x) = \frac{x-1}{x+2}$ and verify that $f(f^{-1}(x)) = x$.
[6 marks]
6
Solve $\log_x 4 + \log_x 8 = \log_x 64$. Find the value of $x$.
[5 marks]
One-Page Revision Cheat Sheet
1
Definition of Function: Every input has exactly one output. No input can produce multiple outputs. This 'uniqueness of output' is the core definition.
2
Vertical Line Test: If a vertical line cuts a graph at more than one point anywhere, it is not a function. Use this to quickly reject non-functions.
3
Domain: All possible inputs. Exclude: (1) values that make denominators zero, (2) values that make even roots negative, (3) values that make logarithm arguments non-positive.
4
Range: All actual outputs. Set $y = f(x)$, solve for $x$, and determine which $y$ values are possible. Range $\subseteq$ Co-domain always.
5
One-to-One (Injective): Different inputs produce different outputs. Test: if $f(a)=f(b)$, does this force $a=b$?
6
Onto (Surjective): Every element in the co-domain is an actual output. Range = Co-domain. For any $y$ in co-domain, can you find an $x$ with $f(x)=y$?
7
Bijective = One-to-One AND Onto: Only bijective functions have inverses. Check both properties before claiming an inverse exists.
8
Finding Inverse: Write $y=f(x)$, swap $x$ and $y$, solve for $y$. The resulting $y$ is $f^{-1}(x)$. Verify: $f(f^{-1}(x))=x$ and $f^{-1}(f(x))=x$.
9
Function Composition $(g \circ f)(x)$: Apply $f$ first, then $g$ to the result. $(g \circ f)(x) = g(f(x))$. Generally, $g \circ f \neq f \circ g$ (not commutative).
10
Logarithm Product Rule: $\log_a(xy) = \log_a x + \log_a y$ (multiply inputs → add logs)
11
Logarithm Quotient Rule: $\log_a(x/y) = \log_a x - \log_a y$ (divide inputs → subtract logs)
12
Logarithm Power Rule: $\log_a(x^p) = p \log_a x$ (exponent comes down as multiplier)
13
Special Logarithm Values: $\log_a 1 = 0$, $\log_a a = 1$, $\log_a a^p = p$. Always true, memorize.
14
Change of Base: $\log_a x = \frac{\log_b x}{\log_b a}$ (use to convert between bases, especially to base 10 or natural log)
15
Algebra of Functions: $(f+g)(x) = f(x)+g(x)$, $(fg)(x)=f(x)g(x)$, $(f/g)(x)=f(x)/g(x)$ (where $g(x) \neq 0$)