6.6 Piecewise Functions
In these type of questions, function provides different outputs for different ranges of inputs. A good way to
solve these is to form a table and/or assume values across different ranges.
Example 18 & 19
| f1(x)=x, if 0≤x≤1 |
f2(x)=f1(−x) for all x |
| =1, if x≥1 |
f3(x)=−f2(x) for all x |
| =0 otherwise |
f4=f3(−x) for all x |
[CAT 2004]
How many of the following products are necessarily zero for every x−f4(x)f2(x),f2(x)f3(x),f2(x)f4(x)?
(1) 0
(2) 1
(3) 2
(4) 3
Solution
As
f1(x) is a piecewise function with 3 different outputs across 3 different ranges, we shall form a table with the 3 ranges in the columns and take 3 reference values for each range.
Note: If a positive and negative values are to be taken, avoid taking values such as +2 and −2 wherein each values' modulus give the same result. The of -2, 0.5 and 3 that have been used are quite distinct.
|
x<0 |
0≤x≤1 |
x>1 |
| Reference Value |
x=−2 |
x=0.5 |
x=3 |
| f1(x) |
0 |
1 |
3 |
| f2(x)=f1(−x) |
2 |
0 |
0 |
| f3(x)=−f2(x) |
−2 |
0 |
0 |
| f4(x)=f3(−x)=−f2(−x)=−f1(x) |
0 |
−1 |
−3 |
f2(x)f3(x) at x=−2 , provides a value of 2×−2=−4
f1(x)f2(x) and f2(x)f4(x) across the 3 ranges is always 0. Therefore, 2 of the products are always 0.
Answer: (3) 2
19) Which of the following is necessarily true?
(1) f4(x)=f1(x) for all x
(2) f1(x)=−f3(−x) for all x
(3) f2(−x)=f4(x) for all x (4) f1(x)+f3(x)=0 for all x
Option (1) is not true at x=0.5 and x=3.
Option (2): −f3(−x)=−(−f2(−x))=f2(−x)=f1(−(−x))=f1(x) . This is always true.
Option (3): We note from the table that f4(x)=f3(−x)=−f2(−x) . Therefore, this is also incorrect.
Option (4) is not true for any of the x-values.
Answer: (2) f1(x)=−f3(−x) for all x
6.7 Non-standard input for the function
In these questions equate the required input to the function's input, solve for
x and the substitute the x-value in the output.
Example 20
If f(x−12x+3)=x−2x+4 , then f(5) = ?
Solution
In these question, we first equate the input term to 5, solve for x and then substitute x in the output.
If(x−12x+3)=5 ⇒ 2x+3=5x−5 ⇒ x=38
The question states(x−12x+3)=x−2x+4
When x=38, f(x−12x+3)=f(5)=38−238+4=32320
⇒ f(5)=10
Answer: 10
Example 21
If 3f(x+2)+4f(x+21)=4x,x=−2 , the f(4) is
[XAT 2008]
(1) 7
(2) 752
(3) 8
(4) 756
(5) None of the above
Solution
The 2 functions have non-standard inputs with 1 being the reciprocal of the other. The equation looks like a linear equation with 2 variables. We need to form 2 equations to solve it.
If the first input equals 4, i.e. x+2=4 ⇒ x=2
Substituting x=2, we get 3f(4)+4f(41)=8 -----(a)
If the second input equals 4, i.e. x+21=4 ⇒ x=−47
Substituting x = −47, we get 3f(41)+4f(4)=−7 -----(b)
4×(b)−3×(a) ⇒ 4f(4)=−52
⇒ f(4) = − 752
Answer: (5) None of the above
6.8 Substitute and get the answer
In these questions, substitute small integral values for
x, starting from 1 and find the option that is true.
Example 22
If f(x)=2x−33x+2, then which of the following is true?
(1)f(x)=f(−x)
(2) f(x)=f(−x)−1
(3) x=f(f(x))
(4) f(x)=−f(−x)
Solution
In these questions, substitute values for x and proceed by eliminating the answer options.
f(1)=2−33+2=−5 and f(−1)=−2−3−3+2=51
As f(1)=f(−1) , option (1) is rejected
As f(1)=−f(−1) , option (4) is rejected
As f(1)=f(−1)−1 , we keep option (2) on hold and check if option (3) can be rejected.
f(f(1))=f(−5)=−10−3−15+2=1,
∴ Option (3) cannot be rejected. We need to substitute a different value, say x=2 and check for options 2 and 3 alone.
f(2)=8 and f(−2)=74
Clearly, f(2)=f(−2)−1 and option (2) is rejected. And, the correct answer is option (3).
Note that f(f(2))=f(8)=16−324+2=2 . So, option (3) is true.
Answer: (3) x=f(f(x))