Applied Math I Lecture Notes 3 (Chapters 1-3)
Applied Math I Lecture Notes 3 (Chapters 1-3)
Dejen Ketema
Department of Mathematics
[email protected]
March, 2020
Contents
1
Chapter 1
· · · , −2, −1, 0, 1, 2, · · ·
the
√ rational numbers, p/q, where p and q are integers (q = 6 0), and the irrational numbers, like
2, π, e, etc. Members of R may be visualized as points on the real-number line as shown in
Definition 1.1
A point in the plane R2 has two coordinates P = (x, y). A point in space R3 is
determined by three coordinates P = (x, y, z). The signs of the coordinates define 4
quadrants in R2 or 8 octants in R3 . These regions intersect at the origin O = (0, 0)
or O = (0, 0, 0) and are bound by coordinate axes {y = 0} and {x = 0} or coordinate
planes {x = 0}, {y = 0}, {z = 0}.
In R2 its custom to orient the x-axis to the ”east” and the y-axis ”north”. In R3 , the most
common coordinate system has the xy-plane as the ”ground” and the z-coordinate axes pointing
”up”.
2
1.1. GEOMETRY AND DISTANCE DBU
Example 1.1
1. P = (−2, −3) is in the third quadrant of the plane and P = (1, 2, 3) is in the
positive octant of space. The point (0, 0, −8) is located on the negative z axis.
The point P = (1, 2, −3) is below the xy-plane. Can you spot the point Q on the
xy-plane which is closest to P ?
Definition 1.2
The Euclidean distance
q between two points P = (x, y, z) and Q = (a, b, c) in space is
defined as d(P, Q) = (x − a)2 + (y − b)2 + (z − c)2 .
Example 1.2
Problem: Find the distance d(P, Q) between P = (1, 2, 5) and Q = (−3, 4, 7) and
verify
√ that d(P, M
√) + d(Q, M ) = d(P, Q). Answer:
√ The distance
√ is d(P, Q) =
2 2
4 + 2 +√ 2 2 2 2
2 = 24. The√distance d(P, M ) is 2 + 1 + 1 = 6. The distance
d(Q, M ) is 22 + 12 + 12 = 6. Indeed d(P, M ) + d(M, Q) = d(P, Q).
Remarks.
1. A distance can be defined by taking any non-negative function d(P, Q) = d(Q, P ) which
satisfies the triangle inequality d(P, Q)+d(Q, R) ≥ d(P, R) and which has the property
that d(P, Q) = 0 if and only if P = Q. A set X equipped with such a distance function
d is called a metric space.
2. Symmetry distinguishes the Euclidean distance from other distances. It is characterized
by the property d((1, 0, 0), (0, 0, 0)) = 1 together with the requirement of rotational and
translational and scaling symmetry d(λP, λQ) = λd(P, Q).
3. We usually work with a right handed coordinate system, where the x, y, z axes
can be matched with the thumb, pointing and middle finger of the right hand. The
photographers coordinate system is an example of a left handed coordinate system,
where we use the thumb and pointing finger and middle finger of the left hand. Nature
is not oblivious to parity. Some fundamental laws in particle physics related to the weak
force are different when observed in a mirror. Coordinate systems with different parity
can not be rotated into each other.
4. When dealing with
q geometric problems in the plane, we leave the z-coordinate away and
have d(P, Q) = (x − a)2 + (y − b)2 , where P = (x, y), Q = (a, b). Its important to work
in R2 without referring to a possible R3 in which it might be embedded.
c Dejen K. 2020 3
1.1. GEOMETRY AND DISTANCE DBU
Points, curves, surfaces and solids are geometric objects which can be described with
functions of several variables. An example of a curve is a line, an example of a surface is
a plane, an example of a solid is the interior of a sphere. We focus next on spheres or circles.
Definition 1.3
A circle of radius r ≥ 0 centered at P = (a, b) is the collection of points in R2 which
have distance r from P .
Definition 1.4
A sphere of radius ρ centered at P = (a, b, c) is the collection of points in R3 which have
distance ρ ≥ 0 from P . The equation of a sphere is (x − a)2 + (y − b)2 + (z − c)2 = ρ2 .
Definition 1.5
An ellipse is the collection of points P in R2 for which the sum d(P, A) + d(P, B) of the
distances to two points A, B is a fixed constant l > 0 larger than d(A, B). This allows
to draw the ellipse with a string of length l attached at A, B. When 0 is the midpoint of
2 2
A, B, an algebraic description is the set of points which satisfy the equation xa2 + yb2 = 1.
Example 1.3
1. Problem: Is the point (3, 4, 5) outside or inside the sphere (x − 2)2 + (y − 6)2 +
(z − 2)2 = 16? Answer: The distance of the point to the center of the sphere is
√
1 + 4 + 9. Since this is smaller than 4 the radius of the sphere, the point is inside.
2. Problem: Find an algebraic expression for the set of all points for which the sum
of the distances
q to A = (1,q0) and B = (−1, 0) is equal to 3. Answer: Square the
equation (x − 1)2 + y 2 + (x + 1)2 + y 2 = 3, separate the remaining single square
root on one side and square again. Simplification gives 20x2 + 36y 2 = 45 which is
2 2
equivalent to xa2 + yb2 = 1, where a, b can be computed as follows: because P = (a, 0)
satisfies this equation, d(P, A) + d(P, B) = (a − 1) + (a + 1) = 3 so that √ a = 3/2.
Similarly,
√ the point Q = (0, b) satisfying it gives d(Q, A) + d(P, B) = 2 b2 + 1 = 3
or b = 5/2.
Definition 1.6
When completing the square of an equation x2 + bx + c = 0, we add (b/2)2 − c on
both sides ofqthe equation in order to get (x + b/2)2 = (b/2)2 − c. Solving for x gives
x = −b/2 ± (b/2)2 − c.
c Dejen K. 2020 4
1.1. GEOMETRY AND DISTANCE DBU
Example 1.4
c Dejen K. 2020 5
1.1. GEOMETRY AND DISTANCE DBU
Exercise 1.1
1. (a) a) Find its center and radius of the sphere S given by x2 + y 2 + z 2 − 20x +
12y + 4z = 29.
(b) Find the distance from the center of S defined in a) to x2 + y 2 + z 2 = 900.
(c) Find the minimal distance between the spheres. This is the minimal distance
between two points where each is in one sphere.
3. (a) Find an equation of the largest sphere with center (4, 11, 9) that is contained
in the first octant {x ≤ 0, y ≤ 0, z ≥ 0}.
(b) Find the equation for the sphere centered at (6, 10, 8) which passes through
the center (4, 11, 9)of the sphere in a).
(a) Hit the ball at (3, 2) to reach the hole (4, 8) bouncing 3 times at the left wall
and three times at the right wall and no other walls. Find the length of the
shot.
(b) Hit from (3, 2) to reach the hole (4, 0) after hitting twice the left and twice
the right wall as well as the top wall y = 8 once. What is the length of the
trajectory?
6. Verify that the radius of the inscribed circle in a 3 : 4 : 5 triangle is 1. Use the
picture with the triangle ABC given by:
A = (0, 0), B = (4, 0), C = (0, 3), introduce M = (1, 1) then get the coordinates of
the points X, Y, Z, then compute the distances.
c Dejen K. 2020 6
1.2. VECTORS & DOT PRODUCT DBU
Definition 1.7
A physical quantity is a physical property of a phenomenon, body, or substance, that can
be quantified by measurement.
Definition 1.8
Quantities which can be described by magnitude only are called scalars. Scalars are
represented by a single letter, such as a. Some examples of scalar quantities are mass
(five kilograms), temperature (twenty-two degrees Celsius), and numbers without units
(such as three).
In this way, two arrows with the same magnitude and direction represent the same vector.
(same vector)
We will refer to the start of the arrow as the tail and the end as the tip or head.
P~Q
To distinguish vectors from points, it is custom to write [2, 3, 4]T or h2, 3, 4i for vectors and
(2, 3, 4) for points.
2A
A -A (scaling a vector)
1
2
A
c Dejen K. 2020 7
1.2. VECTORS & DOT PRODUCT DBU
Because we use numbers to scale a vector we will often refer to real numbers as scalars. You
add vectors by placing them head to tail. As the figure shows, this can be done in either order
A+B
A A
A-B
B
A
Algebraic view:
Definition 1.10
x−a
Two points P = (a, b, c) and Q = (x, y, z) in R3 define a vector ~v = y − b which we
z−c
T
simply write also as [x−a, y −b, z −c] or hx−a, y −b, z −ci to save space. It is custom in
linear algebra to call [3, 4, 5] a row vector and its transpose [3, 4, 5]T = h3, 4, 5i a column
vector. As it goes from P to Q we write ~v = P~Q. The real numbers numbers p, q, r in
~v = [p, q, r]T are called the components of ~v .
Vectors can be drawn anywhere in space. But two vectors with the same components are
considered equal. Vectors can be translated into each other if their components are the same.
If a vector ~v starts at the origin O = (0, 0, 0), then ~v = [p, q, r]T heads to the point (p, q, r).
One can therefore identify points P = (a, b, c) with vectors ~v = [a, b, c]T attached to the origin.
For clarity, we often draw an arrow on top of vectors and if ~v = P~Q then P is the ”tail” and
Q is the ”head” of the vector.
Definition 1.11
The sum of two vectors is A ~+B~ = [a1 , a2 ]T + [b1 , b2 ]T = [a1 + b1 , a2 + b2 ]T . The scalar
multiple is λA ~ = λ[a1 , a2 ] = [λa1 , λa2 ]T . The difference A
T ~−B ~ can best be seen as
~ and (−1)B.
the addition of A ~
c Dejen K. 2020 8
1.2. VECTORS & DOT PRODUCT DBU
On can check commutativity, associativity, or distributivity rules for vectors as for numbers.
Definition 1.12
The vectors ~i = [1, 0]T , ~j = [0, 1]T are called the standard basis vectors in the plane.
In space, one has the standard basis vectors ~i = [1, 0, 0]T , ~j = [0, 1, 0]T , ~k = [0, 0, 1]T .
Every vector ~v = [p, q]T in the plane can be written as a combination ~v = p~i + q~j of standard
basis vectors. Every vector ~v = [p, q, r]T in space can be written as ~v = p~i + q~j + r~k. Vec-
tors appear everywhere in applications. For example in mechanics: if r(t) ~ = [f (t), g(t)]T is a
point in the plane which depends on time t, then ~v = [f 0 (t), g 0 (t)]T is the velocity vector at
~ Here f 0 (t), g 0 (t) are the derivatives. In physics, where we often want to determine forces
r(t).
acting on objects, these forces are represented as vectors. In particular, electromagnetic or
gravitational fields or velocity fields in fluids are described by vectors. Vectors appear also in
computer science: the ”scalable” vector graphics ”format” is a standard for the web for describ-
ing graphics. In quantum computation, rather than working with bits, one deals with qbits,
which are vectors. Finally, color can be written as a vector ~v = [r, g, b]T , where r is red, g is
green and b is blue component of the color vector. An other coordinate system for color is
~v = [c, m, y]T = [1 − r, 1 − g, 1 − b]T , where c is cyan, m is magenta and y is yellow. Vectors
appear also in probability theory and statistics. On a finite probability space for example, a
random variable is nothing else than a vector.
The addition and scalar multiplication of vectors satisfy the laws known from arithmetic.
1. commutativity ~u + ~v = ~v + ~u,
2. associativity ~u + (~v + w) ~ r ∗ (s ∗ ~v ) = (r ∗ s) ∗ ~v
~ = (~u + ~v ) + w,
3. distributivity (r + s)~v = ~v (r + s)
4. And r(~v + w)
~ = r~v + rw,
~ where * denotes multiplication with a scalar.
Definition 1.13
The length |~v | of a vector ~v = P~Q is defined as the distance d(P, Q) from P to Q. A
vector of length 1 is called a unit vector. If ~v 6= ~0, then |~~vv| is called a unit vector.
c Dejen K. 2020 9
1.2. VECTORS & DOT PRODUCT DBU
Example 1.5
|[3, 4]T | = 5 and |[3, 4, 12]T | = 13. Examples of unit vectors are |~i| = |~j| = |~k| = 1
and [3/5, 4/5]T and [3/13, 4/13, 12/13]T . The only vector of length 0 is the zero vector
|~0| = 0.
Example 1.6
solution:
1. (a)
(b)
~u + ~v = (i + 4j − k) + (2i − 5j)
= (1 + 2)i + (4 − 5)j + (−1 + 0)k
= 3i − j − k
2. (a)
2 2
~u = (3i + 4j − k)
3 3
8 2
= 2i + j − k
3 3
(b)
−1~u = −(3i + 4j − k)
= −3i − 4j + k
c Dejen K. 2020 10
1.2. VECTORS & DOT PRODUCT DBU
Dot Product
The dot product is one way of combining (”multiplying”) two vectors. The output is a scalar
(a number). It is called the dot product because the symbol used is a dot. Because the dot
product results in a scalar it, is also called the scalar product.
The geometric definition of the dot product says that the dot product between two vectors ~a
and ~b is
~a · ~b = k~ak · k~bk cos θ,
where θ is the angle between vectors ~a and ~b. Although this formula is nice for understanding
the properties of the dot product, a formula for the dot product in terms of vector components
would make it easier to calculate the dot product between two given vectors.
Since the standard unit vectors are orthogonal, we immediately conclude that the dot product
between a pair of distinct standard unit vectors is zero:
i · j = i · k = j · k = 0.
The dot product between a unit vector and itself is also simple to compute. In this case, the
angle is zero and cos θ = 1. Given that the vectors are all of length one, the dot products are
i · i = j · j = k · k = 1.
The second step is to calculate the dot product between two three-dimensional vectors
a = (a1 , a2 , a3 ) = a1 i + a2 j + a3 k
b = (b1 , b2 , b3 ) = b1 i + b2 j + b3 k.
To do this, we simply assert that for any three vectors ~a, ~b, and ~c, and any scalar λ,
(λa) · b = λ(a · b)
(a + b) · c = a · c + b · c.
Definition 1.14
The dot product of two vectors ~v = [a, b, c]T and w
~ = [p, q, r]T is defined as ~v · w
~ =
ap + bq + cr.
Remarks.
1. Different notations for the dot product are used in different mathematical fields. While
mathematicians write ~v · w ~ T is used in quantum
~ the Dirac notation [~v |w]
~ = (~v , w),
i
mechanics or the Einstein notation vi w or more generally gij vi wj in general relativity.
The dot product is also called scalar product or inner product.
2. Any product g(v, w) which is linear in v and w and satisfies the symmetry g(v, w) =
g(w, v) and g(v, v) ≤ 0 and g(v, v) = 0 if and only if v = 0 can be used as a dot product.
An example is g(v, w) = 3v1 w1 + 2v2 w2 + v3 w3 .
c Dejen K. 2020 11
1.2. VECTORS & DOT PRODUCT DBU
Theorem 1.1
The dot product determines distances and distances determines the dot product.
Proof:
√ Write v = ~v . Using the dot product one can express the length of v as |v| =
v · v. On the other hand, from (v + w) · (v + w) = v · v + w · w + 2(v · w) can be solved
for v · w:
v · w = (|v + w|2 − |v|2 − |w|2 )/2.
Theorem 1.2
The Cauchy-Schwarz inequality tells |~v · w|
~ ≤ |~v ||w|.
~
Proof. If |w| = 0, there is nothing to show. Otherwise, assume |w| = 1 by dividing the
equation by |w|. Now plug in a = v · w into the equation 0 ≤ (v − aw) · (v − aw) to get
0 ≤ (v − (v · w)w) · (v − (v · w)w) = |v|2 + (v · w)2 − 2(v · w)2 = |v|2 − (v · w)2 which means
(v · w)2 ≤ |v|2 .
Having established this, it is possible to give a definition of what an angle is, without referring
to any geometric pictures:
Definition 1.15
The angle between two nonzero vectors ~v , w ~ is defined as the unique α ∈ [0, π] which
satisfies ~v · w
~ = |~v | · |w|
~ cos(α). Since cos maps [0, π] in a 1 : 1 manner to [−1, 1], this is
well defined.
Note:
1. The cosine of the angle between two non-zero vectors ~a and ~b is
~a · ~b
cos θ =
k~akk~bk
~a · ~b
=⇒ θ = cos−1
k~akk~bk
π
2. If an angle between two vectors ~a and ~b is then ~a · ~b = 0 and the vectors ~a and ~b are
2
known as orthogonal vectors. In general the dot product of two non-zero vectors is zero
only if they are orthogonal.
c Dejen K. 2020 12
1.2. VECTORS & DOT PRODUCT DBU
Remark:- Suppose ~a and ~b are two non-zero vectors and θ is the angle between ~a and ~b:
The angle definition works in any space with a dot product. In statistics one works with
vectors of n components. They are called data or random variables and cos(α) is called the
correlation between two random variables ~v , w ~ of zero expectation E[~v ] = (v1 + · · √
· + vn )/n.
The dot product (v1 w1 + · · · + vn wn )/n is then the covariance, the scaled length |v|/ n is the
standard deviation and denoted by σ(v). The formula Corr[v, w] = Cov[v, w]/(σ(v)σ(w))
for the correlation is the familiar angle formula. Statistics shows that geometry in arbitrary
dimensions can be useful.
Theorem 1.4
The triangle inequality tells |~u + ~v | ≤ |~u| + |~v |.
Proof: |~u +~v |2 = (~u +~v )·(~u +~v ) = ~u2 +~v 2 +2~u ·~v ≤ ~u2 +~v 2 +2|~u ·~v | ≤ ~u2 +~v 2 +2|~u|·|~v | =
(|~u| + |~v |)2 .
Example 1.7
Calculate the dot product of a = (1, 2, 3) and b = (4, −5, 6). Do the vectors form an
acute angle, right angle, or obtuse angle?
Solution: Using the component formula for the dot product of three-dimensional vectors,
a · b = a1 b 1 + a2 b 2 + a3 b 3 ,
Since a.b is positive, we can infer from the geometric definition, that the vectors form an
acute angle.
c Dejen K. 2020 13
1.2. VECTORS & DOT PRODUCT DBU
Example 1.8
Calculate the dot product of c = (−4, −9) and d = (−1, 2) . Do the vectors form an
acute angle, right angle, or obtuse angle?
Solution: Using the component formula for the dot product of two-dimensional vectors,
a · b = a1 b1 + a2 b2 ,
Since c.d is negative, we can infer from the geometric definition, that the vectors form an
obtuse angle.
Example 1.9
If a = (6, −1, 3), for what value of c is the vector b = (4, c, −2) perpendicular to a?
Solution: For a and b to be perpendicular, we need their dot product to be zero. Since
the number c must satisfy 18 − c = 0, or c = 18. You can double-check that the vector
b = (4, 18, −2) is indeed perpendicular to a by verifying that
1. Find the value of k such that the vectors (2, 3, −2) and (5, k, 2) are perpendicular.
2. Find the values of β such that the vectors (β, −3, 1) and (β, β, 2) are perpendicular.
c Dejen K. 2020 14
1.2. VECTORS & DOT PRODUCT DBU
Example 1.10
1. Find the component form and the length of vector with initial point and terminal
point p = (3, −7, 1) and Q = (−2, 5, 3)
3. Let ~u = (2, 5, −1) and ~v = (−1, 2, 3),the find the scalar product of ~u and ~u
Solution
1. ~v = P~Q = (−2
q − 3, 5 + 7, 3 − 1) =√
(−5, 12, 2)
and k~v k = (−5)2 + (12)2 + 22 = 173
√ √
2. k~v k = −22 + 52 + 32 = 38
1
û = k~~vvk = √ (−2, 5, 3)
38
−2 5 3
= (√ , √ , √ )
38 38 38
Exercise 1.2
1. Find the cosine of the angle and the angle between the following vectors
(a) ~u = 2i − 5j + k and ~v = i + j + 2k
√
(b) ~v = (− 3, 1) and w~ = (0, 5)
(c) ~v = (0, −1, 0) and w
~ = (0, 0, 3)
Definition 1.16
Two vectors are called orthogonal or perpendicular if ~v · w ~ = 0. The zero vector ~0 is
T
~ = [−3, 2]T .
orthogonal to any vector. For example, ~v = [2, 3] is orthogonal to w
Theorem 1.5
Pythagoras theorem: if ~v and w ~ are orthogonal, then |v − w|2 = |v|2 + |w|2 .
Proof: (~v − w)
~ · (~v − w)
~ = ~v · ~v + w
~ ·w
~ + 2~v · w
~ = ~v · ~v + w
~ · w.
~
Projection
Suppose that two non-zero vectors ~v and w ~ are positioned as in the figure below and that the
light casts a shadow on the line containing the vector ~v . Informally we think of the shadow as
c Dejen K. 2020 15
1.2. VECTORS & DOT PRODUCT DBU
Definition 1.17
~v · w
~
The vector P (~v ) = ~ is called the projection of ~v onto w.
w ~ The scalar projection
|w|
~2
~v · w
~
is a signed length of the vector projection. Its absolute value is the length of the
|w|
~
~ The vector ~b = ~v − P (~v ) is a vector orthogonal to the w-direction.
projection of ~v onto w. ~
Example 1.11
T
1. For example, ~ = [1, −1, 0]T , P (~v ) = [1/2, −1/2, 0]T . Its
√ with ~v = [0, −1, 1] , w
length is 1/ 2.
2. Projections are important in physics. If a wind force F~ affects a car driving in the
direction w
~ and P denotes the projection onto w ~ then Pw~ (F~ ) is the force which
accelerates or slows down the car.
The projection allows to visualize the dot product. The absolute value of the dot product
is the length of the projection. The dot product is positive if v points more towards to w,
it is negative if v points away from it. In the next lecture we use the projection to compute
distances between various objects.
c Dejen K. 2020 16
1.2. VECTORS & DOT PRODUCT DBU
Example 1.12
Solution:-
1. (a) (c)
~v · ~u 1
proj~v~u = v · 3~u 1
~v u 2~
k~v k2 proj 3~
1 = ~v
2~v
k 12 ~v k2 2
(i + 2j + k) · (2i − j + 3k) 1
= (i + 2j + k) 2 (i + 2j + k) · 3(2i − j + 3k) 1
ki + 2j + kk2 =( ) (i + 2j + k)
1 2 2
2−2+3 4 ki + 2j + kk
=( 2 )(i + 2j + k) 3
1 + 22 + 12 2 (2 − 2 + 3) 1
3 =( 1 2 2 2
) (i + 2j + k)
= (i + 2j + k) 4 (1 + 2 + 1 )
2
6
1 1 = 3(i + 2j + k)
= i+j+ k = 3i + 6j + 3k
2 2
(b)
~u · ~v
proj~u~v = ~u
k~uk2
(2i − j + 3k) · (i + 2j + k)
=( 2 )(2i − j + 3k)
k2i − j + 3kk
2−2+3
=( 2 )(2i − j + 3k)
1 + (−2)2 + 32
3
= (2i − j + 3k)
14
6 3 9
= i− j+ k
14 14 14
2.
~v · ~u
kproj~v ~u k = |( )|
k~v k
(i + 2j + k) · (2i − j + 3k)
= |( )|
ki + 2j + kk
2−2+3
= |( √ )|
12 + 2 2 + 1 2
3
=√
6
~
v ~u · ~v
&kproj~u k = |( )|
k~uk
(2i − j + 3k) · (i + 2j + k)
= |( )|
k2i − j + 3kk
2−2+3
= |p |
1 + (−2)2 + 32
2
3
√
14
c Dejen K. 2020 17
1.3. DIRECTION ANGLES AND DIRECTION COSINE DBU
Note:-
y √
1. cos α = xr , cos β = r
and cos γ = z
r
where r = x2 + y 2 + z 2 .
Example 1.13
(a) ~a = (2, 3)
(b) ~b = (1, 1, 1)
(c) ~c = (3, 5, 2)
c Dejen K. 2020 18
1.4. CROSS PRODUCT DBU
Exercise 1.3
2. A Alemitu gets pulled with a force F~ = h7, 1, 4i. She moves with velocity ~v =
h4, −2, 1i. The dot product of F~ with ~v is power.
3. Light shines long the vector ~a = ha1 , a2 , a3 i and reflects at the three coordinate
planes where the angle of incidence equals the angle of reflection. Verify that the
reflected ray is −~a. Hint. Reflect first at the xy-plane.
4. A rope is wound exactly 5 times around a stick of circumference 1 and length 12.
How long is the rope?
To remember this, write it as a determinant of a matrix A which is a 2×2 array of the numbers).
det(A) is the product of the diagonal entries minus the product of the side diagonal entries.
" #
v1 v2
.
w1 w2
Definition 1.20
The cross product of two vectors ~v = [v1 , v2 , v3 ]T and w ~ = [w1 , w2 , w3 ]T in space is
~ = [v2 w3 − v3 w2 , v3 w1 − v1 w3 , v1 w2 − v2 w1 ]T .
defined as the vector ~v × w
c Dejen K. 2020 19
1.4. CROSS PRODUCT DBU
2. The cross product of [1, 2, 3]T and [4, 5, 1]T is [−13, 11, −3]T .
Theorem 1.6
In space, the cross product ~v × w
~ is orthogonal to both ~v and w.
~ The product is anti-
commutative.
Proof. We verify for example that ~v · (~v × w)
~ = 0 and look at the definition.
Theorem 1.7
Length formula for the cross product: |~v × w|
~ = |~v ||w|
~ sin(α).
Proof: verify first the Lagrange’s identity |~v × w| ~ 2 = |~v |2 |w|
~ 2 − (~v · w)
~ 2 which is also
called Cauchy-Binet formula by direct computation . Now, |~v ·~w| = |~v ||w| ~ cos(α).
Definition 1.21
The absolute value respectively length |~v × w|
~ defines the area of the parallelogram
spanned by ~v and w.
~
Note that we have given the definition of area, so that nothing needs to be proven. To see
that the definition fits with our common intuition we have about area, note that |w| ~ sin(α) is
the height of the parallelogram with base length |~v |. The area formula proves the sin-formula
because the area does not depend on which pair of sides to a triangle we take. The area makes
sense because it is linear in each of the vectors ~v and w:
~ scale one by a factor λ = 2 for example,
c Dejen K. 2020 20
1.4. CROSS PRODUCT DBU
Theorem 1.8
~v × w
~ is zero if and only if ~v and w
~ are parallel, that is if ~v = λw
~ for some real λ.
Proof. Use the sin formula and the fact that sin(α) = 0 if α = 0 or α = π. The cross
product can therefore be used to check whether two vectors are parallel or not. Note that
v and −v are considered parallel even so sometimes the notion anti-parallel is used.
Theorem 1.9
The trigonometric sin-formula: if a, b, c are the side lengths of a triangle and α, β, γ are
the angles opposite to a, b, c then a/ sin(α) = b/ sin(β) = c/ sin(γ).
Proof. Express the area of the triangle in three different ways:
Divide the first equation by sin(γ) sin(α) to get one identity. Divide the second equation
by sin(α) sin(β) to get the second identity.
Example 1.15
Definition 1.22
~ = ~u · (~v × w)
The scalar [~u, ~v , w] ~ is called the triple scalar product of ~u, ~v , w.
~
Definition 1.23
The absolute value of [~u, ~v , w]
~ defines the volume of the parallelepiped spanned by
~u, ~v , w.
~
Definition 1.24
The orientation of three vectors is defined as the sign of [~u, ~v , w].
~ It is positive if the
three vectors define a right-handed coordinate system.
Again, there was no need to prove anything because we defined volume and orientation. Why
does this fits with our intuition? The value h = |~u · ~n|/|~n| is the height of the parallelepiped
c Dejen K. 2020 21
1.4. CROSS PRODUCT DBU
if ~n = (~v × w)~ is a normal vector to the ground parallelogram of area A = |~n| = |~v × w|. ~ The
volume of the parallelepiped is hA = (~u · ~n/|~n|)|~v × w| ~ which simplifies to ~u · ~n = |(~u · (~v × w)|
~
which is the absolute value of the triple scalar product. The vectors ~v , w ~ and ~v × w ~ form a
right handed coordinate system. If the first vector ~v is your thumb, the second vector w ~
is the pointing finger then ~v × w ~ is the third middle finger of the right hand. For example, the
vectors ~i, ~j,~i × ~j = ~k form a right handed coordinate system.
Since the triple scalar product is linear with respect to each vector, we also see that volume
is additive. Adding two equal parallelepipeds together for example gives a parallelepiped with
twice the volume.
c Dejen K. 2020 22
1.4. CROSS PRODUCT DBU
Example 1.16
1. Problem: You have two apples of the same shape, but one has a 3 times larger
diameter. What is their weight ratio?
Answer. For a parallelepiped spanned by [a, 0, 0]T [0, b, 0]T and [0, 0, c]T , the vol-
ume is the triple scalar product abc. If a, b, c are all tripled, the volume gets multi-
plied by a factor 27. Now cut each apple into the same amount of parallelepipeds,
the larger one with slices 3 times as large too. Since each of the pieces has 27 times
the volume, also the apple is 27 times heavier!
2. Problem: Find the volume of the parallelepiped which has the vertices O =
(1, 1, 0), P = (2, 3, 1), Q = (4, 3, 1), R = (1, 4, 1). Answer: We first see that the
solid is spanned by the vectors ~u = [1, 2, 1]T , ~v = [3, 2, 1]T , and w
~ = [0, 3, 1]T . We
get ~v × w ~ = [−1, −3, 9]T and ~u · (~v × w)
~ = 2. The volume is 2.
4. Problem. The scanner detects an other point A = (1, 1, 1). On which side of the
triangle is it located if the cross product of P~Q and P~R is considered the direction
”up”.
Solution. The cross product is ~n = [1, −3, 1]T . We have to see whether the
vector P~A = [1, 0, 0]T points into the direction of ~n or not. To see that, we have
to form the dot product. It is 1 so that indeed, A is ”above” the triangle. Note
that a triangle in space a priori does not have an orientation. We have to tell, what
direction is ”up”. That is the reason that file formats for 3D printing like contain
the data for three points in space as well as a vector, telling the direction.
c Dejen K. 2020 23
1.5. LINES AND PLANES IN SPACE DBU
Exercise 1.4
1. (a) a) Find a unit vector perpendicular to the space diagonal [1, 1, 1]T and the
face diagonal [1, 1, 0]T of the cube.
(b) Find the volume of the parallelepiped for which the base parallelogram is given
by the points P = (5, 2, 2), Q = (3, 1, 2), R = (1, 4, 2), S = (−1, 3, 2) and which
has an edge connecting P with T = (5, 6, 8).
(c) Find the area of the base and use (b) to get the height of the parallelepiped.
3. To find the equation ax + by + cz = d for the plane which contains the point
P = (1, 2, 3) as well as the line which passes through Q = (3, 4, 4) and R = (1, 1, 2),
we find a vector [a, b, c]T normal to the plane and fix d so that P is in the plane.
c Dejen K. 2020 24
1.5. LINES AND PLANES IN SPACE DBU
The line consists of all points obtained by adding a multiple of the vector ~v = [a, b, c]T to the
~ = [p, q, r]T . The line contains the point P as well as a copy of ~v attached to P .
vector OP
Every vector contained in the line is necessarily parallel to ~v . We think about the parameter t
as ”time”. At time t = 0, we are at the point P , whereas at time t = 1 we are at OP ~ + ~v .
Definition 1.26
If t is restricted to values in a parameter interval [s, u], then L =
[p, q, r]T + t[a, b, c]T , s ≤ t ≤ u is a line segment which connects ~r(s) with ~r(u).
Example 1.17
To get the line through P = (1, 1, 2) and Q = (2, 4, 6), form the vector ~v = P~Q =
[1, 3, 4]T and get L = [x, y, z]T = [1, 1, 2]T + t[1, 3, 4]T . This can be written also as ~r(t) =
[1 + t, 1 + 3t, 2 + 4t]T . If we write [x, y, z]T = [1, 1, 2]T + t[1, 3, 4]T as a collection of
equations x = 1 + 2t, y = 1 + 3t, z = 2 + 4t and solve the first equation for t:
Theorem 1.10
~ + t~v defined by P = (p, q, r) and vector ~v = [a, b, c]T with nonzero a, b, c
The line ~r = OP
satisfies the symmetric equations
x−p y−q z−r
= = .
a b c
Proof. Each of these expressions is equal to t. These symmetric equations have to be
modified a bit one or two of the numbers a, b, c are zero. If a = 0, replace the first
equation with x = p, if b = 0 replace the second equation with y = q and if c = 0 replace
third equation with z = r. The interpretation is that the line is written as an intersection
of two planes.
Example 1.18
1. Find the symmetric equations for the line through the points P = (0, 1, 1) and
Q = (2, 3, 4), first form the parametric equations [x, y, z]T = [0, 1, 1]6T + t[2, 2, 3]T
or x = 2t, y = 1 + 2t, z = 1 + 3t. Solving each equation for t gives the symmetric
equation x/2 = (y − 1)/2 = (z − 1)/3.
2. Problem: Find the symmetric equation for the z axes. Answer: This is a situa-
tion where a = b = 0 and c = 1. The symmetric equations are simply x = 0, y = 0.
If two of the numbers a, b, c are zero, we have a coordinate plane. If one of the
numbers are zero, then the line is contained in a coordinate plane.
Definition 1.27
A
n point P and two vectors o~v , w
~ define a plane Σ =
~
OP + t~v + sw,
~ where t, s are real numbers .
c Dejen K. 2020 25
1.5. LINES AND PLANES IN SPACE DBU
Example 1.19
n o
An example is σ = [x, y, z]T = [1, 1, 2]T + t[2, 4, 6]T + s[1, 0, −1]T . This is called the
parametric description of a plane.
If a plane contains the two vectors ~v and w, ~ then the vector ~n = ~v ×w~ is orthogonal to both ~v and
~ ~ ~
~ Because also the vector P Q = OQ− OP is perpendicular to ~n, we have (Q−P )·~n = 0. With
w.
Q = (x0 , y0 , z0 ), P = (x, y, z), and ~n = [a, b, c]T , this means ax + by + cz = ax0 + by0 + cz0 = d.
The plane is therefore described by a single equation ax + by + cz = d. We have shown:
Theorem 1.11
The equation for a plane containing ~v and w
~ and a point P is
ax + by + cz = d,
Example 1.20
Problem: Find the equation of a plane which contains the three points P =
(−1, −1, 1), Q = (0, 1, 1), R = (1, 1, 3).
Answer: The plane contains the two vectors ~v = [1, 2, 0]T and w ~ = [2, 2, 2]T . We have
~n = [4, −2, −2]T and the equation is 4x − 2y − 2z = d. The constant d is obtained by
plugging in the coordinates of a point to the left. In our case, it is 4x − 2y − 2z = −4.
Definition 1.28
The angle between the two planes ax + by + cz = d and ex + f y + gz = h is defined
as the angle between the two normal vectors ~n = [a, b, c]T and m
~ = [e, f, g]T .
c Dejen K. 2020 26
1.5. LINES AND PLANES IN SPACE DBU
Example 1.21
Problem: Find the angle between the planes x + y = −1 and x + y + √ z = 2. Answer:
T T
~ = [1, 1, 1] . It is arccos(2/ 6).
find the angle between ~n = [1, 1, 0] and m
c Dejen K. 2020 27
1.5. LINES AND PLANES IN SPACE DBU
|P~Q · ~n|
d(P, Σ) =
|~n|
Let Q be the point with coordinates (x0 , y0 ) and let the given line have equation ax +
by + c = 0. Also, let p = (x1 , y1 ) be any point on this line and n the vector (a, b)
starting at point p. The vector n is perpendicular to the line, and the distance d from
−→
point Q to the line is equal to the length of the orthogonal projection of P Q on n. The
c Dejen K. 2020 28
1.5. LINES AND PLANES IN SPACE DBU
−→
|P Q · n| −→
length of this projection is given by: d = . Now, P Q = (x0 − x1 , y0 − y1 ), , so
knk
−→ √ |a(x0 − x1 ) + b(y0 − y1 )|
P Q · n = a(x0 − x1 ) + b(y0 − y1 ) and knk = a2 + b2 , thus d = √ .
a2 + b 2
Since P is a point on the line, c = −ax1 − by1 , and so,
|ax0 + by0 + c|
d= √ .
a2 + b 2
|(P~Q) × ~u|
d(P, L) =
|~u|
is the distance between P and the line L.
Proof: the area divided by base length is height of parallelogram.
For example, to compute the distance from P = (2, 3, 1) to the line ~r(t) = (1, 1, 2) +
t(5, 0, 1), compute
√
|[−1, −2, 1]T × [5, 0, 1]T | |[−2, 6, 10]T | 140
d(P, L) = T
= √ = √
[5, 0, 1] 26 26
3. If L is the line ~r(t) = Q + t~u and M is the line ~s(t) = P + t~v , then
|(P~Q) · (~u × ~v )|
d(L, M ) =
|~u × ~v |
is the distance between the two lines L and M .
Proof: the distance is the length of the vector projection of P~Q onto ~u × ~v which is
normal to both lines.
For example, to compute the distance between ~r(t) = (2, 1, 4) + t(−1, 1, 0) and M is
the line ~s(t) = (−1, 0, 2) + t(5, 1, 2) form the cross product of [−1, 1, 0]T and [5, 1, 2]T is
[2, 2, −6]T . The distance between these two lines is
|(3, 1, 2) · (2, 2, −6)| 4
d(L, M ) = T
=√ .
|[2, 2, −6] | 44
4. To get the distance between two planes ~n · ~x = d and ~n · ~x = e, then their distance is
|e − d|
d(Σ, Π) =
|~n|
c Dejen K. 2020 29
1.5. LINES AND PLANES IN SPACE DBU
Non-parallel planes have distance 0. Proof: use the distance formula between point and
plane. For example, 5x + 4y + 3z = 8 and 10x + 8y + 6z = 2 have the distance
|8 − 1| 7
T
=√ .
|[5, 4, 3] | 50
Exercise 1.5
1. Given the three points P = (7, 4, 5) and Q = (1, 3, 9) and R = (4, 2, 10). find the
parametric and symmetric equation for the line perpendicular to the triangle P QR
passing through its center of mass (P + Q + R)/3.
2. Find a parametric equation for the line through the point P = (3, 1, 2) that is
perpendicular to the line L : x = 1 + 4t, y = 1 − 4t, z = 8t and intersects this line
in a point Q.
3. (a) Find the equation of the plane containing the three points P = (1, 1, 1), Q =
(4, 6, 3), R = (5, 5, 0).
(b) Find the area of the triangle P QR.
5. (a) Find an equation of the plane containing the line of intersection of the planes
x − z = 1 and y + z = 3 which is perpendicular to the plane x + y − 2z = 1.
(b) Find the distance of the plane found in (a) to the origin (0, 0, 0).
6. Given three spheres of radius 9 centered at A = (1, 2, 0), B = (4, 5, 0), C = (1, 3, 2).
Find a plane ax + by + cz = d which touches all of three spheres from the same
side.
c Dejen K. 2020 30
1.6. VECTOR SPACE AND SUBSPACE DBU
~ ∈ V , then ~v + w
2. If ~v , w ~ =w
~ + ~v .
~ ∈ V, (~v + w)
3. For any ~u, ~v , w ~ + ~u = ~v + (w
~ + ~u) .
6. If r is a scalar, that is, a member of R and ~v ∈ V then the scalar multiple r·~v is in
V.
7. If r, s ∈ R and ~v ∈ V then (r + s) · ~v = r · ~v + s · ~v .
8. If r ∈ R and ~v , w
~ ∈ V , then r · (~v + w)
~ = r · ~v + r · w.
~
c Dejen K. 2020 31
1.6. VECTOR SPACE AND SUBSPACE DBU
Example 1.22
Show that the set R2 is a vector space if the operations ” + ” and ” · ” have their usual meaning.
x1 y1 x1 + y1
+ =
x2 y2 x2 + y2
x1 rx1
&r · =
x2 rx2
v1 w1 v + w1
+ = 1
v2 w2 v2 + w2
(the second equality follows from the fact that the components of the vectors are real numbers, and the
addition of real numbers is commutative).
Condition 3, associativity of vector addition, is similar.
v1 w1 u1 (v1 + w1 ) + u1
{ + }+ =
v2 w2 u2 (v2 + w2 ) + u2
v + (w1 + u1 )
= 1
v
2 + (w2+ u2)
v1 w1 u1
= +{ + }
v2 w2 u2
For the fourth condition we must produce a zero element the vector of zeroes is it.
v1 0 v
+ = 1
v2 0 v2
r, v1 , v2 ∈ R,
v rv1
r· 1 =
v2 rv2
c Dejen K. 2020 32
1.6. VECTOR SPACE AND SUBSPACE DBU
Example 1.23
For 8, that scalar multiplication distributes from the left over vector addition, we have this.
v w1 r(v1 + w1 )
r·( 1 + )=
v2 w2 r(v2 + w2 )
rv1 + rw1
=
rv2 + rw2
v w1
=r· 1 +r·
v2 w2
The ninth
v1 (rs)v1
(rs) · =
v2 (rs)v2
r(sv1 )
=
r(sv2 )
v
= r · (s · 1 )
v2
v 1v1 v
1· 1 = = 1
v2 1v2 v2
0
0 0 0
0 0 0
+ =
0 0 0
0 0 0
0 0
0 0
&r ·
0 = 0
0 0
c Dejen K. 2020 33
1.6. VECTOR SPACE AND SUBSPACE DBU
Exercise 1.6
(a0 +a1 x+a2 x2 +a3 x3 )+(b0 +b1 x+b2 x2 +b3 x3 ) = (a0 +b0 )+(a1 +b1 )x+(a2 +b2 )x2 +(a3 +b3 )x3
and
r · (a0 + a1 x + a2 x2 + a3 x3 ) = (ra0 ) + (ra1 )x + (ra2 )x2 + (ra3 )x3
2. The set M2×2 of 2×2 matrices with real number entries is a vector space under the
natural
! entry-by-entry
! operations. ! ! !
a b w x a+w b+x a b ra rb
+ = and r · =
c d y z c+y d+z c d rc rd
(a0 +a1 x+· · ·+an xn )+(b0 +b1 x+· · ·+bn xn ) = (a0 +b0 )+(a1 +b1 )x+· · ·+(an +bn )xn
and
r · (a0 + a1 x + . . . an xn ) = (ra0 ) + (ra1 )x + . . . (ran )xn
Subspace
A subspace is a vector space that is contained within another vector space. So every subspace
is a vector space in its own right, but it is also defined relative to some other (larger) vector
space. We will discover shortly that we are already familiar with a wide variety of subspaces
from previous sections.
Definition 1.30
Suppose that V and W are two vector spaces that have identical definitions of vector
addition and scalar multiplication, and that W is a subset of V , W v V . Then W is a
subspace of V .
c Dejen K. 2020 34
1.7. LINEAR DEPENDENCE, INDEPENDENCE AND BASIS DBU
Example 1.24
x
The set P = {y x + y + z = 0} is a subspace of R3 if ” + ” and ” · ” are interpreted
z
x1 x2 x1 + x2 x rx
as y +
1 2 y =
y
1 + y
2 and r · y
= ry
z1 z2 z1 + z2 z rz
Solution:- Since R is a vector space and also P is a subset of R3 then by the above
3
preposition we prove that P is closed under addition and scalar multiplication , take two
elements
ofP
x1 x2
y
1 and y2 (membership in P means that x1 + y1 + z1 = 0 and x2 + y2 + z2 = 0),
z1 z2
x1 + x2
and observe that their sum y1 + y2 is also in P since its entries add (x1 + x2 ) + (y1 +
z1 + z2
y2 ) + (z1 + z2 ) = (x1 + y1 + z1 ) + (x2 + y2 + z2 ) = 0 + 0 = 0. To show that P is closed
under
scalar multiplication, start with a vector from P
x
y (so that x + y + z = 0 ) and then for r ∈ R observe that the scalar multiple
z
x rx
r · y = ry satisfies that rx + ry + rz = r(x + y + z) = r.0 = 0. Thus the two closure
z rz
conditions are satisfied. There fore P is a subspace of R3 .
Exercise: Show that a nonempty subset S of a real vector space is a subspace if and only
if it is closed under linear combinations of pairs of vectors: whenever c1 , c2 ∈ R and ~v1 , ~v2 ∈ S
then the combination c1~v1 + c2~v2 is in S.
Definition 1.31
Suppose that V is a vector space. Given n vectors u1 , u2 , u3 , · · · un and n scalars
α1 , α2 , α3 · · · , αn , their linear combination is the vector α1 u1 + α2 u2 + α3 u3 + · · · + αn un .
c Dejen K. 2020 35
1.7. LINEAR DEPENDENCE, INDEPENDENCE AND BASIS DBU
Definition 1.32
If S = {v1 , v2 , v3 , · · · , vn } is a non-empty set of vectors, then the vector equation
k1 v1 + k2 v2 + k3 v3 + · · · + kn vn = 0 has at least one trivial solution, namely k1 = k2 =
k3 = · · · = kn = 0. If this solution is the only solution of the set S then the set S is called
linearly independence set.
if there are other solutions then the set S is called linearly dependent.
Example 1.25
Let v1 = (1, 0, 1), v2 = (−1, 1, 0) and v3 = (1, 2, 3). Express v3 as a linear combination
of v1 and v2 .
Solution: We must find scalars c1 and c2 so that v3 = c1 v1 + c2 v2 Using our knowledge
of scalar multiplication and addition of vectors, we set
Example 1.26
c Dejen K. 2020 36
1.7. LINEAR DEPENDENCE, INDEPENDENCE AND BASIS DBU
Theorem 1.12
Suppose that S = {u1 , u2 , u3 , · · · , un } is a set of vectors. Then S is a linearly dependent
set if and only if there is an index t 1 6 t 6 n such that ut is a linear combination of the
vectors u1 , u2 , u3 , · · · ut−1 , ut+1 , · · · , un .
Definition 1.33
Let V denote a vector space and S = {u1 , u2 , u3 , · · · , un } a subset of V. S is called a
basis for V if the following is true:
1. S spans V.
2. S is linearly independent.
Definition 1.34
Let V be a vector space and let S = {v1 , v2 , · · · , vn } be a subset of V. We say that S
spans V if every vector v in V can be written as a linear combination of vectors in S.
v = c1 v1 + c2 v2 + · · · + cn vn
Example 1.27
Show that the set S = {(0, 1, 1), (1, 0, 1), (1, 1, 0)} spans R3 and write the vector (2, 4, 8)
as a linear combination of vectors in S.
Solution:- A vector in R3 has the form v = (x, y, z) Hence we need to show that every
such v can be written as
(z − x + y) (x − y + z) (x + y − z)
∴ for every (x, y, z) = (0, 1, 1) + (1, 0, 1) + (1, 1, 0).
2 2 2
Hence S = {(0, 1, 1), (1, 0, 1), (1, 1, 0)} spans R3
And We have (2, 4, 8) = 5(0, 1, 1) + 3(1, 0, 1) + (−1)(1, 1, 0)
c Dejen K. 2020 37
1.7. LINEAR DEPENDENCE, INDEPENDENCE AND BASIS DBU
Example 1.28
Prove that S = {1, x, x2 } is a basis for the set of polynomials of degree less than or
equal to 2.
Solution: We need to prove that S spans P2 and is linearly independent.
S spans P2 . We already did this in the section on spanning sets. A typical polynomial
of degree less than or equal to 2 is ax2 + bx + c
S is linearly independent. Here, we need to show that the only solution to a+bx+cx2 = 0
(where 0 is the zero polynomial) is a = b = c = 0.
From algebra, we remember that two polynomials are equal if and only if their corre-
sponding coefficients are equal. The zero polynomial has all its coefficients equal to zero.
So, a(1) + bx + cx2 = 0 if and only if a = 0, b = 0, c = 0. Which proves that S is
linearly independent.
Theorem 1.13
Let V denote a vector space and S = {u1 , u2 , u3 , · · · , un } a basis of V. Every vector in
V can be written in a unique way as a linear combination of vectors in S
c Dejen K. 2020 38
1.7. LINEAR DEPENDENCE, INDEPENDENCE AND BASIS DBU
Exercise 1.7
1. A kite is pulled with a force F~ = h2, 1, 4i. It has velocity ~v = h1, −1, 1i. The dot product of F~
with ~v is called power.
(a) Find the angle between the force and the velocity.
(b) Find the vector projection of the force onto the velocity vector.
2. Light shines long the vector ~a = ha1 , a2 , a3 i and reflects at the three coordinate planes where the
angle of incidence equals the angle of reflection. Verify that the reflected ray is ~a.
Hint. Reflect first at the xy-plane and find the components of the ray after reflection. You can
assume that in that case, the reflected vector is in the plane spanned by ~k = h0, 0, 1i and ~a.
3. Given the vectors ~a = h1, 2, 1i, ~b = h1, −1, 1i, ~c = h0, 1, 1i, d = h2, 3, 4i, compute all possible dot
products and determine which pairs are perpendicular.
4. (a) Find the angle between a diagonal of a cube and the diagonal in one of its faces.
(b) The hypercube or tesseract has vertices (±1, ±1, ±1, ±1). Find the angle between the hyper
diagonal connecting (1, 1, 1, 1) with (−1, −1, −1, −1) and the space diagonal connecting
(1, 1, 1, 1) with (−1, −1, −1, −1)
5. (a) Verify that if ~a. ~b are nonzero, then ~c =| ~a | ~b+ | ~b | ~a bisects the angle between ~a. ~b if ~c is
not zero.
(b) Verify the parallelogram law
| ~a + ~a |2 + | ~a − ~a |2 = 2 | ~a |2 +2 | ~b |2 .
6. (a) Find a nonzero vector orthogonal to the plane through the points P = (−2, 3, 1), Q =
(1, 5, 2), R = (4, 3, −1) and containing P .
(b) Find the equation of this plane.
(c) Find the area of the triangle P QR.
7. (a) Parametrize a line perpendicular to the plane containing A = (1, 1, .1), B = (2, 3, 4) and
C = (4, 5, 6) and passing through A.
(b) Find the equation ax + by + cz = d of the plane through A, B, C.
8. (a) Use volume to determine whether A = (1, 1, 2), B = (3, 1, 6), C = (5, 2, 0) and D = (1, 4, 12)
are in the same plane.
(b) Find the distance between the line L through A, B and the line M through C, D.
(c) How come that whenever A, B, C, D are not in the same plane, then the distance between
L and M is positive?
9. (a) Find an equation of the plane containing the line of intersection of the planes x − z = 1 and
y + z = 3 which is perpendicular to the plane x + y − 2z = 1.
(b) Find the distance of the plane found in a) to the origin (0, 0, 0).
10. (a) Parametrize the line L through P = (2, 1, 2) that intersects the line x = 1 + t, y = 1 − t, z =
2t perpendicularly.
(b) What is the distance from this line L to the origin (0, 0, 0)?
c Dejen K. 2020 39
Debre Brehan University
Applied Mathematics One(Math 1041)
Lecture Note
”Mathematics is the most beautiful and most powerful creation of
the human spirit.”
Stefan Banach
Dejen Ketema
Department of Mathematics
[email protected]
March, 2020
Contents
1
Chapter 1
Objective:
Each number aij is called an element or entry of the matrix and it is an element appearing in
the ith row and j th column of a matrix. Elements in the horizontal line are said to form rows,
and elements in the vertical lines are said hto form columns. Herei we say A has m rows and n
columns. The ith row of matrix A is Ri = ai1 ai2 ai3 · · · ain 1 ≤ i ≤ m
2
The j th column of the matrix A is
a1j
a2j
a
cj = 3j 1 ≤ j ≤ n.
.
..
amj
The order of a matrix denotes the number of rows and columns in the matrix. Thus, a matrix
of order m × n has m rows and n columns. We often write the matrix A as A = [aij ]m×n , 1 ≤
i ≤ m, 1 ≤ j ≤ n, i-denotes the row and j- denotes the column.
For example, in the matrix
5 9 6 8
A = 3 2 3 1
1 0 4 7
, there are 3 rows and 4 columns. Therefore, matrix A can be called a matrix of order or size
3 × 4.
The rows are h i h i h i
5 9 6 8 , 3 2 3 1 & 1 0 4 7
, and the columns
5 9 6 8
3 , 2 , 3 & 1 .
1 0 4 7
Here a11 = 5, a12 = 9, a13 = 6, a14 = 8, a21 = 3, a22 = 2, a23 = 3, a24 = 1, etc. and A has 12
elements.
Definition 1.2
Two matrices A and B are said to be equal, written A = B, if they are of the same order
and if all corresponding entries are equal i.e. aij = bij .
3
Exercise 1.1
Example 1.2
1 0 4 7 , 1 5
, are row matrices. A row matrix is often referred to as a row vector.
Example 1.3
4
3
−6
is a column matrix.
3. A zero matrix or null matrix is a matrix in which all of its elements are zero.
Example 1.4
The matrices,
" # 0 0
0 0
& 0 0
0 0
0 0
are the zero matrices
4. A matrix, in which the numbers of rows and the number of columns are equal, that is,
an n × n matrix, is called a square matrix of order n.
Example 1.5
" # 1 2 8
3 1
, & 4 6 0
4 0
1 3 5
are square matrices.
If A = (aij )n×n is a square matrix the elements aii ’s are called the diagonal elements.
The main diagonal or simply diagonal of A consists of the elements a11 , a22 , a33 , · · · , ann .
4
5. A square matrix in which all the non-diagonal elements are zero is called a diagonal matrix.
Example 1.6
" # 4 0 0
3 0
, & 0 5 0
0 2
0 0 9
are diagonal matrices.
Note that the diagonal elements in a diagonal matrix may also be zero.
Example 1.7
" # " #
0 0 0 0
,&
0 2 0 0
are also diagonal matrix.
6. A diagonal matrix whose diagonal elements are equal is called a scalar matrix
Example 1.8
" # 4 0 0 " #
3 0 0 0
, & 0 4 0 &
0 3 0 0
0 0 4
are scalar matrices
7. Diagonal matrix of order n in which every diagonal element is unity (one) is called the
identity matrix or unit matrix of order n . The identity matrix of order n is denoted by
In .
Example 1.9
" #
1 0
0 1
is an identity matrix of order two.
8. A square matrix having only zeros below its diagonal is called upper triangular matrix.
A square matrix having only zeros above its diagonal is called lower triangular matrix. A
matrix that is either upper triangular or lower triangular is called triangular matrix.
5
Example 1.10
1 0 0 " #
3 0
2 0 0 , &
6 4
0 4 3
are lower triangular matrices and
1 2 0 " #
3 7
0 0 0 , &
0 4
0 0 3
Definition 1.3
A matrix obtained by deleting one or more rows and/or columns of A is called sub matrix
of A.
Example 1.11
4 6 1 " # " # 4 6
8 2 4 6
If A = 3 8 2, then , and 3 8 are some of the sub matrices of A.
0 3 3 8
2 0 3 2 0
Example 1.12
1 2 8 2 0 3
1. IfA = 4 6 0 and B = 3 8 2
, then we have that
1 3 5 4 6 1
1 2 8 2 0 3 1+2 2+0 8+3 3 2 11
(a) A + B = 4 6 0 + 3 8 2 = 4 + 3 6 + 8 0 + 2 = 7 14 2
6
1.1.3 Multiplication of Matrices by Scalar
Let A be any matrix and α be a scalar (real number), then αA is the matrix obtained from A
multiplying each element of A by α. This operation is called scalar multiplication.
In particular, −A is the matrix obtained from A by multiplying each element of A by −1 and
is called the additive inverse of A.
Example 1.13
1 2 6
If A = 5 0 4 , then
3 1 2
1 2 6 3(1) 3(2) 3(6) 3 6 18
5 0 4 = 3(5) 3(0) 3(4) = 15 0 12
3A = 3
4. For each matrix A , there exists a unique m × n matrix −A such that A + (−A) = 0 =
−A + A
5. α(A + B) = αA + αB
7. (α + β)A = αA + βA
From the above properties, the set of all matrices having the same order forms a vector space
with the operations addition and scalar multiplication.
7
1.2 Product and Transpose of a matrix
Definition 1.5: ( Matrix Product)
Example 1.14
1 1 3 2 5
1. If A = 1 0 5
, B = 2 3
then
3 2 1 4 1
1(2) + 1(2) + 3(4) 1(5) + 1(3) + 3(1)
AB = 1(2) + 0(2) + 5(4) 1(5) + 0(3) + 5(1)
6 + 4 + 4 15 + 6 + 1
14 11
= 22 10
14 22
" # " # " # " #
2 3 0 3 6 9 21 0
2. A = , B= , then AB = and BA = . So, AB 6= BA
7 0 2 1 0 21 11 6
1. A(BC) = (AB)C.
8
1.2.1 The Transpose of a Matrix
Definition 1.6
A matrix obtained from a given matrix A by interchanging the rows and columns is called
the transpose of A and it is denoted by At .That is, If A = (aij )m×n then At = (aji )n×m
Example 1.15
2 5 " #
t 2 −2 4
1. If A = −2 3, then A =
5 3 1
4 1
4 h i
2. If B = 3 , then B t = 4 3 −6
−6
9
Properties of trace of a matrix
If A and B are square matrices, then
• trace(A) + trace(At )
• trace(cA) = c(trace(A))
• trace(AB) = trace(BA)
Example 1.17
15 6 7
Find the trace of A = 2 −4 2
3 2 6
Solution: tr(A) = 3i=1 aii = 15 + −4 + 6 = 17
P
Given any matrix Aof order m × n. Any one of the following operations on the matrix is
called elementary row operation.
10
Example 1.18
0 0 1 2
1. Give a matrix A = 2 3 0 −2
3 3 6 −9
(a) Interchange
rows 1 and 3 of A
3 3 6 −9
=⇒ 2 3 0 −2
0 0 1 2
(b) Multiply
the third row
of A by 1/3
0 0 1 2
=⇒ 2 3 0 −2
1 1 2 −3
(c) Multiply
the second row
of A by −2, then add to the third row of A
0 0 1 2
=⇒ 2
3 0 −2
−1 −3 6 −5
Definition 1.9
Two matrices A and B are called row equivalent or simply (equivalent matrices) if one
matrix can be obtained from the other matrix by applying finite number of elementary
operations. In this case we write A ∼ B.
Example 1.19
As we observe from the above example,
3 3 6 −9 3 3 6 −9
2 3 0 −2 ∼ 2/3 1 0 −2/3
0 0 1 2 0 0 1 2
and
3 3 6 −9 0 0 1 2
2 3 0 −2 ∼ 2 3 0 −2
0 0 1 2 −1 −3 6 −5
2. For each nonzero row, the first entry is 1. The first entry is called a leading 1.
3. For two successive non zero rows, the leading 1 in the higher row appears farther
to the left than the leading 1 in the lower row.
4. If a column contains a leading 1, then all other entries in that column are 0.
Note: A matrix is in row echelon form as the matrix has the first 3 properties.
11
Example 1.20
1 2 0 0 2 1 0 0 3 0
0 0 1 0 1 0 0 1 0 0
A= 0 0 0 1 0 and B = 0 0 0
0 1
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
are the matrices in reduced row echelon form. Where as the matrix.
1 0 3 4
0
1 −2 5
0 0 1 2
0 0 0 0
is not in reduced row echelon form but it is row echelon form since the matrix has the first
3 properties and all the other entries above the leading 1 in the third column are not 0. The
matrix
1 0 3 4
0
1 −2 5
0 1 2 2
0 0 0 0
is not in row echelon form (also not in reduced row echelon form) since the leading 1 in the
second row is not in the left of the leading 1 in the third row and all the other entries above
the leading 1 in the third column are not 0.
The rank of a matrix A , denoted by rank(A), is the number of nonzero rows remaining
after it has been changed into row echelon or reduced row echelon form.
12
Example 1.21
Determine the rank of the following matrices.
1 0 0 1
3 1 2 6 1 2 3 −1
A= and B = 3 6 9 −3
−1 2 5 −4
2 4 6 −2
2 3 7 2
Solution:
1 0 0 1 1 0 0 1 1 0 0 1
R2 → R2 − 3R1
R3 → R3 − 2R2
3 1 2 6 0 1 2 3 0 1 2 3
A= R → R3 + R1
−1 2 5 −4 3 0 2 5 −3 R4 → R4 − 3R2 0 0 1 −9
R4 → R4 − 2R1
2 3 7 2 0 3 7 0 0 0 1 −9
1 0 0 1 1 0 0 1
0 1 2 3 0 1 0 21
R4 → R4 − R3
R → R2 − 2R3
0 0 1 −9 2 0 0 1 −9
0 0 0 0 0 0 0 0
Exercise 1.2
1. Transform the following matrix in to reduced row echelon form and determine the
rank of the following matrices.
2 1 −1 3
10 −8 0 1 −1 2 1
(a) A = 1 3 −5 , B =
−4 6 −7 1
7 0 9
2 0 1 3
2 6 7 9
2 1 −1 3
3 4 5 −1
1 −1 2 1
1
(b) C = 2 3 1 , D =
−4 6 −7 1
2 5 8 4
2 8 0 3
−1 2 2 10
13
Example 1.22
" # " #
1 1 2 −1
Show that B = is an inverse for the matrix A = :
1 2 −1 1
Solution:-By the definition there are two multiplications to confirm. (We will show later
that this isn’t necessary, but right now we are working strictly from the definition.) We
have
" #" #
2 −1 1 1
AB =
−1 1 1 2
" #
2(2) + (−1)1 2(1) + (−1)2
=
(−1)1 + 1(1) −1(1) + 1(2)
" #
1 0
=
0 1
= I2
and similarly
" #" #
1 1 2 −1
BA =
1 2 −1 1
" #
1(2) + 1(−1) 1(−1) + 1(1)
=
1(2) + 2(1) 1(−1) + 2(2)
" #
1 0
=
0 1
= I2
Therefore the definition for inverse is satisfied, so that A and B work as inverses to each
other.
Example 1.23
" #
1 1
Matrix A = cannot have an inverse.
1 1
Theorem 1.1
Suppose that A is invertible and that both B and C are inverses of A. Then B =C and
we will denote the inverse as A−1 .
14
Example 1.24
−7 6 12
Computing a Matrix Inverse of B = 5 5 7
1 0 4
Solution:The augmented matrix is
−7 −6 −12 1 0 0
[B | I] = 5
5 7 0 1 0
1 0 4 0 0 1
by applying elementary row operation the equivalent reduced row echelon form is
1 0 0 −10 −12 9
0 1 0 13/2 8 11/2
0 0 1 5/2 3 5/2
So
−10 −12 9
B −1 = 13/2 8 11/2
5/2 3 5/2
1. (Uniqueness) The matrix A has at most one inverse, henceforth denoted as A−1 , provided
A is invertible.
3. (2=3 Rule) If any two of the three matrices A, B and AB are invertible, then so is the
third, and moreover (AB)−1 = B −1 A−1 :
15
1.5 Determinant of a matrix and its properties
Definition 1.12: (Determinant of a matrix)
det(A) = A11 det(A11 ) − A12 det(A12 ) + A13 det(A13 ) − · · · + (−1)n+1 A1n det(A1n )
where A1j a sub matrix of A obtaining by deleting the fist row and the j th column.
So to compute the determinant of a 5 × 5 matrix we must build 5 sub matrices, each of size
4. To compute the determinants of each the 4 × 4 matrices we need to create 4 sub matrices
each, these now of size 3 and so on. To compute the determinant of a 10 × 10 matrix would
require computing the determinant of 10! = 10 × 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 = 3, 628, 800 1 × 1
matrices. Fortunately there are better ways. However this does suggest an excellent computer
programming exercise to write a recursive procedure to compute a determinant.
Lets compute the determinant of a reasonable sized matrixby hand.
3 2 −1
Suppose that we have the 3 × 3 matrix A = 4 1 6 then
−3 −1 2
det(A) =| A |
3 2 −1
= 4 1 6
−3 −1 2
1 6 4 6 4 1
=3 −2 −1
−1 2 −3 2 −3 −1
= 3(1 2 − 6 −1 ) − 2(4 2 − 6 −3 ) − (4 −1 − −3 )
= 3(1(2) − 6(−1)) − 2(4(2) − 6(−3)) − (4(−1) − (−3))
= 24 − 52 + 1
= −27
If the matrix A0 is obtained from A by interchanging any two columns, and their deter-
minants exist, then |A0 | = −|A|.
The rule of Sarrus is a mnemonic for the 3 × 3 matrix determinant: the sum of the
products of three diagonal north-west to south-east lines of matrix elements, minus the sum of
the products of three diagonal south-west to north-east lines of elements, when the copies of
the first two columns of the matrix are written beside it as in the illustration. This scheme for
calculating the determinant of a 3 × 3 matrix does not carry over into higher dimensions.
16
Properties of determinants of matrix
1. If A is a triangular matrix, then the determinant of A is the product of all the diagonal
elements of A.
2. If B is obtained from A by multiplying one row of A by the scalar α, then det(B) =
α(det(A)).
3. If B is obtained from A by adding a multiple of one row of A to another row of A, then
det(B) = det(A).
1
4. The matrix A is invertible if and only if det(A) 6= 0 and det(A−1 ) = .
det(A)
5. The determinant of a product of two matrices is the product of their determinants. That
is,
det(AB) = det(A) det(B) =⇒ det(An ) = (det(A))n
6. If B is the transpose of a matrix A, then det(B) = det(A)
Minor In a Matrix
Suppose A is an n × n matrix and Aij is the (n − 1) × (n − 1) sub matrix formed by removing
row i and column j. Then the minor for A at location i j is the determinant of the sub matrix,
Mij (A) = det(Aij ).
Co factor In a Matrix
Suppose A is an n × n matrix and Aij is the (n − 1) × (n − 1) sub matrix formed by removing
row i and column j. Then the Co factor for A at location ij is the determinant of the sub
matrix, Cij (A) = (−1)i+j det(Aij ) .
Definition 1.13: (Adjoint)
Hence
c11 c21 c31 · · · cn1
c12 c22 c32 · · · cn2
c
adjA = 13 c23 c33 · · · cn3
. .. .. . . ..
..
. . . .
c1n c2n c3n · · · cnn
17
Theorem 1.3
Let A be an n × n matrix. Then
Solution: Exercise
Definition 1.15
A general system of m linear equations with n unknowns can be written as
Here x1 , x2 , . . . , xn , are the unknowns, a11 , a12 , . . . , amn are the coefficients of the system,
and b1 , b2 , . . . , bm are the constant terms.
A solution of a linear equation is any n-tuple of values (s1 , s2 , ...., sn ) which satisfies the
linear equation. For example, (−1, −1) is a solution of the linear equation x + 3y = −4
since−1 + (3 × −1) = −1 + (−3) = −4 , but (1, 5) is not.
Similarly, a solution to a linear system is any n-tuple of values (s1 , s2 , ...., sn ) which simulta-
neously satisfies all the linear equations given in the system.
18
For example,
3x + 2y − z = 1
2x − 2y + 4z = −2
−x + 12 y − z = 0
has as its solution (1, −2, −2) . This can also be written as:
x= 1
y =−2
z =−2
We also refer to the collection of all possible solutions as the solution set.
In general, for any linear system of equations there are three possibilities regarding solutions:
1. A unique solution In this case only one specific solution set exists. Geometrically this
implies the n-planes specified by each equation of the linear system all intersect at a
unique point in the space that is specified by the variables of the system.
2. No solution: The equations are termed inconsistent and specify n-planes in space which
do not intersect or overlap. It is not possible to specify a solution set that satisfies all
equations of the system.
Example 1.26
Given the system of linear equations,
x1 + 2x2 + x4 = 7
x1 + x2 + x3 − x4 = 3
3x1 + x2 + 5x3 − 7x4 = 1
···
a11 a12 a1n x1 b1
a21
a22 ··· a2n x
2 b2
. .. .. . = .
. ...
. . . .. ..
19
we may write the above simultaneous equations as
AX = b
where
···
a11 a12 a1n x1 b1
a21
a22 ··· a2n
x2
b2
A=
.. .. ... ,
.. .. and b = ..
X=
. . . . .
am1 am2 · · · amn xm bm
A matrix A is called the coefficient matrix of the system, while the matrix
···
a11 a12 a1n b1
a21
a22 ··· a2n b2
. .. .. ..
. ...
. . . .
a11 x1 = b1
a22 x2 = b2
... ..
.
ann xn = bn
bi
The solution is given by xi = , aii 6= 0
aii
2. If A = L, the equation (1.1) become
a11 x1 = b1
a21 x1 +a22 x2 = b2
.. ..
. .
an1 x1 +an2 + · · · + ann xn = bn
20
Solving the first equation and then successively solving the 2nd, 3rd and so on.
b1 b2 − a21 x1 b2 − (an1 x1 + an2 + · · · + an(n−1) xn )
We obtain x1 = , x2 = , · · · , xn = ,
a11 a22 ann
where aii 6= 0, i = 1, 2, · · · , n
This method of solving equation is called forward substitution method.
3. If A = U , the equation (1.1) become
Theorem 1.6
Consider an m equations with n variables AX = b then
b) If rank(A|b) = rank(A) < n then the system has infinitely many solutions.
21
The rules for 3 × 3 matrices are similar. Given
a1 x + b 1 y
+ c1 z = d 1
a2 x + b 2 y + c 2 z = d 2
a3 x + b 3 y + c 3 z = d 3
a3 b 3 c 3 z d3
Then the values of x, y and z can be found as follows:
d1 b1 c1 a1 d1 c1 a1 b1 d1
d2 b2 c2 a2 d2 c2 a2 b2 d2
d3 b3 c3 a3 d3 c3 a3 b3 d3
x= , y= , and z = .
a1 b1 c1 a1 b1 c1 a1 b1 c1
a2 b2 c2 a2 b2 c2 a2 b2 c2
a3 b3 c3 a3 b3 c3 a3 b3 c3
Example 1.27
Solve the following system by cramer’s rule.
3 −1 1
9
, then
2 3 4
det(A) = 1 2 1 = 4 + 9 − 4 − 24 − 3 + 2 = −16 6= 0
3 −1 1
then the system has unique solution.
22
Example: Cont.
19 3 4 19 3 4
A1 = 4 2 1 & det(A1 ) = 4 2 1 = 38 + 27 − 16 − 72 − 12 + 19 = −16
9 −1 1 9 −1 1
2 19 4 2 19 4
A2 = 1 4 1 & det(A2 = 1 4 1 = 8 + 57 + 36 − 48 − 19 − 18 = 16
3 9 1 3 9 1
2 3 19 2 3 19
A3 = 1 2 4 & det(A3 ) = 1 2 4 = 36 + 36 − 19 − 114 − 27 + 8 = −80
3 −1 9 3 −1 9
det(A1 ) −16
∴ x1 = = =1
det(A) −16
det(A2 ) 16
x2 = = = −1
det(A) −16
det(A3 ) −80
x3 = = = 5.
det(A) −16
1. Problem 1: Use Cramer’s Rule to solve each for each of the variables.
x − y = 4
−x + 2y = −7
−2x + y = −2
x − 2y = −2
2. Problem 2: Use Cramer’s Rule to solve this system for z.
2x + y + z = 1
3x + z = 4
x − y − z = 2
Step 2: Transform [A|b] to row echelon form [U |d] using row operations.
23
Example 1.28
Solve the following system using Gauss elimination method.
2x1 − 3x2 + x3 = 5
4x1 + 14x2 + 12x3 = 10
6x1 + x2 + 5x3 = 9
6 1 5 9
Applying, elementary row operations on this matrix to change into its echelon form.
2 −3 1 5 2 −3 1 5
R2 −→ R2 − 2R1
4 14 12 10 0 20 10 0
R3 −→ R3 − 3R1
6 1 5 9 0 10 2 −6
2 −3 1 5
R3 −→ R3 − 1/2R2 0 20 10 0
0 0 −3 −6
24
Example 1.29
Use the inverse of the coefficient matrix to solve the following system
3x1 + x2 = 6
−x1 + 2x2 + 2x3 = −7
5x1 − x3 = 10
Solution: Okay, let’s first write down the matrix form of this system.
3 9 0 x1 6
−1 2 2 x2 = −7
5 0 −1 x3 10
Now, we found the inverse of the coefficient matrix by using methods of finding Inverses
and is the following;
3 1 0
A = −1 2 2
5 0 −1
−2 9 −10
=⇒ CA = 1 3 5
2 −6 7
2 −1 2
=⇒ adj(A) = 9 −3 −6
−10 5 7
25
Exercise 1.3
1. Solve the following linear system of equation by using Cramer’s rule, Gaussian
elimination method, and inverse method.
(a) no solution (b) more than one solu- (c) a unique solution and
tion solve it.
1x + y − bz = 1 x + 2y − 3z = a x − 2y + bz = 3
i) 2x + 3y + az = 3 ii) 2x + 6y − 11z = b iii) ax + 2z = 2
x + ay + 3z = 2 x − 2y + 7z = c 5x + 2y = 2
Let A be a square matrix. Then if λA, is a real number and X a non zero column vector
satisfying AX = λX, we call X an eigenvector of A, while λ is called an eigenvalue of A.
We also say that X is an eigenvector corresponding to the eigenvalue λ.
Example 1.30
3 −2 0 1
Let A = −2 3 0, then show that X = 1 is eigenvector of A with λ = 1.
0 0 5 0
The equation det(A−λIn ) = 0 is called the characteristic equation of A, while the polynomial
det(A − λIn ) is called the characteristic polynomial of A. The characteristic polynomial of
A is often denoted by chA (λ).
Hence the eigenvalues of A are the roots of the characteristic polynomial of A.
Example 1.31
Find the eigenvalues for the matrix
26
Theorem 1.7
if A is an n × n triangular matrix (upper triangular, lower triangular, or diagonal), then
the eigenvalues of A are the entries on the main diagonal of A.
Example 1.32
" #
2 1
Find the eigenvalues of A = and find all eigenvectors.
1 2
Solution: The characteristic equation of A is λ2 − 4λ + 3 = 0, or (λ − 1)(λ − 3) = 0
Hence λ = 1 or λ = 3. The eigenvector equation (A − In )X = 0 reduces to
" #" # " #
2−λ 1 x 0
=
1 2−λ y 0
or
(2 − λ)x + y = 0
x + (2 − λ)y = 0
Taking λ = 1 gives
x+y =0
x + y = 0.
which has solution x = −y, and let y = t is arbitrary non zero. Consequently the
eigenvectors corresponding to λ = 1 are the vectors
" # " #
−t −1
=t
t 1
" #
−1
with t 6= 0 which is the scalar multiple of .
1
Taking λ = 3 gives
−x + y = 0
x − y = 0.
which has solution x = y, and let y = t is arbitrary non zero. Consequently the eigen-
vectors corresponding to λ = 3 are the vectors
" # " #
t 1
=t
t 1
" #
1
with t 6= 0 hence the scalar multiple of .
1
" #
2 1
Therefore λ1 = 1 and λ2 = 3 are the eigenvalues of and the corresponding eigen-
1 2
" # " #
−1 1
vector are X1 = and X2 = respectively.
1 1
27
Theorem 1.8
If A is an n × n matrix, the following statements are equivalent.
(a) λ is an eigenvalue of A.
1.7.1 Diagonalization
Problem 1 Given an n × n matrix A, does there exist an invertible matrix P such that
P −1 AP
is diagonal?
Theorem 1.9
Let A be an n × n matrix having distinct eigenvalues λ1 , λ2 , · · · , λn and corresponding
eigenvectors X1 , X2 , · · · Xn respectively. Let P be the matrix whose columns are
respectively X1 , X2 , · · · , Xn . Then P is non singular and
λ1 0 0 ··· 0
0 λ2 0 ··· 0
−1
0
P AP = 0 λ3 ··· 0
. .. .. .. ..
.. . . . .
0 0 0 ··· λn
Definition 1.17
If A and B are square matrices, then we say that B is similar to A if there is an invertible
matrix P such that
B = P −1 AP.
Definition 1.18
A square matrix A is said to be diagonalizable if it is similar to some diagonal matrix.
In other words, A is diagonalizable if there exists an invertible matrix P such that P −1 AP
is diagonal. In this case the matrix P is said to diagonalize A.
Theorem 1.10
If A is an n × n matrix, the following statements are equivalent.
(a) A is diagonalizable.
28
Procedure for Diagonalizing a Matrix
1. Confirm that the matrix is actually diagonalizable by finding n linearly independent
eigenvectors. One way to do this is by finding a basis for each eigenspace and merging
these basis vectors into a single set S. If this set has fewer than n vectors, then the matrix
is not diagonalizable.
λ1 , λ2 · · · , λn
p1 , p2 , · · · , pn
Example 1.33
In each of the following, determine if the the matrix is diagonalizable
" # 3 0 0 −1 4 −2
2 0
A= A = 0 2 0 A = −3 4 0
1 2
0 1 2 −3 1 3
29
Debre Berhan University
Applied Mathematics One
Lecture note: Chapter 3
”Mathematics is the most beautiful and most powerful creation of
the human spirit.”
Stefan Banach
Dejen Ketema
Department of Mathematics
[email protected]
March, 2020
Contents
1
Chapter 1
We suppose that a function f is defined for x near c (but we do not require that it be defined
when x = c).
Definition 1.1: (Informal definition of a limit)
We call L the limit of f (x) as x approaches c if f (x) becomes close to L when x is close
(but not equal) to c , and if there is no other value L0 with the same property.
When this holds we write
lim f (x) = L
x→c
or
f (x) → L as x → c
Notice that the definition of a limit is not concerned with the value of f (x) when x = c (which
may exist or may not). All we care about are the values of f (x) when x is close to c , on either
the left or the right (i.e. less or greater).
Definition 1.2
Let f be a function defined on some open interval that contains the number c, except
possibly at c itself. Then we say that the limit of f as x approaches c is L, and we write
lim f (x) = L
x→c
Since | x − c | is the distance from x to c and | f (x) − L | is the distance from f (x) to L,and
can be arbitrarily small, the definition of a limit can be expressed in words as follows:
lim f (x) = L means that the distance between f (x) and L can be made arbitrarily small by
x→c
taking the distance from x to a sufficiently small (but not 0’s).
Alternatively, lim f (x) = L means that the values of f (x) can be made as close as we please
x→c
to L by taking x close enough to c (but not equal to c). We can also reformulate definition in
terms of intervals by observing that the inequality | x − c |< δ is equivalent to −δ < x − c < δ
2
1.1. DEFINITION OF LIMIT DBU
, which in turn can be written as c − δ < x < c + δ. Also 0 <| x − c | is true if and only if
x − c 6= 0 , that is, x 6= a. Similarly, the inequality | f (x) − L |< is equivalent to the pair of
inequalities L − < f (x) < L + . Therefore, in terms of intervals, definition can be stated as
follows:
lim f (x) means that for every > 0 (no matter how is small) we can find δ > 0 such that if x
x→c
lies in the open interval (c − δ, c + δ) and x 6= c, then f (x) lies in the open interval (L − , L + )
Example 1.1
c Dejen K. 2020 3
1.1. DEFINITION OF LIMIT DBU
Example 1.2
Exercise 1.1
Prove that
x2
a) lim (−2x + 7) = 1 b) lim = 0, c) lim (x2 ) = 9
x→3 x→0 x2 + 1 x→3
d) lim (x2 − 9) = 0, e) lim (x2 ) = 0 f ) lim (−bx + c) − ab + c
x→−3 x→0 x→a
c Dejen K. 2020 4
1.1. DEFINITION OF LIMIT DBU
Example 1.3
1. (a)
(b)
s s
x x
lim 3
= 3
lim [ ] (by low 11)
x→4 −7x + 1 x→4 −7x + 1
s
3
limx→4 x
= (by low 5)
limx→4 (−7x + 1)
s
4
= 3 (by low 3,9 and 1)
−7(4) + 1
s
34
=
−27
√
3
4
=−
3
Theorem 1.2
If f (x) 6 g(x) when x is near a (except possibly at a ) and the limits of f and g both
exist as x approaches a, then
lim f (x) 6 x→a
x→a
lim g(x)
c Dejen K. 2020 5
1.1. DEFINITION OF LIMIT DBU
Example 1.4: S
1
ow that lim x2 sin = 0
x→0 x
Solution:First note that we cannot use
1 1
lim x2 sin = lim x2 · lim sin
x→0 x x→0 x→0 x
1
because lim sin does not exist. However, since
x→0 x
1
−1 ≤ sin ≤1
x
Multiply both side by x2 we get
1
−x2 ≤ x2 sin ≤ x2
x
We know that lim −x2 = 0 and lim x2 = 0 taking f (x) = −x2 , h(x) = x2 and g(x) =
x→0 x→0
2 1
x sin by the Squeeze theorem, we obtain
x
1
lim x2 sin =0
x→0 x
c Dejen K. 2020 6
1.1. DEFINITION OF LIMIT DBU
Example 1.5
Show that
sin θ
lim =1
θ
θ→0
Proof: To show that the limit is 1, we begin with positive values of θ less than π. Notice
that from the following figure
We have Area 4 OAP 6 Area sector OAP 6 Area 4 OAT . We can express these areas
in terms of θ as follows:
1 1 sin θ
Area 4 OAP = base × hieght = (1)(sin θ) =
2 2 2
1 2 1 2 θ
Area sector OAP = r θ = (1 )(θ) =
2 2 2
1 1 tan θ
area 4 OAT = base × hieght = (1)(tan θ) =
2 2 2
sin θ θ tan θ
Thus 6 6 .
2 2 2
2
This last inequality goes the same way if we divide all three terms by the number sin θ
which is positive since 0 < θ < π/2
θ 1
16 6
sin θ cos θ
Taking reciprocals reverses the inequalities:
sin θ cos θ
1> >
θ 1
cos θ
Since lim = 1 and lim 1 = 1 then by the Sandwich theorem gives
θ→0 1 θ→0
sin θ
lim =1
θ→0 θ
sin θ
Recall that sin θ and θ are both odd functions . Therefore,f (θ) = is an even function,
θ
with a graph symmetric about the y-axis (see the above figure). This symmetry implies
that the left-hand limit at 0 exists and has the same value as the right-hand limit:
sin θ sin θ
lim+ = 1 = lim−
θ→0 θ θ→0 θ
sin θ
So lim =1
θ→0 θ
c Dejen K. 2020 7
1.1. DEFINITION OF LIMIT DBU
lim f (x) = L
x→a+
if for any > 0, however small, there exists a δ > 0 such that |f (x) − L| < whenever
0<x−a<δ
Example 1.6
√
using the definition to prove that lim+ x=0
x→0
Solution:
Definition 1.4
Let f be a function which is defined at every number in some open interval (d, a). Then
the limit of f (x), as x approaches from the left a, is L, written
lim f (x) = L
x→a−
if for any > 0, however small, there exists a δ > 0 such that
|f (x) − L| < whenever −δ < x − a < 0
Example 1.7
√
Show that lim− 4−x=0
x→4
Solution:
√ For every >√0 we need to √ find a δ > 0 such that if −δ < x − 4 < 0 then
| 4 − x − 0| < . Since | 4 − x − 0| = | 4 − x| < ⇒ |4 − x| < 2 ⇒ −2 < (x − 4) <
2 ⇒ −2 < (x − 4) < 0 then if −δ < (x − 4) < 0 then −2 < (x − 4) < 0. This suggests
that we should choose δ = 2 . Therefore, we conclude that
√
lim− 4 − x = 0
x→4
Theorem 1.4
lim f (x) = L if and only if
x→c
c Dejen K. 2020 8
1.1. DEFINITION OF LIMIT DBU
Exercise 1.2
|x|
Show that a) lim |x| = 0 and limx→0 does not exist.
x→0 x
i lim+ f (x) = ∞ means that for every positive number M there is a positive number
x→a
δ such that f (x) > M whenever 0 < x − a < δ
ii lim− f (x) = ∞ means that for every positive number M there is a positive number
x→a
δ such that f (x) > M whenever −δ < x − a < 0
lim f (x) = ∞ means that for every positive number M there is a positive number
iii x→a
δ such that f (x) > M whenever |x − a| < δ
Example 1.8
1
By using the definition prove that limx→0 =∞
x2
Solution: Let M be given large number, we want to find a δ > 0 such that f (x) > M
1 1
when ever 0 < |x − 0| < δ or 2 > M when ever 0 < |x| < δ that is, x2 < when
x M
1
ever 0 < |x| < δ or |x| < √ when ever 0 < |x| < δ. This suggests that we should take
M
1 1
δ = √ . Therefore lim 2 = ∞.
M x→0 x
Definition 1.6
Let f (x) be a function defined on some open interval that contains the number a, except
possibly at a itself. Then
i lim+ f (x) = −∞ means that for every negative number N there is a positive number
x→a
δ such that f (x) < N whenever 0 < x − a < δ
ii lim− f (x) = −∞ means that for every negative number N there is a positive number
x→a
δ such that f (x) < N whenever −δ < x − a < 0
iii lim f (x) = −∞ means that for every negative number N there is a positive number
x→a
δ such that f (x) < N whenever 0 < |x − a| < δ
c Dejen K. 2020 9
1.1. DEFINITION OF LIMIT DBU
Example 1.9
1
Show that limx→0− = −∞
x
Solution: Let N be given negative small number, we want to find a δ > 0 such that
1
f (x) < N when ever −δ < x − 0 < 0 or < N when ever −δ < x − 0 < 0 that is,
x
1 1
x> when ever −δ < x < 0. This suggests that we should take δ = − . Therefore
N N
1
limx→0− = −∞.
x
Definition 1.7
We say that f (x) has the limit L as x approaches infinity and write
lim f (x) = L
x→∞
if, for every number > 0 there exists a corresponding positive number M such that for
all x
x > M ⇒ |f (x) − L| <
Example 1.10
Show that
1
lim =0
x→∞x
Solution: Let > 0 be given. We must find a positive number M such that for all x
1 1
x > M ⇒ | − 0| = | | <
x x
1 1
x > M ⇒ x > because x is positive . The implication will hold if M = or any larger
positive number. This proves that
1
lim =0
x→∞ x
Definition 1.8
We say that f (x) has the limit L as x approaches negative infinity and write
if, for every number > 0 there exists a corresponding negative number N such that for
all x
x < N ⇒ |f (x) − L| <
c Dejen K. 2020 10
1.1. DEFINITION OF LIMIT DBU
Example 1.11
Show that
1
lim =0
x→−∞ x
Solution: Let > 0 be given. We must find a negative number N such that for all x
1 1
x < N ⇒ | − 0| = | | <
x x
1 1
x < N ⇒ x < − because x is negative. The implication will hold if N = − or any
small number. This proves that
1
lim =0
x→−∞ x
Theorem 1.5
Suppose that c is a constant and the limits lim f (x) = L and lim g(x) = M exist.
x→±∞ x→±∞
Then
c Dejen K. 2020 11
1.1. DEFINITION OF LIMIT DBU
Example 1.12
Using the above theorem evaluate the following limits at infinity
√
4x2 + 2 x2 + 1
a). lim b). lim
x→∞ 3x + 1 x→∞ 2x − 3
Definition 1.9
The line y = b is called a horizontal asymptote of the curve y = f (x) if either
lim f (x) = b or/and lim f (x) = b
x→∞ x→−∞
Example 1.13
1 1
Find lim and lim .
x→∞ x x→−∞ x
Solution: Observe that when is large, is small. For instance, In fact, by taking large
enough, we can make as close to 0 as we please. Therefore, according to Definition , we
have Similar reasoning shows that when x is large negative, 1/x.
Definition 1.10
A line x = a is a vertical asymptote of the graph of a function y = f (x) if either
lim+ f (x) = ±∞ or/and lim− f (x) = ±∞
x→a x→a
c Dejen K. 2020 12
1.1. DEFINITION OF LIMIT DBU
Example 1.14
2x 2x
Find lim− ( ) and lim+ ( ).
x→3 x−3 x→3 x − 3
Solution: If x is close to 3 but larger than 3, then the denominator x − 3 is a small
positive number and 2x is close to 6. So the quotient 2x/x − 3 is a large positive number.
2x
lim+ ( )=∞
x→3 x − 3
Example 1.15
Find the vertical and horizontal asymptotes for the graph of
√ s
x2 + 2 f (x) = 2x + 1 −
b). √ 3 x2 + 3
a). f (x) = c). f (x) =
x−1 4x2 + 5 27x2 − 1
Solution: a) We are interested in the behavior as x → ±∞ and as x → 1 where the
denominator is zero.
and then √ √ √
x2 + 2 x2 + 2 x2 + 2
lim− = −∞, lim+ = ∞, lim =1
x→1 x−1 x→1 x−1 x→∞ x − 1
and √
x2 + 2
lim = −1
x→−∞ x − 1
√
x2 + 2
∴ x = 1 is the vertical asymptote of f (x) = and also y = 1 and y = −1 are
√ x−1
x2 + 2
horizontal asymptote of f (x) = .
x−1
c Dejen K. 2020 13
1.1. DEFINITION OF LIMIT DBU
Special limit
1 − cos x • lim (1 + x) x = e
1
• lim =0 x→0
x→0 x
!mx n
k • lim √
n
=e
• lim 1+ = emk n→∞ n!
x→+∞ x s r
x
q √
1 n
• lim 1+ =e • n→∞
lim 2 2− 2+ 2 + ... + 2=π
x→+∞ x | {z
n
}
x
1 1
x
a −1
• lim 1− = • lim = ln a, ∀a>0
x→+∞ x e x→0 x
x
x 1
− 1
• lim = • lim 1 + a e−x − 1 x
= ea
x→+∞ x+k ek x→0
Exercise 1.3
Find the limit
x x–1
4x tan x– sin x
6
1. lim 5. lim x3 9. lim 1 + 13. lim x+3
x→0 sin 3x x→0 x→∞ x x→∞ x–2
√ √
2. lim cos 3x– cos x
x2
6. lim 1–xcos x 10. lim x
1 + 3x
x→0 x→0+0 x→0
ln x– ln a
14. lim x–a
,
n+5 x x→a
sin 5x– sin 3x 1 x+a
3. lim sin x 7. lim 1 + n
11. x→∞
lim x–a
x→0 n→∞
3x x 1
sin ax 1 x
4. lim 8. lim 1 + 12. lim . 15. lim (1 + sin x) x
x→0 sin bx x→∞ x x→∞ x+1 x→0
Solution:
2x
1 u lim sin
u
sin x 1– cos x
u
2
L = lim · 2 =√ tx→0+0 2
x→0 x x cos x # 2 x
2
sin x 2sin2 x2
"
· 2
v"
= lim 1
u
sin x2
!#2
x→0 x x cos x = √
u
lim
t
x x
sin x sin2 x2 2 →0+0
lim · 2 lim 2 2
1 √ 2
2
x→0 x x→0 x 1
= . =√ · 1 =√ .
lim cos x
x→0 2 2
c Dejen K. 2020 15
1.1. DEFINITION OF LIMIT DBU
2a
We used here the fact that the limit re- Introduce the new variable: y = x–a
. As
mains the same when replacing x → 0 to x → ∞, y → 0 and, hence,
x
2
→0
2a 2a
x–a = , x=a+ .
7. y y
n+5
1
lim 1+ Substituting this into the function gives
n→∞ n
x
1 n
5 # 2a
"
1
= lim 1+ 1+ L = lim 1+
n→∞ n n x→∞ x–a
2a
1
n
1 5
= lim (1 + y)a+ y
= lim 1 + · lim 1 + y→0
n→∞ n n→∞ n 2a
= lim (1 + y)a · lim (1 + y) y
= e · 1 = e. y→0 y→0
2a 2a
=1·e =e .
8. By the product rule for limits, we obtain
3x
1 12. First we transform the base:
lim 1+
x→∞ x x x
x x x
1 1 1 L = lim
= lim · lim 1 +
1+ · lim 1+ x→∞ x + 1
x→∞ x x→∞ x x→∞ x
x + 1–1 x
3
=e·e·e=e . = x→∞
lim
x+1
x
1
lim 1–
= x→∞ .
x+1
9. Substituting x6 = y1 , so that x = 6y and
1
y → ∞ as x → ∞ , we obtain Let – x+1 = y. Then x + 1 = – y1 , ⇒
6
x x = – y1 –1 and y → 0, if x → ∞. Now
lim 1+ we can find the limit:
x→∞ x
!6y x
1
1 L = lim 1–
= lim 1+ x→∞ x+1
y→∞ y 1
"
1
!y #6 = lim (1 + y)– y –1
y→0
= lim 1+ 1
y→∞ y lim (1 + y)– y
" !y #6 y→0
1 =
= y→∞
lim 1+ 6
=e . lim (1 + y)+1
y y→0
h 1 i–1
10. lim (1 + y) y
y→0
√ =
1
lim x 1 + 3x = lim (1 + 3x) x 1
–1
1
x→0 x→0 1
1 h 1 i3 = lim (1 + y) y = .
= lim (1 + 3x) 3x
·3
= lim (1 + 3x) 3x y→0 e
3x→0 3x→0
3
1
= lim (1 + 3x) 3x = e3 . 13. We can transform this limit as follows:
3x→0
x + 3 x–1
11. We first transform the base of the func- L = lim
x→∞ x–2
tion:
x–2 + 5 x–1
x+a x
= x→∞
lim
L = lim x–2
x→∞ x–a 5 x–1
x–a + 2a x
= x→∞
lim 1 +
= x→∞
lim x–2
x–a " x–2 #
5(x–1)
x–2
2a x
5 5
= lim 1 + . = lim 1+ .
x→∞ x–a x→∞ x–2
c Dejen K. 2020 16
1.2. CONTINUITY AND ONE SIDED CONTINUITY DBU
Replace the variable: 15. The limit can be represented in the fol-
5 5 5 lowing form:
= y, ⇒ x–2 = , ⇒ x = + 2.
x–2 y y 1
L = lim (1 + sin x) x
Here y → 0 as x → 0 . Then the limit is x→0
1 sin x
" 5(x–1)
x–2 # x–2 = lim (1 + sin x) sin x · x
5 5 x→0
L = lim 1+ i sinx x
x→∞ x–2 h
= lim (1 + sin x) sin x
1
.
h 5
1 iy ( y +2–1)
x→0
= lim (1 + y) y
y→0 After taking logarithm, we have
h 1 i5+y
= lim (1 + y) y
1 i sinx x
!
y→0
h
1 i5 1 iy ln L = ln lim (1 + sin x) sin x
x→0
h h
= lim (1 + y) y · lim (1 + y) y
y→0 y→0 sin x h
1 i
h 1 i5 = lim ln (1 + sin x) sin x
= lim (1 + y) y · lim (1 + y) x→0 x
y→0 y→0 sin x h 1 i
5
=e ·1=e . 5 = lim ·lim ln (1 + sin x) sin x .
x→0 x x→0
14. Let x–a = t . It is easy to see that t → 0 We notice that lim sinx x = 1 . Besides
x→0
as x → a . Then that, sin x → 0 as x → 0 , therefore,
ln x– ln a we can replace the transition x → 0 in
L = lim
x→a x–a the second limit with the equivalent limit
ln (t + a) – ln a sin x → 0 . This yields
= lim
t→0 t
1
ln t+a
h i
= lim a ln L = 1 · lim ln (1 + sin x) sin x
sin x→0
t→0 t h 1 i
1 t
= ln lim (1 + sin x) sin x .
= lim ln 1 + . sin x→0
t→0 t a
1
Make one more change of variable: As lim (1 + sin x) sin x = e
sin x→0
t
= z, z → 0 as t → 0. ln L = ln e = 1.
a
Hence, the limit becomes
Thus, L = e
1 t
L = lim ln 1 +
t→0 t a
1
= lim ln (1 + z)
z→0 az
1 1
= lim ln (1 + z) z
a z→0
1
1
= ln lim (1 + z) z
a z→0
1 1
= ln e = .
a a
c Dejen K. 2020 17
1.2. CONTINUITY AND ONE SIDED CONTINUITY DBU
point. The definition is simple, now that we have the concept of limits:
Definition 1.11: (continuity at a point)
Note that for f to be continuous at c, the definition in effect requires three conditions:
The idea of the definition is that the point of the graph corresponding to c will be close to the
points of the graph corresponding to nearby x-values. Now we can define what it means for a
function to be continuous in general, not just at one point.
Definition 1.12
A function is said to be continuous on (a, b) if it is continuous at every point of the
interval (a, b) .
We often use the phrase ”the function is continuous” to mean that the function is continuous at
every real number. This would be the same as saying the function was continuous on (−∞, ∞),
but it is a bit more convenient to simply say ”continuous”.
Note that, by what we already know, the limit of a rational, exponential, trigonometric or
logarithmic function at a point is just its value at that point, so long as it’s defined there. So,
all such functions are continuous wherever they’re defined. (Of course, they can’t be continuous
where they’re not defined!)
1.2.1 Discontinuities
A discontinuity is a point where a function is not continuous. There are lots of possible ways
this could happen, of course. Here we’ll just discuss two simple ways.
However, we say that this discontinuity is removable. This is because, if we modify the
function at that point, we can eliminate the discontinuity and make the function continu-
ous. To see how to make the function f (x) continuous, we have to simplify f (x) , getting
x2 − 9 (x + 3)(x − 3) x+3 x−3
f (x) = = = · . We can define a new function g(x)) where
x−3 (x − 3) 1 x−3
c Dejen K. 2020 18
1.2. CONTINUITY AND ONE SIDED CONTINUITY DBU
g(x) = x + 3 . Note that the function g(x)) is not the same as the original function f (x) ,
because g(x) is defined at x = 3 , while f (x) is not. Thus, g(x) is continuous at x = 3 , since
lim (x + 3) = 6 = g(3) . However, whenever x 6= 3 , f (x) = g(x); all we did to f to get g was
x→3
to make it defined at x = 3.
In fact, this kind of simplification is often possible with a discontinuity in a rational function.
We can divide the numerator and the denominator by a common factor (in our example x − 3
to get a function which is the same except where that common factor was 0 (in our example
at x = 3. This new function will be identical to the old except for being defined at new points
where previously we had division by 0.
x−3
However, this is not possible in every case. For example, the function f (x) = has
x2 − 6x + 9
a common factor of x − 3 in both the numerator and denominator, but when you simplify you
1
are left with g(x) = , which is still not defined at x = 3. In this case the domain of f (x)
x−3
and g(x) are the same, and they are equal everywhere they are defined, so they are in fact the
same function. The reason that g(x) differed from f (x) in the first example was because we
could take it to have a larger domain and not simply that the formulas defining f (x) and g(x)
were different.
Not all discontinuities can be removed from a function. Consider this function:
( ot all discon-
1 if x > 0
tinuities can be removed from a function. Consider this function: k(x) = Since
−1 if x ≤ 0
lim k(x) does not exist, there is no way to redefine k at one point so that it will be continuous
x→0
at 0. These sorts of discontinuities are called nonremovable discontinuities.
Note, however, that both one-sided limits exist; lim− k(x) = −1 and lim+ k(x) = 1 . The
x→0 x→0
problem is that they are not equal, so the graph ”jumps” from one side of 0 to the other. In
such a case, we say the function has a jump discontinuity. (Note that a jump discontinuity is
a kind of nonremovable discontinuity.)
One-Sided Continuity
Just as a function can have a one-sided limit, a function can be continuous from a particular
side. For a function to be continuous at a point from a given side, we need the following three
conditions:
c Dejen K. 2020 19
1.2. CONTINUITY AND ONE SIDED CONTINUITY DBU
2. the function has a limit from that side at that point and
3. the one-sided limit equals the value of the function at the point.
A function f (x) is
• Left-continuous at x = c if lim− f (x) = f (c)
x→c
Notice that, if a function is continuous, then it is continuous on every closed interval con-
tained in its domain.
REMARK: The discontinuities in parts (b) and (c) are called removable discontinuities be-
cause we could remove them by redefining f at just the single number 0. The discontinuity in
part (d) is called jump discontinuity because the function ”jumps” from one value to another.
The discontinuities in parts (e) and (f) are called infinite or essential discontinuities.
Exercise 1.4
cos (2πx − a) , x ≤ −1
If the function f (x) = 3 is continuous, what is the value of a?
x + 1, x ≥ −1
Solution:
We calculate the left-hand and right-hand limits at x = −1 .
Hence,
π
a= + πn, n ∈ Z.
2
c Dejen K. 2020 20
1.3. LIMIT EXERCISES DBU
Exercise 1.5
2
x
+ 2, x≤0
Let f (x) = ax + b,
0 ≤ x ≤ 1 Determine a and b so that the function f (x) is
2
3 + 2x–x , x ≥ 1
continuous everywhere.
ax + b = 2, ⇒ a · 0 + b = 2, ⇒ b = 2.
lim f (x)
x→1+0
= lim 3 + 2x–x2 = 3 + 2–1 = 4.
x→1+0
ax + 2 = 4, ⇒ a · 1 + 2 = 4, ⇒ a = 2.
For given values of a and b , the function f (x) is continuous. The graph of the function
is sketched in Figure .
c Dejen K. 2020 21
1.3. LIMIT EXERCISES DBU
1 x − 25
that the limit is 15. lim √
2 x→25
√x − 5 √
( x − 5)( x + 5)
4. lim |x2 + x| − x lim √
x→7− x→25 x−5 √
2 √
|7 + 7| − 7 = 49 = limx→25 x + 5) = 25 + 5) = 5 + 5 = 10
p |x|
5. lim − 1 − x2 16. lim
x→−1 x→0 x
|x|
p
2 2
p1 − x is defined if x < 1 , so the limit is lim
2
1−1 =0 x→0− x
p = limx→0− −x x = limx→0 −1 = −1
−
6. lim + 1 − x2 |x| x
x→−1 lim = lim+ = lim+ 1 = 1. The limit
p x→0+ x x→0 x x→0
1 − x2 is not defined if x2 > 1, so the limit does not exist.
does not exist. 1
17. lim
x→2 (x − 2)2
As x approaches 2, the denominator will be a
Two-Sided Limits very small positive number, so the whole frac-
tion will be a very large positive number. Thus,
Evaluate the following limits or state that the the limit is ∞.
√
limit does not exist. x2 + 16
18. lim
1 x→3 x−3
7. lim As x approaches 3, the numerator goes to 5
x→−1 x−1
1 and the denominator goes to 0. Depending on
− whether you approach 3 from the left or the
2
right, the denominator will be either a very
1 small negative number, or a very small positive
8. lim
x→4 x − 4 number. So the limit from the left is −∞ and
1 1
lim = −∞ lim+ = +∞ The limit the limit from the right is +∞. Thus, the limit
x→4− x − 4 x→4 x − 4
does not exist. does not exist.
3x2 − 8x − 3
1 19. lim
9. lim x→−2 2x2 − 18
x→2 x−2 2
3(−2) − 8(−2) − 3
1 1
lim− = −∞ lim+ = +∞.The limit 2(−2)2 − 18
x→2 x − 2 x→2 x − 2
3(4)+16−3
does not exist. = 2(4)−18 = 12+16−38−18
25
= −10 = − 52
x2 − 9 x2 + 2x + 1
10. lim 20. lim
x→−3 x + 3 x→2 x2 − 2x + 1
(x + 3)(x − 3) 22 + 2(2) + 1 4+4+1 9
= lim = lim x − 3 = = =9
x→−3 x+3 x→−3 22 − 2(2) + 1 4−4+1 1
= −3 − 3 = −6
x+3
x2 − 9 21. lim
x→3 x2 − 9
11. lim x+3 1 1
x→3 x − 3
lim = lim lim = −∞
(x − 3)(x + 3) x→3 (x + 3)(x − 3) x→3 x − 3 x→3− x − 3
lim = lim x + 3 = 3 + 3 = 6 1
x→3 x−3 x→3
lim = +∞. The limit does not exist.
x→3+ x − 3
x2 + 2x + 1
12. lim x+1
x→−1 x+1 22. lim
x→−1 x2 + x
(x + 1)(x + 1) x+1 1 1
lim lim = lim = = −1
x→−1 x+1 x→−1 x(x + 1) x→−1 x −1
= lim x + 1 = −1 + 1 = 0
x→−1
1
23. lim
x3 + 1 x→1 x2 + 1
13. lim 1 1 1
x→−1 x + 1
2
= =
(x2 − x + 1)(x + 1) 1 +1 1+1 2
lim 1
x→−1 x+1 24. lim x3 + 5x −
= lim x2 − x + 1 = (−1)2 − (−1) + 1 x→1 2−x
x→−1 3 1 1
=1+1+1=3 1 + 5(1) − =1+5− =6−1=5
2−1 1
x2 + 5x − 36 x2 − 1
14. lim 25. lim
x→4 x2 − 16 x→1 x2 + 2x − 3
(x − 4)(x + 9) x+9 4+9 13 (x − 1)(x + 1) x+1 1+1 2 1
lim = lim = = lim = lim = = =
x→4 (x − 4)(x + 4) x→4 x + 4 4+4 8 x→1 (x − 1)(x + 3) x→1 x + 3 1+3 4 2
c Dejen K. 2020 22
1.3. LIMIT EXERCISES DBU
5x x3 − 3x2 + 1
26. lim 35. lim
x→1 x2 + 2x − 3 x→−∞ 3x2 + x + 5
Notice that as x approaches 1, the numerator Top-heavy rational function, where the expo-
approaches 5 while the denominator approaches nent of the ratio of the leading terms is 1, so
0. However, if you approach from below, the de- the limit is −∞.
nominator is negative, and if you approach from
x2 + 2
above, the denominator is positive. So the lim- 36. lim
x→∞ x3 − 2
its from the left and right will be −∞ and +∞ Bottom-heavy, so the limit is 0.
respectively. Thus, the limit does not exist.
3x2 + 4x
33. lim (a) lim h(x)
x→∞ x4 + 2 x→0
Bottom-heavy, so the limit is 0. 2(0) − 3 = −3
c Dejen K. 2020 23
1.3. LIMIT EXERCISES DBU
c Dejen K. 2020 24