Linear Algebra, Past Papers, UOS Main Campus

Linear Algebra Past Paper 2017 – BSSE 4th Term UOS (MATH-3215)

ProgramBSSE
Term4th
Year2017
Course codeMATH-3215
AnswersSolved ✓

University of Sargodha Linear Algebra (MATH-3215) paper for BS Software Engineering 4th term, 2017 exam (80 marks, 2:30 hours). The paper has been retyped and worked solutions for all 16 short questions and all six long questions are given below, with every calculation checked.

Solved answers

Q1 – Short answers (16 × 2)

i. Row equivalent matrices: Two matrices are row equivalent if one can be obtained from the other by a finite sequence of elementary row operations (swap, scale by non-zero, add a multiple of a row).

ii. (AB)−1 = B−1A−1: (AB)(B−1A−1) = A(BB−1)A−1 = AA−1 = I and (B−1A−1)(AB) = I, so by uniqueness of the inverse (AB)−1 = B−1A−1.

iii. Vector P1P2: P2 − P1 = (7 − 2, 5 − 1, 8 + 4) = (5, 4, 12).

iv. u = (1,2,0,−1), v = (−2,3,1,4) orthogonal: u·v = −2 + 6 + 0 − 4 = 0, so u ⟂ v.

v. Subspace of a vector space: A non-empty subset W ⊆ V that contains 0 and is closed under vector addition and scalar multiplication.

vi. Standard basis of Rn: e1 = (1, 0, …, 0), e2 = (0, 1, 0, …, 0), …, en = (0, …, 0, 1).

vii. Characteristic equation and its advantage: det(λI − A) = 0; its roots are the eigenvalues of A. Advantage: it gives all eigenvalues at once, which are used for diagonalization, stability analysis and solving differential equations.

viii. Linear independence with example: Vectors are independent if c1v1 + … + ckvk = 0 only when all ci = 0. Example: (1, 0) and (0, 1) are independent; (1, 2) and (2, 4) are dependent.

ix. Meaning of x = xp + xh: The general solution of Ax = b equals one particular solution xp of Ax = b plus the general solution xh of the homogeneous system Ax = 0.

x. Is (5, 11) a combination of (1,0) and (0,1)? Yes, (5, 11) = 5(1, 0) + 11(0, 1).

xi. P(A) for A = [4 3; 6 2], P(x) = x³ − 2x + 4: A² = [34 18; 36 22], A³ = [244 138; 276 152]. P(A) = A³ − 2A + 4I = 240  132
264  152
.

xii. Symmetric matrix: A square matrix with AT = A, i.e. aij = aji.

xiii. Diagonalization: Writing A = PDP−1 with D diagonal (eigenvalues) and P invertible (columns = eigenvectors); possible when A has n independent eigenvectors.

xiv. Solve the row-echelon system: From [1 −3 4 | 7; 0 1 2 | 2; 0 0 1 | 5]: x3 = 5, x2 = 2 − 2(5) = −8, x1 = 7 + 3(−8) − 4(5) = −37. Solution (−37, −8, 5).

xv. Matrix equation as a system: 5x1 + 6x2 − 7x3 = 2; −x1 − 2x2 + 3x3 = 0; 4x2 − x3 = 3.

xvi. λ with |A| = 0: |A| = (λ − 5)[(λ − 1)² + 4] = (λ − 5)(λ² − 2λ + 5) = 0, so λ = 5 (real); the other roots are complex, λ = 1 ± 2i.

Q2 – Solve by LU factorization (12)

A = 1  2  -3
2  -1  4
1  -1  1
= LU with L = 1  0  0
2  1  0
1  3/5  1
, U = 1  2  -3
0  -5  10
0  0  -2
.

Ly = b (b = (6, 1, 3)): y1 = 6, y2 = 1 − 12 = −11, y3 = 3 − 6 − (3/5)(−11) = 18/5.

Ux = y: −2x3 = 18/5 → x3 = −9/5; −5x2 + 10x3 = −11 → x2 = −7/5; x1 = 6 − 2x2 + 3x3 = 17/5.

x1 = 17/5, x2 = −7/5, x3 = −9/5 (check: 17/5 + 7/5 − 9/5 = 3 ✓).

Q3 – Do the polynomials span P3? (12)

Coefficient vectors (t³, t², t, 1): (1, 0, 2, 1), (0, 1, −1, 2), (1, 0, 0, 2), (−1, 1, −5, 2). Their matrix has determinant 0 and rank 3, because 2p1 − p2 − p3 + p4 = 0. Four vectors spanning only a 3-dimensional space cannot span P3 (dimension 4), so they do not span P3.

Q4 – Minors and cofactors (12)

A = 1  1  2
3  3  6
0  1  4

Minors: M11 = 6, M12 = 12, M13 = 3, M21 = 2, M22 = 4, M23 = 1, M31 = 0, M32 = 0, M33 = 0.

Cofactors Cij = (−1)i+jMij: 6  -12  3
-2  4  -1
0  0  0
. (det A = 1·6 + 1·(−12) + 2·3 = 0, as row 2 = 3 × row 1.)

Q5 – Singular values (12)

ATA = 2  2√2  0
2√2  6  2
0  2  2
. Its characteristic polynomial is λ(λ − 2)(λ − 8), so the eigenvalues are 8, 2, 0.

Singular values σ = √λ: σ1 = 2√2 ≈ 2.828, σ2 = √2 ≈ 1.414, σ3 = 0 (A has rank 2).

Q6 – Characteristic equation, eigenvalues and eigenvectors (12)

det(λI − A) = (λ + 8)(λ² + 1) = λ³ + 8λ² + λ + 8 = 0.

Eigenvalues: λ = −8, i, −i.

For λ = −8: (A + 8I)x = 0 gives x = t(−1, −1, 6). For λ = ±i the eigenvectors are complex: x = (2/5 ± i/5, −18/25 ∓ 24i/25, 1)·t.

Q7 – Which is a subspace of R3? (12)

X = {(a, 1, 0)}: not a subspace – it does not contain the zero vector (second entry is always 1), and (a, 1, 0) + (b, 1, 0) = (a+b, 2, 0) ∉ X.

Y = {(a, b, c) : c = a − b}: a subspace. 0 = (0, 0, 0) ∈ Y; if c1 = a1 − b1 and c2 = a2 − b2 then c1 + c2 = (a1 + a2) − (b1 + b2), and kc = ka − kb. Y is the plane a − b − c = 0 through the origin, spanned by (1, 0, 1) and (0, 1, −1).

Save this paper for offline studyDownload the question paper, or save the paper together with all solved answers as a PDF.
↓ Download Paper (JPG)

About Saif R

An educator and technology enthusiast passionate about empowering students through quality education and digital learning. Dedicated to making academic resources and opportunities accessible to everyone.