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

  • Thread starter Thread starter Success
  • Start date Start date
Click For Summary
SUMMARY

The forum discussion focuses on solving the differential equation y'' + 2y' + 3y = sin(t) + δ(t - 3π) with initial conditions y(0) = 0 and y'(0) = 0. The solution involves using the Laplace Transform method, leading to the expression Y(s) = 1/((s^2 + 2s + 3)(s^2 + 1)) + e^(-3πs)/(s^2 + 2s + 3). The final solution for y(t) is derived through partial fraction decomposition and variation of parameters, resulting in y(t) = (1/4)sin(t) - (1/4)cos(t) + (1/4)e^(-t)cos(√2t) + (1/√2)u3π(t)e^(-(t - 3π))sin(√2(t - 3π)).

PREREQUISITES
  • Understanding of Laplace Transforms and their application in solving differential equations.
  • Familiarity with partial fraction decomposition techniques.
  • Knowledge of the Dirac delta function and its properties.
  • Experience with solving linear ordinary differential equations with initial conditions.
NEXT STEPS
  • Study the method of Laplace Transforms for solving linear differential equations.
  • Learn about partial fraction decomposition in the context of inverse Laplace transforms.
  • Explore the characteristics of the Dirac delta function and its role in differential equations.
  • Investigate the variation of parameters method for finding particular solutions to non-homogeneous differential equations.
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are working on differential equations, particularly those involving Laplace Transforms and impulse responses.

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   Reactions: 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.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
980
Replies
6
Views
2K
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K