Mathematics (JEE)HardJEE Advanced (PYQ pattern)

The function y(x) is continuous on [0, 2] and satisfies y′ + y = 2 for 0 ≤ x ≤ 1, y′ + y = 0 for 1 < x ≤ 2, with y(0) = 0. Then y(2) equals

  1. A. 2(1 − e⁻²)
  2. B. 2(1 − e⁻¹)e⁻²
  3. C. 2(e⁻¹ − e⁻²)
  4. D. 2e⁻¹ − e⁻²

Correct answer: C. 2(e⁻¹ − e⁻²)

On [0, 1], y = 2(1 − e⁻ˣ), so y(1) = 2(1 − e⁻¹). By continuity y(1) is the starting value on [1, 2], where y = y(1)e^(−(x−1)); at x = 2 this is 2(1 − e⁻¹)e⁻¹ = 2(e⁻¹ − e⁻²).

More Differential Equations questions

Exams that ask this topic