Problem Statement
For the below system set up a set of state variable equations, and then solve. Assume all motion takes place in the vertical directions.
Solution
Initial Values
For the upper mass:
And for the lower mass:
Find the Force Equations
First we need to sum forces in the y-direction for each block.
For mass 1:
For mass 2:
So if we put the equations above into the correct form we have:
and
Note: Many people include the original length of the springs in the above equations, however if we take our initial reference point to be where the mass is in equilibrium, we do not need to include the initial spring length or gravity as an imput.
State Space Equation
The general form for the state equation is as shown below:
Where denotes a matrix and denotes a vector.
If we let , , , and be the state variables, then
Now we need to set up our output. The below is the general form of the output.
If we want to output both positions and velocities of both masses we will use:
Eigenvalues
If we solve the A matrix for the eigenvalues using Matlab we get:
Eigenvectors
Now that we have our eigenvalues, we can use them to find the eigenvectors. Again using Matlab we get:
Diagonalized A Matrix
With the above eigenvectors we also get the diagonalized A matrix which we will denote as D:
Solving
If we take the Laplace transform of the above D matrix and use the below equation:
where