Showing posts with label Maths. Show all posts
Showing posts with label Maths. Show all posts

Simplest and shortest Matrix method to solve linear equations of 3 variables


Matrix method to solve linear equations of 3 variables

In this post we are going to understand the concept of solving linear equations of three variables with the help of matrix method .


Matrix method to solve linear equations of three variables with the help of example. 

Set of given equations are 

x - y + z = 2    

2x - y = 0  

 2y - 2 z = 1  

Rearranging these equations in symmetrical form. It means if any one of the variable in any equation is missing then write that missing variable/s with zero coefficient. As we see in this case the coefficient of z in 2nd equation and the coefficient of x in 3rd equation are missing. So we have to write coefficient of x in 2nd equation and coefficient of x in 3rd equation as zero.

x - y + z = 2 ----------------------> (1)

2x - y + 0z = 0 ------------------> (2)

0.x + 2y - 2z = 1 ----------------> (3)

The system of these equations can be transformed into Matrix form .

AX = B , ⇒ X = A-1-------> (*)

Where A is matrix written from the coefficients of x, y and z when these equations are in symmetric form and B is the matrix written from constants from right hand sides in column form and X is matrix of all the variables in column form.


In order to find the solution of set of these equations , first we have to find the inverse of matrix A if it exist then we can find the solution otherwise Matrix method fails to find the solution of the set of linear equations . 

Evaluation of Determinant 
                                                  

|A| = 4 (18 - 4) -0(9 - 3) +6(12 - 18)
       = 4(14) + 0 + 6(-6) 
       = 56 - 36
        = 20
Since the determinant value of this matrix is not equal to zero ,Therefore its inverse can be calculated.
And formula for finding the inverse of matrix A is
Where Adjoint A is the transpose of co factor matrix. And in order to find the co factor matrix of any matrix, we have to find co factors of all the elements present in this matrix

How to calculate  co factors of all the elements of the matrix A

Let us calculate these cofactors.  
Now these co factors can be written in matrix form known as co factor Matrix. 
Co factors of 1st row are  (18 - 4) , -(9 - 3), (12 - 18) 

i. e. Co factors of 1st row are 14, -6 , -6

Co factors of 2nd row are -(0 -24), (12 - 18) , -(16 - 0) 
I. e. Co factors of 2nd row are  24 , -6 , -16

Co factors of 3rd row are  (0 - 36), -(4 - 18), (24 - 0) 
i.e. Co factors of 3rd row are  -36 , 14 , 24


Co factor Matrix


Writing co factors of 1st row in 1st row of this matrix , co factors of 2nd row in 2nd row of this matrix . Similarly co factors of 3rd row in 3rd row of this matrix . 
 

Adjoint  Matrix

To find the Ad joint of this matrix we have to take it's transpose, Because transpose of any matrix is called Ad joint of the matrix. So writing all the elements which are in 1st row in 1st column, and  all the elements which are in 2nd row in 2nd column and  all the elements which are in 3rd row in 3rd column. 

Inverse  Matrix

Now we can find inverse of the matrix A by putting the value of inverse of A in equation  (4), Now  putting the values  Matrix B and    A-1  in (4) After simplification and using the properties of equality of two matrices  ( Two matrices of same order are equal iff their respective elements are equal to each other ) 


Now we shall use the property of equality of two matrices ,which says that if two matrices are equal to each other then their respective elements must be  equal to each other.

 x = 10
    y = 10
    z = 10
So this was the Matrix method of solving linear equations of three variables using inverse of matrix. Your valuables comments will be appreciated for betterment of this blog.



Share:

Inverse method of solving linear equations of three variables

Inverse method of solving linear equations of 3 variables

Matrix method of solving linear equations of three variables with the help of example. 


Set of given equations are 

4x + 6z = 100     --------------------------------> (1)

3x + 6y + z = 100   -----------------------------> (2)

3x + 4y + 3z  = 100   ---------------------------> (3)

The system of these equations can be transformed into Matrix formed 


AX =  B  ,  ⇒ X =   A-1 B    -------------------------->  (*)

Matrix method of solving linear equations of three variables
Where A is matrix written from the coefficients of x, y and z when these equations are in symmetric form and B is the matrix written from constants from right hand sides in column form and X is matrix of all the variables in column form. 
In order to find the solution of set of these equations , first we have to find the inverse of matrix A if it exist then we can find the solution otherwise Matrix method fails to find the solution of the set of linear equations . 

Evaluation of Determinant 


