Question:medium

Solve : \( \frac{dy}{dx} + 2y \tan x = \sin x \).

Show Hint

It is linear: find the integrating factor \(e^{\int 2\tan x\,dx} = \sec^2 x\), then integrate \(\sin x \sec^2 x\).
Show Solution

Solution and Explanation

Step 1: Recognise the equation:
This is a first order linear equation $y' + P(x)\,y = Q(x)$ with $P = 2\tan x$ and $Q = \sin x$. We multiply by a suitable factor so that the left side becomes the derivative of a product.

Step 2: Choose the multiplier:
Take the multiplier $\mu = \sec^2 x$. It works because $\frac{d}{dx}(\sec^2 x) = 2\sec^2 x \tan x = 2\tan x \cdot \sec^2 x$.
Multiplying the equation by $\sec^2 x$:
\[ \sec^2 x \frac{dy}{dx} + 2\sec^2 x\tan x\, y = \sin x \sec^2 x \]

Step 3: Collapse the left side:
By the product rule the left side is exactly $\frac{d}{dx}\left( y \sec^2 x \right)$. The right side simplifies to $\sec x \tan x$, so
\[ \frac{d}{dx}\left( y \sec^2 x \right) = \sec x \tan x \]

Step 4: Integrate and solve:
Integrating both sides with respect to $x$ gives $y \sec^2 x = \sec x + C$.
Because $\sec x = \frac{1}{\cos x}$, multiplying through by $\cos^2 x$ gives
\[ y = \cos x + C\cos^2 x \]

Final Answer:
Solving by the product-rule method gives the same family of curves. \[ \boxed{y = \cos x + C\cos^2 x} \]
Was this answer helpful?
0