Function, domain and range
In a shop the price is fixed by the weight: one weight, one price. A rule that gives exactly one output for every input is a function. Building on classes 9–10 : Since classes 9–10 we know equations such as y = 2x + 1 and their graphs; here we treat them as functions.
A rule f : A → B that joins every x of A with exactly one y of B is a function. A is the domain, B the co-domain, and the set of values y actually obtained is the range.
Rule 1: Finding the domain — No zero in a denominator: for 1/(x − a), x ≠ a. No negative under a square root: for √(x − a), x ≥ a. If both occur obey both. If a vertical line cuts the graph twice, it is not a function.
In the figure : f(x) = 2x: A = {1, 2, 3}, B = {2, 4, 6, 8}; range {2, 4, 6}.
How is the formula obtained? : In a function one x cannot have two y values, but two x may share one y. So {(1, 2), (1, 3)} is not a function, but {(1, 2), (2, 2)} is.
- Easy : f(x) = 3x − 2: f(4) = 3 × 4 − 2 = 10.
- Medium : f(x) = √(x − 3)/(x − 5): need x − 3 ≥ 0 and x ≠ 5; domain [3, ∞) with 5 removed.
- Exam-type : f(x) = √(9 − x²): 9 − x² ≥ 0, that is −3 ≤ x ≤ 3; domain [−3, 3], range [0, 3].
The range is a subset of the co-domain; they need not be equal.
Forgetting to apply both the denominator and the square-root conditions together.
For the domain first write "what is not allowed": division by zero and the square root of a negative. Memory clue : "No zero below, no negative under a root".
For 1/√(x − 2) x = 2 is not allowed because the denominator is 0; the domain is (2, ∞).
CET-style example : The domain of f(x) = 1/√(x − 2) is? (A) (2, ∞) (B) [2, ∞) (C) (−∞, 2) (D) R − {2}
Answer : (A). x − 2 > 0. Time-saving method : Under the root positive and denominator not zero, so x − 2 > 0 (not equal).
Spot the difference
| Set | Meaning | f(x) = 2x, A = {1, 2, 3} |
|---|---|---|
| Domain | inputs x | {1, 2, 3} |
| Co-domain | given B | {2, 4, 6, 8} |
| Range | values obtained | {2, 4, 6} |
Practice questions
- 1f(x) = x² + 1: find f(3).
- 2Is {(1, 2), (1, 3)} a function?
- 3f(x) = 5 − x: find f(−2).
- 4Write the domain of 1/(x − 4).
- 5Write the domain of √(x + 5).
- 6Write the range of f(x) = x² on R.
- 7Write the domain of √(x − 2) + √(6 − x).
- 8Write the range of f(x) = √(16 − x²).
Show answers (try them yourself first)
- 110.
- 2नाही ; 1 ला दोन y.
- 37.
- 4R − {4}.
- 5[−5, ∞).
- 6[0, ∞).
- 7[2, 6].
- 8[0, 4].
Types of functions
On a bus each passenger has a separate seat and no seat is empty, so passengers and seats are perfectly paired. In functions we look at the same kinds of properties. Building on classes 9–10 : Since classes 9–10 we have found y for each x; here we study properties of the pairing.
One-one: different x give different y. Onto: every element of the co-domain is the y of some x (range = co-domain). If both hold the function is bijective.
Rule 1: Counting functions — m elements → n elements: all functions nᵐ; one-one ⁿPₘ (n ≥ m); when m = n bijective n!.
In the figure : Three diagrams: one-one, onto, bijective.
How is the formula obtained? : Each x has n choices of y, m times: nᵐ. For one-one no y can be reused: n × (n − 1) × … = ⁿPₘ.
- Easy : f(x) = 2x + 3 (R → R) is one-one and onto, because from y = 2x + 3 we always get x = (y − 3)/2.
- Medium : f(x) = x² (R → R): f(2) = f(−2) = 4, so not one-one; −1 is nobody’s square, so not onto.
- Exam-type : f(x) = x² from [0, ∞) to [0, ∞) is bijective. From 3 elements to 5: one-one functions ⁵P₃ = 60 and all functions 5³ = 125.
To test one-one, take f(a) = f(b) and see whether a = b follows.
Changing the domain or co-domain can change the type; x² is not one-one on R but is on [0, ∞).
If a horizontal line cuts the graph twice, it is not one-one. Memory clue : "Horizontal line twice means not one-one".
When counting one-one functions with m > n the answer is 0; ⁿPₘ does not apply.
CET-style example : How many one-one functions are there from {1, 2, 3} to {1, 2, 3, 4, 5}? (A) 60 (B) 125 (C) 15 (D) 243
Answer : (A). ⁵P₃ = 5 × 4 × 3 = 60. Time-saving method : 125 counts all functions; one-one means no repeats.
Spot the difference
| Type | Condition | Example |
|---|---|---|
| One-one | different x → different y | 2x + 3 |
| Onto | range = co-domain | 2x + 3 (R → R) |
| Bijective | both | x² ([0, ∞) → [0, ∞)) |
Practice questions
- 1How many functions are there from a 2-element set to a 3-element set?
- 2Of these how many are one-one?
- 3Is f(x) = 3x − 1 one-one?
- 4Is f(x) = x² from {−1, 0, 1} to {0, 1} one-one?
- 5How many bijections are there from a 4-element set onto itself?
- 6How many onto functions are there from 3 elements to 2 elements?
- 7How many onto functions are there from 4 elements to 2 elements?
- 8How many one-one functions are there from 3 elements to 4 elements?
Show answers (try them yourself first)
- 13² = 9.
- 2³P₂ = 6.
- 3हो ; 3a − 1 = 3b − 1 वरून a = b.
- 4नाही ; f(−1) = f(1) = 1.
- 54! = 24.
- 62³ − 2 = 6.
- 72⁴ − 2 = 14.
- 8⁴P₃ = 24.
Standard functions
To tell how far the temperature is from zero we drop the sign and give the size only. A bus fare that rises in steps with each stage is a staircase. Building on classes 9–10 : Since classes 9–10 we know absolute value and rounding down; here they appear as functions.
∣x∣ = x (x ≥ 0), −x (x < 0). [x] = the greatest integer less than or equal to x. {x} = x − [x] (fractional part). sgn x = 1 (x > 0), 0 (x = 0), −1 (x < 0).
Rule 1: Useful rules — ∣x∣ < a means −a < x < a; ∣x∣ = a means x = ±a; [x] = n means n ≤ x < n + 1; 0 ≤ {x} < 1.
In the figure : Three graphs: ∣x∣, [x], sgn x.
How is the formula obtained? : For [x] we go down even when x is negative: [−2.3] = −3, not −2. So {−2.3} = −2.3 − (−3) = 0.7.
- Easy : ∣−5∣ = 5; [3.7] = 3; [−2.3] = −3; {−2.3} = 0.7.
- Medium : ∣x − 2∣ = 5: x − 2 = 5 or −5; x = 7 or −3. [x] = 3: 3 ≤ x < 4.
- Exam-type : ∣x − 1∣ < 3: −3 < x − 1 < 3, that is −2 < x < 4. Also [x] + {x} = x always.
∣x∣ is never negative; {x} always lies from 0 up to but not including 1.
Taking [−2.3] = −2. The correct value is −3, the greatest integer not above −2.3.
For [x] look to the left on the number line and take the nearest integer. Memory clue : "The step below".
∣x∣ > a splits into two parts: x > a or x < −a; not the middle part.
CET-style example : [−3.2] + [3.2] = ? (A) −1 (B) 0 (C) −2 (D) 1
Answer : (A). −4 + 3 = −1. Time-saving method : For the negative number go one step down: −3.2 → −4.
Spot the difference
| Function | for x = −2.3 | for x = 3.7 |
|---|---|---|
| ∣x∣ | 2.3 | 3.7 |
| [x] | −3 | 3 |
| {x} | 0.7 | 0.7 |
| sgn x | −1 | 1 |
Practice questions
- 1Find ∣−8∣.
- 2Find [5.9].
- 3Find [−0.5].
- 4Solve ∣x + 4∣ = 6.
- 5Find {−1.6}.
- 6Write the x with [x] = −2.
- 7Solve ∣2x − 3∣ ≤ 5 (integer x).
- 8Find [−1.5] × [1.5].
Show answers (try them yourself first)
- 18.
- 25.
- 3−1.
- 4x = 2 किंवा −10.
- 5−1.6 − (−2) = 0.4.
- 6−2 ≤ x < −1.
- 7−5 ≤ 2x − 3 ≤ 5 ; −1 ≤ x ≤ 4 : −1, 0, 1, 2, 3, 4.
- 8(−2) × 1 = −2.
Algebra of functions and composite function
Grain is milled to flour and flour is made into bread: the first machine takes the input and hands its output to the second. Such a chain is a composite function. Building on classes 9–10 : Since classes 9–10 we have added and multiplied algebraic expressions; here we do it for functions.
(f + g)(x) = f(x) + g(x); (fg)(x) = f(x) · g(x); (f/g)(x) = f(x)/g(x), g(x) ≠ 0. The composite function (f ∘ g)(x) = f(g(x)): first g, then f.
Rule 1: Domains — For sum and product take the common part of the two domains; for a quotient remove g(x) = 0; for f ∘ g the range of g must lie in the domain of f.
In the figure : x → g → f: f(g(x)).
How is the formula obtained? : f(x) = 2x + 1, g(x) = x²: f(g(x)) = 2x² + 1 and g(f(x)) = (2x + 1)²; they differ, so order matters.
- Easy : f(x) = 2x + 1, g(x) = x²: (f ∘ g)(2) = f(4) = 9; (g ∘ f)(2) = g(5) = 25.
- Medium : f(x) = x + 2, g(x) = 3x: (f ∘ g)(x) = 3x + 2; (g ∘ f)(x) = 3x + 6.
- Exam-type : f(x) = √x, g(x) = x − 4: f ∘ g = √(x − 4), domain x ≥ 4; the domain of f/g is x ≥ 0, x ≠ 4.
In (f ∘ g)(x) the inner function g acts first.
Taking f ∘ g and g ∘ f as the same. They usually differ.
Find the inner value first and put it into the outer function. Memory clue : "Inside first, outside next".
(f ∘ g)(2) means f(g(2)), not g(f(2)).
CET-style example : If f(x) = x + 2 and g(x) = 3x then (f ∘ g)(2) = ? (A) 8 (B) 12 (C) 10 (D) 14
Answer : (A). g(2) = 6, f(6) = 8. Time-saving method : 12 is g(f(2)); watch the order.
Spot the difference
| Function | f(x) = x + 2, g(x) = 3x | for x = 2 |
|---|---|---|
| f ∘ g | 3x + 2 | 8 |
| g ∘ f | 3x + 6 | 12 |
| f + g | 4x + 2 | 10 |
| fg | 3x² + 6x | 24 |
Practice questions
- 1f(x) = x + 3, g(x) = 2x: find (f + g)(2).
- 2Find (fg)(1).
- 3Find f(g(1)).
- 4f(x) = x², g(x) = x − 1: find (f ∘ g)(3).
- 5Find (g ∘ f)(3).
- 6Find (f − g)(2).
- 7f(x) = 2x + 3, g(x) = (x − 3)/2: find f(g(7)) and state the conclusion.
- 8f(x) = x² + 1, g(x) = √(x − 1): find g(f(−2)).
Show answers (try them yourself first)
- 1(f + g)(2) = 5 + 4 = 9.
- 2(fg)(1) = 4 × 2 = 8.
- 3g(1) = 2, f(2) = 5.
- 4g(3) = 2, f(2) = 4.
- 5f(3) = 9, g(9) = 8.
- 64 − 1 = 3.
- 7g(7) = 2, f(2) = 7 ; f(g(x)) = x, म्हणजे दोन्ही एकमेकांचे व्यस्त.
- 8f(−2) = 5, g(5) = 2.
Inverse function
Reversing the rule that turns Celsius into Fahrenheit gives Fahrenheit back to Celsius. A rule that can be reversed completely gives an inverse function. Building on classes 9–10 : Since classes 9–10 we have solved an equation for x; here we use the same method to find an inverse.
If f : A → B is one-one and onto, then f⁻¹ : B → A satisfies f⁻¹(f(x)) = x and f(f⁻¹(y)) = y. Only a bijective function has an inverse.
Rule 1: Method to find the inverse — Write y = f(x); solve for x; swap x and y. The graph of f⁻¹ is the mirror image in the line y = x.
In the figure : f(x) = 2x + 1 and f⁻¹: (1, 3) becomes (3, 1).
How is the formula obtained? : f(1) = 3 means f⁻¹(3) = 1; every point (a, b) becomes (b, a), and this swap is exactly the mirror image in the line y = x.
- Easy : f(x) = 3x − 4: y = 3x − 4, x = (y + 4)/3; f⁻¹(x) = (x + 4)/3.
- Medium : f(x) = x³ + 1: x = (y − 1)¹ᐟ³; f⁻¹(x) = (x − 1)¹ᐟ³.
- Exam-type : f(x) = (x + 1)/(x − 2): y(x − 2) = x + 1; x(y − 1) = 2y + 1; f⁻¹(x) = (2x + 1)/(x − 1).
f⁻¹ does not mean 1/f; it is the reversing function.
Forgetting to swap x and y. In the end write the function in terms of x.
To find f⁻¹(k) just solve f(x) = k; no need for the inverse formula. Memory clue : "Which x gave this?".
x² has no inverse on R because it is not one-one; the domain must be restricted to [0, ∞).
CET-style example : If f(x) = 2x + 5 then f⁻¹(9) = ? (A) 2 (B) 7 (C) 4 (D) 14
Answer : (A). 2x + 5 = 9, x = 2. Time-saving method : Solve f(x) = 9 without finding the formula.
Spot the difference
| f(x) | f⁻¹(x) | Check |
|---|---|---|
| 3x − 4 | (x + 4)/3 | f(2) = 2, f⁻¹(2) = 2 |
| x³ + 1 | (x − 1)¹ᐟ³ | f(2) = 9, f⁻¹(9) = 2 |
| 2x + 5 | (x − 5)/2 | f(2) = 9, f⁻¹(9) = 2 |
Practice questions
- 1f(x) = x + 1: find f⁻¹(5).
- 2Write the inverse of f(x) = x + 7.
- 3If f(x) = x + 7 find f⁻¹(10).
- 4f(x) = 5x − 3: find f⁻¹(12).
- 5g(x) = 4x − 3: find g(3).
- 6Write the inverse f⁻¹(x) of f(x) = 2x.
- 7f(x) = (x + 1)/(x − 2): find f⁻¹(3).
- 8In which line are the graphs of f(x) = 2x + 1 and f⁻¹ mirror images?
Show answers (try them yourself first)
- 1x + 1 = 5, x = 4.
- 2f⁻¹(x) = x − 7.
- 310 − 7 = 3.
- 45x − 3 = 12, x = 3.
- 59.
- 6f⁻¹(x) = x/2.
- 7f⁻¹(3) = (2 × 3 + 1)/(3 − 1) = 7/2.
- 8y = x.
Exponential and logarithmic functions
A bank balance grows by a fixed factor each year: 1000, 1100, 1210 …. This is exponential growth. "In how many years will it double?" is the reverse question, answered by a logarithm. Building on classes 9–10 : Since classes 9–10 we know the laws of indices; here they become a function and its inverse, the logarithm.
The function aˣ (a > 0, a ≠ 1) has domain R and range (0, ∞). log_a x = y means aʸ = x; its domain is (0, ∞) and its range is R. They are inverses of each other.
Rule 1: Laws of logarithms — log(mn) = log m + log n; log(m/n) = log m − log n; log mⁿ = n log m; log_a a = 1; log_a 1 = 0.
In the figure : 2ˣ and log₂ x: (0, 1) and (1, 0); mirror images in y = x.
How is the formula obtained? : With m = aᵖ and n = aᑫ we get mn = aᵖ⁺ᑫ. So log(mn) = p + q = log m + log n.
- Easy : log₂ 8 = 3 because 2³ = 8; log₁₀ 0.001 = −3.
- Medium : log₂ 6 + log₂ (4/3) = log₂ 8 = 3; 3 log₂ 5 = log₂ 125.
- Exam-type : Given log₁₀ 2 = 0.3010: log₁₀ 8 = 3 × 0.3010 = 0.9030; log₁₀ 5 = log₁₀ (10/2) = 1 − 0.3010 = 0.6990.
log (a + b) is not log a + log b; the laws are only for product, quotient and power.
Forgetting that the domain of log is (0, ∞) and taking log of a negative or zero.
Write log_a x = y in the exponential form aʸ = x; the equation becomes easy. Memory clue : "Log means exponent".
In a log equation keep only the value for which every log argument is positive; reject the others.
CET-style example : log₃ 81 − log₂ 8 = ? (A) 1 (B) 7 (C) 4 (D) 3
Answer : (A). 4 − 3 = 1. Time-saving method : Recognise 3⁴ = 81 and 2³ = 8.
Spot the difference
| Point | aˣ | log_a x |
|---|---|---|
| Domain | R | (0, ∞) |
| Range | (0, ∞) | R |
| Key point | (0, 1) | (1, 0) |
Practice questions
- 1Find log₅ 25.
- 2Find log₂ 32.
- 3Find log₁₀ 1.
- 4Find log₃ (1/9).
- 5Find log₂ 3 + log₂ (8/3).
- 6Solve 2ˣ = 64.
- 7Solve log₂ (x + 1) = 4.
- 8Solve log₂ x + log₂ (x − 2) = 3.
Show answers (try them yourself first)
- 12.
- 25.
- 30.
- 4−2.
- 5log₂ 8 = 3.
- 6x = 6.
- 7x + 1 = 16 ; x = 15.
- 8x(x − 2) = 8 ; x = 4 किंवा −2 ; −2 वगळा ; x = 4.
Lesson 6: Functions — quick revision
| Topic | Formula / point |
|---|---|
| Function | exactly one y for each x; domain, co-domain, range |
| Domain | denominator ≠ 0; under a root ≥ 0 |
| Types | one-one, onto, bijective; nᵐ, ⁿPₘ, n! |
| Standard | ∣x∣, [x], {x} = x − [x], sgn x |
| Composite | (f ∘ g)(x) = f(g(x)): g first |
| Inverse | solve y = f(x), swap x and y; graph mirrors in y = x |
| Logarithm | log(mn) = log m + log n; log mⁿ = n log m; inverse of aˣ |
🎯 Most important points for the exam
- First write what is not allowed for the domain.
- [−2.3] = −3.
- In f ∘ g, g acts first.
- f⁻¹ does not mean 1/f.
- The domain of log is (0, ∞).
"Inside first, outside next".