Linear Algebra Assignment

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 11

1.

0 Introduction of Linear Algebra

Linear algebra is the branch of mathematics concerning linear equations and linear
functions and their representations in vector spaces and through matrices. Linear
algebra is used to solve systems of equations, create linear models, and approximate
solutions to equations. Moreover, linear algebra is also used in most sciences and
engineering areas, because it provides the vast majority of numerical tools and allows
modelling many natural phenomena, and efficiently computing with such models.

2.0 Introduction of Linear Equation System

A linear equation system is a collection of one or more linear equations involving the
same set of variables such that all equations in the system are considered
simultaneously.

Example:

−x +2 y+ 4 z=−8

3 x+ 2 y −z=−2

x + y +2 z =2

The example shows a system of three equation in three variables which is x, y and z. To
find the solution to the linear equation system, we must calculate a numerical value for
each variable in the system which can satisfy all equation in the same time. The solution
to the system above is given by x=4 , y=−6 , z=2 and it makes all three equations
valid. The word ‘system’ indicates that the equations are considered collectively, rather
than individually.

A general system of m linear equations with n unknowns van be written as

Where x 1 , x 2 , … , x n are the unknowns, a 11 ,a 12 , … , amn are the coefficients of the system

and b 1 , b2 , … , bm are the constants.


2.1 Types of Linear Equation System

We can categorise the linear equation system by the number of solutions.


A consistent system of equations has at least one solution. A consistent system is
considered as an independent system if it has a unique solution. The two lines have
different slopes and intersect at one point ( x , y ) in the plane. A consistent system is
considered as a dependent system if the equations have the same slope and the
same y-intercepts. In other words, the lines coincide so the equations represent the
same line. Every point on the line represents a coordinate pair that satisfies the
system. Thus, we can say that the system has infinite number of solutions.

Another type of linear equation system is an inconsistent system, which is the


equations represent two parallel lines. The lines have the same slope but different y-
intercepts. There are no points common to both lines; hence, there is no solution to
the system.

Below is a comparison of graphical representations of each type of system with the


linear equations in two variables.

Independent system Inconsistent system Dependent system


Unique solution No solution Infinite number of solutions

Besides the linear equation system with two variables, when we solve the system
with three variables with another method such as Elementary Row Operation, there
are also has 3 possible types of solutions.
2.2 Example of 3 Types of Linear Equation System with 3 Variables.

2.2.1 The System with Unique Solution


x− y +2 z=−3
2 x+ y −z=0
−x +2 y−3 z=7
Before solving by Elementary Row Operation, we shall change the
linear equation to augmented matrix.

1 −1 2 −3 1 −1 2 −3
( 2 1 −1 0
−1 2 −3 7 |) −2 R1+ R 2 → R2
→ (0 3 −5 6
−1 2 −3 7 |)
1 −1 2 −3 1 −1 2 −3
→ (
R3 + R1 → R3 0 3 −5 6
0 1 −1 4 |) R3 ↔ R2
→ ( 0 1 −1 4
0 3 −5 6 |)
1 −1 2 −3 1 −1 2 −3
→ (
3 R2 + R3 → R3 0 1 −1 4
0 0 −2 −6 |) −1
R
2 3
→ ( 0 1 −1 4
0 0 1 3 |)
From last row, z=3
From second row, y−z =4
y−3=4
y=7
From first row, x− y −2 z=−3
x−7=2 ( 3 )=−3
x−1=−3
x=−2
After solving the linear equation by ERO, the augmented matrix become
row echelon form. From the last row, we get that z=3 , and the second
row, y−z =4 . By substituting z=3 , we get y=7 . Lastly, from the first row,
we substitute the y and z, we will get x=−2. And we can write our
solution as (−2 , 7 ,3 ) which is the only solution that satisfy all the linear
equation in the system. Therefore, the system has a unique solution.

2.2.2 The System with Infinite Solution


3 x+ y−6 z=−10
2 x+ y −5 z=−8
6 x−3 y +3 z=0
Let 3 linear equation become augmented matrix,
3 1 −6 −10 1 0 −1 −2
( 2 1
| )
5 −8
6 −3 3 0
→ (
−R2 + R1 → R1 2 1 −5 −8
6 −3 3 0 |)
1 0 −1 −2 −2 R1+ R 2 → R2 , 1 0 −1 −2
−3 R2 + R3 → R3
→ ( |)
2 1 −5 −8
0 −6 18 24
−1
6 3
R

( |)
0 1 −3 −4
0 1 −3 −4

