Step Function IVP Differential Equation w/ Laplace Transform

In summary, the conversation discusses the use of Laplace transform to solve a piecewise function in a differential equation problem. The Laplace transform is used to find the transform of the function and then integrals are performed to solve for the solution. There is also a discussion on the preference of using Laplace transform and the alternative method of using unit step-functions.
  • #1
Destroxia
204
7

Homework Statement



(didn't know how to make piecewise function so I took screenshot)

piecewise1.jpg


Homework Equations

The Attempt at a Solution



piecewise2.jpg


My issue here with this problem is that I have absolutely no idea where to start... I have read through the textbook numerous times, and searched all over the internet, and I found examples but they make no sense to me no matter how much I break it down and try to follow the steps.

I am having trouble understanding where to even start, and more importantly WHY to start there and WHY to do these things.
 

Attachments

  • upload_2015-7-24_3-19-49.png
    upload_2015-7-24_3-19-49.png
    12.9 KB · Views: 693
Physics news on Phys.org
  • #2
RyanTAsher said:

Homework Statement



(didn't know how to make piecewise function so I took screenshot)

piecewise1.jpg


Homework Equations

The Attempt at a Solution



piecewise2.jpg


My issue here with this problem is that I have absolutely no idea where to start... I have read through the textbook numerous times, and searched all over the internet, and I found examples but they make no sense to me no matter how much I break it down and try to follow the steps.

I am having trouble understanding where to even start, and more importantly WHY to start there and WHY to do these things.

If ##f(t)## is your piecewise function on the right and ##Y(s)## is the Laplace transform of ##y(t)## you will have
[tex] s^2 Y(s) - y'(0) - s y(0) + Y(s) = g(s), [/tex]
where ##g(s)## is the transform of ##f(t)##. Just apply the definition of Laplace transform to ##f(t)## and do the integrals involved. Alternatively, you can try to express ##f(t)## in terms of "unit step-functions" ##u(t-a)## and then apply standard tabulated Laplace transform results, but that seems to be more trouble than just going ahead and performing some elementary integrations.
 
  • #3
As I have expressed before, I really dislike the "Laplace Transform" method! Are you required to use it? I have yet to find a differential equations problem that cannot be solved more simply using the usual "direct methods" and this is no exception. Even if you are required to use the Laplace transform this might help as a check.

The associated homogeneous equation is [itex]y''+ y= 0[/itex] which has characteristic equation [itex]r^2+ 1= 0[/itex] so characteristic roots -i and i and so general solution [itex]y_h= A cos(t)+ B sin(t)[/itex]. To get a "right hand side" of t, we look for a solution of the form y= At+ B so y'= A and y''= 0. The differential equaton becomes 0+ At+ B= t. In order that this be true for all t, we must have A= 1, B= 0. The general solution to this part of the equation is [itex]y(t)= A cos(t)+ B sin(t)+ t[/itex] so that [itex]y'(x)= -A sin(t)+ B cos(t)+ 1[/itex]. To satisfy the initial conditions we must have [itex]y(0)= A(1)+ B(0)+ 0= 0[/itex] and [itex]y'(0)= -A(0)+ B(1)+ 1= 0[/itex]. That is, A= 0 and B+ 1= 0 so B= -1. For [itex]0\le t\le 1[/itex] we must have [itex]y(t)= t- sin(t)[/itex], [itex]y'(t)= 1- cos(t)[/itex]. Evaluating that at t= 1, [itex]y(1)= 1- sin(1)[/itex], [itex]y'(1)= 1- cos(1)[/itex].

So for [itex]1\le t\le 2[/itex] we must solve [itex]y''+ y= 2- t[/itex] with [itex]y(1)= 1- sin(1)[/itex], [itex]y'(1)= 1- cos(1)[/itex], which, of course, can be done in the same way.
 
  • #4
RyanTAsher said:

Homework Statement



(didn't know how to make piecewise function so I took screenshot)

piecewise1.jpg


Homework Equations

The Attempt at a Solution



piecewise2.jpg


My issue here with this problem is that I have absolutely no idea where to start... I have read through the textbook numerous times, and searched all over the internet, and I found examples but they make no sense to me no matter how much I break it down and try to follow the steps.

I am having trouble understanding where to even start, and more importantly WHY to start there and WHY to do these things.

HallslofIvy has spoken against the Laplace method, but I personally prefer it. The fact is that if you are going to face a variety of problems it is good to have a toolbox containing a variety of methods; sometimes Laplace is the very best way to do a problem, and sometimes the opposite is the case. Do not be guided by either of our prejudices, just learn as much as you can about as many methods as you can absorb. In any case, if the question tells you to use Laplace, then that is what you must do.

BTW: to do piecewise functions in LaTeX, use the "\cases" environment, which gives the following typeset result:
[tex] f(t) = \begin{cases} t &, 0 \leq t < 1\\
2-t &, 1 \leq t < 2 \\
0 &, \text{otherwise}
\end{cases}
[/tex]
You can see the commands used just by right-clicking on the equation and choosing "display as tex".
 
  • #5
Personally, I think the whole purpose of the "Laplace transform" is to give engineers a "mechanism" they can mindlessly apply to differential equations!
 
  • #6
Ray Vickson said:
If ##f(t)## is your piecewise function on the right and ##Y(s)## is the Laplace transform of ##y(t)## you will have
[tex] s^2 Y(s) - y'(0) - s y(0) + Y(s) = g(s), [/tex]
where ##g(s)## is the transform of ##f(t)##. Just apply the definition of Laplace transform to ##f(t)## and do the integrals involved. Alternatively, you can try to express ##f(t)## in terms of "unit step-functions" ##u(t-a)## and then apply standard tabulated Laplace transform results, but that seems to be more trouble than just going ahead and performing some elementary integrations.

HallsofIvy said:
As I have expressed before, I really dislike the "Laplace Transform" method! Are you required to use it? I have yet to find a differential equations problem that cannot be solved more simply using the usual "direct methods" and this is no exception. Even if you are required to use the Laplace transform this might help as a check.

Ray: How do you just apply the definition of Laplace for the g(s) and f(t), I keep reading up on the unit step functions and they just don't seem to make much sense to me. I don't know how I would apply integrals to it, besides doing the laplace transform, and even then, I don't know how to do the laplace transform for a piecewise!

HallsofIvy: I think I agree with you on this one, I'm not sure I'm fond of Laplace, though that could just be that I'm not understanding it at the moment, I just really don't understand how to transform the piecewise still. Sadly, this problem MUST be answered using Laplace.

All in all, I think the piecewise is what's getting in my way. I don't understand the step method, or how to transform it otherwise. I was able to do all other laplace problems fine, however.
 
Last edited:
  • #7
RyanTAsher said:
My issue here with this problem is that I have absolutely no idea where to start... I have read through the textbook numerous times, and searched all over the internet, and I found examples but they make no sense to me no matter how much I break it down and try to follow the steps.

I am having trouble understanding where to even start, and more importantly WHY to start there and WHY to do these things. [/B]
Well, it looks like you did actually start the problem.

You started with ##y''+y = f(t)## where
$$f(t) = \begin{cases} t, & 0 \le t < 1 \\
2-t, & 1 \le t < 2 \\
0, & \text{otherwise}\end{cases}$$ Now you want to apply the Laplace transform operator ##\mathcal{L}## to both sides, giving you
\begin{align*}
y'' + y &= f(t) \\
\mathcal{L}[y'' + y] &= \mathcal{L}[f(t)] \\
Y(s)(s^2+1) &= F(s)
\end{align*} where Y(s) and F(s) are the Laplace transforms of y(t) and f(t) respectively. What you didn't do in your work was apply the operator to the righthand side. To calculate F(s), do what Ray suggested.

Why do you do this? The Laplace transform operator changes a differential equation into an algebraic equation. Instead of derivatives, you have powers of ##s##. Once you solve for Y(s) algebraically, you invert it to find y(t). Ultimately, it's just another method to solve this class of linear differential equations (and to annoy HallsofIvy).
 
  • #8
RyanTAsher said:
Ray: How do you just apply the definition of Laplace for the g(s) and f(t), I keep reading up on the unit step functions and they just don't seem to make much sense to me. I don't know how I would apply integrals to it, besides doing the laplace transform, and even then, I don't know how to do the laplace transform for a piecewise!
This should get you started:
$$F(s) = \int_0^\infty f(t)e^{-st}\,dt = \int_0^1 f(t)e^{-st}\,dt + \int_1^2 f(t)e^{-st}\,dt + \int_2^\infty f(t)e^{-st}\,dt.$$ The last integral vanishes because f(t) = 0 for ##t\ge 2##.
 
  • #9
vela said:
Well, it looks like you did actually start the problem.

You started with ##y''+y = f(t)## where
$$f(t) = \begin{cases} t, & 0 \le t < 1 \\
2-t, & 1 \le t < 2 \\
0, & \text{otherwise}\end{cases}$$ Now you want to apply the Laplace transform operator ##\mathcal{L}## to both sides, giving you
\begin{align*}
y'' + y &= f(t) \\
\mathcal{L}[y'' + y] &= \mathcal{L}[f(t)] \\
Y(s)(s^2+1) &= F(s)
\end{align*} where Y(s) and F(s) are the Laplace transforms of y(t) and f(t) respectively. What you didn't do in your work was apply the operator to the righthand side. To calculate F(s), do what Ray suggested.

Why do you do this? The Laplace transform operator changes a differential equation into an algebraic equation. Instead of derivatives, you have powers of ##s##. Once you solve for Y(s) algebraically, you invert it to find y(t). Ultimately, it's just another method to solve this class of linear differential equations (and to annoy HallsofIvy).

Yes, I know I had to apply that to the right hand side, I did the left hand side work because I wanted to show that I at least knew how to do part of the problem. My big problem ultimately lies with the right hand side, and HOW to apply that Laplace to a piecewise function.

So far after reading things up on this subject forever... I have come to terms that I must take the piecewise function as some function... say g(t), write it as a unit step equation, then do something with that...

I express it as a unit step like so...

## g(t)= t[1-u_{1}] + (2-t)[u_{1} - u_{2}] + 0[u_{2}] ##

## g(t) = t - tu_{1} + 2u_{1} - 2u_{2} - tu_{1} + tu_{2} ##

## g(t) = t + (-t + 2 - t)u_{1} + (t - 2)u_{2} ##

I don't know what to do after I get to this point... Not sure If I have to use a table for transforms or something
 
  • #10
Use the time-delay property of the Laplace transform: L[f(t-a)ua] = e-asF(s). For example, the last term, (t-2)u2, is the function t shifted by 2 to the right, so its transform would be the transform of ##t## multiplied by e-2s.

Ray's suggestion of evaluating the integral directly, though, is probably easier, though it would be good to understand how to do it both ways.
 
  • #11
vela said:
Use the time-delay property of the Laplace transform: L[f(t-a)ua] = e-asF(s). For example, the last term, (t-2)u2, is the function t shifted by 2 to the right, so its transform would be the transform of ##t## multiplied by e-2s.

Ray's suggestion of evaluating the integral directly, though, is probably easier, though it would be good to understand how to do it both ways.

Okay, thank you, now I can get it done because I know the property, I didn't understand it before.
 
  • #12
HallsofIvy said:
Personally, I think the whole purpose of the "Laplace transform" is to give engineers a "mechanism" they can mindlessly apply to differential equations!

Come on, face it: solving these kind of differential equations is just boring. I'd rather learn a quick, mindless trick like the Laplace transform that can deal with a lot of them. Then I have time to do some more interesting math that solving ODEs.
 
  • #13
RyanTAsher said:
Ray: How do you just apply the definition of Laplace for the g(s) and f(t), I keep reading up on the unit step functions and they just don't seem to make much sense to me. I don't know how I would apply integrals to it, besides doing the laplace transform, and even then, I don't know how to do the laplace transform for a piecewise!

**************************

The Laplace transform ##F(s)## of your ##f(t)## is just
[tex] F(s) = \int_0^{\infty} e^{-st} f(t) dt = \int_0^1 e^{-st} t \, dt + \int_1^2 e^{-st} (2-t) \, dt + \int_2^{\infty} e^{-st} 0 \, dt [/tex]
and both integrals ##\int_0^1 e^{-st} t \, dt ## and ##\int_1^2 e^{-st} (2-t) \, dt ## are more-or-less elementary. So, there is nothing at all special about piecewise functions; we just need to apply the definition of Laplace, and split the integration into pieces, because we are dealing with a different formula over different ##t##-regions. That's all there is to it!

Alternately (and not, in my opinion the best way) we can write
[tex] f(t) = t + u(t-1) (2 - 2t) + u(t-2)(t-2) [/tex]
This works because the rhs above equals ##t## when ##0 \leq t < 1##, equals ##t + 2 - 2t = 2-t## when ##1 \leq t < 2## and equals ##2 - t + t - 2 = 0## when ##t \geq 2##.

***************************

HallsofIvy: I think I agree with you on this one, I'm not sure I'm fond of Laplace, though that could just be that I'm not understanding it at the moment, I just really don't understand how to transform the piecewise still. Sadly, this problem MUST be answered using Laplace.

All in all, I think the piecewise is what's getting in my way. I don't understand the step method, or how to transform it otherwise. I was able to do all other laplace problems fine, however.
 

What is a step function IVP differential equation?

A step function IVP differential equation is an initial value problem (IVP) that involves a step function, which is a function that changes abruptly at certain points. The differential equation in this case represents the relationship between the step function and its derivative.

How is the Laplace transform used in solving step function IVP differential equations?

The Laplace transform is a mathematical tool that can be used to solve differential equations, including those involving step functions. It transforms a function from the time domain to the frequency domain, making it easier to manipulate and solve the equation.

What are the initial conditions in a step function IVP differential equation?

The initial conditions in a step function IVP differential equation refer to the values of the dependent variable (usually denoted by y) and its derivatives at a specified initial time. These initial conditions are necessary in order to determine the unique solution to the differential equation.

Can the Laplace transform be applied to any type of step function?

Yes, the Laplace transform can be applied to any type of step function, as long as the function is piecewise continuous. This means that the function can be broken into distinct intervals where it is continuous, and the Laplace transform can be applied to each interval separately.

What are some applications of step function IVP differential equations in science?

Step function IVP differential equations have many applications in science, particularly in modeling physical systems that involve sudden changes or events. Examples include electrical circuits, chemical reactions, and population dynamics. The Laplace transform is a valuable tool in solving these types of equations and understanding the behavior of these systems.

Similar threads

  • Calculus and Beyond Homework Help
Replies
3
Views
573
  • Calculus and Beyond Homework Help
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
674
  • Calculus and Beyond Homework Help
Replies
1
Views
669
  • Calculus and Beyond Homework Help
Replies
8
Views
2K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
393
  • Calculus and Beyond Homework Help
Replies
0
Views
170
  • Calculus and Beyond Homework Help
Replies
26
Views
2K
  • Calculus and Beyond Homework Help
Replies
7
Views
288
Back
Top