|A|  = 4 (18 - 4) -0(9 - 3) +6(12 - 18)
       =  4(14) + 0 + 6(-6) 
       = 56 - 36
        = 20
Since the determinant value of this matrix  is not equal to zero ,Therefore its inverse can be calculated.
And  formula for finding the inverse of matrix A is 
Where Adjoint A is the transpose of co factor matrix. And in order to find the co factor matrix of any matrix, we have to find co factors of all the elements present in this matrix. 

How to calculate  co factors of all the elements of the matrix A

Let us calculate these cofactors.  
Now these co factors can be written in matrix form known as co factor Matrix. 
Matrix method of solving linear equations of three variables

Co factors of 1st row are  (18 - 4) , -(9 - 3), (12 - 18) 
i. e. Co factors of 1st row are 14, -6 , -6

Co factors of 2nd row are -(0 -24), (12 - 18) , -(16 - 0) 
I. e. Co factors of 2nd row are  24 , -6 , -16

Co factors of 3rd row are  (0 - 36), -(4 - 18), (24 - 0) 
i.e. Co factors of 3rd row are  -36 , 14 , 24

Co factor Matrix


Writing co factors of 1st row in 1st row of this matrix , co factors of 2nd row in 2nd row of this matrix . Similarly co factors of 3rd row in 3rd row of this matrix . 

Adjoint  Matrix

To find the Ad joint of this matrix we have to take it's transpose, Because transpose of any matrix is called Ad joint of the matrix. So writing all the elements which are in 1st row in 1st column, and  all the elements which are in 2nd row in 2nd column and  all the elements which are in 3rd row in 3rd column. 

Inverse  Matrix

Now we can find inverse of the matrix A by putting the value of inverse of A in equation  (4), we get

Now  putting the values  Matrix B and    A-1  in (4) 


After simplification and using the properties of equality of two matrices  ( Two matrices of same order are equal iff their respective elements are equal to each other ) 

  x = 10
     y  = 10
      z = 10
So this was the Matrix method of solving linear equations of three variables using inverse of matrix. Your valuables comments will be appreciated for betterment of this blog.



Share:

Matrix method of solving linear equations of three variables

Learn the process of solving linear equations of three variables by matrix method  .Let us understand this method with the help of an example

Matrix method of solving linear equations of 3 variables

Matrix method of solving linear equations of three variables with the help of an example. 


The system of these equations can be transformed into Matrix form as 

AX =  B  ,  ⇒ X =   A-1 B   ->  (*)
Where A is matrix written from the coefficients of x, y and z when these equations are in symmetric form and B is the matrix written from constants from right hand sides in column form and X is matrix of all the variables in column form. 

In order to find the solution of set of these equations , first we have to find the inverse of matrix A if it exist then we can find the solution otherwise Matrix method fails to find the solution of the set of linear equations . 

Evaluation of Determinant 

|A|  = 1 (-9 - 27) -1(6 - 63) -1(6 + 21)
       =  -36 + 57 - 27
       = -63 + 57
        = -6
Since the determinant value is not equal to zero ,Therefore its inverse can be calculated.
And  formula for finding the inverse of matrix A is 



Where Adjoint A is the transpose of co factor matrix. And in order to find the co factor matrix of any matrix, we have to find co factors of all the elements present in that matrix. 

How to calculate  co factors of all the elements of the matrix A. 



 Let us calculate these cofactors. 

Co factors of 1st row are  -36 , 57 , 27
Co factors of 2nd row are  -6, 10 , 4
Co factors of 3rd row are  6 . -11 , -5
Now these co factors can be written in matrix form known as co factor Matrix. 

Co factor Matrix


Writing co factors of 1st row in 1st row of this matrix , co factors of 2nd row in 2nd row of this matrix . Similarly co factors of 3rd row in 3rd row of this matrix . 

Adjoint  Matrix

To find the Ad joint of this matrix we have to take it's transpose, Because transpose of any matrix is called Ad joint of the matrix. So writing all the elements which are in 1st row in 1st column, and  all the elements which are in 2nd row in 2nd column and  all the elements which are in 3rd row in 3rd column. 

Now we can find inverse of the matrix A by putting the value of inverse of A in equation  (4), we get

Now  putting the values  Matrix B and    A-1  in (4) 

After simplification and using the properties of equality of two matrices  ( Two matrices of same order are equal if and only if their respective elements are equal to each other ) 
  x = -54/-6 = 9
 y =  12/-6 = 2
 z  = -24/-6  = -4
Hence
 x = 9 
 y = 2
 z = -4
