## Problems with integrating and Deferential equation...

1. The problem statement, all variables and given/known data
give the general solution of the following equation

x' = tx + 6te-t2

2. Relevant equations

for x'+p(t)x=q(t)

xeI=$$\int$$q(t)eIdt where I=$$\int$$p(t)dt

integration by parts
$$\int$$f'g = [fg] - $$\int$$fg'

3. The attempt at a solution

x'-tx=6te-2t

I=$$\int$$-t dt = -t2$$/$$2

xe-t2$$/$$2dt = $$\int$$6te-2te-t2$$/$$2dt

using integration by parts i get

$$\int$$f'g = [fg] - $$\int$$fg'
f'=e-t2$$/$$2
g=6t

$$\int$$6te-2te-t2$$/$$2dt = [$$\frac{6t}{-2-t}$$e-2t-t2$$/$$2] - $$\int$$$$\frac{6}{-2-t}$$e-2t-t2$$/$$2 dt

I've tried to integrate the second part of this integral i.e.
$$\int$$$$\frac{6}{-2-t}$$e-2t-t2$$/$$2 dt
using integration by parts but it seems to be a very difficult integral to solve. I also have my suspicions that this method may go on forever.

can anyone help? am i missing some kind of identity that i should know? any help would be appreciated.

 PhysOrg.com science news on PhysOrg.com >> Hong Kong launches first electric taxis>> Morocco to harness the wind in energy hunt>> Galaxy's Ring of Fire
 i just noticed a typo where i stated what value i used for f' it should read f' = e-2-t2$$/$$2
 You seem to have stated the question twice, but differently both times. first you have x' = tx + 6texp(-t^2) and then you write x'-tx=6texp(-2t) Which is the correct form?

## Problems with integrating and Deferential equation...

Hi Physics Math

The second one was just me re-arranging the first one to get it into the form of
x'+p(t)x=q(t)
so that i could apply the relevant formula (under relevant equations).

 Recognitions: Homework Help You didn't just rearrange you changed the argument of the exponent as well. It would also be nice if you would put $$tags around the entire expression and not just the occasional symbol.  oh yes, i see what you mean exp(-t^2) does not equal exp(-2t). I'll give it another go. thanks guys.  Recognitions: Homework Help Using the correct argument will make the integration easier.  Okay I've had another go and got an answer and want to check whether its correct or not. x'-tx=6te-t2 I = [tex]\int$$-t dt = -t2$$/$$2 xe-t2$$/$$2=$$\int$$6te-t2e-t2$$/$$2 dt xe-t2$$/$$2 = $$\int$$6te-(3/2)t2dt now using integration by parts where f'=e-(3/2)t2 and g=6t and recalling that $$\int$$e-ax2 dx = $$\sqrt{pi/a}$$ i get [$$\sqrt{2pi/3}$$ 6t] - $$\int$$$$\sqrt{2pi/3}$$6 dt = 2[$$\sqrt{2pi/3}$$ 6t] + C so x=(2[$$\sqrt{2pi/3}$$ 6t] + C) / (e-t2$$/$$2) However, in all the other examples i have done the exp term has disappeared by the time i got to the final answer, so i just wanted to check that i have the correct answer here or not.

Recognitions:
Homework Help
 Quote by IRNB and recalling that LaTeX Code: \\int e-ax2 dx = LaTeX Code: \\sqrt{pi/a}
This is only true if you're integrating from -infinity to +infinity, which you are not. If you want to use partial integration you will have to resort to the error function. That said you do not want to use partial integration, but instead use a substitution u=-t^2.

 Thank you cyosis for all your help. My integration skills are quite weak so please bare with me here. f' = exp(-3t2/2) using u= t2 f' = exp((-3/2)u) f = $$\int$$exp((-3/2)u) (dt/du) du f = (-2/3)exp((-3/2)u) (1/2t) f = (-1/3t)exp((-3/2)t2) g = 6t g'=6 now using integration by parts $$\int$$6t exp((3/2)tt) dt = [(-6t/3t)exp((-3/2)t2)] + $$\int$$(6/3t)exp((-3/2)t2) dt integrating the second term by parts f' = exp(-3t2/2) f = (-1/3t)exp((-3/2)t2) g = 6/3t g' = -6/3t2 $$\int$$(6/3t)exp((-3/2)t2) dt = [(6/9t2)exp((-3/2)t2)] - $$\int$$(-6/9t3)exp((-3/2)t2) dt i seem to be going in circles... it seems there is always going to be an integral that needs to be solved... help
 Recognitions: Homework Help Why are you using partial differentiation again? The original integral is already cast in a very easy form. Example integral: Using the substitution u=t^2 du=2tdt. \begin{align*} \int t e^{t^2}dt & =\int \frac{1}{2}e^u du\\ & =\frac{1}{2}e^u\\ & =\frac{1}{2}e^{t^2} \end{align*}
 i have no idea why i didnt see that. its been a really long day so now i have $$\int$$ 6t exp((-3/2)t2) dt u = t2 du = 2t dt $$\int$$3 exp((-3/2)u) du = 3(-2/3) exp((-3/2)u) = -2 exp((-3/2)t2) + C x exp(-t2/2) = -2 exp((-3/2)t2) + C x = (1/exp(-t2/2))C - 2 exp(-t2/2) does this look correct?
 there is a typo in my answer. it should read x = (1/exp(-(t^2)/2))C - 2 exp(-t^2) Thank you for your help Cyosis