$$2) y'+\cot(t)y=2\cos(t)$$
Rewrite it as
$$ y'+\frac {\cos(t)}{\sin(t)}y=2\cos(t)$$
Multiply by $\sin(t)$$$ y'\sin(t)+\cos(t)y=2\cos(t)\sin(t)$$$$ (y\sin(t))'=\sin(2t)$$
Integrate...
Try to do first equation on your own and post your attempt...
Members will correct it...
Related Questions in ORDINARY-DIFFERENTIAL-EQUATIONS
$$2) y'+\cot(t)y=2\cos(t)$$ Rewrite it as $$ y'+\frac {\cos(t)}{\sin(t)}y=2\cos(t)$$ Multiply by $\sin(t)$ $$ y'\sin(t)+\cos(t)y=2\cos(t)\sin(t)$$ $$ (y\sin(t))'=\sin(2t)$$ Integrate...
Try to do first equation on your own and post your attempt...
Members will correct it...