How Do You Solve a Second Order Differential Equation Using Laplace Transforms?

Click For Summary

Homework Help Overview

The discussion revolves around solving a second-order differential equation using Laplace transforms. The specific equation is \(\frac{d^{2}y}{dt^{2}}+4y=\sin(t)\) with initial conditions \(y(0)=0\) and \(\frac{dy}{dt}(0)=0\). Participants are exploring the application of Laplace transforms to this problem.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants are attempting to apply the Laplace transform to the differential equation and are discussing the transformation of terms, particularly the term involving \(4y\). There are questions about the correctness of the transformations and the use of convolution in the solution process. Some participants are also questioning assumptions made in the setup of the problem.

Discussion Status

The discussion includes various attempts to clarify the application of Laplace transforms, with some participants providing corrections to earlier statements about the transformations. There is an ongoing exploration of different approaches, including convolution and partial fraction decomposition, but no consensus has been reached on the correct method or interpretation of the problem.

Contextual Notes

Some participants note potential errors in the original poster's approach, including the presence of terms that may not belong in the problem. There is also mention of confusion regarding the signs in the Laplace transform of certain terms.

PiRho31416
Messages
18
Reaction score
0
[Solved] Laplace Transform

Homework Statement


[tex]\frac{d^{2}y}{dt^{2}}+4y=sin(t),\quad y(0)=0,\quad\frac{dy}{dt}(0)=0[/tex]



Homework Equations


Laplace transform is defined as:
[tex]\mathcal{L}\{f(t)\} = \int_{-\infty}^{\infty}f(t)e^{st}dt[/tex]


The Attempt at a Solution


[tex] \frac{d^{2}y}{dt^{2}}+4y=sin(t),\quad y(0)=0,\quad\frac{dy}{dt}(0)=0[/tex]
[tex]s^{2}\mathcal{L}\{y\}-sy'(0)-y(0)-4\mathcal{L}\{y\}=\frac{1}{s^{2}+1}[/tex]
[tex]\mathcal{L}\{y\}(s^{2}-4)=\frac{1}{s^{2}+1}[/tex]
[tex]\Rightarrow \frac{1}{s^{2}+1}\cdot \frac{1}{s^{2}-4}=\frac{As+B}{s^2+1}\cdot\frac{Cs+D}{s^2-4}[/tex]
[tex]1 = (As+B)(s^2-4)\cdot(Cs+D)(s^2+1)[/tex]
[tex]1 = As^3-4As+Bs^2-4B+Cs^3+Cs+Ds^2+D[/tex]
[tex]1 = s^3(A+C)+s^2(B+D)+s(C-4A)+D-4B[/tex]
[tex]\begin{bmatrix}<br /> 1 & 0 & 1 & 0\\ <br /> 0 & 1 & 0 & 1\\ <br /> -4 & 0 & 1 & 0\\ <br /> 0 & -4 &0 & 1<br /> \end{bmatrix}<br /> \begin{bmatrix}<br /> A\\ <br /> B\\ <br /> C\\ <br /> D<br /> \end{bmatrix}<br /> =\begin{bmatrix}<br /> 0\\ <br /> 0\\ <br /> 1\\ <br /> 0<br /> \end{bmatrix}<br /> \\\<br /> \begin{bmatrix}<br /> A\\ <br /> B\\ <br /> C\\ <br /> D<br /> \end{bmatrix} =<br /> \begin{bmatrix}<br /> -1/5 \\<br /> 0 \\<br /> 1/5 \\<br /> 0<br /> \end{bmatrix}[/tex]


