Mathematics (JEE)HardJEE Main · JEE Advanced

If y″ + y = 2cos x with y(0) = 0 and y′(0) = 0, then y(π/2) equals

  1. A. 0
  2. B. π/4
  3. C. π
  4. D. π/2

Correct answer: D. π/2

Resonance: try y = x(a cos x + b sin x); it gives a = 0, b = 1, so y = x sin x, which already meets both initial conditions. y(π/2) = π/2. Trying a particular solution of the form k cos x fails.

More Differential Equations questions

Exams that ask this topic