Damped Oscillation Equation: Finding Amplitude and Phase Angle

Click For Summary

Homework Help Overview

The discussion revolves around the equation for damped oscillation, specifically analyzing the equation y(t)=Ae^{-\frac{b}{2m}t}cos(\omega't + \phi) with given initial conditions y(0)=0.5 and y'(0)=0. Participants are exploring how to determine the values of amplitude A and phase angle φ, as well as how to correctly plot the oscillation in MATLAB.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the derivation of y(t) and its derivative y'(t), with one participant suggesting that the expressions for A and φ are correct. Questions arise regarding the plotting of the function in MATLAB, particularly why an undamped oscillation is observed instead of a damped one.

Discussion Status

The discussion is ongoing, with some participants affirming the correctness of the derived expressions for A and φ. There is a request for MATLAB code to assist in troubleshooting the plotting issue, indicating a collaborative effort to resolve the problem.

Contextual Notes

Participants mention the need to satisfy initial conditions and express uncertainty about the MATLAB implementation of the derived equation. There is a lack of consensus on the plotting issue, as one participant does not have access to MATLAB but reports success using other software.

Maxo
Messages
160
Reaction score
1

Homework Statement


The equation for a damped oscillation is y(t)=Ae^{-\frac{b}{2m}t}cos(\omega&#039;t + \phi)<br />
We know that y(0)=0.5 and y'(0)=0.

Find the values of A and ø and then plot the oscillation in MATLAB.


Homework Equations


See above


The Attempt at a Solution


When derivating y(t) we get

y&#039;(t)=Ae^{-\frac{b}{2m}t}(-\frac{b}{2m}cos(\omega&#039;t+\phi)-\omega&#039;sin(\omega&#039;t + \phi))
This, together with the initial values gives that A=\frac{1}{2cos(\phi)} and \phi=arctan(-\frac{b}{2m\omega&#039;})

Is this correct? If not, then what is wrong?
 
Last edited:
Physics news on Phys.org
This looks correct to me. As a check, you should see that your plot of y(t) satisfies the initial conditions.
 
Ok, good. Then in other words, we get the following equation: y(t)=\frac{1}{2cos(arctan(-\frac{b}{2m\omega&#039;}))}e^{-\frac{b}{2m}t}cos(\omega&#039;t + arctan(-\frac{b}{2m\omega&#039;}))<br />
Right?

Now I wonder, how can we plot this in MATLAB? Can it be written just like it's written here? Because when I try I don't get a damped oscillation, but an undamped one. What is wrong then?
 
Last edited:
Maxo said:
Ok, good. Then in other words, we get the following equation: y(t)=\frac{1}{2cos(arctan(-\frac{b}{2m\omega&#039;}))}e^{-\frac{b}{2m}t}cos(\omega&#039;t + arctan(-\frac{b}{2m\omega&#039;}))<br />
Right?

Yes.

Now I wonder, how can we plot this in MATLAB? Can it be written just like it's written here? Because when I try I don't get a damped oscillation, but an undamped one. What is wrong then?

I would need to see your code. I don't have MATLAB, but when I plot the function using other software, it looks OK.
 
TSny said:
I don't have MATLAB, but when I plot the function using other software, it looks OK.

Could you please post your code for this? I will try some more and if I still don't manage I will post my code afterwards.
 

Similar threads

Replies
9
Views
2K
Replies
5
Views
5K
Replies
5
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
3
Views
969
  • · Replies 2 ·
Replies
2
Views
3K
Replies
3
Views
1K
Replies
17
Views
3K
Replies
4
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K