Graphing a Heaviside unit function

Click For Summary
The discussion focuses on solving the differential equation y'' + 4y = δ(t-2π) with initial conditions y(0)=0 and y'(0)=0, leading to the solution involving Heaviside and sine functions. The solution is expressed as (1/2)u_π(sin(2(t-π))) - (1/2)u_2π(sin(2(t-2π))). Participants clarify how to graph this function, noting that y=0 before t=π and after t=2π, with a sine wave present between these intervals. The conversation also addresses the manipulation of sine terms and their implications on the graph's behavior. Ultimately, the participants reach a consensus on how to visualize the combined graph of the function.
EngageEngage
Messages
203
Reaction score
0
[SOLVED] Graphing a Heaviside unit function

Homework Statement


find solution of the following differential eq and graph it:

y'' + 4y = \delta(t-2\pi)
y(0)=0
y'(0)=0

Homework Equations


\delta
is the Dirac delta function
u_{c}
is the Heaviside unit step function

The Attempt at a Solution



I used the laplace transform and found the solution to be:

\frac{1}{2}u_{\pi}(sin(2(t-\pi)))-\frac{1}{2}u_{2\pi}(sin(2(t-2\pi)))

which i checked and it is right. However, I'm not sure how to graph this. The following is what I have:

before t = pi and after t = 2pi, y = 0.
But, in between what will it be? If anyone could please help me out I would greatly appreciate it.
 
Physics news on Phys.org
As the sine function is periodic, you can write the expression as
<br /> \frac{1}{2}sin2t(u_{\pi}-u_{2\pi})<br />
Now can you proceed?
 
Thank you for the help! So, then from pi to 2 pi I will just have that sine wave? Also, if you could please help me figure this out:

so then is this:
\frac{1}{2}u_{\pi}(sin(2(t-\pi)))-\frac{1}{2}u_{2\pi}(sin(2(t-2\pi)))
not the same as this?:
\frac{1}{2}u_{\pi}(sin(2(t-\pi)))+\frac{1}{2}u_{2\pi}(-sin(2(t-2\pi)))
 
Thank you for the help! So, then from pi to 2 pi I will just have that sine wave?
Correct :)

About the second question, yes you can take the minus sign with the sine term, that's basic multiplication. sin(2t-2pi) = sin(2t-4pi) = sin(2t)
 
Thanks again, but I'm not sure that i stated the second question right. I mean that if i bring the minus sign inside of the parenthesis it implies to me (maybe incorrectly) that the second sine wave will start at 2pi and propagate to infinity.
 
Okay let me clear things up a bit,
You follow how
\frac{1}{2}u_{\pi}(sin(2(t-\pi)))-\frac{1}{2}u_{2\pi}(sin(2(t-2\pi)))
becomes
\frac{1}{2}sin(2t)u_{\pi}-\frac{1}{2}sin(2t)u_{2\pi}
correct?
Now the first term is the sine function from pi to infinity, the second term is the sine function from 2pi to infinity. Taking difference of the two graphs gives the combined graph.
 
Last edited:
Ahh, I for some reason pictured this differently. But i definitely see now. Thank you for the help arunbg!
 

Similar threads

  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 40 ·
2
Replies
40
Views
4K
  • · Replies 1 ·
Replies
1
Views
938
  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K