Damped Oscillation Equation: Finding Amplitude and Phase Angle

AI Thread Summary
The discussion revolves around solving the damped oscillation equation y(t)=Ae^{-\frac{b}{2m}t}cos(\omega't + \phi) with initial conditions y(0)=0.5 and y'(0)=0. The values for amplitude A and phase angle φ are derived as A=\frac{1}{2cos(\phi)} and φ=arctan(-\frac{b}{2m\omega'}). Users express concerns about plotting the function in MATLAB, as some are experiencing issues with obtaining a damped oscillation. The conversation emphasizes the need to verify the MATLAB code to ensure it accurately represents the damped behavior of the oscillation.
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.
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'Collision of a bullet on a rod-string system: query'
In this question, I have a question. I am NOT trying to solve it, but it is just a conceptual question. Consider the point on the rod, which connects the string and the rod. My question: just before and after the collision, is ANGULAR momentum CONSERVED about this point? Lets call the point which connects the string and rod as P. Why am I asking this? : it is clear from the scenario that the point of concern, which connects the string and the rod, moves in a circular path due to the string...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top