The below differential equation has an integration factor $\mu(t) = t$.
$$ f(t)\frac{dy}{dt} + t^2 + y = 0 $$
My task is to find f(t). I know that multiplying $\mu(t)$ with the diff. equation gives us an exact one, like so...
$$ tf(t)\frac{dy}{dt} + (t^3 \ + \ ty) = 0 $$
...and by definition of exact equations, $tf'(t) + f(t) = t$. How do I proceed on from there? Thank you for helping out!
Rewriting your equation gives;
$\frac{dy}{dt} + \frac{y}{f(t)} =\frac{-t^2}{f(t)}$
the integrating factor is given by ;
$IF = e^{\int\frac1{f(t)}\,dt}= t$
$\implies\ln(t) = \int\frac1{f(t)}\,dt$
$\implies \frac{d{\ln(t)}}{dt} =\frac1{f(t)} $
$\therefore f(t) = t$