Each answer here was worked out by hand, without RatMath, before the RatMath code was written. Where the arithmetic is long, the working says how it was checked.
1.Reduced row echelon form
Row reduce 123246−110303.
Answer
1002000101−20, pivots in columns 1 and 3.
2.Solving a system
Solve x+y+z=6, 2x+y−z=1, x−y+2z=5.
Answer
x=1, y=2, z=3.
Working
From the first two, x=2z−5 and y=11−3z; the third gives 7z−16=5.
3.Determinant
det210−13504−2
Answer
2(−6−20)+1(−2−0)=−54.
4.Inverse
Find the inverse of 105216340.
Answer
−2420−518−1545−41 (determinant 1).
5.Null space
Find a basis for the null space of (122436).
Answer
x1=−2x2−3x3: basis (−2,1,0), (−3,0,1).
6.Rank and nullity
Find the rank and nullity of 121024021210.
Answer
Row 2 is twice row 1 and row 4 is row 1 minus row 3: rank 2, nullity 3−2=1.
7.Linear independence
Are (1,2,3), (4,5,6), (7,8,9) linearly independent? If not, give a relation.
Answer
No: v1−2v2+v3=0.
8.Eigenvalues and eigenvectors
Find the eigenvalues and eigenvectors of (4213).
Answer
λ2−7λ+10=0: λ=2 with (1,−2), λ=5 with (1,1).
9.Irrational eigenvalues
Find the eigenvalues of 210121012.
Answer
(2−λ)[(2−λ)2−2]=0: 2, 2±2.
10.Characteristic polynomial
Find the characteristic polynomial of (1324).
Answer
λ2−5λ−2.
11.Matrix powers
Compute (1110)10.
Answer
Fibonacci numbers: (89555534).
12.Gram–Schmidt
Apply Gram–Schmidt to (1,1,0), (1,0,1) (orthogonal, not yet normalised).
Answer
u1=(1,1,0); u2=(1,0,1)−21(1,1,0)=(21,−21,1).
13.Projection
Project b=(1,2,3) onto the line spanned by a=(1,1,1).
Answer
a⋅aa⋅ba=36(1,1,1)=(2,2,2).
14.Least squares line
Fit y=c+mx to (0,1),(1,3),(2,4),(3,4) by least squares.
Answer
xˉ=1.5, yˉ=3, Sxy=5, Sxx=5: m=1, c=1.5.
15.Change of basis
Find the coordinates of (3,5) in the basis b1=(1,1), b2=(1,−1).
Answer
a+b=3, a−b=5: (4,−1).
16.Kernel and image
For T(x,y,z)=(x+y,y+z), find the kernel and decide whether T is onto R2.
Answer
Kernel spanned by (1,−1,1); rank 2, so T is onto.
17.Orthogonal diagonalisation
Orthogonally diagonalise (3113).
Answer
Eigenvalues 2 and 4, with 21(1,−1) and 21(1,1): A=QDQT, D=diag(2,4).
18.Definiteness
Is 2−10−12−10−12 positive definite?
Answer
Leading minors 2, 3, 4 are positive: yes.
19.Singular values
Find the singular values of (3405).
Answer
ATA=(25202025) has eigenvalues 45 and 5: σ=35,5.