Coupled Oscillator: Jonathan Schreven: Difference between revisions

From Class Wiki
Jump to navigation Jump to search
Line 164: Line 164:
== Matrix Exponential ==
== Matrix Exponential ==
In this section we will use matrix exponentials to solve the same problem. First we start with this identity.
In this section we will use matrix exponentials to solve the same problem. First we start with this identity.
:<math>z=Tx\,</math>
:<math>\bar{z}=\bold{T}\bar{x}\,</math>


This can be rearranged by multiplying the inverse of T to the left side of the equation.
This can be rearranged by multiplying the inverse of '''T''' to the left side of the equation.
:<math>T^{-1}z=x\,</math>
:<math>\bold{T^{-1}}\bar{z}=\bar{x}\,</math>


Now we can use another identity that we already know
Now we can use another identity that we already know
:<math>\dot{x}=Ax</math>
:<math>\dot{\bar{x}}=\bold{A}\bar{x}</math>


Combining the two equations we then get
Combining the two equations we then get
:<math>T^{-1}\dot{z}=AT^{-1}z</math>
:<math>\bold{T^{-1}}\dot{\bar{z}}=\bold{AT^{-1}}\bar{z}</math>


Multiplying both sides of the equation on the left by T we get
Multiplying both sides of the equation on the left by '''T''' we get
:<math>\dot{z}=TAT^{-1}z</math>
:<math>\dot{\bar{z}}=\bold{TAT^{-1}}\bar{z}</math>
:<math>\dot{\bar{z}}=\bold{\hat{A}}\bar{z}</math>


This new equation has the same form as
:<math>\dot{\bar{x}}=\bold{A}\bar{x}</math>
where
:<math>\bold{\hat{A}}=\bold{TAT^{-1}}</math>

If we take the Laplace transform of this equation we can come up with the following
:<math>\bar{z}=e^{\bold{A}t}\bar{x}(0)</math>






We also know what T equals and we can solve it for our case
We also know what T equals and we can solve it for our case
:<math>T^{-1}=[k_1|k_2|k_3|k_4]\,</math>
:<math>\bold{T^{-1}}=[\bar{k_1}|\bar{k_2}|\bar{k_3}|\bar{k_4}]\,</math>
:<math>T^{-1}=\begin{bmatrix}
:<math>\bold{T^{-1}}=\begin{bmatrix}
0.2149i & -0.2149i & -0.3500i & 0.3500i \\
0.2149i & -0.2149i & -0.3500i & 0.3500i \\
-0.5722 & -0.5722 & 0.4157 & 0.4157 \\
-0.5722 & -0.5722 & 0.4157 & 0.4157 \\
Line 191: Line 199:


Taking the inverse of this we can solve for T
Taking the inverse of this we can solve for T
:<math>T=\begin{bmatrix}
:<math>\bold{T}=\begin{bmatrix}
-1.2657i & -0.4753 & 0.8193i & 0.3077 \\
-1.2657i & -0.4753 & 0.8193i & 0.3077 \\
1.2657i & -0.4753 & -0.8193i & 0.3077 \\
1.2657i & -0.4753 & -0.8193i & 0.3077 \\

Revision as of 15:26, 10 December 2009

Problem

In this problem we will explore the solution of a double spring/mass system under the assumption that the blocks are resting on a smooth surface. Here's a picture of what we are working with.

Equations of Equilibrium

Using F=ma we can then find our four equations of equilibrium.

Equation 1
Equation 2
Equation 3
Equation 4


Now we can put these four equations into the state space form.

Eigen Values

Once you have your equations of equilibrium in matrix form you can plug them into a calculator or a computer program that will give you the eigen values automatically. This saves you a lot of hand work. Here's what you should come up with for this particular problem given these initial conditions.

Given

We now have

From this we get

Eigen Vectors

Using the equation above and the same given conditions we can plug everything to a calculator or computer program like MATLAB and get the eigen vectors which we will denote as .

Solving

We can now plug these eigen vectors and eigen values into the standard equation

And our final answer is


Matrix Exponential

In this section we will use matrix exponentials to solve the same problem. First we start with this identity.

This can be rearranged by multiplying the inverse of T to the left side of the equation.

Now we can use another identity that we already know

Combining the two equations we then get

Multiplying both sides of the equation on the left by T we get

This new equation has the same form as

where

If we take the Laplace transform of this equation we can come up with the following


We also know what T equals and we can solve it for our case

Taking the inverse of this we can solve for T