Initial value Problem $ y'(t)+y(t)=g(t)$

259 Views Asked by At

Solve the initial value problem $ y'(t)+y(t)=g(t) $ , $ y(0)=0 $

for $ g(t)=2, t\in [0,1]$ , $ g(t)=0, t>1 $

2

There are 2 best solutions below

0
On BEST ANSWER

$y'+y=\begin{cases}2&0<t<1,\\0&t>1.\end{cases}=2{\bf H}_0(t)-2{\bf H}_1(t)$ with $y(0)=0$ using Laplace method $$s{\cal L}(y)+{\cal L}(y)=2\dfrac{1-e^{-s}}{s}$$ then $${\cal L}(y)=2\left(\dfrac{1}{s}-\dfrac{e^{-s}}{s}-\dfrac{1}{s+1}+\dfrac{e^{-s}}{s+1}\right)$$ and $$y(t)=2\begin{cases}1-e^{-t}&0<t<1,\\e^{-t+1}-e^{-t}&t>1.\end{cases}$$ where ${\bf H}$ is Heaviside step function.

0
On

Hint:

$$(y'(t)+y(t))e^t=(y(t)e^t)'=g(t)e^t$$ so that

$$y(t)e^t-y(0)=\int_0^t g(t)e^tdt.$$

The rest is yours.