# 4.1: Introduction

- Page ID
- 9968

We use this chapter to introduce students to the algebraic structure of vectors and matrices and to introduce them to matrix computations. These matrix computations are used in the chapters "Vector Graphics", "Filtering", and "Binary Codes" to solve problems in vector graphics, filtering, and binary coding.

Vectors are introduced in the section "Vectors", along with algebraic and geometric interpretations of some fundamental vector operations and properties. The section "Inner Product and Euclidean Norm", the section "Direction Cosines", and the section "Projections" introduce inner products and their applications, including norm, direction cosines, orthogonality, and projections. Some important alternatives to the Euclidean norm are introduced in the section "Other Norms". Matrices are motivated and introduced in this section. The notation in these sections can be daunting to the beginner, so we proceed very carefully, using example after example. In the section "Solving Linear Systems of Equations" we codify the elimination procedures that students have used in high school to solve linear systems of equations. The MATLAB demonstration in Demo 2 shows how to use MATLAB to solve linear equations. The section "Circuit Analysis" shows how linear algebra and MATLAB can be used to analyze dc circuits. The numerical experiment "Circuit Design" gives students practice in building function files in MATLAB and shows how to solve a sequence of linear equations in order to design a circuit with desired properties.

Occasionally we have placed important results in the problems. We feel that students should not miss the material in Exercise 3 in "Vectors", Exercise 3 in "Inner Product and Euclidean Norm", Exercise 3 in "Projections", Exercise 1 in "Matrices", and Exercise 4 in "Matrices".

## Introduction

Linear algebra is a branch of mathematics that is used by engineers and applied scientists to design and analyze complex systems. Civil engineers use linear algebra to design and analyze load-bearing structures such as bridges. Mechanical engineers use linear algebra to design and analyze suspension systems, and electrical engineers use it to design and analyze electrical circuits. Electrical, biomedical, and aerospace engineers use linear algebra to enhance X rays, tomographs, and images from space. In this chapter and the next we study two common problems from electrical engineering and use linear algebra to solve them. The two problems are (i) electrical circuit analysis and (ii) coordinate transformations for computer graphics. The first of these applications requires us to understand the solution of linear systems of equations, and the second requires us to understand the representation of mathematical operators with matrices.

Much of linear algebra is concerned with systematic techniques for organizing and solving simultaneous linear equations by elimination and substitution. The following example illustrates the basic ideas that we intend to develop.

A woman steps onto a moving sidewalk at a large airport and stands while the moving sidewalk moves her forward at 1.2 meters/seconds. At the same time, a man begins walking against the motion of the sidewalk from the opposite end at 1.5 meters/second (relative to the sidewalk). If the moving sidewalk is 85 meters long, how far does each person travel (relative to the ground) before they pass each other?

To solve this problem, we first assign a variable to each unknown quantity. Let x1 be the distance traveled by the woman, and let x2 be the distance traveled by the man. The sum of the two distances is 85 meters, giving us one equation:

\[x_1+x_2=85 \nonumber \]

Our second equation is based on the time required before they pass. Time equals distance divided by rate, and the time is the same for both people:

\[\frac {x_1} {1.2} = \frac {x_2} {1.5−1.2} ⇒0.3x_1 − 1.2x_2 = 0 \nonumber \]

We may substitute the Equation \(\PageIndex{2}\) into the Equation \(\PageIndex{1}\) to obtain the result \(/frac {1.2} {0.3} x_2 + x_2 = 85\) or

\[5x_2=85 ⇒ x_2=17 \nonumber \]

Combining the result from Equation \(\PageIndex{3}\) with that of Equation \(\PageIndex{1}\), we find that

\[x_1=68 \nonumber \]

So the man travels 17 meters, and the woman travels 68 meters.

Equation \(\PageIndex{1}\) and Equation \(\PageIndex{2}\) are the key equations of Equation \(\PageIndex{1}\). They may be organized into the “matrix equation”

\[\begin{bmatrix} 1 & 1 \\ 0.3 & -1.2 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 85 \\ 0 \end{bmatrix} \nonumber \]

The rules for matrix-vector multiplication are evidently

\[(1)x_1+(1)x_2 = 85 \nonumber \]

\[(0.3)x_1+(−1.2)x_2 = 0 \nonumber \]

Equation \(\PageIndex{2}\) and Equation \(\PageIndex{3}\) may be organized into the matrix equation

\[\begin{bmatrix} 0 & 0 \\ 0.3 & -1.2 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 85 \\ 0 \end{bmatrix} \nonumber \]

This equation represents one partially solved form of Equation \(\PageIndex{5}\), wherein we have used the so-called Gauss elimination procedure to introduce a zero into the matrix equation in order to isolate one variable. The MATLAB software contains built-in procedures to implement Gauss elimination on much larger matrices. Thus MATLAB may be used to solve large systems of linear equations.

Before we can apply linear algebra to more interesting physical problems, we need to introduce the mathematical tools we will use.