Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The double spring A double spring consists of two springs, attached end - to - end, each with a point mass on the enc For

The double spring
A double spring consists of two springs, attached end-to-end, each with a point mass on the
enc
For this project, we will consider only the case where the two point masses are equal, m, and
the springs are of equal rest length, l and have equal spring constants, k. In this case, the
motion of the double spring is governed by the following set of coupled ODEs:
z1=-km(z1-l)+km(z2-z1-l)
z2=-km(z2-z1-l)
where z1 and z2 are the positions of the two masses. This can be rewritten as
z1=-22z1+2z2
z2=2z1-2z2+2l
where =km2.
Question 2 Write this system of equations in matrix form: Z''=-2AZ+2L, where Z=
(z1,z2)T.
For Questions 3-8 and Tasks 1-4, we will assume the rest length of each spring is zero. In
this case, l=0, so that L=0 and the matrix equation is homogeneous, i.e.Z''=-2AZ.
(Although this is unrealistic, it will give us a good starting point.)
Since the point masses will oscillate back and forth, we should expect the solutions to this
system of equations to contain oscillatory functions.
Question 3 Both Z=xcos(2t) and Z=xsin(2t), where x=(x1,x2)T, are solutions
to the system of equations given by (4). By substituting each solution into the matrix equation
from Q2(with L=0), state what relationship x and have to A.
Let the point masses have mass m=1kg, and let the springs have stiffness k=2Nm.Task 1 In your MATLAB script file, write the code required to find the eigenvalues and
{:2) and the corresponding eigenvectors and x2) for the matrix A. Use the corresponding
section of the 'skeleton' MATLAB script at the end of this assignment. Run your script file to
find 1,2,x1 and x2. Write your answers in your report.
The general solution of the system of equations (4) will be a linear combination of all of the
solutions described above.
Question 4 Write the general solution in terms of the eigenvalues and eigenvectors of the
matrix A.
Hint: The system of equations (4) consists of two second order linear ODEs. This means
that we should expect the general solution to have four arbitrary constants, that is, the general
solution should be a linear combination of four solutions. Use c1,c2,c3,c4 for the arbitrary
constants.
The values of c1,c2,c3,c4 will depend on the initial conditions of the system, that is, the specific
initial value problem. We will consider the following specific initial value problem:
z1(0)=1m,z2(0)=5m
z1(0)=0ms-1,z2(0)=0ms-1
Question 5 Give a physical interpretation of the initial conditions listed above in (5).
Question 6 To determine the unknown constants for any initial value problem, we can solve
a matrix equation of the form Bc=d where c=[c1,c2,c3,c4]T. Write down B and d.
Task 2 Then, in your MATLAB script file, write the code required to find c1,c2,c3,c4 for the
specific initial value problem described above. Be sure, though, to set it up so that you can easily
change the initial value problem.
Our solution, Z, describes the positions of the point masses at a particular time t.
Task 3 Fill in the necessary MatLaB code required to calculate the positions of the masses at
times 0t40 seconds (use a stepsize of 0.05s).
To create the animation, we use the for loop within the skeleton MATLAB code provided. Copy
this to your MATLAB script file. Run the animation - this will create MATLAB Figure 1.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data Concepts, Theories, And Applications

Authors: Shui Yu, Song Guo

1st Edition

3319277634, 9783319277639

More Books

Students also viewed these Databases questions

Question

what is the time in which a neuron can not trigger another AP

Answered: 1 week ago