# Thread: First order DE, non homogeneous, integrating factor method

1. ## First order DE, non homogeneous, integrating factor method

I must solve $\displaystyle y'+t^2y=1$. I don't think it's separable, due to the 1 on the right side of the equation.
So I used the IF method, with no success.
My attempt:
The IF is $\displaystyle e^{\frac{t^3}{3}}$. Multiplying the equation by it and integrating with respect to t, I reach $\displaystyle e^{\frac{t^3}{3}}y=\int e^{\frac{t^3}{3}} dt$.
I didn't know how to solve this integral and tried wolfram alpha, but the result involves the Gamma function and is pretty hard to reach I believe.
So what do I do?
Can I just say that $\displaystyle y=\frac{\int e^{\frac{t^3}{3}} dt}{e^{\frac{t^3}{3}}}$? It's not really under a nice form though. What do you think?

2. Originally Posted by arbolis
I must solve $\displaystyle y'+t^2y=1$. I don't think it's separable, due to the 1 on the right side of the equation.
So I used the IF method, with no success.
My attempt:
The IF is $\displaystyle e^{\frac{t^3}{3}}$. Multiplying the equation by it and integrating with respect to t, I reach $\displaystyle e^{\frac{t^3}{3}}y=\int e^{\frac{t^3}{3}} dt$.
I didn't know how to solve this integral and tried wolfram alpha, but the result involves the Gamma function and is pretty hard to reach I believe.
So what do I do?
Can I just say that $\displaystyle y=\frac{\int e^{\frac{t^3}{3}} dt}{e^{\frac{t^3}{3}}}$? It's not really under a nice form though. What do you think?
That looks perfectly good to me. Although it would be slightly better not to use the same variable both inside and outside the integral. Preferable is
$\displaystyle y(t)= e^{t^3/3}\left(\int_0^t e^{x^3/3} dx+ C\right)$

3. Originally Posted by HallsofIvy
That looks perfectly good to me.
Good to know!

Although it would be slightly better not to use the same variable both inside and outside the integral.
I'd love to know why.

Preferable is
$\displaystyle y(t)= e^{t^3/3}\left(\int_0^t e^{x^3/3} dx+ C\right)$
I think you meant $\displaystyle y(t)= e^{-t^3/3}\left(\int_0^t e^{x^3/3} dx+ C\right)$.
Thanks for the help!