Let dydx−2ycotx=cosx such that y(π2)=0. If the maximum value of y is k, then the value of k is
Open in App
Solution
dydx−2ycotx=cosx
This is a linear differential equation in x. I.F.=e−2∫cotxdx=1sin2x
General solution is ysin2x=∫cosxsin2xdx+C ⇒y=−sinx+Csin2x
Since y(π2)=0, therefore C=1 ∴y=sin2x−sinx ⇒y=(sinx−12)2−14 ∴ Maximum value of y is (−1−12)2−14=2