I've seen similar questions here but none of them answered my problem. Or at least not the way that I would understand. I am trying to solve differential equation $$y'+t^2y=1.$$ I used the method of integrating factor - for this case $e^{t^3/3}$. By multiplying the equation i get $$e^{t^3/3}y'+e^{t^3/3}t^2y=e^{t^3/3}.$$ Now here is when I got confused. I should now integrate both sides (using indefinite integral?) which should result in $$c_1+e^{t^3/3}y=e^{t^3/3}.$$ So the solution should be $$y=e^{-t^3/3} \int e^{t^3/3} {dt} + c_2.$$ Now when I rewrite the integral in terms of a definite integral I get $$y=e^{-t^3/3} \int_{t_0}^{t} e^{s^3/3} {ds} + c_2.$$ My questions are first one - when do I change the variable in integral - is it because I change it from indefinite to definite? If so, why do I need to change the variable at all?
Second question - how do I manage the constants? Should I just keep it as $C$ or do I need to consider the initial condition too, since I change the integral from indefinite to definite? If so, how?
Thanks.