JEE Challenger
More from Application of Integrals

Maximum Value of Piecewise Function Bounding Given Area

Let n2n \ge 2 be a natural number and f:[0,1]Rf : [0,1] \to \mathbb{R} be the function defined by

f(x)={n(12nx)if 0x12n2n(2nx1)if 12nx34n4n(1nx)if 34nx1nnn1(nx1)if 1nx1f(x) = \begin{cases} n(1-2nx) & \text{if } 0 \le x \le \frac{1}{2n} \\[6pt] 2n(2nx-1) & \text{if } \frac{1}{2n} \le x \le \frac{3}{4n} \\[6pt] 4n(1-nx) & \text{if } \frac{3}{4n} \le x \le \frac{1}{n} \\[6pt] \frac{n}{n-1}(nx-1) & \text{if } \frac{1}{n} \le x \le 1 \end{cases}

If nn is such that the area of the region bounded by the curves x=0x = 0, x=1x = 1, y=0y = 0 and y=f(x)y = f(x) is 44, then the maximum value of the function ff is

Official Numerical Answer8

Step-by-Step Solution

To find the maximum value of the function f(x)f(x), we first compute the total area of the region bounded by x=0x = 0, x=1x = 1, y=0y = 0, and y=f(x)y = f(x).

The function f(x)f(x) is non-negative on [0,1][0,1] and is defined piecewise. We can calculate the area AA bounded by y=f(x)y = f(x) and the xx-axis by dividing the interval [0,1][0,1] into four sub-intervals:

  1. For x[0,12n]x \in \left[0, \frac{1}{2n}\right]:
    I1=012nn(12nx)dx=n[xnx2]012n=n(12nn4n2)=1214=14I_1 = \int_0^{\frac{1}{2n}} n(1-2nx) \, dx = n \left[ x - nx^2 \right]_0^{\frac{1}{2n}} = n \left( \frac{1}{2n} - \frac{n}{4n^2} \right) = \frac{1}{2} - \frac{1}{4} = \frac{1}{4}

  2. For x[12n,34n]x \in \left[\frac{1}{2n}, \frac{3}{4n}\right]:
    I2=12n34n2n(2nx1)dx=2n[nx2x]12n34n=2n((916n34n)(14n12n))=2n(316n+14n)=18I_2 = \int_{\frac{1}{2n}}^{\frac{3}{4n}} 2n(2nx-1) \, dx = 2n \left[ nx^2 - x \right]_{\frac{1}{2n}}^{\frac{3}{4n}} = 2n \left( \left( \frac{9}{16n} - \frac{3}{4n} \right) - \left( \frac{1}{4n} - \frac{1}{2n} \right) \right) = 2n \left( -\frac{3}{16n} + \frac{1}{4n} \right) = \frac{1}{8}

  3. For x[34n,1n]x \in \left[\frac{3}{4n}, \frac{1}{n}\right]:
    I3=34n1n4n(1nx)dx=4n[xnx22]34n1n=4n((1n12n)(34n932n))=4n(12n1532n)=18I_3 = \int_{\frac{3}{4n}}^{\frac{1}{n}} 4n(1-nx) \, dx = 4n \left[ x - \frac{nx^2}{2} \right]_{\frac{3}{4n}}^{\frac{1}{n}} = 4n \left( \left( \frac{1}{n} - \frac{1}{2n} \right) - \left( \frac{3}{4n} - \frac{9}{32n} \right) \right) = 4n \left( \frac{1}{2n} - \frac{15}{32n} \right) = \frac{1}{8}

  4. For x[1n,1]x \in \left[\frac{1}{n}, 1\right]:
    I4=1n1nn1(nx1)dx=nn1[nx22x]1n1=nn1((n21)(12n1n))=nn1(n1)22n=n12I_4 = \int_{\frac{1}{n}}^{1} \frac{n}{n-1}(nx-1) \, dx = \frac{n}{n-1} \left[ \frac{nx^2}{2} - x \right]_{\frac{1}{n}}^{1} = \frac{n}{n-1} \left( \left( \frac{n}{2} - 1 \right) - \left( \frac{1}{2n} - \frac{1}{n} \right) \right) = \frac{n}{n-1} \cdot \frac{(n-1)^2}{2n} = \frac{n-1}{2}

Summing up the individual areas gives the total area AA:
A=I1+I2+I3+I4=14+18+18+n12=12+n12=n2A = I_1 + I_2 + I_3 + I_4 = \frac{1}{4} + \frac{1}{8} + \frac{1}{8} + \frac{n-1}{2} = \frac{1}{2} + \frac{n-1}{2} = \frac{n}{2}

We are given that the total area A=4A = 4: n2=4    n=8\frac{n}{2} = 4 \implies n = 8

Since f(x)f(x) is piecewise linear on each sub-interval, its maximum value must occur at one of the boundary points:

  • f(0)=n=8f(0) = n = 8
  • f(12n)=0f\left(\frac{1}{2n}\right) = 0
  • f(34n)=n=8f\left(\frac{3}{4n}\right) = n = 8
  • f(1n)=0f\left(\frac{1}{n}\right) = 0
  • f(1)=n=8f(1) = n = 8

Thus, the maximum value of the function ff is n=8n = 8.