So this was the Matrix method of solving linear equations of three variables using inverse of matrix. Your valuables comments will be appreciated for betterment of this blog.
Also read this post for understanding inverse of matrix using elementary row transformation
 
Share:

Finding inverse of 3x3 matrix using elementary transformation

We shall learn the process of finding inverse of 3x3 matrix using elementary transformation . The  method of finding inverse of the matrix 3 x 3 using elementary row transformations involves 5 to 6 steps . Let us understand this method with the help of an example.

Inverse of 3x3 matrix using elementary transformation


For finding Inverse of  3 x 3 Matrix using Elementary Row Transformations , We shall strat with this formula

  A  = I A ,

 Where I is Unit Matrix of order 3

In the 1st step we have to make 1st element of 1st row and 1st column unity. We shall start changing the given matrix written  in left hand side  step by step to unit matrix and this this process will also appliesd to the the unit matrix written on right hand side of equation (1) , Hence this change the  matrix written on the right hand side of  equation (1) to other matrix . And when the given matrix on the left hand side changed to Unit matrix , the matrix which was on the right hand side of equation of (1) will be inverse of the given matrix.
Suggested direction of elementary rows operations  are as follows

In the 1st step we have to make the 1st element of 1st column to unity by using taking suitable number common from it .


In the next step by using the above step we have to make 2nd and 3rd  element of 1st column unity by using suitable row transformations. 
 
Till now we have made two elements of 1st column zero , now we have to make 1st and 2nd elements of 3rd Row zero by using suitable row elementary transformations. Note carefully 3rd elements of 3rd row can not be changed to zero as this element will have to  be reduced to unity as in Unit Matrix. 


After this step start making the elements of 2nd Row equal to zero but using suitable row transformations.

Now we shall conclude the process of inverse of matrix  with the changing of  2nd and 3rd elements of 1st row  to zero.. 


Here matrix B is the inverse of the given matrix A. 
To verify that the matrix B obtained is correct or not. We can check it by multiplying matrix B with I, if it comes out equal to matrix A. Then our answer is correct. 


So the process of finding inverse of 3x3 matrix using elementary transformation discussed in this post with the help of an example. Your comment will always be appreciated for betterment of this blog. 
Share:

How to find proportion of Four numbers

How to find proportion of 4 numbers, proportion of Four numbers with the help of examples


What is Proportion



Proportion is majorly based on ratio and fractions. A fraction is written in the form of a/b, while ratio a:b, then a proportion means that two ratios are equal. Here a and b are any two numbers. The ratio and proportion are key foundations to understand the various concepts in mathematics .

Proportion can be applied to solve many daily life problems based on mixture ,work and time , time and speed etc . It develops a relation between two or more quantities and thus helps in their comparison.

What is Proportion?


Proportion in general is referred to as a part, share, or number considered in comparative relation to a whole. Proportion says that when two ratios are equivalent, they are in proportion. It is an equation or statement used to depict that two ratios or fractions are equal .

How to find proportion of Four numbers


If A : B = 2 : 3, B : C = 4 : 5 and      C : D = 6 : 7,    what is A  : D  ?

Share:

How to find shortest distance between two lines

SHORTEST DISTANCE BETWEEN TWO LINES

1st of all we shall find out shortest distance between two Parallel lines.

Problem 1

Consider two parallel lines whose equations in vector form are given by
HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES

 Now comparing these equations with standard form , and write

 , and  vectors ,we get
HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES

Now applying this formula to find the shortest distance between two lines .
HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES
As it is clear from formula , we have to find cross product of  and  and then magnitude of vector 

HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES

Now find the magnitude of  × vector
HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES
                                 =√(81)+(196)+(16)
                                 =√293
Magnitude of 
HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES
                    = √49
           = 7
Putting all these values in  the formula of Shortest Distance between two lines .
HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES
Now Find distance between two skew lines i.e. Lines which are not Parallel lines.

Problem 2

Consider two parallel lines whose equations in vector form are given by
 Now comparing these equations with standard form , and write

 , and  vectors ,we get
 Now applying this formula to find the shortest distance between two lines 

 Now find cross product and then  magnitude of these two vectors


Don't Forget Watch this Video to understand better


FINAL WORDS


Thanks for watching and responding to this post "HOW TO FIND SHORTEST DISTANCE BETWEEN TWO LINES".

My previous Posts


Appeal



If you are a mathematician Don't forget to visit my Mathematics You tube channel , Mathematics Website and Mathematics Facebook Page , whose links are given below

Share: