$$ \frac{dy}{dt} + ty = t^3$$
Using Integrating factor method here:
Integrating factor $e^{\int t dt}= e^{\frac{t^2}{2}}$
Multiply through by integrating factor
$$e^{\frac{t^2}{2}}\frac{dy}{dt} + tye^{\frac{t^2}{2}} = t^3e^{\frac{t^2}{2}} $$
By reverse chain rule:
$$ \frac{d}{dt} ye^{\frac{t^2}{2}} = t^3e^{\frac{t^2}{2}}$$
Integrating both sides wrt t:
$$ ye^{\frac{t^2}{2}} = \int t^3e^{\frac{t^2}{2}}\ dt $$
To integrate RHS:
Let $u = \frac{t^2}{2}$,
$$\frac{du}{dt} = 2t $$
$$\int t^3e^{\frac{t^2}{2}} = \frac{1}{2} \int ue^{\frac{u}{2}} \ du $$
You can now integrate by parts to find this integral and solve for y:
$$ \int ue^{\frac{u}{2}} \ du$$
Let $v = u$, $\frac{dp}{du} = e^{\frac{u}{2}} $
$\frac{dv}{du} = 1 $, $p = 2e^{\frac{u}{2}} $
$\int ue^{\frac{u}{2}} \ du = 2e^{\frac{u}{2}}(u-2) + c $
Can you finish it off now?
Please use the same technique to solve the second equation. To read more, see the following link