Question
Question: Define a function \[f:R \to R{\text{ }}by{\text{ }}f(x) = \max \left\\{ {\left| x \right|,\left| {x ...
Define a function f:R \to R{\text{ }}by{\text{ }}f(x) = \max \left\\{ {\left| x \right|,\left| {x - 1} \right|,.......\left| {x - 2n} \right|} \right\\}
Where n is a fixed natural number. Then 0∫2nf(x)dx is.
(A) n
(B) n2
(C) 3n
(D) 3n2
Solution
Hint:- Check values of f(x) in different ranges from [0,2n].
As we know that we had to find the value of 0∫2nf(x)dx.
⇒Where, f(x) = \max \left\\{ {\left| x \right|,\left| {x - 1} \right|,.......\left| {x - 2n} \right|} \right\\}{\text{ }} (1)
So, from equation 1, we can see that the value of f(x) will be,
⇒f(x)=∣x−2n∣ for x in range [0,n] (2)
⇒f(x)=∣x∣ for x in range [n,2n] (3)
So, to find the value of 0∫2nf(x)dx we had to break the limits of the integral into two parts,
⇒So, 0∫2nf(x)dx=0∫nf(x)dx+n∫2nf(x)dx (4)
⇒And, 0∫nf(x)dx=0∫n∣x−2n∣dx from equation 2
As, we know that 2n >x for x in range [0,n].
⇒So, 0∫nf(x)dx=0∫n(2n−x)dx
Now we had to solve the above equation.
So, solving the above equation. It becomes,
⇒0∫nf(x)dx=(2nx−2x2)0n=(2n2−2n2)=23n2 (5)
⇒And, n∫2nf(x)dx=n∫2n∣x∣dx from equation 3
⇒So, n∫2nf(x)dx=n∫2n(x)dx for x in range [n,2n]
So, solving the above equation. It becomes,
⇒n∫2nf(x)dx=(2x2)n2n = (24n2−2n2) = 23n2 (6)
Now, putting the value of 0∫nf(x)dx and n∫2nf(x)dx from equation 5 and 6 to equation 4.
⇒So, 0∫2nf(x)dx=23n2+23n2=3n2
Hence, the correct option will be D.
Note:- Whenever we came up with this type of problem then we should break the
limits of integral according to the value of function in different ranges. Otherwise
solving the given integral without checking the value of integral in different integral
will give us incorrect answers.