Help with Laplace Transformations and 2nd order ODEs

In summary: TFMindeed it is close.I think the only thing you did wrong is that you took over the +3 instead of the -3so,sY-Y=2/(s-1)-3then factorise Y and do the rest to get Y(s) In summary, Laplace Transformation can be used to solve ODEs by first converting the function into its Laplace transform and then using the Laplace transform formulas to find an expression for the transformed function in terms of s. This can then be inverted to find the original function.
  • #71
you should have:
Ys^2 - s + Y=1/(s^2+1)

i think you made a mistake while substituting.
 
Physics news on Phys.org
  • #72
Okay, back a bit originally:

[tex] s^2(L(y(t))-sy(0) + Y = \frac{1}{s^2 + 1} [/tex]

y(0) = 1

L(y(t)) = Y

put these in:

[tex] s^2(Y) - 1 + Y = \frac{1}{s^2 + 1} [/tex]

goes to:

[tex] Ys^2 - 1 + Y = \frac{1}{s^2 + 1} [/tex]

I still have a minus one where there should be a minus s.?

TFM
 
  • #73
y''+y'=sint

L(y(t))=Y
L(y'(t)=sL(y(t))-y(0)=sY-1
L(y''(t))=sL(y'(t))-y'(0)=s(sy-1)-0
=s^2Y-s
substitute this into the equation: y''+y'=sint
(s^2)Y-s+Y=1/(s^2+1)
 
  • #74
sara_87 said:
y''+y'=sint

L(y(t))=Y
L(y'(t)=sL(y(t))-y(0)=sY-1
L(y''(t))=sL(y'(t))-y'(0)=s(sy-1)-0
=s^2Y-s
substitute this into the equation: y''+y'=sint
(s^2)Y-s+Y=1/(s^2+1)

Isn't the equation:

[tex] y'' + y = sin(t) [/tex]

though, not

[tex] y'' + y' = sin(t) [/tex]

?

TFM
 
  • #75
yep that's what i meant.

substitute this into the equation: y''+y=sint
(s^2)Y-s+Y=1/(s^2+1)
 
  • #76
Okay so:

[tex]
y''+ y = sin(t)
[/tex]

L(y(t))=Y

L(y''(t))= s(sy-1)-0

insert into equation:

[tex] s(sy - 1)+ Y = sin(t) [/tex]

multiply out:

[tex] s^2y - s+ Y = sin(t) [/tex]

sin(t)= 1/(s^2+1)

[tex] s^2Y - s + Y = \frac{1}{s^2+1} [/tex]

Is this okay? If so I now have to rearrange to find Y

[tex] s^2Y + Y = \frac{1}{s^2+1} + S [/tex]

[tex] Y(s^2 + 1) = \frac{1}{s^2+1} + S [/tex]

giving:

[tex] Y = \frac{\frac{1}{s^2+1} + S}{s^2 + 1} [/tex]

split the fraction:

[tex] Y = \frac{\frac{1}{s^2+1}}{s^2 + 1} + \frac{S}{s^2 + 1} [/tex]

Does this look better?

TFM
 
  • #77
much better :)

so now you have:
Y=1/[((s^2)+1)^2] + s/((s^2)+1)

now, the inverse laplace of s/(s^2 + 1) should be in you tables (can you find it?) and so, what are you going to do about the first fraction 1/[((s^2)+1)^2] ?
 
  • #78
the inverse of:

[tex] \frac{S}{s^2 + 1} is cos(t) [/tex]

for:

[tex] \frac{1}{((s^2)+1)^2} [/tex],

I assume the first Shift Theroem is required?

TFM
 
  • #79
no first shift theorem...why do you assume that??

1/[((s^2)+1)^2] can be split into 1/[(s^2)+1] * 1/[(s^2)+1]
convolution says that if you have the product of two functions, F(s)G(s), the inverse laplace can be evaluated by doing: first find the inverse laplace of F(s) and G(s) (call them F(t) and G(t) respectively) then carry out:
integral (with limits 0 to t) of (F(u)G(t-u)) du
the value of the integral gives you the inverse of the laplce F(s)G(s).

so in you case, you have: F(s)=1/(s^2+1) and G(s)=1/(s^2+1)
what's the inverse of both of them (surely they give the same inverse) ?
 
  • #80
so we have:

F(s)=1/(s^2+1) and G(s)=1/(s^2+1)

the inverse of both is:

sin(t)

All right so far?

TFM
 
  • #81
yep that's right, so now evaluate the integral with limits 0 to t of:
sin(u)sin(t-u) du

you might wana remember the formula:
sin(A)sin(B)=1/2(cos(A-B)-cos(A+B))
and in this case, A=u and B=t-u
you have been taught convolution...right?
 
  • #82
Okay so:

sin(A)sin(B)=1/2(cos(A-B)-cos(A+B))

A=u and B=t-u

sin(u)sin(t - u)=1/2(cos(u-(t - u))-cos(u+(t - u)))

this would go to:

1/2(cos(2u-t)-cos(t))

Integrate from 0 to t

[tex] \int^t_0 1/2(cos(2u-t)-cos(t)) du [/tex]

Take the half outside:

[tex] \frac{1}{2}\int^t_0 cos(2u-t)-cos(t) du [/tex]

integrating becomes:

[tex] \frac{1}{2} \left[ sin(2u - t) - sin(t)\right]^t_0 [/tex]

okay so far?

TFM
 
  • #83
whats the integral of: cos(t) du ?
 
  • #84
Hmm,

wells, cos(t) has no values of u, so can be assumed to be a constant, so would it be cos(t)*u ?

TFM
 
  • #85
yep...and what is the integral of cos(2u-t)du ??
 
  • #86
The integral of cos(u) is sin(u)
The integral of cos(2u) is 1/2sin(2u)

So would that make the integral of:

cos(2u - t) = 1/2sin(2u - t) ?

TFM
 
  • #87
good
so evaluate with limits t and 0 and don't forget the 1/2 outside the bracket.
 
  • #88
Okay so now:

[tex] \frac{1}{2} \left[ 1/2sin(2u - t) - cos(t)u \right]^t_0 [/tex]

so this goes to:

[tex] \frac{1}{2} \left[ (1/2sin(2t - t) - cos(t)t) - (1/2sin(2(0) - t) - cos(t)0) \right] [/tex]

and:

[tex] \frac{1}{2} \left[ (1/2sin(t) - cos(t^2) - (1/2sin(-t)\right] [/tex]

Does this look okay now?

TFM
 
  • #89
the second to last step is:
1/2(1/2sin(2t-t) - tcos(t) - 1/2(sin(-t)) - 0cost)

the last step is not ok... remember: sint is odd function so sin(-t)=-sin(t)

so...how would you write the last step?
 
  • #90
okay so:

[tex] \frac{1}{2} \left[ (1/2sin(2t - t) - tcos(t)) - (1/2sin(2(0) - t) - cos(t)0) \right] [/tex]

[tex] \frac{1}{2} \left[ (1/2sin(2t - t) - tcos(t)) - (1/2sin(-t)) \right] [/tex]

this is the same as:

[tex] \frac{1}{2} \left[ (1/2sin(2t - t) - tcos(t)) + (1/2sin(t)) \right] [/tex]

Is this better?

TFM
 
  • #91
yep but it can be simplified more (the first term?? and expand the bracket)
 
  • #92
How did I miss it that time? I did it before. :cry: So:

[tex] \frac{1}{2} \left[ (1/2sin(2t - t) - tcos(t)) + (1/2sin(t)) \right] [\tex]

Can be simplified to:

[tex] \frac{1}{2} \left[ (1/2sin(t) - tcos(t)) + (1/2sin(t)) \right] [\tex]

Which can go to:

[tex] \frac{1}{2} \left[ sin(t) - tcos(t) \right] [\tex]

Better?

TFM
 
  • #93
it's 1/2(-sint-tcost) because in the second to last step, 1/2sint should be -1/2sin(t) (odd function sine).
 
  • #94
Okay so it should be:

[tex] \frac{1}{2} \left[ (-1/2sin(t) - tcos(t)) - (1/2sin(t)) \right] [/tex]

Which goes to:

[tex] \frac{1}{2} \left[-sin(t)- tcos(t))\right] [/tex]

So this is correct now?

TFM
 
  • #95
yes, now remember:
Y=1/(s^2+1)^2 + s/(s^2+1)

the 2nd fraction is the laplace of cost
the 1st fraction is the laplace of 1/2(-sint-tcost) (we showed by convolution)
so y(t)= 1/2(-sint-tcost) + cost
 
  • #96
Okay, So:

[tex] Y = \frac{1}{(s^2+1)^2} + \frac{s}{s^2+1} [/tex]

[tex] \frac{1}{(s^2+1)^2} = \frac{1}{2} (-sin(t)- tcos(t)) [/tex]

[tex] \frac{s}{s^2+1} = cos(t) [/tex]

So:

[tex] Y = \frac{1}{2} (-sin(t)- tcos(t)) + cos(t) [/tex]

Hows this?

TFM
 
  • #97
very good

but, don't say: s/(s^2+1) = cos(t)
say: s/(s^2+1)=laplace of cos(t)
 
  • #98
So the final answer for this one is:

[tex] y(t) = \frac{1}{2} (-sin(t)- tcos(t)) + cos(t) [/tex]

?

TFM
 
  • #99
yes.
 
  • #100
Excellent. Sp the last one is very similar, except the values have changed slightly:

[tex] y'' + y = sin(t), y_0 = 1, y_0' = -\frac{1}{2} [/tex]

so:

L(y(t)) = Y
L(y'(t)) = sL(y(t)) - y(0)
L(y''(t)) = sL(y'(t))-y'(0) = s^2(L(y(t))-sy(0)-y'(0)


And again, there is no y',

[tex] L(y(t)) = Y [/tex]

[tex] L(y'(t)) = sL(y(t)) - 1 [/tex]

[tex] L(y''(t)) = sL(y'(t))-\frac{1}{2} = s^2(L(y(t))-sy(0)-y'(0) [/tex]

And again from before:

[tex] sin(t) = \frac{1}{p^2 + 1} [/tex]

okay so far?

TFM
 
  • #101
yes that's right. now substitute everything in and make Y the subject
 
  • #102
So original equation:

[tex] y'' + y = sin(t), y_0 = 1, y_0' = -\frac{1}{2} [/tex]

L(y(t)) = Y

[tex] L(y''(t)) = s^2(L(y(t))-sy(0)-y'(0) [/tex]

[tex] L(y''(t)) = s^2(Y)-1-1/2 = s^2(Y) - 3/2 [/tex]

[tex] (s^2(Y) - 3/2) + Y = \frac{1}{s^2 + 1} [/tex]

Still okay?

TFM
 
  • #103
first, the -1/2 should be 1/2 since you have: --1/2=1/2, 2nd:
you made the same mistake again:
in the second to last step, you have -1 but it should be -s
L(y(t))=Y
L(y'(t))=sY-1
L(y''(t))=s(sY-1)+1/2=s^2Y-s+1/2

now substitue and make Y the subject
 
  • #104
sara_87 said:
first, the -1/2 should be 1/2 since you have: --1/2=1/2, 2nd:
you made the same mistake again:
in the second to last step, you have -1 but it should be -s
L(y(t))=Y
L(y'(t))=sY-1
L(y''(t))=s(sY-1)+1/2=s^2Y-s+1/2

now substitue and make Y the subject

I think I've found why I'm making the same mistake. Should this:

[tex] L(y'(t)) = sL(y(t)) - 1 [/tex]

Really be:

[tex] L(y'(t)) = s(L(y(t)) - 1) [/tex]

It would work then?

Anyway, so:

L(y(t))=Y

L(y''(t))=s(sY-1)+1/2=s^2Y-s+1/2

[tex] y'' + y = sin(t) [/tex]

[tex] s^2Y-s+1/2 + Y = \frac{1}{s^2 + 1} [/tex]

rearrange for Y:

[tex] s^2Y+ Y = \frac{1}{s^2 + 1} + s - 1/2 [/tex]

[tex] Y(s^2 + 1) = \frac{1}{s^2 + 1} + s - 1/2 [/tex]

[tex] Y = \frac{\frac{1}{s^2 + 1} + s - 1/2}{s^2 + 1} [/tex]

Is this okay?

TFM
 
  • #105
very good.
now, let's separate them to make life much simpler:
Y=1/(s^2+1)^2 + s/(s^2+1) - 1/2(s^2+1)
now find the inverse laplace of each one seperately and remember we found the inverse laplace of the first fraction before using convolution so you don't have to do it again but u could for practice if you wish.
 

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
103
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
974
Back
Top