Blog
Linear Algebra Past Paper 2017 – BSIT 3rd Term UOS (MATH-3215)
University of Sargodha Linear Algebra (MATH-3215) paper for BS Information Technology 3rd term, 2017 exam (80 marks, 2:30 hours). The full paper is below, followed by worked solutions for all 16 short questions and all six long questions, with every calculation checked.
Solved answers
Q1 – Short answers (16 × 2)
i. Unit vector in the direction of v = (2, 2, −1): ‖v‖ = √(4 + 4 + 1) = 3, so u = v/‖v‖ = (2/3, 2/3, −1/3).
ii. Define subspace. A non-empty subset W of a vector space V that is itself a vector space under the same operations – equivalently, W contains 0 and is closed under addition and scalar multiplication.
iii. Define eigenvector. A non-zero vector x with Ax = λx for some scalar λ (the eigenvalue): A only stretches or shrinks x without changing its line.
iv. (1,0,0), (0,1,0), (0,0,1) are linearly independent: c1(1,0,0) + c2(0,1,0) + c3(0,0,1) = (c1, c2, c3) = 0 gives c1 = c2 = c3 = 0, so they are independent (also det I = 1 ≠ 0).
v. Define equal matrices. Two matrices are equal if they have the same size and every corresponding entry is equal (aij = bij for all i, j).
vi. Angle between u = (2, 4) and v = (−1, 2): u·v = −2 + 8 = 6, ‖u‖ = √20, ‖v‖ = √5, cos θ = 6/√100 = 0.6, so θ = cos−1(0.6) ≈ 53.13°.
vii. Is (5, 11) a linear combination of (1, 0) and (0, 1)? Yes: (5, 11) = 5(1, 0) + 11(0, 1).
viii. Orthogonal vectors: Vectors u, v with u·v = 0 (perpendicular), e.g. (1, 2) and (2, −1).
ix. Matrix equation as a linear system: 5x1 + 6x2 − 7x3 = 2; −x1 − 2x2 + 3x3 = 0; 4x2 − x3 = 3.
x. Prove (AB)−1 = B−1A−1: (AB)(B−1A−1) = A(BB−1)A−1 = AIA−1 = I, and similarly (B−1A−1)(AB) = I. Since the inverse is unique, (AB)−1 = B−1A−1.
xi. Is the given matrix symmetric? Yes, for all a and b: a12 = a21 = 3a, a13 = a31 = 0 and a23 = a32 = b, so AT = A.
xii. Find λ with |A| = 0: Expanding along the third column: |A| = (λ − 5)[(λ − 4)λ + 4] = (λ − 5)(λ − 2)2 = 0, so λ = 2 or λ = 5.
xiii. Trivial vs non-trivial solution: For Ax = 0, x = 0 is the trivial solution; any other solution is non-trivial. A non-trivial solution exists only if det A = 0 (A singular).
xiv. What are similar matrices? A and B are similar if B = P−1AP for some invertible P; they have the same determinant, trace, rank and eigenvalues.
xv. Define Hermitian matrix. A square complex matrix equal to its conjugate transpose, A = A* (aij = conj(aji)); its diagonal entries and eigenvalues are real.
xvi. Two applications of linear algebra: Computer graphics (transformations, rotations), machine learning/data science (PCA, regression), cryptography, network analysis, solving electrical circuits.
Q2 – Values of a (12)
Augmented matrix and row operations (R2 − 3R1, R3 − 4R1, then R3 − R2):
1 2 -3 | 4
0 -7 14 | -10
0 0 a²−4 | a−2
- No solution: a² − 4 = 0 but a − 2 ≠ 0 → a = −2 (last row 0 = −4).
- Exactly one solution: a² − 4 ≠ 0 → a ≠ ±2.
- Infinitely many solutions: a² − 4 = 0 and a − 2 = 0 → a = 2 (last row 0 = 0, one free variable).
Q3 – LU decomposition (12)
A = 3 -2 1
5 6 2
1 0 -3. Using multipliers l21 = 5/3, l31 = 1/3: R2 → (0, 28/3, 1/3), R3 → (0, 2/3, −10/3). Then l32 = (2/3)/(28/3) = 1/14: R3 → (0, 0, −47/14).
L = 1 0 0
5/3 1 0
1/3 1/14 1 U = 3 -2 1
0 28/3 1/3
0 0 −47/14
Check: det A = 3 · 28/3 · (−47/14) = −94, and LU = A.
Q4 – Eigenvalues and eigenvectors (12)
Characteristic equation: det(λI − A) = λ³ − 12λ² + 61λ − 152 = 0 (trace 12, det A = 152).
This cubic has no rational root, so the eigenvalues are found numerically: λ1 ≈ 6.079 and a complex pair λ ≈ 2.961 ± 4.030i. For λ1 ≈ 6.079, solving (A − λ1I)x = 0 gives the eigenvector x ≈ (−0.104, 1.765, 1). The complex eigenvectors follow the same way with λ = 2.961 ± 4.030i. (The printed matrix probably has a typo, since such exam questions normally have integer eigenvalues; the method is what carries the marks.)
Q5 – Gauss-Jordan elimination (12)
Augmented matrix 0 -2 3 | 1
3 6 -3 | -2
6 6 3 | 5. Swap R1 ↔ R2, R1 → R1/3: (1, 2, −1 | −2/3). R3 − 6R1: (0, −6, 9 | 9). R2 → −R2/2: (0, 1, −3/2 | −1/2). R3 + 6R2: (0, 0, 0 | 6).
Reduced form 1 0 2 | 0
0 1 −3/2 | 0
0 0 0 | 1 – the last row reads 0 = 1, so the system is inconsistent (no solution).
Q6 – Do the polynomials span P3? (12)
Write coefficients (t³, t², t, 1): p1 = (1, 0, 2, 1), p2 = (0, 1, −1, 2), p3 = (1, 0, 0, 2), p4 = (−1, 1, −5, 2). The 4 × 4 matrix of these vectors has determinant 0 and rank 3. Indeed 2p1 − p2 − p3 + p4 = 0. Since dim P3 = 4 and the four polynomials span only a 3-dimensional subspace, they do not span P3 (e.g. the constant polynomial 1 is not in their span).
Q7 – Adjoint of A (12)
Cofactors of A = 3 -2 1
5 6 2
1 0 -3: C11 = −18, C12 = 17, C13 = −6, C21 = −6, C22 = −10, C23 = −2, C31 = −10, C32 = −1, C33 = 28.
adj A = (cofactor matrix)T = -18 -6 -10
17 -10 -1
-6 -2 28. Check: det A = −94 and A·adj A = −94 I, so A−1 = −(1/94) adj A.
