Module 2_ 2. Linear Algebra Flashcards

1
Q

Why to learn Linear Algebra?

A

-As humans our visualization is limited to 1-D,2-D and 3-D
-We use linear algebra to distinguish points in higher dimensions like 4-D,5-D,10-D,100-D,etc.

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

Write a point/vector in 2-D,3-D and n-D showing its co-ordinates.

A

2-D
- p=[2,3]

3-D
- p=[2,3,5]

n-D
- p=[2,3,…….]

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

What is the distance of a point from origin in 2-D,3-D and n-D?

A

2-D
- d = √(a^2 + b^2)

3-D
- d = √(a^2 + b^2 + c^2)

n-D
- d = √(a1^2 + a2^2 + ……. + an^2)

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

What is the distance between two points in 2-D,3-D and n-D?

A

2-D
- d = √((a1 - b1)^2 + (a2 - b2)^2)

3-D
- d = √((a1 - b1)^2 + (a2 - b2)^2 + (a3 - b3)^2)

n-D
- d = √((a1 - b1)^2 + (a2 - b2)^2 + …….. + (an - bn)^2)
OR
- √( Σ (ai-bi)^2 )

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

Explain how to do Vector Addition

A

a = [a1,a2,……an]
b = [b1,b2,……bn]
c = a + b = [a1 + b1, a2 + b2, ………. , an + bn]

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

Explain how to do Vector Multiplication

A

a = [a1,a2,……an]
b = [b1,b2,……bn]
a.b = a1b1 + a2b2 + ……. + anbn
= aT.b
= Σ aibi

Also,
a.b = ||a||.||b||.cosθ
Here,
||a|| = distance of a from origin =√(a1^2 + a2^2)
||b|| = distance of b from origin =√b1^2 + b2^2)

θ = cosinv{(a1b1 + a2b2)/||a||.||b||}

Also if a and b are perpendicular,
a.b = ||a||.||b||.cos90
= 0

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

Explain how to do Projection of vector a on vector b

A

We know,
d = ||a||.cosθ
Also,
a.b = ||a||.||b||.cosθ
= d.||b||
Therefore,
d = (a.b)/||b||

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

What is a Unit vector?

A

a^ = a/||a||

-a^ is in same direction as a
-||a^|| = 1

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

What is the equation of a line(2-D) / plane(3-D) / hyperplane(n-D)?

A

2-D
- w0 + w1x1 + w2x2 = 0

3-D
- w0 + w1x1 + w2x2 + w3x3 = 0

n-D
- w0 + w1x1 + ……… + wnxn = 0
OR
- wo + Σ wixi = 0
OR
- w0 + wT.X = 0

If line passes through origin —-> c = 0 ——> w0 = 0
So equation in n-D becomes
wT.X = 0

w.x = wT.X = ||w||||x||cosθ = 0 —————> θ = 90 degree

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

What is the distance of a point from a line(2-D) / plane(3-D) / hyperplane(n-D)?

A

d = (w.p) /||w||

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

What is the equation of a circle(2-D) / sphere(3-D) / hypersphere(n-D)?

A

2-D
- x1^2 + x2^2 = r^2 ———> P lies on the circle
- x1^2 + x2^2 < r^2 ———> P lies inside the circle
- x1^2 + x2^2 > r^2 ———> P lies outside the circle

3-D
- x1^2 + x2^2 + x3^2 = r^2 ———> P lies on the sphere
- x1^2 + x2^2 + x3^2 < r^2 ———> P lies inside the sphere
- x1^2 + x2^2 + x3^2 > r^2 ———> P lies outside the sphere

n-D
- x1^2 + x2^2 + ………. + xn^2 = r^2 ———> P lies on the hypersphere
- x1^2 + x2^2 + ………. + xn^2 < r^2 ———> P lies inside the hypersphere
- x1^2 + x2^2 + ………. + xn^2 > r^2 ———> P lies outside the hypersphere
OR
- Σ xi^2 = r^2 ———> P lies on the hypersphere
- Σ xi^2 < r^2 ———> P lies inside the hypersphere
- Σ xi^2 > r^2 ———> P lies outside the hypersphere

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

What is the equation of a ellipse(2-D) / ellipsoid(3-D) / hyperellipsoid(n-D)?

A

2-D
- (x1^2 / a1^2) + (x2^2 / a2^2) = 1 ———> P lies on the ellipse
- (x1^2 / a1^2) + (x2^2 / a2^2) < 1 ———> P lies inside the ellipse
- (x1^2 / a1^2) + (x2^2 / a2^2) > 1 ———> P lies outside the ellipse

3-D
- (x1^2 / a1^2) + (x2^2 / a2^2) + (x3^2 / a3^2) = 1 ———> P lies on the ellipsoid
- (x1^2 / a1^2) + (x2^2 / a2^2) + (x3^2 / a3^2) < 1 ———> P lies inside the ellipsoid
- (x1^2 / a1^2) + (x2^2 / a2^2) + (x3^2 / a3^2) > 1 ———> P lies outside the ellipsoid

n-D
- (x1^2 / a1^2) + (x2^2 / a2^2) + ……….. + (xn^2 / an^2) = 1 ———> P lies on the hyperellipsoid
- (x1^2 / a1^2) + (x2^2 / a2^2) + ……….. + (xn^2 / an^2) < 1 P lies inside the hyperellipsoid
- (x1^2 / a1^2) + (x2^2 / a2^2) + ……….. + (xn^2 / an^2) > 1 ———> P lies outside the hyperellipsoid
OR
- Σ xi^2 = r^2 ———> P lies on the hyperellipsoid
- Σ xi^2 < r^2 ———> P lies inside the hyperellipsoid
- Σ xi^2 > r^2 ———> P lies outside the hyperellipsoid

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

What is the equation of a square or rectangle(2-D) / hypercube(3-D) / hypercuboid(n-D)?

A
  • No equation
    -Use simple if else conditions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly