Question:medium

Let \( y = f(x) \) be the solution of the differential equation

\[ \frac{dy}{dx} + 3y \tan^2 x + 3y = \sec^2 x \]

such that \( f(0) = \frac{e^3}{3} + 1 \), then \( f\left( \frac{\pi}{4} \right) \) is equal to:

Show Hint

For separable differential equations, always look for opportunities to use known trigonometric identities to simplify the equation.
Updated On: Feb 5, 2026
  • \( 1 + e^3 \)
  • \( \frac{2}{3} \left( 1 + \frac{1}{e^3} \right) \)
  • \( \frac{1}{3} \left( 1 - \frac{1}{e^3} \right) \)
  • \( \frac{1}{3} \left( 1 + \frac{1}{e^3} \right) \)
Show Solution

The Correct Option is D

Solution and Explanation

The differential equation given is: \[ \frac{dy}{dx} + 3y \tan^2 x + 3y = \sec^2 x \] Simplifying the equation: \[ \frac{dy}{dx} = \sec^2 x - 3y (\tan^2 x + 1) \] Using the identity \( \tan^2 x + 1 = \sec^2 x \): \[ \frac{dy}{dx} = \sec^2 x - 3y \sec^2 x = \sec^2 x (1 - 3y) \] This is a separable differential equation. Separating variables: \[ \frac{dy}{1 - 3y} = \sec^2 x \, dx \] Integrating both sides: \[ \int \frac{1}{1 - 3y} \, dy = \int \sec^2 x \, dx \] The integration results in: \[ -\frac{1}{3} \ln |1 - 3y| = \tan x + C \] Using the initial condition \( f(0) = \frac{e^3}{3} + 1 \), substitute \( x = 0 \) and solve for \( C \): \[ -\frac{1}{3} \ln \left| 1 - 3 \left( \frac{e^3}{3} + 1 \right) \right| = \tan 0 + C \] The constant \( C \) is determined by simplifying the above equation. Finally, substitute \( x = \frac{\pi}{4} \) and calculate \( f\left( \frac{\pi}{4} \right) \). The result is: \[ f\left( \frac{\pi}{4} \right) = \frac{1}{3} \left( 1 + \frac{1}{e^3} \right) \]
Was this answer helpful?
0