Let y=y(x) be the solution of the differential equation \[\sec x \mathrm{~d} y+\{2(1-x) \tan x+x(2-x)\} \mathrm{d} x=0\] such that y(0)=2. Then y(2) is equal to:
Solutions · 1
Official solution
\[\frac{d y}{d x}=2(x-1) \sin x+\left(x^2-2 x\right) \cos x\]
Now both side integrate
\[y(x)=∫2(x−1)sinxdx+[(x2−2x)(sinx)−∫(2x−2)sinxdx]y(x)=(x2−2x)sinx+λy(0)=0+λ⇒2=λy(x)=(x2−2x)sinx+2y(2)=2\]