10. Consider the differential equation
$$\frac { \mathrm { d } y } { \mathrm {~d} x } + 2 y \tan x = \sin x , \quad 0 < x < \frac { \pi } { 2 }$$
- Find an integrating factor for this differential equation.
- Solve the differential equation given that \(y = 0\) when \(x = \frac { \pi } { 4 }\), giving your answer in the form \(y = f ( x )\).