I am trying to solve this differential equation in Mathematica:
y'[t]+integral from 0 to t of y[x]dx =e^(-t) where y[0]=0.
Is this possible?
I am trying to solve this differential equation in Mathematica:
y'[t]+integral from 0 to t of y[x]dx =e^(-t) where y[0]=0.
Is this possible?
eq = y'[t] + Integrate[y[x], {x, 0, t}] == Exp[-t];
eq = LaplaceTransform[eq, t, s];
eq /. LaplaceTransform[y[t], t, s] -> U0
sol = Solve[%, U0]
Simplify@InverseLaplaceTransform[U0 /. sol, s, t]
% /. y[0] -> 0

You can, but you are missing a second initial condition. This is second order ODE actually. Assuming y'[0]==0
eq = y'[t] + Integrate[y[x], {x, 0, t}] == Exp[-t];
eq = D[eq, t];

The above is the ODE you want to solve.
DSolve[{eq, y[0] == 0, y'[0] == 0}, y[t], t]

-sin. – Nasser Dec 12 '14 at 00:36y'[0]If you look at the original equation you' ll most certainly find that it should bey'[0] == 1– Dr. belisarius Dec 12 '14 at 07:08