Solveeit Logo

Question

Question: On the real line \[\mathbb{R}\], we define two functions \(f\) and \(g\) as follows: \( f(x) =...

On the real line R\mathbb{R}, we define two functions ff and gg as follows:
f(x)=minx[x],1x+[x], g(x)=maxx[x],1x+[x]  f(x) = \min \\{ x - \left[ x \right],1 - x + \left[ x \right]\\} , \\\ g(x) = \max \\{ x - \left[ x \right],1 - x + \left[ x \right]\\} \\\
where [x]\left[ x \right] denotes the largest integer not exceeding xx. The positive integer nn for which 0n(g(x)f(x))dx=100\int\limits_0^n {(g(x) - f(x))dx = 100} is?
A) 100100
B) 198198
C) 200200
D) 202202

Explanation

Solution

Since f(x),g(x)f(x),g(x) represent the minimum and maximum of x[x],1x+[x]\\{ x - \left[ x \right],1 - x + \left[ x \right]\\} , 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 nn.

Useful formula:
For every real number xx, [x]\left[ x \right] is the greatest integer less than or equal to xx. So, 0x[x]<10 \leqslant x - \left[ x \right] < 1.
Integral can be split, that is if a<b<c,acf(x)dx=abf(x)dx+bcf(x)dxa < b < c,\int\limits_a^c {f(x)dx = \int\limits_a^b {f(x)dx + \int\limits_b^c {f(x)dx} } }
Also, 0n(g(x)f(x))dx=n01(g(x)f(x))dx\int\limits_0^n {(g(x) - f(x))dx = n\int\limits_0^1 {(g(x) - f(x))dx} }

Complete step by step solution:
Given, f(x)=minx[x],1x+[x],g(x)=maxx[x],1x+[x]f(x) = \min \\{ x - \left[ x \right],1 - x + \left[ x \right]\\} ,g(x) = \max \\{ x - \left[ x \right],1 - x + \left[ x \right]\\}
Let x[x]=fx - \left[ x \right] = f.
So, we have, f(x)=minf,1f,g(x)=maxf,1ff(x) = \min \\{ f,1 - f\\} ,g(x) = \max \\{ f,1 - f\\}
By the definition of greatest integer function that is [x]\left[ x \right],
We have, 0x[x]<10f<10 \leqslant x - \left[ x \right] < 1 \Rightarrow 0 \leqslant f < 1
So there are two cases. 0<f<0.50 < f < 0.5 and 0.5<f<10.5 < f < 1.
If 0<f<0.50 < f < 0.5, then f(x)=minf,1f=f g(x)=maxf,1f=1f  f(x) = \min \\{ f,1 - f\\} = f \\\ g(x) = \max \\{ f,1 - f\\} = 1 - f \\\
and if 0.5<f<10.5 < f < 1, then f(x)=minf,1f=1f g(x)=maxf,1f=f  f(x) = \min \\{ f,1 - f\\} = 1 - f \\\ g(x) = \max \\{ f,1 - f\\} = f \\\
We are asked to find nn such that0n(g(x)f(x))dx=100\int\limits_0^n {(g(x) - f(x))dx = 100}
Using the results in integration we have,
0n(g(x)f(x))dx=n01(g(x)f(x))dx\int\limits_0^n {(g(x) - f(x))dx = n\int\limits_0^1 {(g(x) - f(x))dx} }
01dx=00.5dx+0.51dx\int\limits_0^1 {dx} = \int\limits_0^{0.5} {dx + \int\limits_{0.5}^1 {dx} }
So we have,
0n(g(x)f(x))dx=n(00.5(g(x)f(x))dx+0.51(g(x)f(x))dx)\int\limits_0^n {(g(x) - f(x))dx = n(\int\limits_0^{0.5} {(g(x) - f(x))dx} } + \int\limits_{0.5}^1 {(g(x) - f(x))dx} )
0n(g(x)f(x))dx=n00.5(12x)dx+n0.51(2x1)dx\int\limits_0^n {(g(x) - f(x))dx = n\int\limits_0^{0.5} {(1 - 2x)dx} } + n\int\limits_{0.5}^1 {(2x - 1)dx}
Integrating the above equation we get,
0n(g(x)f(x))dx=n[x2x22]00.5+n[2x22x]0.51\int\limits_0^n {(g(x) - f(x))dx = n[x - \dfrac{{2{x^2}}}{2}} ]_0^{0.5} + n[\dfrac{{2{x^2}}}{2} - x]_{0.5}^1
Simplifying we have,
0n(g(x)f(x))dx=n[xx2]00.5+n[x2x]0.51\int\limits_0^n {(g(x) - f(x))dx = n[x - {x^2}} ]_0^{0.5} + n[{x^2} - x]_{0.5}^1
Applying the limits,
0n(g(x)f(x))dx=n[0.50.25(00)]+n[11(0.250.5)]\int\limits_0^n {(g(x) - f(x))dx = n[0.5 - 0.25 - (0 - 0)} ] + n[1 - 1 - (0.25 - 0.5)]
0n(g(x)f(x))dx=n[0.50.25]+n[(0.250.5)]\Rightarrow \int\limits_0^n {(g(x) - f(x))dx = n[0.5 - 0.25} ] + n[ - (0.25 - 0.5)]
Simplifying the above equation we have,
0n(g(x)f(x))dx=0.25n+0.25n=0.5n\Rightarrow \int\limits_0^n {(g(x) - f(x))dx = 0.25n} + 0.25n = 0.5n
We are asked to find nn such that0n(g(x)f(x))dx=100\int\limits_0^n {(g(x) - f(x))dx = 100}
So by above equation we have,
0.5n=1000.5n = 100
Dividing both sides we get,
n=1000.5=200\Rightarrow n = \dfrac{{100}}{{0.5}} = 200
n=200\therefore 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.