COURSES
MBAData Science & AnalyticsDoctorate Software & Tech AI | ML MarketingManagement
Professional Certificate Programme in HR Management and AnalyticsPost Graduate Certificate in Product ManagementExecutive Post Graduate Program in Healthcare ManagementExecutive PG Programme in Human Resource ManagementMBA in International Finance (integrated with ACCA, UK)Global Master Certificate in Integrated Supply Chain ManagementAdvanced General Management ProgramManagement EssentialsLeadership and Management in New Age BusinessProduct Management Online Certificate ProgramStrategic Human Resources Leadership Cornell Certificate ProgramHuman Resources Management Certificate Program for Indian ExecutivesGlobal Professional Certificate in Effective Leadership and ManagementCSM® Certification TrainingCSPO® Certification TrainingLeading SAFe® 5.1 Training (SAFe® Agilist Certification)SAFe® 5.1 POPM CertificationSAFe® 5.1 Scrum Master Certification (SSM)Implementing SAFe® 5.1 with SPC CertificationSAFe® 5 Release Train Engineer (RTE) CertificationPMP® Certification TrainingPRINCE2® Foundation and Practitioner Certification
Law
Job Linked
Bootcamps
Study Abroad
MS in Data AnalyticsMS in Project ManagementMS in Information TechnologyMasters Degree in Data Analytics and VisualizationMasters Degree in Artificial IntelligenceMBS in Entrepreneurship and MarketingMSc in Data AnalyticsMS in Data AnalyticsMS in Computer ScienceMaster of Science in Business AnalyticsMaster of Business Administration MS in Data ScienceMS in Information TechnologyMaster of Business AdministrationMS in Applied Data ScienceMaster of Business Administration | STEMMS in Data AnalyticsMaster of Business AdministrationMS in Information Technology and Administrative Management MS in Computer Science Master of Business Administration Master of Business Administration-90 ECTSMSc International Business ManagementMS Data Science Master of Business Administration MSc Business Intelligence and Data ScienceMS Data Analytics MS in Management Information SystemsMSc International Business and ManagementMS Engineering ManagementMS in Machine Learning EngineeringMS in Engineering ManagementMSc Data EngineeringMSc Artificial Intelligence EngineeringMPS in InformaticsMPS in Applied Machine IntelligenceMS in Project ManagementMPS in AnalyticsMS in Project ManagementMS in Organizational LeadershipMPS in Analytics - NEU CanadaMBA with specializationMPS in Informatics - NEU Canada Master in Business AdministrationMS in Digital Marketing and MediaMSc Sustainable Tourism and Event ManagementMSc in Circular Economy and Sustainable InnovationMSc in Impact Finance and Fintech ManagementMS Computer ScienceMBA in Technology, Innovation and EntrepreneurshipMSc Data Science with Work PlacementMSc Global Business Management with Work Placement MBA with Work PlacementMS in Robotics and Autonomous SystemsMS in Civil EngineeringMS in Internet of ThingsMSc International Logistics and Supply Chain ManagementMBA- Business InformaticsMSc International ManagementMBA in Strategic Data Driven ManagementMSc Digital MarketingMBA Business and MarketingMSc in Sustainable Global Supply Chain ManagementMSc Digital Business Analytics MSc in International HospitalityMSc Luxury and Innovation ManagementMaster of Business Administration-International Business ManagementMS in Computer EngineeringMS in Industrial and Systems EngineeringMaster in ManagementMSc MarketingMSc Global Supply Chain ManagementMS in Information Systems and Technology with Business Intelligence and Analytics ConcentrationMSc Corporate FinanceMSc Data Analytics for BusinessMaster of Business AdministrationMaster of Business AdministrationMaster of Business AdministrationMSc in International FinanceMSc in International Management and Global LeadershipMaster of Business AdministrationBachelor of BusinessBachelor of Business AnalyticsBachelor of Information TechnologyMaster of Business AdministrationMBA Business AnalyticsMSc in Marketing Analytics and Data IntelligenceMS Biotechnology Management and EntrepreneurshipMSc in Luxury and Fashion ManagementMaster of Business Administration (90 ECTS)Bachelor of Business Administration (180 ECTS)B.Sc. Computer Science (180 ECTS) MSc in International Corporate Finance MSc in Sustainable Luxury and Creative IndustriesMSc Digital MarketingMSc Global Supply Chain Management (PGMP)MSc Marketing (PGMP)MSc Corporate Finance (PGMP)MSc Data Analytics for Business (PGMP)MS Business AnalyticsMaster of Business AdministrationMS Quantitative FinanceMS Fintech ManagementMS Business Analytics PGMPState University of New York Bachelors Program - STEM
For College Students

