Docsity

Maths for Computer Science: Linear Algebra and Vector Analysis Exercises - Prof. Mensah, Cheat Sheet of Linear Algebra

Toggle sidebar
bg1
ASSIGNMENT
SUBMISSION: 11/08/2025
COURSE TITLLE: MATHS FOR COMP. SC. CODE: BCSC 103
ANSWER ALL QUESTIONS
1. The determinant of a 2x2 matrix [[a, b], [c, d]] is:
A) ab - cd
B) ad + bc
C) ad - bc
D) ac – bd
2. What method is commonly used to solve a system of linear equations using matrices?
A) Substitution method
B) Matrix Inversion
C) Trial and Error
D) Completing the square
3. A vector space over the real numbers must satisfy which of the following?
A) Only scalar multiplication
B) Only vector addition
C) All vector space axioms
D) Only inner product rules
4. The dimension of a vector space is defined as:
A) The number of elements in the space
B) The number of vectors in a basis
C) The maximum value in the vector
D) The magnitude of a vector
5. Which of the following is a basis for R²?
pf3
pf4
pf5
pf8

Partial preview of the text

Download Maths for Computer Science: Linear Algebra and Vector Analysis Exercises - Prof. Mensah and more Cheat Sheet Linear Algebra in PDF only on Docsity!

ASSIGNMENT

SUBMISSION: 11/08/

COURSE TITLLE: MATHS FOR COMP. SC. CODE: BCSC 103

ANSWER ALL QUESTIONS

  1. The determinant of a 2x2 matrix [[a, b], [c, d]] is: A) ab - cd B) ad + bc C) ad - bc D) ac – bd
  2. What method is commonly used to solve a system of linear equations using matrices? A) Substitution method B) Matrix Inversion C) Trial and Error D) Completing the square
  3. A vector space over the real numbers must satisfy which of the following? A) Only scalar multiplication B) Only vector addition C) All vector space axioms D) Only inner product rules
  4. The dimension of a vector space is defined as: A) The number of elements in the space B) The number of vectors in a basis C) The maximum value in the vector D) The magnitude of a vector
  5. Which of the following is a basis for R²?

A) {(0, 0)}

B) {(1, 0), (0, 1)}

C) {(2, 2)}

D) {(1, 1), (2, 2)}

  1. An orthonormal set of vectors satisfies: A) Only orthogonality B) Only normalization C) Orthogonality and unit length D) None of the above
  2. The dot product of two perpendicular vectors is: A) 1 B) 0 C) Infinity D) -
  3. A linear transformation T: Rn^ → Rm^ is a function that: A) Adds a scalar B) Scales by a matrix C) Is nonlinear D) Ignores zero vectors
  4. The kernel of a linear transformation is: A) The input space B) The output space C) The set of vectors mapped to zero D) The set of eigenvalues
  5. The Gram-Schmidt process is used to:
  1. The trace of a square matrix is: A) The sum of all its elements B) The sum of the diagonal elements C) Its determinant D) The rank of the matrix
  2. Which of these matrices is symmetric? A) [[1, 2], [2, 1]] B) [[0, 1], [2, 0]] C) [[1, 0], [1, 1]] D) [[2, -2], [2, 2]]
  3. A matrix is diagonalizable if it: A) Is invertible B) Has full rank C) Has a complete set of linearly independent eigenvectors D) Is symmetric
  4. The rank of a matrix is the dimension of its: A) Kernel B) Null space C) Column space D) Row with maximum zeros
  5. Which command in MATLAB returns the eigenvalues of matrix A? A) eigval( A ) B) eval( A ) C) eig( A ) D) eigen( A )
  1. The command null(A) in MATLAB returns: A) The determinant B) The inverse C) The null space D) The eigenvalues
  2. A singular matrix in MATLAB is one with: A) Zero trace B) Non-zero eigenvalue C) Zero determinant D) All positive entries
  3. MATLAB uses which symbol for matrix multiplication? A) x B) * C) ^ D) #
  4. In MATLAB, the command to compute the inverse of matrix A is: A) inv( A ) B) A- C) inverse(A) D) A~
  5. Matrix multiplication is possible when: A) Rows of A = Rows of B B) Columns of A = Rows of B C) Both matrices are square D) A is diagonal

C) -

D) Depends on size

  1. An eigenvector of a matrix must be: A) A scalar B) Non-zero vector C) Zero vector D) Identity matrix SECTION B ANSWER ALL QUESTIONS

(1). Solve the following system of equation using creamer’s rule

2 x + 5 y + 3 z = 18 x + y + z = 6 5 x + 3 y + 2 z = 19 (2). A line passes through the point p ( 2 , 5 , 7 ) and q ( 3 , 1 , 3 ).

Find the

i. Vector equation

ii. Parametric equation and

Iii Symmetric equation of the line

(3). Given that vectors a = i + 2 j + 3 k ∧ b = 4 i − 3 j − k. i. Find the direction cosine of a + b ii. Find the domain of^ f^ :^ x^ →^ 2 x − 1 3 ( x + 1 )

(4). Find

i. the eigenvalue of the matrix A = [

2 1 ]

ii. the inverse( A −^1 ) of A

(5). P and Q are the points (7,9) and (-1,3) respectively. Find the co-ordinate of;

i. The point R which divides (P, Q) internally in the ratio 3:2.

ii. The point S which divides (Q, P) externally in the ratio 1: