Question:

If \(y = y(x)\) is the solution of the differential equation
\(\frac{dy}{dx} + (\tan x)\,y = \sin x,\ 0 \le x \le \frac{\pi}{3}\), with \(y(0) = 0\), then \(y\left(\frac{\pi}{4}\right)\) is equal to :

Show Hint

Linear first-order DE: the integrating factor is \(\sec x\).
Updated On: Nov 4, 2026
  • \(\frac{1}{2}\log_e 2\)
  • \(\left(\frac{1}{2\sqrt{2}}\right)\log_e 2\)
  • \(\log_e 2\)
  • \(\frac{1}{4}\log_e 2\)
Show Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

The equation is linear: \(\frac{dy}{dx} + Py = Q\) with \(P = \tan x\), \(Q = \sin x\).
Integrating factor \(= e^{\int \tan x\,dx} = e^{\log_e \sec x} = \sec x\) (valid for \(0 \le x \le \frac{\pi}{3}\)).
\(y\sec x = \int \sin x \sec x\,dx = \int \tan x\,dx = \log_e \sec x + C\).
\(y(0) = 0\Rightarrow 0 = \log_e 1 + C\Rightarrow C = 0\).
So \(y = \cos x\,\log_e \sec x\).
At \(x = \frac{\pi}{4}\): \(y = \frac{1}{\sqrt{2}}\log_e \sqrt{2} = \frac{1}{\sqrt{2}}\cdot\frac{1}{2}\log_e 2 = \frac{1}{2\sqrt{2}}\log_e 2\).
Answer: (2) \(\left(\frac{1}{2\sqrt{2}}\right)\log_e 2\)
Was this answer helpful?
0
0

Top JEE Main Differential equations Questions

View More Questions