Matrices as Linear Transformations

$$/$$

You have now visited the fundamental ideas of matrices and linear transformations. Why are these two being taught together? The answer is simple - both of these phenomena refer to the same thing!

 

Matrices are Linear Transformations

Matrices are a time-tested, powerful tool to perform the calculations related to linear transformations. The essential point of this section is that a matrix is a linear transformation, expressed in a convenient form. While performing computations to solve linear equations, matrices are a data structure that can be easily parallelised (i.e., many arithmetic operations can be performed in parallel on a computer), and hence, is fast in its execution.

 

As an example, let's consider the following series of linear equations. 

 

5*x1 + 4*x2 + 8*x3 = 10

3*x1 + 9*x3 = 8

3*x1 + 4*x2 + 2*x3 = 5

 

This system of equations solves for some values of (x1, x2, x3). Matrices give us a very nifty way to express these equations. First, let us place all the coefficients of x1, x2 and x3 in a matrix A:

 

 

Now, x becomes the following matrix:

 

 

The right hand side is the output vector b:

 

 

 

This has given us an easy way to express the whole series of equations:

 

Thus, a system of linear equations can be expressed as a linear transformation (a matrix) applied on an input vector (x values), to get an output vector.

$$/$$

Linear Transformation: A Distortion of Space

Geometrically, a linear transformation can be interpreted as a distortion of the n-dimensional space in which the transformation is operating. This distortion is such that lines that are parallel before the distortion, remain parallel after it.

 

Let's consider a linear transformation where the basis vectors move to the following points.

(Recall that the original basis vectors  and  are present at (1, 0) and (0, 1) respectively)

 

 

This means that  moves to (2, 0) and  moves to (2, 3) as part of the linear transformation. Now, we know that linear transformations are expressed as matrices. To express a linear transform in 2D space, we can simply place the two basis vectors in two columns of a matrix. Hence, this transformation expressed by the movement of these two vectors is given by 

 

 

Applying a linear transformation on a vector, is the equivalent of finding out where a particular vector moves to when space is distorted according to the linear transformation.

 

Revisiting Matrix Operations as Transformations

We now know that a matrix is a convenient way to express a linear transformation. Let's now revisit some of the operations we previously learnt, with the new knowledge that they are operations performed on a linear transformation

 

Dot Product

Intuitively a dot product can be understood in the following way:

Let's say we have a matrix A and an input vector 'x'. The dot product dot(A, x) is the resultant output vector when a linear transformation A is applied on a vector 'x'.

 

Cross Product

Let's say we have two matrices, A and B. The cross product A X B will yield another matrix C.

 

Intuitively, a cross product can understood in the following way:

The cross product of A and B is the composition of the linear transformations expressed by matrices B and A, in that order. Let's say we have an input vector 'x'. We first apply the transformation B on x to find  (the  operator here signifies a cross product. This same notation works in NumPy too - when you create NumPy matrices using numpy.matrix(), you can cross-multiply them using this notation)

 

To the resultant vector, we then apply the transformation A. We then arrive at 

 

This whole process can be expressed as a single step, i.e. applying a single linear transformation expressed by the matrix C, which is the composition of transformations A and B.

 

 

This also brings another point to our notice - matrix cross multiplication is associative.

 

Inverse of a Matrix

If the inverse of a matrix is known, then we can very easily solve the system of linear equations. Let's say A is a matrix representing a linear transformation, and 'x' is an input vector. Let's say the output vector is 'b'. Then, by the definition of an inverse of a matrix,

 

 

Intuitively, this means that the inverse of A is the transformation you can apply to the output vector, to get back the input vector. Thus, all you need to do is multiply 'b' with the inverse, and you can find your 'x' values.

$$/$$

You could try this quick exercise: Sketch out a quick grid on paper. Then, draw the four original points on the grid and make a rectangle. Then, draw the output points on the same grid and make a rectangle using dotted lines. Does this help you visualise the transformation better?
 

What happens when certain vectors can be produced by a linear combination of certain other vectors? In the next section, you will learn about the concept of linear dependence.

 

Additional Reading

  1. Here is a fantastic video with an animation. This animation does a great job in demonstrating the distortion of space mentioned in this page
  2. Formal proof that every matrix operation is a linear transformation
  3. In-depth video on how to use the row-echelon form to manually solve a system of linear equations.