Question

A function y(x)y(x) is defined in the interval [0,1][0, 1] on the xx-axis as

y(x)={2if 0≤x<133if 13≤x<341if 34≤x≤1y(x) = \begin{cases} 2 & \text{if } 0 \le x < \frac{1}{3} \\ 3 & \text{if } \frac{1}{3} \le x < \frac{3}{4} \\ 1 & \text{if } \frac{3}{4} \le x \le 1 \end{cases}

Which one of the following is the area under the curve for the interval [0,1][0, 1] on the xx-axis?

Choose one option
Official answer and solution
Official answer
C
From
Official GATE 2022 answer key

Solution

Integrate the piecewise constant function over [0,1][0, 1] by summing the areas of the rectangular regions under each interval.

The area under the curve is given by the definite integral:

Area=∫01y(x) dx=∫01/32 dx+∫1/33/43 dx+∫3/411 dx\text{Area} = \int_0^1 y(x)\,dx = \int_0^{1/3} 2\,dx + \int_{1/3}^{3/4} 3\,dx + \int_{3/4}^1 1\,dx

Evaluating each component:

  1. ∫01/32 dx=2×(13−0)=23\int_0^{1/3} 2\,dx = 2 \times \left(\frac{1}{3} - 0\right) = \frac{2}{3}
  2. ∫1/33/43 dx=3×(34−13)=3×9−412=3×512=54\int_{1/3}^{3/4} 3\,dx = 3 \times \left(\frac{3}{4} - \frac{1}{3}\right) = 3 \times \frac{9 - 4}{12} = 3 \times \frac{5}{12} = \frac{5}{4}
  3. ∫3/411 dx=1×(1−34)=14\int_{3/4}^1 1\,dx = 1 \times \left(1 - \frac{3}{4}\right) = \frac{1}{4}

Summing the three areas:

Area=23+54+14=23+64=23+32=4+96=136\text{Area} = \frac{2}{3} + \frac{5}{4} + \frac{1}{4} = \frac{2}{3} + \frac{6}{4} = \frac{2}{3} + \frac{3}{2} = \frac{4 + 9}{6} = \frac{13}{6}
Final answer

Option (C)

Common trap

Incorrectly computing the interval width 34−13=512\frac{3}{4} - \frac{1}{3} = \frac{5}{12}.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2022 Computer Science and Information Technology (CS)
Question
2 of 65
Section
General Aptitude

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.