[tex]\mathcal{L}\{Y\}=\frac{1}{5}\frac{1}{s^2-1}-\frac{1}{5}\frac{1}{s^2+1}[/tex]
[tex]\mathcal{L}\{Y\}=\frac{1}{5}\frac{1}{s^2-1}-\frac{1}{5}\frac{1}{s^2+1}[/tex]
[tex]\Rightarrow\mathcal{L}\{\frac{1}{5}\frac{1}{s^2+1}\}=\frac{1}{5}sin(t)[/tex]
[tex]\Rightarrow\mathcal{L}\{\frac{-1}{5}\frac{1}{s^2-1}\}=\mathcal{L}\{\frac{-1}{5}\frac{1}{(s+1)(s-1)}\}[/tex]
So this is where I get stuck using convolution. Since we know
[tex]\Rightarrow \mathcal{L}^{-1}\{\frac{1}{s+1}\} = e^{-t}[/tex]
[tex]\Rightarrow \mathcal{L}^{-1}\{\frac{1}{s-1}\} = e^{t}[/tex]
[tex]f(t)=e^{t}[/tex]
[tex]g(t)=e^{t}[/tex]
[tex]f(t) \ast g(t) = \int_{0}^{t}f(\tau)g(\tau-t)\,\,d\tau[/tex]
[tex]\frac{1}{5}\int_{0}^{t}e^{-\tau}e^{\tau-t}\,\,d\tau<br /> = \frac{1}{5}\int_{0}^{t}e^{-\tau+\tau-t},\,\,d\tau<br /> = \frac{1}{5}\int_{0}^{t}e^{-t}\,\,d\tau \\<br /> =\frac{1}{5}\tau e^{-t} \bigg|_{\tau=0}^{\tau=t} = \frac{1}{5}te^{-t}[/tex]
 
Last edited:
Physics news on Phys.org
PiRho31416 said:

Homework Statement


[tex]\frac{d^{2}y}{dt^{2}}+4y=sin(t),\quad y(0)=0,\quad\frac{dy}{dt}(0)=0[/tex]



Homework Equations


Laplace transform is defined as:
[tex]\mathcal{L}\{f(t)\} = \int_{-\infty}^{\infty}f(t)e^{st}dt[/tex]


The Attempt at a Solution


[tex] \frac{d^{2}y}{dt^{2}}+4y=sin(t),\quad y(0)=0,\quad\frac{dy}{dt}(0)=0[/tex]
[tex]s^{2}\mathcal{L}\{y\}-sy'(0)-y(0)-4\mathcal{L}\{y\}=\frac{1}{s^{2}+1}[/tex]
[tex]\mathcal{L}\{y\}(s^{2}-4)=\frac{1}{s^{2}+1}[/tex]
[tex]\Rightarrow \frac{1}{s^{2}+1}\cdot \frac{1}{s^{2}-4}=\frac{As+B}{s^2+1}\cdot\frac{Cs+D}{s^2-4}[/tex]
[tex]1 = (As+B)(s^2-4)\cdot(Cs+D)(s^2+1)[/tex]
[tex]1 = As^3-4As+Bs^2-4B+Cs^3+Cs+Ds^2+D[/tex]
[tex]1 = s^3(A+C)+s^2(B+D)+s(C-4A)+D-4B[/tex]
[tex]\begin{bmatrix}<br /> 1 & 0 & 1 & 0\\ <br /> 0 & 1 & 0 & 1\\ <br /> -4 & 0 & 1 & 0\\ <br /> 0 & -4 &0 & 1<br /> \end{bmatrix}<br /> \begin{bmatrix}<br /> A\\ <br /> B\\ <br /> C\\ <br /> D<br /> \end{bmatrix}<br /> =\begin{bmatrix}<br /> 0\\ <br /> 0\\ <br /> 1\\ <br /> 0<br /> \end{bmatrix}<br /> \\\<br /> \begin{bmatrix}<br /> A\\ <br /> B\\ <br /> C\\ <br /> D<br /> \end{bmatrix} =<br /> \begin{bmatrix}<br /> -1/5 \\<br /> 0 \\<br /> 1/5 \\<br /> 0<br /> \end{bmatrix}[/tex]


