Question
Question: On the real line \[\mathbb{R}\], we define two functions \(f\) and \(g\) as follows: \( f(x) =...
On the real line R, we define two functions f and g as follows:
f(x)=minx−[x],1−x+[x], g(x)=maxx−[x],1−x+[x]
where [x] denotes the largest integer not exceeding x. The positive integer n for which 0∫n(g(x)−f(x))dx=100 is?
A) 100
B) 198
C) 200
D) 202
Solution
Since f(x),g(x) represent the minimum and maximum of x−[x],1−x+[x], we can use properties of greatest integer function. Then by splitting the integral accordingly we can simplify the expression. Finally by integration we can find the value of n.
Useful formula:
For every real number x, [x] is the greatest integer less than or equal to x. So, 0⩽x−[x]<1.
Integral can be split, that is if a<b<c,a∫cf(x)dx=a∫bf(x)dx+b∫cf(x)dx
Also, 0∫n(g(x)−f(x))dx=n0∫1(g(x)−f(x))dx
Complete step by step solution:
Given, f(x)=minx−[x],1−x+[x],g(x)=maxx−[x],1−x+[x]
Let x−[x]=f.
So, we have, f(x)=minf,1−f,g(x)=maxf,1−f
By the definition of greatest integer function that is [x],
We have, 0⩽x−[x]<1⇒0⩽f<1
So there are two cases. 0<f<0.5 and 0.5<f<1.
If 0<f<0.5, then f(x)=minf,1−f=f g(x)=maxf,1−f=1−f
and if 0.5<f<1, then f(x)=minf,1−f=1−f g(x)=maxf,1−f=f
We are asked to find n such that0∫n(g(x)−f(x))dx=100
Using the results in integration we have,
0∫n(g(x)−f(x))dx=n0∫1(g(x)−f(x))dx
0∫1dx=0∫0.5dx+0.5∫1dx
So we have,
0∫n(g(x)−f(x))dx=n(0∫0.5(g(x)−f(x))dx+0.5∫1(g(x)−f(x))dx)
0∫n(g(x)−f(x))dx=n0∫0.5(1−2x)dx+n0.5∫1(2x−1)dx
Integrating the above equation we get,
0∫n(g(x)−f(x))dx=n[x−22x2]00.5+n[22x2−x]0.51
Simplifying we have,
0∫n(g(x)−f(x))dx=n[x−x2]00.5+n[x2−x]0.51
Applying the limits,
0∫n(g(x)−f(x))dx=n[0.5−0.25−(0−0)]+n[1−1−(0.25−0.5)]
⇒0∫n(g(x)−f(x))dx=n[0.5−0.25]+n[−(0.25−0.5)]
Simplifying the above equation we have,
⇒0∫n(g(x)−f(x))dx=0.25n+0.25n=0.5n
We are asked to find n such that0∫n(g(x)−f(x))dx=100
So by above equation we have,
0.5n=100
Dividing both sides we get,
⇒n=0.5100=200
∴n=200
Therefore the answer is option C.
Additional information:
Greatest integer function is also called the floor function. There is also another function called ceiling function, which is defined as the lowest integer greater than or equal to the given number.
Note: We should be careful in splitting the integral. Upper limit of the first integral must be equal to the lower limit of the second integral. Otherwise, some portions will be missed from integration or extra portions will be added.