Home > Math, Software Engineering > Matrix Algebra – An Introduction & Basic Operations

Matrix Algebra – An Introduction & Basic Operations

Why Matrices Algebra

The discovery of Matrices and Determinant returns back to 18th & 19th centuries it was initially used for solving problems of

  • Transformation of geometric objects.
  • Systems of linear equations

After that with the spread of the computers and the rapid development of computer technology the matrix’s algebra became an important basic for many of computer since related issues , we can state here some of them

  • Graph Theory.
  • Theory of  Games.
  • Computer Graphics and Computed Tomography
  • Cryptography.

So we can conclude that every Software Engineer must know this very important branch of algebra.

Basic Operations :

Let’s consider the following case to know start dealing with Matrix , let’s consider 2 companies have expenses that need to be recorded monthly like salaries, Running Costs,Cost of Goods,…. let’s limit this to salaries and Running Costs and Taxes , Now how would one represent the data collected , many ways exists to do this but the Matrix has the advantage of combining the data so it’s easy to manipulate them , so we writes the data as follow
Matrix1-01

 and if we are not confusing about what this values is for we can write it as follow

Matrix1-02

this is what called Matrix , size is the matrix is defined by two factors number of Rows and number of Columns as in our example the above matrix has 2 rows and 3 columns i.e 2×3 matrix as general we represent the matrix size on the form nxm where n is the number of rows and the m is the number of columns

for our example if we need to represent the 1st 3 mouthes data this could be a follow
Matrix1-03

now if we need to calculate the first quarter companies expenses what we would do ?
for example for salaries for company 1 the result could be 1000 + 1200 + 800 ,here we can come to one of Matrices operation which is the Matrices’s addition which is done by adding the entries one by one as follow

Matrix1-04

now what can we do to double the matrix ? clearly we can add it to itself as follow
Matrix1-05

 

which implies

Matrix1-06

So we can conclude the following rule

Matrix1-07

 

 

for any constant x we can write

 Matrix1-08

 

Which is the Matrecies’s operation Called Matrix Constant Multiplication or Mmultiplication of a Matrix By a Number , keeping in mind we write the constant to the left of the matrices in the case of multiplication.

now we come to the Subtraction Operation it’s a combination of the above 2 rules i.e

M-N=M+(-1)N
so we multiply N with -1 then add it to M.

Examples :
Consider the following Matrices
Matrix1-09

 Lets calculate the following values

  • 2M1 – M2
  • M3+M1-3M2
  • M3+M2

Matrix1-10

Matrix1-11

 

 

Matrix1-12

Advertisement
Categories: Math, Software Engineering

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.