[tex]\mathcal{L}\{Y\}=\frac{1}{5}\frac{1}{s^2-1}-\frac{1}{5}\frac{1}{s^2+1}[/tex]
[tex]\mathcal{L}\{Y\}=\frac{1}{5}\frac{1}{s^2-1}-\frac{1}{5}\frac{1}{s^2+1}[/tex]
[tex]\Rightarrow\mathcal{L}\{\frac{1}{5}\frac{1}{s^2+1}\}=\frac{1}{5}sin(t)[/tex]
[tex]\Rightarrow\mathcal{L}\{\frac{-1}{5}\frac{1}{s^2-1}\}=\mathcal{L}\{\frac{-1}{5}\frac{1}{(s+1)(s-1)}\}[/tex]
So this is where I get stuck using convolution. Since we know
[tex]\Rightarrow \mathcal{L}^{-1}\{\frac{1}{s+1}\} = e^{-t}[/tex]
[tex]\Rightarrow \mathcal{L}^{-1}\{\frac{1}{s-1}\} = e^{t}[/tex]
[tex]f(\tau)=e^{-\tau}[/tex]
[tex]g(\tau-t)=e^{\tau-t][/tex]
[tex]\frac{1}{5}\int_{0}^{t}e^{-\tau}e^{\tau-t}\,\,d\tau<br /> = \frac{1}{5}\int_{0}^{t}e^{-\tau+\tau-t},\,\,d\tau<br /> = \frac{1}{5}\int_{0}^{t}e^{-t}\,\,d\tau \\<br /> =\frac{1}{5}\tau e^{-t} \bigg|_{\tau=0}^{\tau=t} = \frac{1}{5}te^{-t}[/tex]

Why not use 1/[(s+1)(s-1)] = (1/2)[1/(s-1) - 1/(s+1)]?

RGV
 
Uhm. The Laplace transform of +4y is not -4Y.
 
Ray Vickson said:
Why not use 1/[(s+1)(s-1)] = (1/2)[1/(s-1) - 1/(s+1)]?

RGV

Thanks! Duh!
 
Wingeer said:
Uhm. The Laplace transform of +4y is not -4Y.

Pretty sure it is.
 
Pretty sure it's NOT!
If
[tex]\mathcal{L}(y)= \int_0^\infty e^{-st}y(t)dt[/tex]
then
[tex]\mathcal{L}(4y)= \int_0^\infty e^{-st}4y(t)dt= 4\int_0^\infty e^{-st}y(t)dt= 4\mathcal{L}(y)[/tex]
not [itex]-4\mathcal{L}(y)[/itex].
 
Oh crap. The negative sign! Sorry it was late last night and somehow I thought he was saying [tex]\mathcal{L}\{y(t)\}\neq Y[/tex]

Sorry about that. He even says it's +4y not -4y. Geez :-(

HallsofIvy said:
Pretty sure it's NOT!
If
[tex]\mathcal{L}(y)= \int_0^\infty e^{-st}y(t)dt[/tex]
then
[tex]\mathcal{L}(4y)= \int_0^\infty e^{-st}4y(t)dt= 4\int_0^\infty e^{-st}y(t)dt= 4\mathcal{L}(y)[/tex]
not [itex]-4\mathcal{L}(y)[/itex].
 


For what it's worth: the convolution of exp(t) and exp(-t) is sinh(t), not c*t*exp(-t) or c*t*exp(t). You made an error in your convolution integral.

RGV
 


Ray Vickson said:
Why not use 1/[(s+1)(s-1)] = (1/2)[1/(s-1) - 1/(s+1)]
Ray Vickson said:
For what it's worth: the convolution of exp(t) and exp(-t) is sinh(t), not c*t*exp(-t) or c*t*exp(t). You made an error in your convolution integral.
The OP made several mistakes. There should be no 1/(s2-1) term in the problem in the first place.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
6
Views
3K