Example 14
Laplace Transform
GIVEN: two masses and three springs
REQUIRED: Find displacments
SOLUTION: Generate example14.nb
k[1] = 4;
k[2] = 2;
k[3] = 2;
m[1] = 2;
m[2] = 1;
initialdata = {x[1][0] ->1, (x[1])'[0] -> 0,
x[2][0] ->0, (x[2])'[0] -> 0};
transforms = Table[X[i] = LaplaceTransform[x[i][t], t, s], {i, 1, 2}];
eqns = {m[1] x[1]''[t] + (k[1] + k[2]) x[1][t] - k[2] x[2][t],
m[2] x[2]''[t] - k[2] x[1][t] + (k[2] + k[3]) x[2][t]};
eqnsTransformed = LaplaceTransform[eqns, t,s] /. initialdata;
solTransforms = Solve[eqnsTransformed == 0, transforms];
Xs = transforms /. solTransforms;
Xs = Flatten[Xs, 1];
solution = InverseLaplaceTransform[Xs,s,t];
graph = Plot[Evaluate[solution], {t, 0, 2Pi}];
Example
Homework:
Please send questions or suggestions about this web page to beatnic@aset.psu.edu
ASET | ITS | Penn State
|