Linear algebra Flashcards

1
Q

What are vectors

A

Vectors are mathematical objects used to represent quantities that have both magnitude and direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How are vectors represented

A

Represented by an ordered collection of numbers, typically arranged in a column or row format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are properties of vector

A

Magnitude
Direction
Addition
Scalar Multiplication
Subtraction
Zero Vector
Negative Vector

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is magnitude of a vector

A

Every vector has a magnitude, which represents the length or size of the vector. The magnitude of a vector is always a non-negative real number.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is direction of a vector

A

Vectors have a direction, indicating the orientation or angle of the vector in space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Addition of two vectors

A

Vectors can be added together using the parallelogram rule or the head-to-tail method. The sum of two vectors is another vector obtained by connecting the initial point of the first vector to the terminal point of the second vector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Scalar multiplication of a vector

A

Vectors can be multiplied by scalars (real numbers). Scalar multiplication changes the magnitude of the vector without altering its direction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Subtraction of vectors

A

Vector subtraction is equivalent to adding the negative of a vector. Subtracting a vector is the same as adding its negative.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is zero vector

A

There exists a unique vector called the zero vector, denoted as
[0]
[0] , which has zero magnitude and undefined direction. Adding the zero vector to any vector results in the original vector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is negative vector

A

Every vector has a negative counterpart, obtained by reversing its direction while keeping its magnitude unchanged.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Formula for calculating magnitude

A

∣∣v∣|2= sqrt(v12+v22+…+vn**2)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Formula for calculating direction of a vector

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Different vector operations

A

Vector Addition
Scalar Multiplication
Vector Subtraction
Dot Product
Cross Product

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Dot product is also called as

A

Scalar product

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Cross product is also called as

A

Vector product

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is dot product

A

The dot product between two vectors is based on the projection of one vector onto another. Let’s imagine we have two vectors a
and b, and we want to calculate how much of a
is pointing in the same direction as the vector b
. We want a quantity that would be positive if the two vectors are pointing in similar directions, zero if they are perpendicular, and negative if the two vectors are pointing in nearly opposite directions. We will define the dot product between the vectors to capture these quantities.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Another name for dot product or scalar product

A

Inner product

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Formula for dot product

A

v⋅u=v1u1 + v2 u2 + …+ vnun

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does dot product geometrically represent

A

Geometrically, the dot product represents the projection of one vector onto another, scaled by the length of the other vector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is the norm of a vector

A

The norm of a vector, also known as its magnitude or length, represents the distance of the vector from the origin in the vector space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Norm of a vector is vector or scalar?

A

Scalar

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Euclidean Norm (L2 Norm):

A

||v||₂ = √(v₁² + v₂² + … + vₙ²)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Taxicab Norm (L1 Norm):

A

||v||₁ = |v₁| + |v₂| + … + |vₙ|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Maximum Norm (L∞ Norm):

A

||v||₊ = max(|v₁|, |v₂|, …, |vₙ|)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is cross product?

A

The cross product, also known as the vector product, is a binary operation on two vectors in three-dimensional space. Unlike the dot product, which results in a scalar quantity, the cross product yields a vector that is perpendicular to both input vectors.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

cross product formula

A

v × u = [v₂u₃ - v₃u₂, v₃u₁ - v₁u₃, v₁u₂ - v₂u₁]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What does cross product represent geometrically?

A

Geometrically, the magnitude of the vector from cross product represents the area of the parallelogram formed by the two input vectors, and its direction is perpendicular to this parallelogram. The right-hand rule is often used to determine the direction of the resulting vector.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is the angle of a vector

A

The angle between two vectors can be determined using the dot product formula and trigonometric functions. Given two vectors v and u, the angle θ between them can be found using the formula:
θ=arccos(v⋅u/∣∣v∣∣×∣∣u∣∣ )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

θ=arccos(v⋅u/∣∣v∣∣×∣∣u∣∣ ) - this formula gives the angle in

A

Radians

30
Q

||v|| and ||u|| are

A

The magnitudes (norms) of the vectors.

31
Q

Magnitude of a vector or

A

Eucledian distance of a vector

32
Q

Eucledian distance is denoted by

A

||v|| subscript 2 - since using Eucledian norm L2 formula or |v|

33
Q

Projection of a vector

A

The projection of a vector onto another vector is the component of the first vector that lies in the direction of the second vector. It represents how much of one vector acts in the direction of another vector.

34
Q

Formula for projection of a vector

A

proj-sub-u (v)=(v⋅u/||u||**2)u

35
Q

What is linear independence

A

A set of vectors in a vector space such that none of the vectors can be expressed as a linear combination of the others. In simpler terms, a set of vectors is linearly independent if no vector in the set can be formed by multiplying another vector by a scalar and adding it to the others.

36
Q

What is the dot product of orthogonal vectors

A

0

36
Q

What is orthogonality of vectors

A