1 0 −1 −2
R2−R 3 → R 3
→ ( |)
0 1 −3 −4
0 0 0 0

From last row, 0 = 0


Let z=t
From second row, y−3 z=−4
y−3 t=−4
y=3 t−4
From first row, x−z=−2
x−t=−2
x=t−2

When finishing ERO, we get that 0 = 0 from the last row which is a true
equation. This means the equations are consistent and have infinite
number of solutions. The planes intersect in a line. Since the variable z
can be any real number, we use t to represent z and continue to find x
and y. So, by substitute z=t to first row and second row, we get x=t−2
and y=3 t−4. Therefore, the solution is ( t−2 , 3t−4 , t ) where t can be
any real number.

2.2.3 The System with No Solution


x + y−z=3
−x + y + z=2
x +3 y−z=6
Let 3 linear equation become augmented matrix,
1 1 −1 3 1 1 −1 3
(−1 1 1 2
1 3 −1 6 |) R3 ↔ R2
→ (1 3 −1 6
−1 1 1 2 |)
1 1 −1 3 R1−R 3 → R 3 , 1 1 −1 3

→ (
R2 + R3 → R2 0 4 0 8
−1 1 1 2 |) 1
R
4 2

(
0 1 0 2
2 0 −2 1 |)
−1 0 −1 −1 −1 0 −1 −1
R2−R 1 → R 1
→ (0 1 0 2
2 0 −2 1 |) 2 R1+ R 3 → R 3
→ (0 1 0 2
0 0 0 −1|)
After finishing ERO, we get 0=−1 from the last row which is a false
equation. This means the equations are inconsistent and have no
solution. The planes don’t have a common intersection and there is not
any (x, y, z) that make all 3 equations true.

3.0 Introduction of Vector


A vector denoted u⃗  or u is an object that has both a magnitude and direction. The
magnitude denoted ‖u⃗‖  of a vector is its length or size, while the direction of the vector
is the position that the vector points towards. Geometrically, we can picture a vector as a
directed line segment, the starting point of the vector is known as the initial Point, while
the end point of the vector is known as the terminal Point. Therefore, a vector u⃗ that is
defined to start at point P and end at point Q can be represented as u⃗ =⃗
PQ .
Algebraically, a vector in Rn can be represented in terms of its components

as u⃗ =( u1 ,u 2 , … , un ). For example, the vector ⟨ 1,2 ⟩ ∈ R2 represents a vector that has
moved 1 along the x-axis and 2 along the y-axis.

Two vectors are the same if they have the same magnitude and direction. This means
that if we take a vector and translate it to a new position without rotating, then the vector
we obtain at the end of this process is the same vector we had in the beginning. Two
examples of vectors are force and velocity.

3.1 Vector Operation

Basically, vector has three types of operations which is addition, subtraction and
multiplication. Below are the examples of addition and subtraction.

3.1.1 Vector Addition and Subtraction

Addition
b ⟨ 26 ,7 ⟩

c
a ⟨ 8 ,13 ⟩

We can add the vectors by adding the x parts and adding the y parts:


c=a+b
c= ⟨ 8 , 13 ⟩ + ⟨ 26 , 7 ⟩
c= ⟨ 8+26 ,13+7 ⟩= ⟨ 34 , 20 ⟩

Subtraction

To subtract, we first reverse the vector that we want to subtract, then add.

subtract k =⟨ 4 , 5 ⟩ from v=⟨ 12 , 2 ⟩

a=v +(−k )

a=⟨ 12 , 2 ⟩ + [ − ⟨ 4 ,5 ⟩ ]

a=⟨ 12−4 ,2−5 ⟩ =⟨ 8 ,−3 ⟩

Besides, there are two types of multiplications of vector which are dot product and cross
product.
3.1.2 Vector Multiplication - Dot Product

Dot product also known as scalar product because it takes two vectors as the
input and give one number as an output. Generally, the dot product is written as
a∙b .

Given that a=⟨ a1 , a2 ,a 3 ⟩ and b=⟨ b1 , b2 ,b 3 ⟩ , then

a ∙ b=( a1 b1 ) + ( a2 b 2 )+ ( a3 b3 )

For example, a=⟨ 2 , 4 ⟩ and b=⟨ 1 ,−3 ⟩

a ∙ b=[ ( 2 )( 1 ) ] + [ ( 4 ) (−3 ) ]

a ∙ b=2−12=−10

Besides, we can also use dot product to calculate the angle between two vectors
by using formula:

