

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A step-by-step solution to a linear algebraic equation using matrix inverse and cramer's rule. The example problem is based on a truss structure with six unknowns. The calculation of the coefficient matrix, right-hand side constants, matrix inverse, and the solution for one unknown using cramer's rule.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Matrix form [A] {X} = {B}
Truss example from class initialize all elements in the A matrix to 0 i := 0 .. 5 j := 0 .. 5 A (^) i j, := 0
copy the matrix above, fill in the nonzero elements, and redefine A: c30 := cos 30 deg( ⋅ ) s30 :=sin 30 deg( ⋅ ) c60 := cos 60 deg( ⋅ ) s60 :=sin 60 deg( ⋅ )
−c − s c s 0 0
c −s 0 0 −c s
coefficient matrix right-hand side constants
Matrix Inverse
check inverse results:
example equation (row 2 [row 1 in 0-based MathCAD]) − s30 ⋅X 0 − s60 X ⋅ 2 = 1 × 10 3
Cramer's Rule to solve for the 2nd unknown x 2 (X 1 in MathCAD), replace the 2nd column with B in the numerator:
x (^2)
−c − s c s 0 0
c −s 0 0 −c s
:= x 2 =
shortcut way to do this in MathCAD: start with the coefficient matrix (i.e., initialize the numerator matrix) N :=A replace the 2nd column with the constant vector