Solution to y+2y'+3y=sin(t)+δ(t-3∏); y(0)=0, y'(0)=0

  • Thread starter Thread starter Success
  • Start date Start date
Success
Messages
75
Reaction score
0

Homework Statement


Find the solution of y"+2y'+3y=sin(t)+δ(t-3∏); y(0)=0, y'(0)=0.


Homework Equations


Here's the work:
s^2*Y(s)-s*y(0)-y'(0)+2(s*Y(s)-y(0))+3Y(s)=1/(s^2+1)+e^(-3pi*s)
s^2*Y(s)+2sY(s)+3Y(s)=1/(s^2+1)+e^(-3pi*s)
Y(s)(s^2+2s+3)=1/(s^2+1)+e^(-3pi*s)



The Attempt at a Solution


The answer is y=(1/4)sin(t)-(1/4)cos(t)+(1/4)(e^(-t))(cos(sqrt(2)t))+(1/sqrt(2))(u3pi(t))(e^(-(t-3pi))(sin(sqrt(2))(t-3pi)
 
Physics news on Phys.org
Success said:

Homework Statement


Find the solution of y"+2y'+3y=sin(t)+δ(t-3∏); y(0)=0, y'(0)=0.


Homework Equations


Here's the work:
s^2*Y(s)-s*y(0)-y'(0)+2(s*Y(s)-y(0))+3Y(s)=1/(s^2+1)+e^(-3pi*s)
s^2*Y(s)+2sY(s)+3Y(s)=1/(s^2+1)+e^(-3pi*s)
Y(s)(s^2+2s+3)=1/(s^2+1)+e^(-3pi*s)

Why stop there? What do you get for ##Y(s)?## Then where are you having trouble finding the inverse?
 
I know that you have to divide (s^2+3s+2) to the other side but I don't know what I'll get. Can you show me what I get for Y(s)?
 
Divide with (s^2+3s+2) then you might have to do a partial fraction decomposition so you can find the inverse.
 
But what's Y(s)?
 
Divide both sides with (s^2+3s+2)

Y(s)=1/(s^2+2s+3)(s^2+1)+e^(-3pi*s)/(s^2+2s+3)
 
But what's the inverse laplace transform of 1/((s^2+1)(s^2+2s+3))?
 
Success said:
But what's the inverse laplace transform of 1/((s^2+1)(s^2+2s+3))?

Do you remember partial fractions from calculus? Figure out ##A,B,C,D## to write$$
\frac 1 {(s^2+1)(s^2+2s+3)}=\frac {As+B}{s^2+1}+\frac {Cs+D}{s^2+2s+3}$$Then we can talk about the inverse.
 
  • Like
Likes 1 person
Success said:
I know that you have to divide (s^2+3s+2) to the other side but I don't know what I'll get. Can you show me what I get for Y(s)?

Are you saying the algebra is too complicated for you?
 
  • #10
Personally, I have always disliked the "Laplace Transform Method" (which is what you are using although you don't say that). Problems like this can always be done more simply just using the "characterstic equation" method (the "advantage" for engineers is that with the Laplace Transform, you can just apply formulas without having to think.)

Here, the corresponding homogeneous equation is y''+ 3y'+ 2y= 0 which has characteristic equation r^2+ 3r+ 2= (r+ 2)(r+ 1)= 0 and so has general solution y(x)= C_1e^{-t}+ C_2e^{-2t}.

Now we need only find a single function that satisfies the entire equation to add to that general solution to the homogeneous equation. I would be inclined to use "undetermined coefficients" but that requires knowing the general form of the function and you might not be familiar with the derivatives of that delta function.

So instead, I will use "variation of parameters". We seek a solution of the form y(t)= u(t)e^{-t}+ v(t)e^{-2t}. There are, of course, many different choices for functions u(t) and v(t) that will work. Differentiating, y'(t)= u'(t)e^{-t}- u(t)e^{-t}+ v'(t)e^{-2t}- 2v(t)e^{-2t}. We can narrow our search among those "many different choices" and simplify the equation by requiring that u'(t)e^{-t}+ v'(t)e^{-2t}= 0. That leaves y'(t)= -u(t)e^{-t}- 2v(t)e^{-2t}.

Differentiating again, y''(t)= -u'(t)e^{-t}+ u(t)e^{-t}- 2v'(t)e^{-2t}+ 4v(t)e^{-2t}. And putting those into the equation,
y''+ 3y'+ 2y= -u'(t)e^{-t}+ u(t)e^{-t}- 2v'(t)e^{-2t}+ 4v(t)e^{-2t}+ 3(u(t)e^{-t}- 2v(t)e^{-2t})+ 2(u(t)e^{-t}+ v(t)e^{-2t})
= (-u'(t)e{-t}- 2v'(t)e^{-2t})+ u(t)(e^{-t}- 3e^{-t}+ 2e^{-t})+ v(4e^{-2t}- 6e^{-2t}+2)
=-u'(t)e^{-t}- 2v'(t)e^{-2t}= sin(t)+ \delta(t- 3\pi)
An equation involving only the two first derivatives of u and v (there are no second derivatives because of our requirement that u'(t)e^{-t}+ v'(t)e^{-2t}= 0 and no u and v themselves because e^{-t} and e^{-2t} satisfy the homogeneous equation.)

Together with the required u'(t)e^{-t}+ v'(t)e^{-2t}= 0, that gives two equations we can solve algebraically for u' and v':

u'(t)e^{-t}+ v'(t)e^{-2t}= 0
-u'(t)e^{-t}- 2v'(t)e^{-2t}= sin(t)+ \delta(t- 3\pi)

An obvious first step is to add the two equations, eliminating u':
-v'e^{-2t}= sin(t)+ \delta(t- 3\pi) so that v'= -e^{2t}sin(t)- e^{2t}\delta(t- 3\pi)

"[/itex]-e^{2t}sin(t)[/itex] can be integrated "by parts" while the integral of -e^{2t}\delta(t- 3\pi) is, of course, just -e^{6\pi}.

To find u(t), multiply the first equation by two and then add:
u'(t)e^{-t}= sin(t)+ \delta(t- 3\pi) so that
u'= e^t sin(t)+ e^t \delta(t- 3\pi)
and that can be integrated easily.
 
  • #11
LCKurtz, how would you solve for A, B, C, D? I know it's (As+B)(s^2+2s+3)+(Cs+D)(s^2+1)=1, then you get As^3+2As^2+3As+Bs^2+2Bs+3B+Cs^3+Cs+Ds^2+D=1. But what's after that?
 
  • #12
Never mind. I get it now.
 
  • #14
LCKurtz said:
Do you remember partial fractions from calculus? Figure out ##A,B,C,D## to write$$
\frac 1 {(s^2+1)(s^2+2s+3)}=\frac {As+B}{s^2+1}+\frac {Cs+D}{s^2+2s+3}$$Then we can talk about the inverse.

@success: Before continuing, please show us what you got for your partial fraction decomposition.
 
Back
Top