a ∙ b=|a||b|cos θ

Where:
|a| is the magnitude of vector a
|b| is the magnitude of vector b
θ is the angle between a and b

Example:

Given that a=⟨ 2 , 2 ,−1 ⟩ and b=⟨ 5 ,−3 , 2 ⟩, find the angle between a and b.

2 2 2
|a|= √( 2 ) + ( 2 ) + (−1 )
|a|= √9=3
2 2 2
|b|= √( 5 ) + (−3 ) + ( 2 )
|b|= √ 38
a ∙ b=( a1 b1 ) + ( a2 b 2 )+ ( a3 b3 )

a ∙ b=[ ( 2 )( 5 ) ] + [ ( 2 ) (−3 ) ] + [ (−1 )( 2 ) ]


a ∙ b=10−6−2=2
a ∙ b=|a| ⌈ b ⌉ cos θ
2= (3 ) ( √ 38 ) cos θ
2
cos θ=
( 3 ) ( √ 38 )
1. a ∙ b=b ∙ a
2. θ=83.8
a ∙ ( b+c ° )= ( a ∙b )+ ( a ∙ c )
3. ( c a ) ∙b=c ( a ∙ b )=a∙ ( c b )
Therefore, the angel 2 betweena and b is 83.8 °
4. a ∙ a=|a|
5. 0 ∙ a=0

The properties of dot product:

b
Orthogonal Vectors

If the angle between two vectors is 90 ° , the vectors are orthogonal which means
that the vector is perpendicular to another vector. For any orthogonal vectors, a ∙ b is
equal to 0 because cos 90° =0.

3.1.3 Vector Multiplication - Cross Product

Cross product is the process of multiplying two vectors to get a new vector. It also
can be called vector product and it is written as a × b . The way to do cross
product is finding the determinant of the matrix. For example,

Given a=⟨ 1 , 3 , 4 ⟩ and b=⟨ 2 , 7 ,−5 ⟩ .

a=i+ 3 j +4 k and b=2 i+7 j−5 k


i j k
|
a × b= 1 3 4
2 7 −5 |
¿ |37 −54 |i−|12 −54 | j+|12 37|k
¿ (−15−28 ) i− (−5−8 ) j+ (7−6 ) k

a × b=−43 i+13 j+ k= ⟨−43 ,13 , 1 ⟩

Furthermore, we can also calculate the cross product by formula:

a × b=|a||b| sinθ n

a finger represents the direction of a .


|a| is the magnitude of vectorIndex

|b| is the magnitude of vectorMiddle


b finger represents the direction of b.

θ is the angle between a andThumb


b represents the direction of a × b.

n is the unit vector at right angles to both a and b

We can also find the direction of a , b and a × b by using Right Hand Rule.

The cross product will always be orthogonal or perpendicular to the plane which
containing the original two vectors. It also equals to the area of the parallelogram
formed by two vectors. The characteristics are shown in the picture below:
1. a × b ≠b × a
2. ( a × b ) × c ≠ a × ( b ×c )
3. a × ( b+c )=( a× b ) + ( a × c )

The properties of cross product:

3.1.4 Comparison between Dot Product and Cross Product

The table below shows the similarities and differences between dot product and
cross product:

Dot product Cross Product

Both are the vector multiplication

Both are distributive

a ∙ ( b+c )= ( a ∙b )+ ( a ∙ c ) or a × ( b+c )=( a× b ) + ( a × c )

Scalar Product Vector Product

The product of two vectors is a scalar The product of two vectors is a vector
quantity. a quantity.
For any parallel vectors, the cross product must be 0.
This is because
The dot product is defined by the relation: there product
The cross is no angle between
is defined bytwo
the vectors
relation:
b and sin 0=0. Therefore, a × b=0.
a ∙ b=|a||b|cos θ a × b=|a||b| sinθ n
The dot product obeys commutative law: The cross product does not obey
commutative law:
a ∙ b=b ∙ a
a × b ≠b × a

If two vectors are perpendicular to each If two vectors are parallel to each other, their
other, then their dot product is zero. vector product is zero.

a ∙ b=0 a × b=0

4.0 Conclusion
In short, linear algebra is the study of matrices, linear equation system and vector in
mathematics. Linear algebra also widely used in science especially physics. There are 3
types of linear equation system and also 3 solution to the system. We can solve it by
many methods such as elimination, substitution, Gaussian elimination and so on.
Besides, there are 2 types of vector multiplication which are dot product and cross
product.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy