Domain, Range and Periodicity of Functions: Methods and MCQs
Domain, range and period questions look simple, yet they are among the most frequently missed MCQs because one forgotten condition changes the answer. Domains come from a short list of restrictions applied layer by layer; ranges come from the vertex, the discriminant or the bounds of sine and cosine; periods come from a few standard results and an LCM rule. This lesson builds each method for the compositions and rational functions that ECAT, NUST NET and JEE Main favour, and ends with composite and inverse functions.
Asked in: ECAT, NUST NET, JEE Main, FSc and Class 11-12 boards
The four domain restrictions
Almost every domain question is a combination of four rules: a denominator cannot be 0; an even root needs a non-negative inside; a logarithm needs a positive argument (and a positive base other than 1); sin⁻¹ and cos⁻¹ need an input between −1 and 1 inclusive.
For sums, differences and products of functions, the domain is the intersection of the separate domains. Write each condition, solve it as an inequality, and keep only the x-values that satisfy all of them. Pay attention to endpoints: √ allows 0, but log and a denominator do not.
- 1/g(x): g(x) ≠ 0
- √g(x): g(x) ≥ 0
- log g(x): g(x) greater than 0
- sin⁻¹ g(x), cos⁻¹ g(x): −1 ≤ g(x) ≤ 1
- sec⁻¹ g(x), cosec⁻¹ g(x): |g(x)| ≥ 1
Domains of compositions
Work from the outside inwards. For √(log₂ h(x)) you need log₂ h(x) ≥ 0, which means h(x) ≥ 1; positivity of h is then automatic. For log(log x) you need log x greater than 0, so x greater than 1.
For sin⁻¹(log₂ h(x)) you need −1 ≤ log₂ h(x) ≤ 1, that is 1/2 ≤ h(x) ≤ 2. Converting a log inequality to a power inequality is valid in this direction only because the base 2 is greater than 1; for a base between 0 and 1 the inequality signs reverse.
- logₐ g ≥ 0 with a greater than 1 means g ≥ 1
- −1 ≤ log₂ g ≤ 1 means 1/2 ≤ g ≤ 2
- log(log x) needs x greater than 1
Ranges of rational and trigonometric functions
For y = (ax + b)/(cx + d), the range is every real number except a/c, the horizontal asymptote. For y = quadratic ÷ quadratic, rewrite as a quadratic in x with coefficients depending on y, and require its discriminant to be at least 0 (x must be real). Check separately the value of y that makes the x² coefficient vanish.
For trigonometric expressions, use the bounds of sine and cosine: −1 ≤ sin θ ≤ 1, and a sin θ + b cos θ lies between −√(a² + b²) and √(a² + b²). For y = 1/(c − sin θ), find the range of the denominator first, then take reciprocals (which reverses the order of the endpoints).
For x + 1/x with x greater than 0 the minimum is 2 (AM ≥ GM). For |x − a| + |x − b| the minimum is |a − b|, attained for every x between a and b.
- (ax + b)/(cx + d): range = all reals except a/c
- a sin θ + b cos θ ∈ [−√(a² + b²), √(a² + b²)]
- x/(1 + x²) ∈ [−1/2, 1/2]
- |x − a| + |x − b| ≥ |a − b|
Even and odd functions
f is even if f(−x) = f(x) for all x in a domain symmetric about 0 (graph symmetric about the y-axis), and odd if f(−x) = −f(x) (graph symmetric about the origin). Most functions are neither; only f(x) = 0 is both.
Products follow sign rules: even × even = even, odd × odd = even, even × odd = odd. Every function on a symmetric domain splits as [f(x) + f(−x)]/2 (even) plus [f(x) − f(−x)]/2 (odd).
Two classic odd functions: ln(x + √(x² + 1)) and ln[(1 − x)/(1 + x)]. A classic even one: x(aˣ − 1)/(aˣ + 1), because the fraction is odd and x is odd.
- Even: f(−x) = f(x)
- Odd: f(−x) = −f(x)
- f(x) = [f(x) + f(−x)]/2 + [f(x) − f(−x)]/2
Periodic functions and the fundamental period
f is periodic with period T if f(x + T) = f(x) for every x; the fundamental period is the smallest positive such T. sin x, cos x, sec x and cosec x have period 2π; tan x and cot x have period π.
Changing the input scales the period: f(ax + b) has period T/|a|. Taking absolute values or even powers often halves the period: |sin x| and sin²x have period π, and |sin x| + |cos x| and sin⁴x + cos⁴x have period π/2.
For a sum of periodic functions with periods T₁ and T₂, the period is the LCM of T₁ and T₂. For fractions, LCM(p/q, r/s) = LCM(p, r) ÷ HCF(q, s). The LCM may fail to be the fundamental period when the sum simplifies, so check special cases.
- Period of sin(ax + b), cos(ax + b) = 2π/|a|
- Period of tan(ax + b) = π/|a|
- LCM(p/q, r/s) = LCM(p, r) ÷ HCF(q, s)
Composite and inverse functions
(f∘g)(x) = f(g(x)). Its domain is the set of x in the domain of g for which g(x) lies in the domain of f. In general f∘g ≠ g∘f.
A function has an inverse only if it is one-one (and onto its range). To find f⁻¹, write y = f(x), solve for x in terms of y, then swap the letters. The domain of f⁻¹ is the range of f, and the graph of f⁻¹ is the reflection of the graph of f in the line y = x.
Useful pairs: f(x) = (eˣ − e⁻ˣ)/2 has inverse ln(x + √(x² + 1)), and (aˣ − a⁻ˣ)/(aˣ + a⁻ˣ) has inverse (1/2) logₐ[(1 + x)/(1 − x)] for x between −1 and 1. If f is its own inverse, f(f(x)) = x.
- Domain of f∘g = {x in domain of g : g(x) in domain of f}
- f(f⁻¹(x)) = x and f⁻¹(f(x)) = x
- Domain of f⁻¹ = range of f
Solved examples
- Find the domain of f(x) = √[log₂((6x − x²)/5)].
- The square root needs log₂((6x − x²)/5) ≥ 0, so (6x − x²)/5 ≥ 1.
- 6x − x² ≥ 5 gives x² − 6x + 5 ≤ 0, that is (x − 1)(x − 5) ≤ 0.
- So 1 ≤ x ≤ 5. In this interval the log argument is at least 1, so it is automatically positive.
Answer: [1, 5] - Find the domain of f(x) = sin⁻¹((x − 3)/2) − ln(x − 2).
- sin⁻¹ needs −1 ≤ (x − 3)/2 ≤ 1, so −2 ≤ x − 3 ≤ 2, giving 1 ≤ x ≤ 5.
- ln needs x − 2 greater than 0, so x greater than 2.
- Intersect: x greater than 2 and x ≤ 5.
Answer: (2, 5] - Find the range of f(x) = (x² + x + 1)/(x² − x + 1).
- The denominator is never 0 (its discriminant is negative), so the domain is all real x.
- Put y = f(x): (y − 1)x² − (y + 1)x + (y − 1) = 0.
- For real x, the discriminant must be at least 0: (y + 1)² − 4(y − 1)² ≥ 0, which factorises as (3 − y)(3y − 1) ≥ 0.
- So 1/3 ≤ y ≤ 3. The value y = 1 (where the x² coefficient vanishes) is reached at x = 0, so nothing is lost.
Answer: [1/3, 3] - Classify as even, odd or neither: f(x) = x(3ˣ − 1)/(3ˣ + 1) and g(x) = ln[(1 − x)/(1 + x)], for x between −1 and 1.
- (3⁻ˣ − 1)/(3⁻ˣ + 1): multiply top and bottom by 3ˣ to get (1 − 3ˣ)/(1 + 3ˣ), the negative of the original fraction. So the fraction is odd.
- f is x (odd) times an odd function, so f is even.
- g(−x) = ln[(1 + x)/(1 − x)] = −ln[(1 − x)/(1 + x)] = −g(x), so g is odd.
Answer: f is even and g is odd - Find the fundamental period of f(x) = sin(2x/3) + cos(3x/4).
- Period of sin(2x/3) = 2π ÷ (2/3) = 3π.
- Period of cos(3x/4) = 2π ÷ (3/4) = 8π/3.
- LCM(3π, 8π/3) = LCM(3, 8)π ÷ HCF(1, 3) = 24π.
Answer: 24π - Find the inverse of f(x) = (10ˣ − 10⁻ˣ)/(10ˣ + 10⁻ˣ).
- Multiply top and bottom by 10ˣ: y = (10²ˣ − 1)/(10²ˣ + 1).
- Solve: y·10²ˣ + y = 10²ˣ − 1, so 10²ˣ(1 − y) = 1 + y and 10²ˣ = (1 + y)/(1 − y).
- x = (1/2) log₁₀[(1 + y)/(1 − y)]. Swap letters.
- The range of f is the interval from −1 to 1 (endpoints excluded), which becomes the domain of f⁻¹.
Answer: f⁻¹(x) = (1/2) log₁₀[(1 + x)/(1 − x)], for x between −1 and 1
Exam shortcuts
- In domain MCQs, test one or two boundary points in the function directly. An endpoint where a log or denominator becomes 0 must be excluded; one where a square root becomes 0 is included.
- For a quadratic ÷ quadratic range, the discriminant method always works: set y = f(x), make a quadratic in x and demand discriminant ≥ 0.
- Range of a sin θ + b cos θ + c is from c − √(a² + b²) to c + √(a² + b²); do not add |a| + |b|.
- Absolute value or squaring halves the period of sin and cos; |sin x| + |cos x| and sin⁴x + cos⁴x go further to π/2.
- To check an inverse option, pick one easy x, compute f(x), and see which option sends it back.
Common mistakes
- Requiring only h(x) greater than 0 for √(log h(x)); the square root needs log h(x) ≥ 0, so h(x) ≥ 1.
- Forgetting to intersect the conditions from different parts of the function.
- Taking the LCM of periods as the answer when the sum actually has a smaller period, or forgetting that tan has period π, not 2π.
- Giving the domain of f as the domain of f⁻¹; the domain of f⁻¹ is the range of f.
Practice MCQs
- The domain of f(x) = 1/ln x is:
A) x greater than 1
B) x greater than 0
C) all real x except 1
D) x greater than 0, x ≠ 1
Answer: D) x greater than 0, x ≠ 1 — ln x needs x greater than 0, and the denominator ln x is 0 at x = 1, which must be removed. Writing only x greater than 0 keeps x = 1, x greater than 1 wrongly drops the interval between 0 and 1, and all reals except 1 allows negative x. - The domain of f(x) = √(x² − 5x + 6) is:
A) x less than 2 or x greater than 3
B) x ≤ 2 or x ≥ 3
C) 2 ≤ x ≤ 3
D) all real x
Answer: B) x ≤ 2 or x ≥ 3 — We need (x − 2)(x − 3) ≥ 0, which holds outside the roots, including the roots themselves: x ≤ 2 or x ≥ 3. The interval from 2 to 3 is where the inside is negative, and excluding 2 and 3 forgets that √0 = 0 is allowed. - The domain of f(x) = cos⁻¹(2x − 1) is:
A) [−1, 1]
B) [−1, 0]
C) [0, 1]
D) [0, 2]
Answer: C) [0, 1] — −1 ≤ 2x − 1 ≤ 1 gives 0 ≤ 2x ≤ 2, so 0 ≤ x ≤ 1. [−1, 1] is the condition on 2x − 1 itself, [0, 2] forgets to divide by 2, and [−1, 0] adds 1 with the wrong sign. - The domain of f(x) = log₂(log₃ x) is:
A) x greater than 3
B) x greater than 0
C) x greater than 1
D) x ≥ 1
Answer: C) x greater than 1 — The outer log needs log₃ x greater than 0, which means x greater than 3⁰ = 1. x greater than 0 is only the inner condition, x greater than 3 would need log₃ x greater than 1, and x = 1 makes the inner log 0, so it is excluded. - The domain of f(x) = sin⁻¹[log₂(x/2)] is:
A) [1, 4]
B) [1/2, 2]
C) [2, 8]
D) (0, 4]
Answer: A) [1, 4] — −1 ≤ log₂(x/2) ≤ 1 gives 1/2 ≤ x/2 ≤ 2, so 1 ≤ x ≤ 4. [1/2, 2] is the range of x/2, not x; (0, 4] keeps only the upper bound, and [2, 8] multiplies the wrong way. - The range of f(x) = x/(1 + x²) is:
A) [−1, 1]
B) [−1/2, 1/2]
C) [0, 1/2]
D) all real numbers
Answer: B) [−1/2, 1/2] — y = x/(1 + x²) gives yx² − x + y = 0; real x needs 1 − 4y² ≥ 0, so −1/2 ≤ y ≤ 1/2, with −1/2 reached at x = −1 and 1/2 at x = 1. [−1, 1] skips the factor 4, [0, 1/2] forgets negative x, and the function is bounded, so it cannot take every real value. - The range of f(x) = 1/(2 − sin 3x) is:
A) [1/3, 1]
B) [1/3, 1/2]
C) [1/2, 1]
D) [0, 1]
Answer: A) [1/3, 1] — sin 3x runs from −1 to 1, so the denominator runs from 1 to 3 and its reciprocal from 1/3 to 1. The interval [1/2, 1] uses 2 as the largest denominator, [0, 1] ignores the lower bound, and [1/3, 1/2] stops at the middle value sin 3x = 0. - The range of f(x) = |x − 1| + |x − 4| is:
A) [1, 4]
B) [3, ∞)
C) [5, ∞)
D) [0, ∞)
Answer: B) [3, ∞) — The sum of distances from x to 1 and to 4 is least, 3, for every x between 1 and 4, and grows without bound outside. 0 would need x to be at both points at once, 5 adds 1 and 4, and [1, 4] is the set of x-values giving the minimum, not the range. - The range of f(x) = 5 cos x − 12 sin x + 1 is:
A) [−12, 14]
B) [−13, 13]
C) [−14, 12]
D) [−16, 18]
Answer: A) [−12, 14] — 5 cos x − 12 sin x lies between −√(25 + 144) = −13 and 13, so adding 1 gives [−12, 14]. [−13, 13] forgets the + 1, [−16, 18] uses 5 + 12 = 17 instead of 13, and [−14, 12] subtracts 1. - The function f(x) = ln(x + √(x² + 1)) is:
A) neither even nor odd
B) odd
C) even
D) both even and odd
Answer: B) odd — f(−x) = ln(√(x² + 1) − x) = ln[1/(x + √(x² + 1))] = −f(x), using (√(x² + 1) − x)(√(x² + 1) + x) = 1. So f is odd. It is not even, since f(1) ≠ f(−1), and only the zero function is both. - The fundamental period of f(x) = |sin 2x| is:
A) π/2
B) π
C) 2π
D) π/4
Answer: A) π/2 — sin 2x has period π, and the absolute value halves it, giving π/2. π is the period of sin 2x without the modulus, 2π is the period of sin x, and π/4 fails since |sin 2x| is 0 at x = 0 but 1 at x = π/4. - The fundamental period of f(x) = sin⁴x + cos⁴x is:
A) π/4
B) 2π
C) π/2
D) π
Answer: C) π/2 — sin⁴x + cos⁴x = 1 − 2sin²x cos²x = 1 − (1/2)sin²2x = 3/4 + (1/4)cos 4x, whose period is 2π/4 = π/2. π is the period of each term separately, 2π ignores the powers, and π/4 is too small because cos 4x needs a shift of π/2. - The fundamental period of f(x) = sin(πx/2) + cos(πx/3) is:
A) 6
B) 24
C) 2
D) 12
Answer: D) 12 — The periods are 2π ÷ (π/2) = 4 and 2π ÷ (π/3) = 6, and LCM(4, 6) = 12. 24 is their product, 6 is only the second period (shifting by 6 changes the sign of the sine part), and 2 is their HCF. - If f(x) = 1/(1 − x), then f(f(f(2026))) equals:
A) −1/2025
B) 2025/2026
C) −2026
D) 2026
Answer: D) 2026 — f(f(x)) = (x − 1)/x and f(f(f(x))) = x for every x other than 0 and 1, so the answer is 2026. −1/2025 is f(2026) and 2025/2026 is f(f(2026)), stopping one or two steps early; −2026 is a sign slip. - The inverse of f(x) = (eˣ − e⁻ˣ)/2 is:
A) (1/2) ln[(1 + x)/(1 − x)]
B) ln(√(x² + 1) − x)
C) ln(x + √(x² + 1))
D) ln(x + √(x² − 1))
Answer: C) ln(x + √(x² + 1)) — Put y = (eˣ − e⁻ˣ)/2: e²ˣ − 2y eˣ − 1 = 0, so eˣ = y + √(y² + 1), taking the positive root because eˣ is positive. Hence f⁻¹(x) = ln(x + √(x² + 1)). ln(√(x² + 1) − x) equals −ln(x + √(x² + 1)), so it returns −x instead of x; √(x² − 1) belongs to the inverse of (eˣ + e⁻ˣ)/2, and the last form inverts (eˣ − e⁻ˣ)/(eˣ + e⁻ˣ).
Questions
Why must I intersect domains instead of adding them?
A sum or product f(x) + g(x) can only be evaluated where both f and g are defined. So every condition must hold at the same time, which is the intersection of the separate domains.
Is the LCM of the periods always the fundamental period?
Usually, but not always. If the sum simplifies, as in sin⁴x + cos⁴x or |sin x| + |cos x|, the true period can be smaller than the LCM. Rewrite the function first, or test half and quarter of the LCM.
How do I know a function has an inverse?
It must be one-one: no horizontal line meets its graph more than once. Strictly increasing or strictly decreasing functions are one-one. If a function is not one-one, restrict its domain (as x ≥ 0 for x²) before inverting.
Why is the range of (ax + b)/(cx + d) all reals except a/c?
Solving y = (ax + b)/(cx + d) for x gives x = (b − dy)/(cy − a), which fails only when cy = a. Every other y comes from some real x, provided ad − bc ≠ 0.