Orthogonality of vectors refers to the property where two vectors are perpendicular to each other in a vector space. Geometrically, this means that the angle between the vectors is 90 degrees (or π/2 radians).

37
Q

What is matrix

A

A matrix is a rectangular array of numbers, symbols, or expressions arranged in rows and columns.

37
Q

What is matrix determinant?

A

The determinant of a square matrix is a scalar value that represents certain properties of the matrix.

37
Q

What is linear transformation

A

It is a mapping that takes vectors from one vector space to another in such a way that straight lines remain straight and parallel lines remain parallel after transformation.

38
Q

How is determinant represented

A

det(A) or |A|

39
Q

Formula for det

A

det(A)= ad-bc

40
Q

A matrix is invertible if and only if its det is

A

non zero

41
Q

For a matrix that has linearly dependent columns, det is

A

zero

42
Q

det(A) = 0 states that

A
  1. Matrix A is not invertible
  2. Vectors of the matrix lie in the same sub space/dependent
43
Q

What is the rank of a matrix

A

The rank of a matrix is the maximum number of linearly independent rows or columns in the matrix.

44
Q

Formula for rank -

A

rank(A)=max number of linearly independent rows or columns

45
Q

Rank of a matrix can be calculated by

A
  1. row reduction
  2. calculating det of sub matrices
  3. SVD
46
Q

What is a singular matrix?

A

A square matrix that is not invertible.

47
Q

Determinant is only calculated for

A

Square matrices

48
Q

A singular matrix is also called as

A

degenerate matrix

49
Q

What does it mean a matrix is not invertible

A

Its determinant is zero

50
Q

Rank properties when a square matrix A is invertible

A

If a square matrix A is invertible (non-singular), its rank is indeed equal to the number of rows (or columns), but it’s more precise to say that its rank is equal to its dimension. (square mxn, m=n - dimension m)

51
Q

Rank properties when a square matrix A is singular

A

If a square matrix. A is singular, its rank is less than n.

52
Q

Singular matrices have several important properties:

A
  1. They do not have full rank, meaning they do not have enough linearly independent rows or columns to span the entire space.
  2. They cannot be inverted. Attempting to compute the inverse of a singular matrix will result in an error or an incorrect result.
  3. They represent transformations that collapse or distort space, leading to loss of information.
53
Q

What is an invertible matrix?

A

An invertible matrix, also known as a non-singular matrix or non-degenerate matrix, is a square matrix that has an inverse. In other words, it’s a matrix that can be multiplied by another matrix to produce the identity matrix, and vice versa.

For nxn square matrix A, there exists a square matrix B(inverse of A) such that A . B = B.A = I

54
Q

Inverse is denoted by

A

A**-1

55
Q

Transpose of a matrix

A

The transpose of a matrix is an operation that flips the matrix over its diagonal, switching its rows and columns. A**T

56
Q

Transposing a matrix, changes the rank. True or False

A

False. Transposing a matrix doesn’t change the rank

57
Q

Properties of matrix transpose

A

Double Transpose: (A’’) = A

Transpose of a Sum: (A + B)’ = A’ + B’

Transpose of a Scalar Multiple: (kA)’ = k(A’)

Transpose of a Product: (AB)’ = B’A’

Transpose of an Inverse: (A^(-1))’ = (A’)^(-1)

58
Q

Eigenvalues and eigenvectors are concepts in linear algebra that are associated with_____ matrices.

A

square

59
Q

Eigenvalues

A

Eigenvalues are scalars that represent the scaling factor of eigenvectors when a linear transformation is applied.
Av=λv

60
Q

Eigenvectors

A

Eigenvectors are non-zero vectors that are transformed only by a scalar factor (the eigenvalue) when a linear transformation is applied.

61
Q

Properties of eigen vectors/values

A
  1. Eigen vector of a matrix when multiplied doesnt change the direction of the vector. It is just scaled via the eigen value
  2. Eigenvectors corresponding to different eigenvalues are linearly independent.
  3. Eigen values of skew-symmetric matrices are either imaginary or zero
  4. The sum of eigen values of a matrix is equal to the trace.
  5. If A is a square matrix, eigen value= 0 is not eigen value
  6. The scalar multiple of eigen value is also an eigen value of A
  7. Product of eigen values is equal to the determinant of A
62
Q

Formula for calculating eigen values

A
  1. Det(A-lambdaI)
  2. Find descriminant
  3. lambda1 = -b - sqrt(Discrim)/2a
  4. lambda2 = -b + sqrt(Discrim)/2a
63
Q

NXN matrix has __ eigen values/eigen vectors

A

N eigen values

64
Q

Calculate eigen vectors from eigen values

A
65
Q

What is unit vector

A
66
Q

How to calculate unit vector

A
67
Q

Scalar projection vs vector projection

A

a scalar projection is the length of a vector projected onto another vector. A vector projection is the vector length plus the direction onto another vector.

68
Q
A