A function g(z) is defined in the interval [0, 1] on the z-axis as: g(z) = { 2 if 0 <= z < 1/2 { 3 if 1/2 <= z < 1 { 2 if z = 1 Which one of the following is the area under the curve for the interval [0, 1] on the z-axis? A. 1/2 B. 3/4 C. 5/2 D. 3/2
GATE 2022 · General Aptitude · Cartesian Coordinates · medium
Answer: Area under g(z) on [0, 1] = 5/2. Answer: C. 5/2.
- Integrate over [0, 1/2): On [0, 1/2), g(z) = 2 everywhere. Area = 2 * 1/2 = 1.
- Integrate over [1/2, 1): On [1/2, 1), g(z) = 3. Area = 3 * 1/2 = 3/2.
- Add contributions: Total area under g(z) on [0, 1] = 1 + 3/2 = 5/2 = 2.5.