Geometry, Matrix and Vector Calculus: Lecture Note Course Code: MAT 102B (For CEP)
Geometry, Matrix and Vector Calculus: Lecture Note Course Code: MAT 102B (For CEP)
by
Md. Rashed Talukder
Department of Mathematics
Shahjalal University of Science and Technology
Sylhet
2
Geometry
3
y-axis
6
x-axis
-
a2 + b 2 = c 2
Let P1 (a, b) and P2 (c, d) be any two points in the xy-plane. Draw
a line through P1 parallel to the x-axis and another line through P2
parallel to y-axis. These lines intersect at a point Q with coordinate
(c, b). The distance P1 Q is |c − a| and the distance QP − 2 is |d − b|.
If d is the distance between P1 and P2 , then by the Theorem 1.1,
d2 = (c − a)2 + (d − b)2 .
y-axis
6
s P2 (c, d)
s
P1 (a, b)
x-axis
-
2. Straight Lines
y-axis
6
x-axis
-
Problem 1. Find the slope of the line passing through the points
P (−2, −3) and Q(1, 6).
Theorem 2.1. Two non-vertical lines are parallel if and only if they
have the same slope.
6
y − y1 = m(x − x1 ).
Problem 2. Find the equation of the line passing through the points
−2
P (3, 2) with a slope of 3
.
y = mx + c.
−2
Problem 3. Find the equation of the line with a slope of 3
and
y-intercept is 31 .
2.4. A line passes through two points. The equation of the line
passes through the points P (x1 , y1 ) and Q(x2 , y2 ) is
y − y1 x − x1
= .
y1 − y2 x1 − x 2
Problem 4. Find the equation of the line passes through (2, 3) and
(−1, 5).
y=b
The equation of the vertical line passes through the point P (a, b) is
x=a
7
ax + by = c
ax + by + c + λ(a1 x + b1 y + c1 ) = 0
ax1 + by1 + c
(1) d=± √
a2 + b2
ax + by + c a1 x + b 1 y + c 1
(2) √ =± p 2
a2 + b 2 a1 + b21
m1 − m2
(2) tan φ = ± √
1 + m1 m2
line parallel to ax + by + c = 0 is
ax + by + k = 0
bx − ay + k = 0
where k is a constant.
9
3. Circle
A circle is the set of all points in the plane that are distance r from
a fixed point. The fixed point is called the centre and the distance is
called the radius of the circle.
Let C(h, k) be a fixed point and P (x, y) be any point whose distance
from C is r. Then
(x − h)2 + (y − k)2 = r2
x2 + y 2 + 2f x + 2gy + c = 0
x2 + y 2 = r 2 .
This is the standard form of the circle. If the radius r = 0, then the
circle becomes a point and it is called the point circle.
Problem 5. Find the equation of the circle whose centre is at (2, −1)
and radius 3.
and radius 2.
x2 + y 2 − 6x + 2y − 1 = 0.
x2 + y 2 + 3x − 5y + 2 = 0.
10
The set of all points in the plane whose distance from a fixed point
is less than or equal to a fixed number is called a disk. The fixed point
is called the centre and the fixed number is called radius of the disk.
The equation of the disk whose centre is at C(h, k) and radius is r is
(x − h)2 + (y − k)2 ≤ r2
11
4. Parabola
A parabola is the set of all points in the plane that are equidistance
from a fixed point and a fixed line which does not passes the fixed
point. The fixed point is called the focus and the fixed line is called
the directrix of the parabola. The straight line passes through the focus
and perpendicular to the directrix is called the axis of the parabola.
The intersection point of a parabola to its axis is called the vertex of
the parabola.
Standard equations of parabola.
y 2 = 4ax.
x2 = 4ay.
Focus is at (0, a), directrix y = −a, axis is y-axis and vertex is at origin.
Problem 10. Find the equation of the parabola whose focus is at (3, 0)
and directrix x = −1.
Problem 11. Find the equation of the parabola whose focus is at (2, 1)
and directrix x = −1.
Problem 12. Find the equation of the parabola whose focus is at (0, 2)
and directrix y = −2.
Problem 13. Find the equation of the parabola whose focus is at (0, 3)
and directrix xy = −1.
Problem 14. Find the equation of the parabola whose focus is at (1, 3)
and directrix y = −1.
12
Problem 15. Find the focus and directrix of the parabola y 2 = 8x.
Problem 16. Find the focus and directrix of the parabola x2 = 10y.
5. Ellipse
An ellipse is the set of all points in the plane whose distances from
two fixed points have a constant sum. The fixed points are called the
foci of the ellipse. The straight line passes through the foci is called
the focal axis of the ellipse. The intersecting points of an ellipse to its
focal axis is called the vertices of the ellipse. The middle point, on the
focal axis, of the vertices is called the centre of an ellipse.
Standard equations of Ellipses.
x2 y 2
+ 2 = 1, (a > b).
a2 b
√
Centre is at (0, 0), vertices (±a, 0), foci (±c, 0) where c = a2 − b2 the
distance from centre to a focus. Here 2a, the length of the line segment
joining the vertices (±a, 0) is called the major axis and the length of
the line segment joining the points (0, ±b) is called the minor axis.
x2 y 2
+ 2 = 1, (b > a).
a2 b
√
Centre is at (0, 0), vertices (0, ±b), foci (0, ±c) where c = b2 − a2 the
distance from centre to a focus.
Problem 18. Find the equation of the ellipse whose foci are at (2, 0)
and (−2, 0) and sum of the distance from foci is 6. Find its centre, and
vertices.
14
6. Hyperbola
A hyperbola is the set of all points in the plane whose distances from
two fixed points have a constant difference. The fixed points are called
the foci of the hyperbola. The straight line passes through the foci is
called the focal axis. The intersecting points of a hyperbola to its focal
axis is called the vertices of the hyperbola. The middle point, on the
focal axis, of the vertices is called the centre.
Standard equations of Hyperbolas.
x2 y 2
− 2 = 1, (a > b).
a2 b
√
Centre is at (0, 0), vertices (±a, 0), foci (±c, 0) where c = a2 + b2 the
distance from centre to a focus.
15
7. Eccentricity of Conics
Problem 22. Find the eccentricity of the ellipse with major axis 18
and minor axis 8.
8. Change of axes
x = x0 cos α − y 0 sin α
y = x0 sin α + y 0 cos α
Problem 25. Find the equation for the hyperbola 2xy = 9 by rotated
the axes through an angle π/4 about the origin.
A0 x2 + B 0 xy + C 0 y 2 + D0 x + E 0 y + F 0 = 0.
B 0 = B cos 2α + (C − A) sin 2α
D0 = D cos α + E sin α
E 0 = −D sin α + E cos α
F 0 = F.
p
d= (x1 − x2 )2 + (y1 − y2 )2 + (z1 − z2 )2 .
Problem 27. Find the distance between the points (1, −1, 2) and
(2, 2, −1).
1
, −1, 32
Problem 28. Find the distance between the points 2
and
(0, 2, −1).
x − x0 y − y0 z − z0
= = .
a b c
Problem 29. Find the equation of the line passes through the point
(−1, 2, −1) and parallel to the vector ~v = 2î − 3ĵ + k̂.
19
ax + by + cz + d = 0.
Problem 30. Find the equation of the plane passes through the point
(−1, 2, −1) and perpendicular to the vector ~v = 2î − 3ĵ + k̂.
12. Sphere
x2 + y 2 + z 2 + 2x − 4z + 1 = 0.
20
Matrix
21
Example 13.1.
1 2 3
A= .
3 0 9
In the above matrix, the entry in row 2 and column 3 is 9.
Counterexamples.
Let
1 2 1 2 3
B= and C= .
3 0 9 3 ♥ 9
AT = (aji ).
Example.
The matrix
0 2 0
A = −2 0 5
0 −5 0
is a skew-symmetric matrix. Note that the diagonal of skew-symmetric
matrix is zero.
Example 13.9.
3 + i 2 i2
A= 2 2 − i3 5
0 i5 3
Example 13.11.
2 3−i 1
A = 3 + i 5 i2 .
1 −i2 0
Example 13.12.
i2 3−i 1
A = −3 − i 5i i .
−1 i 0
Example 14.1.
3 2 0 1 3 2 0 −1
A = 1 2 5 3 and B = 1 2 5 0
−2 0 3 0 −2 0 3 3
Then
6 4 0 0
C = A + B = 2 4 10 3 .
−4 0 6 3
Example 14.2.
3 2 0 1 3 2 0 −1
A = 1 2 5 3 and B = 1 2 5 0
−2 0 3 0 −2 0 3 3
Then
0 0 0 2
C = A − B = 0 0 0 3 .
0 0 0 −3
Example 14.3.
3 2 0 −1
3 2 0 1
1
2 5 0
A = 1 2 5 3 and B =
−2 0 3 3
−2 0 3 0
2 −3 0 1
A2 = A.
λA = λ(aij ) = (λaij ).
and λ = 3. Then
−1 2 0 −3 6 0
λA = 3 =
1 2 5 3 6 15
29
Let
a a a
11 12 13
A = a21 a22 a23 .
a31 a32 a33
Then
a22 a23 a21 a23 a21 a22
|A| = a11
− a12
+ a13
.
a32 a33 a31 a33 a31 a32
AB = BA = In ,
Example 15.1. If
3 2
A= ,
1 2
then
1 2 −2
B=
4 −1 3
Remark 1. Can you think that how we have obtained the inverse B
of A in the above example? It is not always so easy to guess the inverse
of a matrix when it exists. So, we have two questions:
Then
1 d −b
A−1 = .
|A| −c a
31
Then
2 5
1+1
α11 = (−1) = 23.
−3 4
Thus
23 −8 10
adj(A) = 6 −4 5 .
−7 1 −4
We have |A| = −1 × 23 − 2 × (−6) = −11
Hence
23 −8 10
1
A−1 = 6 −4 5 .
−11
−7 1 −4
Observe that
23 −8 10 −1 2 0 1 0 0
1
A−1 A = 6 −4 5 1 2 5 = 0 1 0
−11
−7 1 −4 2 −3 4 0 0 1
(i) interchange the ith row with the jth row, by notation rij ;
(ii) multiply the ith row by a non-zero scalar k, by notation kti ;
(iii) replace the ith row by ith row plus k times the jth row, by
notation ri0 ← ri + krj ;
Problem 36. Apply the elementary row operations (i) r23 , (ii) − 23 r2 ,
and (iii) r30 ← r3 + 2r1 consequently on the matrix:
1 2 0
A= 1 3 1 .
−1 −3 2
33
Problem 37. Apply the elementary row operations to find the inverse
of the matrix:
1 2 0
A= 1 3 1 .
−1 −3 2
Problem 38. Apply the elementary row operations to find the inverse
of the matrix:
2 1 0 3
1 3 1 −2
A= .
0 −2 2 1
−2 1 0 −1
34
·······································
where
x1 b1
a11 a12 a13 ··· a1n x
2
b
2
a
21 a22 a23 ··· a2n
x
3
b
3
A=
a31 a32 a33 ,
· · · a3n X = · and B =
·
· · · ··· · · ·
am1 am2 am3 · · · amn ·
·
xn bm
X = A−1 B
which give us the solution of the system of the linear equations (*).
2x − 3y = 1
x−y =5
2 −3
Here the coefficient matrix A = .
1 −1
36
x 1
Variable matrix X = . Constant matrix B = .
y 5
−1
Observe that AX = B and hence
X
= A B.
−1 3
Now |A| = 1. Hence A−1 = .
−1 2
−1 3 1 14
Thus X = A−1 B = = .
−1 2 5 9
Hence x = 14, y = 5.
2x − 3y + z = 1
x + 2y − 3z = 5
x+y+z =0
x − 3y + z = 3
x + y + 3z = 1
x + 2y + z = −1
2x − y + z = −1
x + y − 3z = 2
x + y + 2z = 1
2x + y − 2z = 10
3x + 2y + 2z = 1
5x + 4y + 3z = 4
37
16.1. Exercise.
1. Define (i) matrix, (ii) order of a matrix, (iii) square matrix,
(iv) identity matrix, (v) diagonal matrix, (vi) equal matrix,
(vi) transpose of a matrix, (vii) symmetric matrix, (viii) skew-
symmetric matrix.
2. When addition and multiplication of two matrices are permis-
sible.
3. Let
3 2 0 −1
1 −2 0 1
1 2 5 0
A= 0 2 5 3 and B = .
−2 0 3 3
−2 0 3 0
2 −3 0 1
Find (i) 23 A, (ii) A + B, (iii) AB, (iv) BA, (v) A2 = AA, (vi)
B2.
1 −1 0 −1
1 2 2 0
4. Find the determinant of B = .
−2 0 3 1
2 −3 0 1
5. Define (i) singular matrix, (ii) non-singular matrix, (iii) inverse
of a matrix.
6. Determine whether the matrices are singular or not.
2 1 −2 −1
2 −1 3
3 2 1 0
A= 0 1 2 and B = .
−1 0 −2 3
−2 3 1
2 1 0 0
Find the co-factors of the matrix A.
7. Find the adjoin matrix of
3 1 2
A = 1 −1 3
−2 3 1
38
11. What are echelon matrix and reduced echelon matrix? Give
example of each. Find an equivalent echelon matrix and reduced
echelon matrix of the matrix
1 1 −2 0 1
1 0 1 −1 3
A=
0 2 −1 3 4
−1 0 1 −2 7
linear equations:
2x − 3y + z = 1
x + 2y − 3z = 5
x+y+z =0
x − 3y + z = 3
x + y + 3z = 1
x + 2y + z = −1
2x − y + z = −1
x + y − 3z = 2
x + y + 2z = 1
40
Vector
41
17. Vectors in Rn
kuk = 1
u + v = (u1 + v1 , u2 + v2 , · · · , un + vn )
and subtraction
u − v = (u1 − v1 , u2 − v2 , · · · , un − vn )
u + v = (0, 2, −2)
and
u − v = (2, −2, 0).
2u = (2, 0, −2, 6)
u · v = u1 v1 + u2 v2 + · · · + un vn
u × v = (u1 v2 − u2 v1 , u2 v3 − u3 v1 , · · · , un v1 − u1 vn ) for n ≥ 3
43
u · v = −1 + 0 + 1 = 0
and
u × v = (2, 2, 2).
u · v = kukkvk cos θ.
Problem 44. Find the angle between the vectors u = (1, 2, −1) and
v = (−1, 0, 2).
Problem 45. Find the angle between a diagonal of a cube and one of
its edges.
19.5. Exercise.
1. Find the norm of the vector u = (3, 1, −1).
2. Find the unit vector in the direction of the vector u = (1, 2, −1).
46
(i) u + v ∈ V
(ii) u + v = v + u
(iii) u + (v + w) = (u + v) + w
(iv) there is 0 ∈ V such that u + 0 = 0 + u = u
(v) for each u ∈ V there is −u ∈ V such that u + (−u) = 0
(vi) ku ∈ V
(vii) k(u + v) = ku + kv
(viii) (k + l)u = ku + lu
(ix) (kl)u = k(lu)
(vii) 1u = u
Example 20.1. .
• R is a vector space
• R2 is a vector space
• R3 is a vector space
w = k1 u1 + k2 u2 + · · · + kn un
k1 u1 + k2 u2 + · · · + kn un = 0
k1 = k2 = · · · = kn = 0,
Example 20.3. The set S = {(1, −1, 2), (2, −2, 4)} is a linearly de-
pendent set.
Example 20.4. The set S = {(1, 0, 0), (0, 1, 0), (0, 0, 1)} is a linearly
independent set.
Problem 48. Test whether the set S = {(1, 3, −1), (0, 2, 3), (3, −2, 2)}
of vectors in R3 is linearly dependent or independent set.
48
Example 20.5. The set S = {(1, 0, 0), (0, 1, 0), (0, 0, 1)} span the vec-
tor space W = R3 .
lim r(t) = L.
t→t0
If
Problem 50. Find the unit tangent vector at time t = 3 on the curve
r(t) = (t3 + 2)î + (4t − 3)ĵ − 3t2 k̂.
Problem 51. If u = t3 î + tĵ − 3t2 k̂ and u = sin tî + 2 cos tĵ − tk̂, then
find
d d
(a) dt
(u · v), (b) dt
(u × v).
v
4. The vector |v|
is called the direction of motion of the particle
at time t.
22.3. Divergence. Let V~ (x, y, z) = V1 (x, y, z)î+V2 (x, y, z)ĵ+V3 (x, y, z)k̂
be a vector function. Then
∂V1 ∂V2 ∂V3
∇ · V~ = + +
∂x ∂x ∂x
is called the divergence of V~ . It is also denoted by div V~ .
22.4. Curl. Let V~ (x, y, z) = V1 (x, y, z)î + V2 (x, y, z)ĵ + V3 (x, y, z)k̂ be
a vector function. Then
î ĵ k̂
∇ × V~ = ∂x
∂ ∂ ∂
∂x ∂x
V1 V2 V3
Problem 54. Let φ(x, y, z) = 4xy 2 + 3yz 2 − 5xyz 3 . Find the gradient
of φ.
Problem 55. Let V~ = 3x2 y î + (y 3 z 2 − xyz 3 )ĵ − 3z 3 k̂. Find (i) div V~ ,
and (ii) curl V~ .
54
at 0, 32 , 1 .
at (0, 1, −1).
is solenoidal or not.
55
is irrotational or not.
23.1. Sphere.
x2 + y 2 + z 2 = r 2
23.2. Ellipsoid.
x2 y 2 z 2
+ 2 + 2 =1
a2 b c
23.3. Elliptic paraboloid.
x2 y 2 z
2
+ 2 =
a b c
56