Elementary Linear Algebra 12E (ie) 2025 Howard Anton

Table of contents

  1. Summary of Changes in This Edition
  2. About the authors
  3. Chapter 1: Systems of linear equations and matrices
  4. Gaussian Elimination Considerations in Solving Linear Systems
  5. Matrices and Matrix Operations Matrix Notation and Terminology
  6. Inverses; Algebraic Properties of Matrices Properties of Matrix Addition and Scalar Multiplication
  7. Elementary Matrices and a Method for Finding A−1 Elementary Matrices
  8. More on Linear Systems and Invertible Matrices Number of Solutions of a Linear System 9.7 Diagonal, Triangular, and Symmetric Matrices
  9. Introduction to Linear Transformations
  10. Compositions of Matrix Transformations Compositions of Matrix Transformations
  11. Applications of Linear Systems Network Analysis
  12. Balancing Chemical Equations
  13. Leontief Input–Output Models Inputs and Outputs in an Economy
  14. Evaluating Determinants by Row Reduction a Basic theorem
  15. Chapter 3: Euclidean Vector Spaces
  16. Vector and Parametric Equations of a Plane in R3 EXAMPLE 2
  17. Real Vector Spaces Vector Space Axioms
  18. Subspaces
  19. Spanning Sets
  20. Linear Independence Linear Independence and Dependence
  21. Coordinates and Basis Coordinate Systems in Linear Algebra
  22. Dimension Number of Vectors in a Basis
  23. Change of Basis Coordinate Maps
  24. Row Space, Column Space, and Null Space Matrix Spaces
  25. Chapter 5: Eigenvalues and Eigenvectors
  26. Diagonalization the Matrix Diagonalization problem
  27. Diagonalization the Matrix Diagonalization problem
  28. Complex Vector Spaces review of Complex Numbers
  29. Differential Equations
  30. Chapter 6: Inner Product Spaces
  31. Chapter 7: Diagonalization and Quadratic Forms
  32. Chapter 7 Supplementary Exercises
  33. Chapter 8: General Linear Transformations
  34. Compositions and Inverse Transformations One-to-One and Onto
  35. Isomorphism Isomorphism
  36. Matrices for General Linear Transformations Matrices of Linear Transformations
  37. effect of Changing Bases on Matrices of Linear Operators
  38. Geometry of Matrix Operators Computerized Transformations
  39. LU-Decompositions Solving Linear Systems by Factoring
  40. The Power Method The Power Method
  41. Comparison of Procedures for Solving Linear Systems Flops and the Cost of Solving a Linear System
  42. Cost estimates for Solving Large Linear Systems
  43. Chapter 9 Supplementary Exercises
  44. Data Compression Using Singular Value Decomposition reduced Singular Value Decomposition
  45. Appendix A: Working with Proofs
  46. Appendix B: Complex Numbers
  47. Chapter 10 Supplementary Exercises

1. Summary of Changes in This Edition

1.1 Primary changes in this edition

This edition introduces several key revisions to enhance the learning experience and update the content. These changes include the addition of a new application section, an earlier introduction to linear transformations, and a dedicated section on spanning sets to improve the pacing of concepts.

New examples and exercises have also been incorporated throughout the text.

  • New application section: A section on the mathematics of facial recognition has been added to Chapter 10.
  • Earlier linear transformations: Material on linear transformations previously found later in the text has been moved to Chapter 1 for an earlier, more complete introduction.
  • New section on spanning sets: Material on spanning sets has been separated from subspaces into a new Section 4.3 to slow the pace of concept introduction.
  • New examples and exercises: Additional examples and exercises have been added to support the text, particularly concerning the early introduction of linear transformations.
  • New box elements: A new feature has been introduced to highlight applications of linear algebra in emerging fields like data science, machine learning, and biological modeling 9.

1.2 Hallmark features

The textbook maintains its core pedagogical philosophy, emphasizing the interconnectedness of linear algebra concepts and providing a smooth transition to abstract ideas. It aims for mathematical precision suitable for undergraduate students and caters to a diverse audience across various scientific and business disciplines.

  • Interrelationships among concepts: The text highlights the cohesive nature of linear algebra by demonstrating relationships among systems of equations, matrices, determinants, vectors, linear transformations, and eigenvalues through theorems labeled "Equivalent Statements".
  • Smooth transition to abstraction: Significant effort is dedicated to explaining abstraction and using analogies to familiar geometric ideas to help students visualize abstract concepts.
  • Mathematical precision: Proofs are presented in a patient style tailored for beginners, balancing mathematical rigor with accessibility.
  • Suitability for a diverse audience: The text is designed to meet the needs of students in engineering, computer science, biology, physics, business, economics, and mathematics 9.
  • Historical notes: Numerous "Historical Notes" are included to provide students with a sense of mathematical history and context 10.

1.3 About the exercises

The exercise sets are structured to progressively build understanding, starting with routine problems and moving to more complex ones. They are categorized to assist instructors in assigning homework and to help students focus on specific skills.

  • Graded exercise sets: Exercises begin with drill problems, progress to substantive problems, and then offer categories for proofs, true/false questions, and technology-required problems.
  • True/false exercises: These exercises assess conceptual understanding and logical reasoning, requiring justification for responses to prevent pure guesswork.
  • Proof exercises: Grouped for easy identification, these exercises cater to courses with varying emphasis on proofs, with guidance provided in Appendix A.
  • Technology exercises: These exercises are also grouped, with supporting data files available online to reduce student typing burden.
  • Supplementary exercises: Each chapter concludes with a set of exercises that cover all sections within that chapter 10.

1.4 Supplementary materials for students

A variety of resources are available to support students, including detailed solutions, data files for technology exercises, and instructional videos on proofs.

  • Student Solutions Manual: Provides detailed solutions for most odd-numbered exercises.
  • Data Files: Maple, Mathematica, MATLAB, and CSV data files are available for technology exercises.
  • How to Read and Do Proofs: A series of videos by Prof. Daniel Solow offers strategies for proving theorems.
  • MATLAB Linear Algebra Manual and Laboratory Projects: A supplement with laboratory projects designed to teach linear algebra concepts using MATLAB, available free to students adopting the international edition 10.

📝 Data files in Maple, Mathematica, MATLAB, and CSV formats are available for technology exercises 10.

1.5 Supplementary materials for instructors

Instructors have access to comprehensive resources to aid in course preparation and assessment.

  • Instructor Solutions Manual: Offers worked-out solutions to most exercises in the text.
  • Test Bank: Includes test questions and sample examinations in PDF or LaTeX format.
  • Image Gallery: A digital repository of images from the text for creating PowerPoint slides 10.

1.6 A guide for the instructor

The text provides suggested course templates for instructors, catering to different lecture durations and allowing for customization based on specific interests and requirements.

  • Long Template: Designed for approximately 40 lectures, covering chapters on systems of linear equations, determinants, Euclidean and general vector spaces, eigenvalues, inner product spaces, diagonalization, linear transformations, and numerical methods.
  • Short Template: Designed for approximately 30 lectures, offering a condensed coverage of the same core chapters 11.
  • Applications: Neither template explicitly includes applications, which instructors may need to integrate separately 10.

1.7 Reviewers

The development of this edition benefited from the expertise of numerous professors who provided critical feedback and pedagogical advice.

  • Reviewers: A list of professors who reviewed the plans and content, offering insightful suggestions 11.

1.8 Special contributions

Several individuals made significant contributions to the accuracy and production of this edition.

  • Prof. Mark Smith: Critiqued the FlashCard program and suggested improvements to the text exposition.
  • Prof. Derek Hein: Helped correct subtle inaccuracies in the manuscript.
  • Susan Raley: Coordinated the production process, ensuring smooth project management.
  • Prof. Roger Lipsett: Provided mathematical expertise and a detailed review of the manuscript for accuracy.
  • The Wiley Team: A group of individuals whose combined experience and skill contributed to the project 11.

2. About the authors

2.1 Howard Anton

Howard Anton holds a Ph.D. in mathematics from the Polytechnic Institute of Brooklyn. He previously worked on mathematical problems for the manned space program at Burroughs Corporation and taught at Drexel University.

Dr. Anton has since focused on textbook writing and has authored numerous research papers. His textbooks are widely used globally, with over 200 versions and translations into multiple languages.

He also served as president of the Eastern Pennsylvania and Delaware Section of the Mathematical Association of America 13.

2.2 Chris Rorres

Chris Rorres earned his Ph.D. from the Courant Institute of New York University and was a mathematics faculty member at Drexel University for over 30 years. His research spans various fields, including solar engineering, acoustic scattering, and population dynamics.

After retiring from Drexel, he worked on mathematical modeling of animal epidemics at the University of Pennsylvania. Dr. Rorres is a recognized expert on Archimedes, maintaining an acclaimed website about him and organizing a world conference on the subject 13.

📝 Chris Rorres's research spans fields such as solar engineering, acoustic scattering, and population dynamics, and he worked on mathematical modeling of animal epidemics 13.

2.3 Anton Kaul

Anton Kaul received his Ph.D. from Oregon State University and is currently a professor in the Mathematics Department at Cal Poly, San Luis Obispo. His academic career includes positions at the University of South Florida and Tufts University.

Dr. Kaul's research interests include geometric group theory, with published articles on Coxeter groups. He also contributes to mathematics textbook writing 13.

3. Chapter 1: Systems of linear equations and matrices

3.1 Introduction to systems of linear equations

A linear equation is an equation where variables appear only to the first power and are not part of products or functions like sine or logarithms. A system of linear equations is a finite set of such equations, with the variables referred to as unknowns.

Every linear system has either zero, one, or infinitely many solutions.

3.2 Linear equations

  • A linear equation in nn variables x1,x2,…,xnx_1, x_2, \dots, x_n has the form a1x1+a2x2+⋯+anxn=ba_1x_1 + a_2x_2 + \dots + a_nx_n = b, where a1,…,ana_1, \dots, a_n and bb are constants, and not all aia_i are zero.
  • When b=0b=0, the equation a1x1+a2x2+⋯+anxn=0a_1x_1 + a_2x_2 + \dots + a_nx_n = 0 is called a homogeneous linear equation.
  • Examples of linear equations include x+3y=7x + 3y = 7 and x1−2x2−3x3+x4=0x_1 - 2x_2 - 3x_3 + x_4 = 0.
  • Non-examples include x+3y2=4x + 3y^2 = 4 and sin⁡x+y=0\sin x + y = 0 because they involve powers of variables or functions of variables 18.

3.3 Linear systems

  • A linear system is a finite set of linear equations with common unknowns.
  • A solution to a linear system is a sequence of numbers that satisfies every equation in the system when substituted for the unknowns.
  • Solutions can be represented as ordered nn-tuples, such as (s1,s2,…,sn)(s_1, s_2, \dots, s_n) 19.

3.4 Linear systems in two and three unknowns

  • In two unknowns, linear equations represent lines; their solutions correspond to intersection points 19.
  • In three unknowns, linear equations represent planes; their solutions correspond to common intersection points of these planes.
  • A linear system is consistent if it has at least one solution and inconsistent if it has no solutions.
  • Every system of linear equations has zero, one, or infinitely many solutions 20.

3.5 Number of solutions for linear systems 20

System TypeGeometric InterpretationNumber of Solutions
Two equations in two unknownsLines in a planeZero (parallel distinct lines), One (intersecting lines), Infinitely many (coincident lines)
Three equations in three unknownsPlanes in spaceZero (no common intersection), One (common intersection point), Infinitely many (common intersection line or plane)

3.6 Solving linear systems

  • The goal is to perform algebraic operations that simplify the system without changing its solution set.
  • The three elementary operations are: multiplying an equation by a nonzero constant, interchanging two equations, and adding a constant multiple of one equation to another 23.

3.7 Examples of solving linear systems

  • Example 2: A system with no solution results in a contradiction, like 0=−60 = -6.
  • Example 3: A system with infinitely many solutions results in an identity, like 0=00 = 0, indicating the equations are dependent.
  • Example 4: For systems with infinitely many solutions, parametric equations can describe the solution set using arbitrary parameters 21.
  • Example 5: In systems with dependent equations, one equation can be expressed as a multiple of another, leading to infinitely many solutions described by parametric equations 22.

📝 Solve the linear system: x−y=1x - y = 1 2x+y=62x + y = 6

Add −2-2 times the first equation to the second: x−y=1x - y = 1 3y=43y = 4

From the second equation, y=43y = \frac{4}{3}. Substitute into the first: x−43=1  ⟹  x=1+43=73x - \frac{4}{3} = 1 \implies x = 1 + \frac{4}{3} = \frac{7}{3}. The unique solution is (73,43)(\frac{7}{3}, \frac{4}{3}) 21.

3.8 Gaussian elimination

Gaussian elimination is a systematic method for solving linear systems using elementary row operations on an augmented matrix. This process transforms the augmented matrix into a simpler form, typically row echelon form, from which the solution can be easily determined.

3.9 Augmented matrices and elementary row operations

  • An augmented matrix is a rectangular array of numbers representing the coefficients and constants of a linear system 22.
  • The rows of the augmented matrix correspond to the equations in the system.
  • Elementary row operations are operations performed on the rows of an augmented matrix that do not change the solution set of the corresponding linear system 23.
  1. Multiply a row by a nonzero constant.
  2. Interchange two rows.
  3. Add a constant multiple of one row to another row.

3.10 Elementary row operations 23

Operation on EquationsCorresponding Operation on Augmented Matrix Rows
Multiply an equation by a nonzero constantMultiply a row by a nonzero constant
Interchange two equationsInterchange two rows
Add a constant times one equation to anotherAdd a constant times one row to another
  • The historical use of augmented matrices dates back to ancient China, with the modern concept formalized by Maxime Bôcher in 1907 23.

3.11 Using elementary row operations

  • Example 6: This example demonstrates solving a system of three linear equations in three unknowns by applying elementary row operations to the augmented matrix. The process systematically eliminates variables to reveal the solution 23.
  • The goal is to transform the augmented matrix into a form where the solution is evident, often resembling the identity matrix for a unique solution 24.

📝 Solve the linear system using elementary row operations: x−y+2z=5x - y + 2z = 5 2x−2y+4z=102x - 2y + 4z = 10 3x−3y+6z=153x - 3y + 6z = 15

The augmented matrix is: [1−12∣52−24∣103−36∣15]\begin{bmatrix} 1 & -1 & 2 & | & 5 \\ 2 & -2 & 4 & | & 10 \\ 3 & -3 & 6 & | & 15 \end{bmatrix}

Applying row operations: R2←R2−2R1R_2 \leftarrow R_2 - 2R_1 and R3←R3−3R1R_3 \leftarrow R_3 - 3R_1 yields: [1−12∣5000∣0000∣0]\begin{bmatrix} 1 & -1 & 2 & | & 5 \\ 0 & 0 & 0 & | & 0 \\ 0 & 0 & 0 & | & 0 \end{bmatrix}

This indicates that the system has infinitely many solutions, as the second and third equations are dependent on the first. The solutions satisfy x−y+2z=5x - y + 2z = 5. Letting y=ry=r and z=sz=s, we get x=5+r−2sx = 5 + r - 2s. The solution set is (5+r−2s,r,s)(5+r-2s, r, s) 22 24.

4. Gaussian Elimination Considerations in Solving Linear Systems

4.1 Row Echelon and Reduced Row Echelon Form

A systematic procedure for solving systems of linear equations involves transforming the augmented matrix into a simplified form using elementary row operations. This simplified form allows the solution to be determined by inspection.

The target forms are row echelon form and reduced row echelon form.

A matrix is in reduced row echelon form if it satisfies four properties:

  • The first nonzero entry in any row (the leading 1) is 1.
  • Any rows consisting entirely of zeros are at the bottom.
  • In successive nonzero rows, the leading 1 in the lower row is farther to the right.
  • Each column containing a leading 1 has zeros everywhere else.

A matrix with the first three properties is in row echelon form. Matrices in row echelon form have zeros below each leading 1, while matrices in reduced row echelon form have zeros both above and below each leading 1.

FormProperties
Row Echelon Form1. Leading entry is 1.; 2. Zero rows at the bottom.; 3. Leading 1 in lower row is to the right of leading 1 in upper row.
Reduced Row Echelon FormAll properties of row echelon form, plus:; 4. Each column with a leading 1 has zeros everywhere else.

4.2 Linear Systems in Three Unknowns

The form of the reduced row echelon matrix directly indicates the nature of the solution set for a linear system.

  • Inconsistent systems arise when a row in the reduced matrix corresponds to an equation like 0x+0y+0z=10x + 0y + 0z = 1, which is impossible to satisfy.
  • Consistent systems can have unique or infinitely many solutions.
  • Unique solutions occur when the number of leading variables equals the number of unknowns, and there are no inconsistent rows.
  • Infinitely many solutions arise when there are free variables (variables not corresponding to leading 1s). These free variables can be assigned arbitrary parameter values (e.g., tt, ss) to generate all possible solutions. The solution set can be expressed parametrically.

📝 The system is inconsistent because the last row of the reduced matrix corresponds to the equation 0x+0y+0z=10x + 0y + 0z = 1 29.

4.3 Elimination Methods

The process of reducing a matrix to reduced row echelon form involves a systematic algorithm:

  1. Locate the leftmost nonzero column.
  2. Interchange rows if necessary to bring a nonzero entry to the top of this column.
  3. Introduce a leading 1 by multiplying the top row by the reciprocal of the pivot element.
  4. Introduce zeros below the leading 1 by adding suitable multiples of the top row to the rows below.
  5. Cover the top row and repeat steps 1-4 on the remaining submatrix until the matrix is in row echelon form.
  6. Introduce zeros above the leading 1s by working upward from the last nonzero row, adding suitable multiples of each row to the rows above.

This algorithm is known as Gauss–Jordan elimination. If only steps 1-5 are performed, the result is Gaussian elimination, producing a row echelon form.

4.4 Homogeneous Linear Systems

A system of linear equations is homogeneous if all constant terms are zero. Every homogeneous system has at least the trivial solution (x1=0,x2=0,…,xn=0x_1 = 0, x_2 = 0, \dots, x_n = 0).

  • If a homogeneous system has only the trivial solution, it is consistent.
  • If a homogeneous system has nontrivial solutions, it has infinitely many solutions.

📝 The system has infinitely many solutions because the free variable zz can be assigned an arbitrary value tt, leading to parametric equations x=−1−3tx = -1 - 3t, y=2+4ty = 2 + 4t, z=tz = t 29.

4.5 Free Variables in Homogeneous Linear Systems

For a homogeneous linear system with nn unknowns, if the reduced row echelon form of its augmented matrix has rr nonzero rows, then the system has n−rn-r free variables.

  • Theorem 1.2.1: A homogeneous linear system with more unknowns than equations has infinitely many solutions. This is because if m<nm < n, then r≤m<nr \le m < n, ensuring at least one free variable (n−r>0n-r > 0).
  • Elementary row operations do not change columns of zeros, so the reduced row echelon form of a homogeneous system's augmented matrix also has a column of zeros.

4.6 Gaussian Elimination and Back-Substitution

For large systems solved by computer, Gaussian elimination (reducing to row echelon form) followed by back-substitution is often more efficient than Gauss–Jordan elimination.

The process involves:

  1. Reducing the augmented matrix to row echelon form.
  2. Solving for the leading variables in terms of the free variables, starting from the bottom equation and working upwards.
  3. Substituting these expressions into the equations above to express all leading variables in terms of the free variables.
  4. Assigning arbitrary values to the free variables to obtain the general solution.

4.7 Some Facts About Echelon Forms

  • Uniqueness of Reduced Row Echelon Form: Every matrix has a unique reduced row echelon form, regardless of the sequence of elementary row operations used.
  • Non-uniqueness of Row Echelon Form: Different sequences of row operations can lead to different row echelon forms for the same matrix.
  • Pivot Positions: While row echelon forms are not unique, all row echelon forms of a matrix share the same number of zero rows and the same positions for leading 1s. These are called pivot positions. Columns containing leading 1s are pivot columns, and the nonzero entries in pivot positions are pivots. Pivot columns identify the leading variables.
Matrix TypeSolution Characteristics
Inconsistent SystemCorresponds to a row [0 0... 0
Consistent System with Unique SolutionNumber of leading variables equals the number of unknowns; no inconsistent rows.
Consistent System with Infinitely Many SolutionsPresence of free variables (variables not corresponding to leading 1s).

4.8 Roundoff Error and Instability

In practical computer implementations, roundoff errors can accumulate during calculations, potentially leading to unstable algorithms where the accuracy of the solution degrades significantly. Gauss–Jordan elimination generally involves more operations than Gaussian elimination, making the latter often preferred for large systems.

Techniques exist to minimize these errors.

5. Matrices and Matrix Operations Matrix Notation and Terminology

5.1 Matrix Notation and Terminology

A matrix is a rectangular array of numbers, where these numbers are called entries. The size of a matrix is described by its number of rows and columns, written as "rows × columns."

A matrix with one row is a row vector, and one with one column is a column vector. Numerical quantities are referred to as scalars, typically real numbers.

  • Matrix entries: The entry in row ii and column jj of a matrix AA is denoted by aija_{ij} or (A)ij(A)_{ij}.
  • General matrix notation: An m×nm \times n matrix can be written as A=[aij]m×nA = [a_{ij}]_{m \times n} or simply A=[aij]A = [a_{ij}].
  • Row and column vectors: These special matrices are often denoted by boldface lowercase letters, like a\mathbf{a} for a row vector and b\mathbf{b} for a column vector.
  • Square matrix: A matrix with an equal number of rows and columns (n×nn \times n) is called a square matrix of order nn.
  • Main diagonal: The entries a11,a22,…,anna_{11}, a_{22}, \ldots, a_{nn} in a square matrix form its main diagonal.

5.2 Equality of Matrices

Two matrices are considered equal if they have the same dimensions (size) and all their corresponding entries are identical.

5.3 Addition and Subtraction

Matrices can be added or subtracted only if they have the same size. The resulting matrix is obtained by adding or subtracting the corresponding entries of the original matrices.

  • Addition: If AA and BB are matrices of the same size, their sum A+BA + B has entries (A+B)ij=aij+bij(A + B)_{ij} = a_{ij} + b_{ij}.
  • Subtraction: If AA and BB are matrices of the same size, their difference A−BA - B has entries (A−B)ij=aij−bij(A - B)_{ij} = a_{ij} - b_{ij}.
  • Undefined operations: Matrices of different sizes cannot be added or subtracted.

5.4 Scalar Multiples

The product of a scalar cc and a matrix AA, denoted cAcA, is obtained by multiplying each entry of AA by cc. The resulting matrix cAcA is called a scalar multiple of AA.

  • Scalar multiplication: If A=[aij]A = [a_{ij}], then (cA)ij=c⋅aij(cA)_{ij} = c \cdot a_{ij}.

5.5 Multiplying Matrices

The product of an m×rm \times r matrix AA and an r×nr \times n matrix BB, denoted ABAB, results in an m×nm \times n matrix. The number of columns in the first matrix must equal the number of rows in the second matrix for the product to be defined.

  • Definition of matrix product: The entry in row ii and column jj of ABAB, denoted (AB)ij(AB)_{ij}, is found by multiplying the entries of row ii of AA by the corresponding entries of column jj of BB and summing these products.
  • Row-column rule: (AB)ij=ai1b1j+ai2b2j+⋯+airbrj=∑k=1raikbkj(AB)_{ij} = a_{i1}b_{1j} + a_{i2}b_{2j} + \cdots + a_{ir}b_{rj} = \sum_{k=1}^{r} a_{ik}b_{kj}.
  • Condition for multiplication: For the product ABAB to be defined, the number of columns in AA must equal the number of rows in BB. If AA is m×rm \times r and BB is r×nr \times n, then ABAB is m×nm \times n.

5.6 📝 Example: Multiplying Matrices

Consider matrices AA (2x3) and BB (3x4). The product ABAB will be a 2x4 matrix.

To find the entry in row 2, column 3 of ABAB, we take row 2 of AA and column 3 of BB, multiply corresponding entries, and sum them: (2×4)+(6×3)+(0×5)=8+18+0=26(2 \times 4) + (6 \times 3) + (0 \times 5) = 8 + 18 + 0 = 26 45.

5.7 Partitioned Matrices

A matrix can be divided into smaller matrices called submatrices by inserting horizontal and vertical lines. This partitioning can be done by rows, columns, or a combination of both.

  • Partitioning into submatrices: A matrix can be viewed as an array of smaller matrices.
  • Partitioning into row vectors: A matrix can be partitioned into its individual row vectors.
  • Partitioning into column vectors: A matrix can be partitioned into its individual column vectors.

5.8 Matrix Multiplication by Columns and by Rows

Partitioning allows for calculating specific rows or columns of a matrix product without computing the entire product.

  • Column-wise product: The jjth column vector of ABAB is obtained by multiplying matrix AA by the jjth column vector of BB (AbjAb_j).
  • Row-wise product: The iith row vector of ABAB is obtained by multiplying the iith row vector of AA by matrix BB (riBr_iB).

5.9 Matrix Products as Linear Combinations

Matrix multiplication can be interpreted as forming a linear combination of column vectors.

  • Linear combination of matrices: An expression of the form c1A1+c2A2+⋯+crArc_1A_1 + c_2A_2 + \cdots + c_rA_r, where AiA_i are matrices of the same size and cic_i are scalars, is a linear combination.
  • Product Ax as linear combination: If AA is an m×nm \times n matrix and x\mathbf{x} is an n×1n \times 1 column vector, then AxA\mathbf{x} is a linear combination of the column vectors of AA, with the entries of x\mathbf{x} as the coefficients 48.

5.10 📝 Example: Matrix Products as Linear Combinations

The product AxA\mathbf{x} can be expressed as a linear combination of the column vectors of AA, where the coefficients are the entries of x\mathbf{x}. For example, if A=[a11a12a21a22]A = \begin{bmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{bmatrix} and x=[x1x2]\mathbf{x} = \begin{bmatrix} x_1 \\ x_2 \end{bmatrix}, then Ax=x1[a11a21]+x2[a12a22]A\mathbf{x} = x_1 \begin{bmatrix} a_{11} \\ a_{21} \end{bmatrix} + x_2 \begin{bmatrix} a_{12} \\ a_{22} \end{bmatrix} 48.

5.11 Column-Row Expansion

Matrix multiplication can also be viewed as a sum of products of column vectors from the first matrix and row vectors from the second matrix.

  • Column-row expansion formula: If AA is partitioned into column vectors c1,…,crc_1, \ldots, c_r and BB is partitioned into row vectors r1,…,rrr_1, \ldots, r_r, then AB=c1r1+c2r2+⋯+crrrAB = c_1r_1 + c_2r_2 + \cdots + c_rr_r.
  • Verification: The entry in row ii and column jj of the sum c1r1+⋯+crrrc_1r_1 + \cdots + c_rr_r matches the entry (AB)ij(AB)_{ij} calculated by the row-column rule.

5.12 📝 Example: Column-Row Expansion

To find the column-row expansion of ABAB, where A=[21−34]A = \begin{bmatrix} 2 & 1 \\ -3 & 4 \end{bmatrix} and B=[3102]B = \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}, we identify the column vectors of AA as c1=[2−3]c_1 = \begin{bmatrix} 2 \\ -3 \end{bmatrix} and c2=[14]c_2 = \begin{bmatrix} 1 \\ 4 \end{bmatrix}, and the row vectors of BB as r1=[31]r_1 = \begin{bmatrix} 3 & 1 \end{bmatrix} and r2=[02]r_2 = \begin{bmatrix} 0 & 2 \end{bmatrix}. The expansion is AB=c1r1+c2r2=[2−3][31]+[14][02]AB = c_1r_1 + c_2r_2 = \begin{bmatrix} 2 \\ -3 \end{bmatrix}\begin{bmatrix} 3 & 1 \end{bmatrix} + \begin{bmatrix} 1 \\ 4 \end{bmatrix}\begin{bmatrix} 0 & 2 \end{bmatrix} 50.

5.13 Matrix Form of a Linear System

A system of linear equations can be concisely represented as a single matrix equation of the form Ax=bAx = b.

  • Coefficient matrix: In the system Ax=bAx = b, the matrix AA is called the coefficient matrix.
  • Augmented matrix: The augmented matrix for the system is formed by adjoining the column vector bb to the coefficient matrix AA, written as [A∣b][A | b].

5.14 Transpose of a Matrix

The transpose of a matrix AA, denoted ATA^T, is obtained by interchanging its rows and columns. If AA is an m×nm \times n matrix, then ATA^T is an n×mn \times m matrix.

  • Definition of transpose: The entry in row ii and column jj of ATA^T is the entry in row jj and column ii of AA, i.e., (AT)ij=aji(A^T)_{ij} = a_{ji}.
  • Interchanging rows and columns: The columns of ATA^T are the rows of AA, and the rows of ATA^T are the columns of AA.
  • Transpose of a square matrix: For a square matrix, the transpose can be found by reflecting entries symmetrically about the main diagonal.

5.15 📝 Example: Transpose of a Matrix

If A=[123456789]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}, its transpose is AT=[147258369]A^T = \begin{bmatrix} 1 & 4 & 7 \\ 2 & 5 & 8 \\ 3 & 6 & 9 \end{bmatrix} 51.

5.16 Trace of a Matrix

The trace of a square matrix AA, denoted tr(A)\text{tr}(A), is the sum of the entries on its main diagonal. The trace is only defined for square matrices.

  • Definition of trace: For a square matrix A=[aij]A = [a_{ij}], tr(A)=a11+a22+⋯+ann\text{tr}(A) = a_{11} + a_{22} + \cdots + a_{nn}.
  • Undefined trace: The trace is undefined for non-square matrices.

5.17 📝 Example: Trace of a Matrix

For matrix A=[123456789]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}, the trace is tr(A)=1+5+9=15\text{tr}(A) = 1 + 5 + 9 = 15. For matrix B=[−1357]B = \begin{bmatrix} -1 & 3 \\ 5 & 7 \end{bmatrix}, the trace is tr(B)=−1+7=6\text{tr}(B) = -1 + 7 = 6 52.

6. Inverses; Algebraic Properties of Matrices Properties of Matrix Addition and Scalar Multiplication

6.1 Properties of matrix arithmetic 56

The basic algebraic properties of matrix operations are listed in Theorem 1.4.1. These properties include the commutative and associative laws for matrix addition, the associative law for matrix multiplication, and the distributive laws.

PropertyDescription
A + B = B + ACommutative law for matrix addition
A + (B + C) = (A + B) + CAssociative law for matrix addition
A(BC) = (AB)CAssociative law for matrix multiplication
A(B + C) = AB + ACLeft distributive law
(B + C)A = BA + CARight distributive law
A(B − C) = AB − ACLeft distributive law for subtraction
(B − C)A = BA − CARight distributive law for subtraction
a(B + C) = aB + aCScalar distributive law
a(B − C) = aB − aCScalar distributive law for subtraction
(a + b)C = aC + bCScalar addition property
(a − b)C = aC − bCScalar subtraction property
a(bC) = (ab)CScalar associative property
a(BC) = (aB)C = B(aC)Scalar multiplication property

The proof for the left distributive law, A(B+C)=AB+ACA(B + C) = AB + AC, involves showing that both sides have the same dimensions and that their corresponding entries are equal. For matrices AA (r×mr \times m), BB (m×nm \times n), and CC (m×nm \times n), the product A(B+C)A(B+C) is r×nr \times n.

The sum AB+ACAB + AC is also r×nr \times n. The equality of entries (A(B+C))ij=(AB+AC)ij(A(B + C))_{ij} = (AB + AC)_{ij} is shown by expanding the definitions of matrix addition and multiplication 57.

6.2 Properties of matrix multiplication

Matrix multiplication is not commutative in general, meaning AB≠BAAB \neq BA. This can occur because:

  • ABAB may be defined while BABA is not.
  • ABAB and BABA may have different sizes.
  • ABAB and BABA may have the same size but different entries.

📝 Consider the matrices A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[0123]B = \begin{bmatrix} 0 & 1 \\ 2 & 3 \end{bmatrix}. Multiplying gives AB=[47813]AB = \begin{bmatrix} 4 & 7 \\ 8 & 13 \end{bmatrix} and BA=[34914]BA = \begin{bmatrix} 3 & 4 \\ 9 & 14 \end{bmatrix}. Thus, AB≠BAAB \neq BA 58.

6.3 Order matters in matrix multiplication EXAMPLE 2

Consider the matrices A=[1234]A = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix} and B=[0123]B = \begin{bmatrix} 0 & 1 \\ 2 & 3 \end{bmatrix}. Multiplying gives AB=[47813]AB = \begin{bmatrix} 4 & 7 \\ 8 & 13 \end{bmatrix} and BA=[34914]BA = \begin{bmatrix} 3 & 4 \\ 9 & 14 \end{bmatrix}.

Thus, AB≠BAAB \neq BA 58.

6.4 Zero matrices 58

A zero matrix has all its entries equal to zero. It is denoted by 00 or 0m×n0_{m \times n} for a specific size.

The zero matrix acts as the additive identity, meaning A+0=0+A=AA + 0 = 0 + A = A.

PropertyDescription
A + 0 = 0 + A = AAdditive identity
A - 0 = ASubtraction of zero
A - A = 0Additive inverse
0A = 0Zero matrix property
If cA = 0, then c = 0 or A = 0Zero product property

📝 Let A=[1122]A = \begin{bmatrix} 1 & 1 \\ 2 & 2 \end{bmatrix}, B=[1234]B = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, and C=[2013]C = \begin{bmatrix} 2 & 0 \\ 1 & 3 \end{bmatrix}. Then AB=[35610]AB = \begin{bmatrix} 3 & 5 \\ 6 & 10 \end{bmatrix} and AC=[35610]AC = \begin{bmatrix} 3 & 5 \\ 6 & 10 \end{bmatrix}. Here AB=ACAB = AC and A≠0A \neq 0, but B≠CB \neq C 59.

6.5 Failure of cancellation and zero product laws

The cancellation law (ab=acab = ac and a≠0a \neq 0 implies b=cb = c) and the zero product law (ab=0ab = 0 implies a=0a = 0 or b=0b = 0) do not generally hold for matrix multiplication.

6.6 Failure of the cancellation law EXAMPLE 3

Let A=[1122]A = \begin{bmatrix} 1 & 1 \\ 2 & 2 \end{bmatrix}, B=[1234]B = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, and C=[2013]C = \begin{bmatrix} 2 & 0 \\ 1 & 3 \end{bmatrix}. Then AB=[35610]AB = \begin{bmatrix} 3 & 5 \\ 6 & 10 \end{bmatrix} and AC=[35610]AC = \begin{bmatrix} 3 & 5 \\ 6 & 10 \end{bmatrix}.

Here AB=ACAB = AC and A≠0A \neq 0, but B≠CB \neq C 59.

6.7 A zero product with nonzero factors EXAMPLE 4

Consider A=[1224]A = \begin{bmatrix} 1 & 2 \\ 2 & 4 \end{bmatrix} and B=[−221−1]B = \begin{bmatrix} -2 & 2 \\ 1 & -1 \end{bmatrix}. Then AB=[0000]AB = \begin{bmatrix} 0 & 0 \\ 0 & 0 \end{bmatrix}, but A≠0A \neq 0 and B≠0B \neq 0 59.

6.8 Identity matrices

An identity matrix (II or InI_n) is a square matrix with 1s on the main diagonal and 0s elsewhere. It acts as the multiplicative identity: AIn=AAI_n = A and ImA=AI_m A = A 60.

Theorem 1.4.3 states that the reduced row echelon form of an n×nn \times n matrix AA is either the identity matrix InI_n or a matrix with at least one row of zeros 60.

6.9 Inverse of a matrix

A square matrix AA is invertible (or nonsingular) if there exists a matrix BB such that AB=BA=IAB = BA = I. The matrix BB is called the inverse of AA, denoted A−1A^{-1}.

If no such matrix exists, AA is singular 60.

6.10 Properties of inverses

An invertible matrix has a unique inverse. If BB and CC are both inverses of AA, then B=CB = C 61.

6.11 An invertible matrix EXAMPLE 5

Let A=[3512]A = \begin{bmatrix} 3 & 5 \\ 1 & 2 \end{bmatrix} and B=[2−5−13]B = \begin{bmatrix} 2 & -5 \\ -1 & 3 \end{bmatrix}. Then AB=[1001]=IAB = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I and BA=[1001]=IBA = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I.

Thus, AA and BB are inverses 61.

A matrix with a row or column of zeros is singular 61.

6.12 A class of singular matrices EXAMPLE 6 62

The matrix A=[123456000]A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 0 & 0 & 0 \end{bmatrix} is singular because its third row is zero. For any 3×33 \times 3 matrix BB, the product BABA will have a third row of zeros, so BA≠IBA \neq I 61.

Theorem 1.4.5 provides a condition for a 2×22 \times 2 matrix to be invertible and a formula for its inverse. For A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, AA is invertible if and only if its determinant, ad−bcad - bc, is nonzero.

If invertible, its inverse is A−1=1ad−bc[d−b−ca]A^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix} 62.

MatrixDeterminantInverse
A=[ab cd]A = \begin{bmatrix} a & b \ c & d \end{bmatrix}det(A)=ad−bcdet(A) = ad - bcA−1=1ad−bc[d−b −ca]A^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \ -c & a \end{bmatrix} (if ad−bc≠0ad-bc \neq 0)

6.13 Calculating the inverse of a 2 × 2 matrix EXAMPLE 7

(a) For A=[6512]A = \begin{bmatrix} 6 & 5 \\ 1 & 2 \end{bmatrix}, det(A)=(6)(2)−(5)(1)=7det(A) = (6)(2) - (5)(1) = 7. A−1=17[2−5−16]=[2/7−5/7−1/76/7]A^{-1} = \frac{1}{7} \begin{bmatrix} 2 & -5 \\ -1 & 6 \end{bmatrix} = \begin{bmatrix} 2/7 & -5/7 \\ -1/7 & 6/7 \end{bmatrix}. (b) For A=[−123−6]A = \begin{bmatrix} -1 & 2 \\ 3 & -6 \end{bmatrix}, det(A)=(−1)(−6)−(2)(3)=0det(A) = (-1)(-6) - (2)(3) = 0. The matrix is not invertible 62.

6.14 Solution of a linear system by matrix inversion EXAMPLE 8

The system u=ax+byu = ax + by and v=cx+dyv = cx + dy can be written as [uv]=[abcd][xy]\begin{bmatrix} u \\ v \end{bmatrix} = \begin{bmatrix} a & b \\ c & d \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix}. If A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix} is invertible, then [xy]=A−1[uv]\begin{bmatrix} x \\ y \end{bmatrix} = A^{-1} \begin{bmatrix} u \\ v \end{bmatrix}.

Using the formula for A−1A^{-1}, we get x=du−bvad−bcx = \frac{du - bv}{ad-bc} and y=−cu+avad−bcy = \frac{-cu + av}{ad-bc} 62 63.

Theorem 1.4.6 states that if AA and BB are invertible matrices of the same size, then their product ABAB is also invertible, and (AB)−1=B−1A−1(AB)^{-1} = B^{-1}A^{-1}. This extends to any number of invertible factors: the inverse of a product is the product of the inverses in reverse order 63.

6.15 Powers of a matrix

For a square matrix AA, nonnegative integer powers are defined as A0=IA^0 = I and An=A⋅A⋯AA^n = A \cdot A \cdots A (nn factors). If AA is invertible, negative integer powers are A−n=(A−1)nA^{-n} = (A^{-1})^n.

The usual laws of exponents, such as ArAs=Ar+sA^r A^s = A^{r+s} and (Ar)s=Ars(A^r)^s = A^{rs}, hold 64.

Theorem 1.4.7 lists properties of powers and scalar multiples of invertible matrices:

  • (A−1)−1=A(A^{-1})^{-1} = A
  • (An)−1=A−n=(A−1)n(A^n)^{-1} = A^{-n} = (A^{-1})^n
  • (kA)−1=k−1A−1(kA)^{-1} = k^{-1}A^{-1} for any nonzero scalar kk.

6.16 Properties of exponents EXAMPLE 10

Let A=[1110]A = \begin{bmatrix} 1 & 1 \\ 1 & 0 \end{bmatrix} and B=[0110]B = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix}. Then A2=[2111]A^2 = \begin{bmatrix} 2 & 1 \\ 1 & 1 \end{bmatrix}, B2=[1001]=IB^2 = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = I. (AB)−1=B−1A−1=BI−1A−1=BA−1(AB)^{-1} = B^{-1}A^{-1} = BI^{-1}A^{-1} = BA^{-1}. A−1=[011−1]A^{-1} = \begin{bmatrix} 0 & 1 \\ 1 & -1 \end{bmatrix}. BA−1=[0110][011−1]=[1−101]BA^{-1} = \begin{bmatrix} 0 & 1 \\ 1 & 0 \end{bmatrix} \begin{bmatrix} 0 & 1 \\ 1 & -1 \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}. (AB)−1=[1−101](AB)^{-1} = \begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix} 64.

6.17 Matrix polynomials

A matrix polynomial p(A)p(A) is formed by substituting a square matrix AA for the variable xx in a polynomial p(x)=a0+a1x+⋯+amxmp(x) = a_0 + a_1x + \dots + a_mx^m, where the constant term a0a_0 is replaced by a0Ia_0I. Thus, p(A)=a0I+a1A+⋯+amAmp(A) = a_0I + a_1A + \dots + a_mA^m 65.

6.18 The square of a matrix sum EXAMPLE 11

Unlike scalar arithmetic, (A+B)2=A2+AB+BA+B2(A+B)^2 = A^2 + AB + BA + B^2 because matrix multiplication is not commutative. If AA and BB commute (AB=BAAB = BA), then (A+B)2=A2+2AB+B2(A+B)^2 = A^2 + 2AB + B^2 65.

6.19 A matrix polynomial EXAMPLE 12

Let A=[1121]A = \begin{bmatrix} 1 & 1 \\ 2 & 1 \end{bmatrix} and p(x)=x2−2x−1p(x) = x^2 - 2x - 1. p(A)=A2−2A−I=[3223]−2[1121]−[1001]=[3223]−[2242]−[1001]=[00−20]p(A) = A^2 - 2A - I = \begin{bmatrix} 3 & 2 \\ 2 & 3 \end{bmatrix} - 2\begin{bmatrix} 1 & 1 \\ 2 & 1 \end{bmatrix} - \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 3 & 2 \\ 2 & 3 \end{bmatrix} - \begin{bmatrix} 2 & 2 \\ 4 & 2 \end{bmatrix} - \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 0 & 0 \\ -2 & 0 \end{bmatrix} 65.

6.20 Properties of the transpose 66

The transpose of a matrix AA, denoted ATA^T, is obtained by interchanging its rows and columns. Key properties include:

PropertyDescription
(AT)T=A(A^T)^T = ADouble transpose
(A+B)T=AT+BT(A + B)^T = A^T + B^TTranspose of a sum
(A−B)T=AT−BT(A - B)^T = A^T - B^TTranspose of a difference
(kA)T=kAT(kA)^T = kA^TTranspose of a scalar multiple
(AB)T=BTAT(AB)^T = B^T A^TTranspose of a product

The transpose of a product of matrices is the product of their transposes in reverse order 66.

Theorem 1.4.9 states that if AA is invertible, then its transpose ATA^T is also invertible, and (AT)−1=(A−1)T(A^T)^{-1} = (A^{-1})^T 66.

6.21 Inverse of a transpose EXAMPLE 13

For A=[abcd]A = \begin{bmatrix} a & b \\ c & d \end{bmatrix}, AT=[acbd]A^T = \begin{bmatrix} a & c \\ b & d \end{bmatrix}. If AA is invertible, det(A)=ad−bc≠0det(A) = ad-bc \neq 0. det(AT)=ad−bcdet(A^T) = ad-bc. (AT)−1=1ad−bc[d−c−ba](A^T)^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -c \\ -b & a \end{bmatrix}.

Also, A−1=1ad−bc[d−b−ca]A^{-1} = \frac{1}{ad-bc} \begin{bmatrix} d & -b \\ -c & a \end{bmatrix}, so (A−1)T=1ad−bc[d−c−ba](A^{-1})^T = \frac{1}{ad-bc} \begin{bmatrix} d & -c \\ -b & a \end{bmatrix}. Thus, (AT)−1=(A−1)T(A^T)^{-1} = (A^{-1})^T 67.

7. Elementary Matrices and a Method for Finding A−1 Elementary Matrices

7.1 Elementary Row Operations and Elementary Matrices 71

Elementary row operations are fundamental transformations applied to matrices:

  • Multiplying a row by a nonzero constant.
  • Interchanging two rows.
  • Adding a constant multiple of one row to another.

Matrices obtained by performing a single elementary row operation on an identity matrix are called elementary matrices. These matrices are crucial because multiplying a matrix A on the left by an elementary matrix E performs the same elementary row operation on A as the one used to create E 70.

Elementary Row OperationInverse Operation
Multiply row i by c ≠ 0Multiply row i by 1/c
Interchange rows i and jInterchange rows i and j
Add c times row i to row jAdd −c times row i to row j

7.2 Row Equivalence and Invertibility

Two matrices are row equivalent if one can be obtained from the other through a sequence of elementary row operations. This implies that if matrix B is obtained from matrix A by a sequence of elementary row operations, then A can be recovered from B by applying the inverse sequence of operations 70.

Every elementary matrix is invertible, and its inverse is also an elementary matrix. This is because the inverse operation that restores an elementary matrix to the identity matrix is itself an elementary row operation 72.

7.3 The Equivalence Theorem

A significant theorem in linear algebra establishes the equivalence of several important properties for an n×nn \times n matrix A. These statements are either all true or all false for a given matrix 72:

  • A is invertible.
  • The homogeneous system Ax=0Ax = 0 has only the trivial solution.
  • The reduced row echelon form of A is the identity matrix InI_n.
  • A can be expressed as a product of elementary matrices.

This theorem provides a powerful link between invertibility, solutions to linear systems, and the structure of matrices 73.

7.4 Algorithm for Finding the Inverse of a Matrix

A practical method for finding the inverse of an invertible matrix A leverages the equivalence theorem. The core idea is that the same sequence of elementary row operations that reduces A to the identity matrix InI_n will transform InI_n into A−1A^{-1} 74.

The inversion algorithm proceeds as follows:

  1. Augment matrix A with the identity matrix InI_n to form the partitioned matrix [A∣In][A | I_n].
  2. Apply elementary row operations to this augmented matrix to reduce the left side (A) to the identity matrix InI_n.
  3. The same sequence of operations will transform the right side (InI_n) into A−1A^{-1}.
  4. The final form of the augmented matrix will be [In∣A−1][I_n | A^{-1}].

If, during this process, a row of zeros appears on the left side of the partition, it indicates that the matrix A is not invertible. 74 75.

7.5 Using Row Operations to Find A−1A^{-1}

To find the inverse of matrix A, we augment it with the identity matrix and perform row operations until the left side becomes the identity. The right side then becomes the inverse 74.

📝 Find the inverse of

A=[123014560]A = \begin{bmatrix} 1 & 2 & 3 \\ 0 & 1 & 4 \\ 5 & 6 & 0 \end{bmatrix}

We form the augmented matrix [A∣I][A | I]:

[123100014010560001]\left[ \begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 5 & 6 & 0 & 0 & 0 & 1 \end{array} \right]

Apply row operations:

  • Add -5 times the first row to the third row (R3←R3−5R1R_3 \leftarrow R_3 - 5R_1):
[1231000140100−4−15−501]\left[ \begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & -4 & -15 & -5 & 0 & 1 \end{array} \right]
  • Add 4 times the second row to the third row (R3←R3+4R2R_3 \leftarrow R_3 + 4R_2):
[123100014010001−541]\left[ \begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 1 & 4 & 0 & 1 & 0 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array} \right]
  • Add -4 times the third row to the second row (R2←R2−4R3R_2 \leftarrow R_2 - 4R_3):
[12321−16−401020−15−4001−541]\left[ \begin{array}{ccc|ccc} 1 & 2 & 3 & 21 & -16 & -4 \\ 0 & 1 & 0 & 20 & -15 & -4 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array} \right]
  • Add -3 times the third row to the first row (R1←R1−3R3R_1 \leftarrow R_1 - 3R_3):
[12036−28−701020−15−4001−541]\left[ \begin{array}{ccc|ccc} 1 & 2 & 0 & 36 & -28 & -7 \\ 0 & 1 & 0 & 20 & -15 & -4 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array} \right]
  • Add -2 times the second row to the first row (R1←R1−2R2R_1 \leftarrow R_1 - 2R_2):
[100−42101020−15−4001−541]\left[ \begin{array}{ccc|ccc} 1 & 0 & 0 & -4 & 2 & 1 \\ 0 & 1 & 0 & 20 & -15 & -4 \\ 0 & 0 & 1 & -5 & 4 & 1 \end{array} \right]

Thus, the inverse is:

A−1=[−42120−15−4−541]A^{-1} = \begin{bmatrix} -4 & 2 & 1 \\ 20 & -15 & -4 \\ -5 & 4 & 1 \end{bmatrix}

74.

7.6 Showing a Matrix Is Not Invertible

If, during the inversion algorithm, a row of zeros appears on the left side of the augmented matrix, the matrix is not invertible. This is because a row of zeros in the reduced row echelon form of A implies that A cannot be reduced to InI_n 75.

📝 Show that the matrix

A=[123246111]A = \begin{bmatrix} 1 & 2 & 3 \\ 2 & 4 & 6 \\ 1 & 1 & 1 \end{bmatrix}

is not invertible.

Augmenting with the identity matrix:

[123100246010111001]\left[ \begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 2 & 4 & 6 & 0 & 1 & 0 \\ 1 & 1 & 1 & 0 & 0 & 1 \end{array} \right]

Apply row operations:

  • R2←R2−2R1R_2 \leftarrow R_2 - 2R_1:
[123100000−210111001]\left[ \begin{array}{ccc|ccc} 1 & 2 & 3 & 1 & 0 & 0 \\ 0 & 0 & 0 & -2 & 1 & 0 \\ 1 & 1 & 1 & 0 & 0 & 1 \end{array} \right]

Since a row of zeros has appeared on the left side, the matrix A is not invertible 75.

7.7 Analyzing Homogeneous Systems

Theorem 1.5.3 connects the invertibility of a coefficient matrix A to the solutions of the homogeneous system Ax=0Ax = 0. A homogeneous system has only the trivial solution (x=0x=0) if and only if its coefficient matrix is invertible.

Consequently, if the coefficient matrix is not invertible, the system has infinitely many nontrivial solutions 75.

8. More on Linear Systems and Invertible Matrices Number of Solutions of a Linear System

8.1 Number of solutions of a linear system

A linear system of equations can have no solutions, exactly one solution, or infinitely many solutions. There are no other possibilities.

If a system has more than one solution, it must have infinitely many. This is because if x1x_1 and x2x_2 are two distinct solutions, then x0=x1−x2x_0 = x_1 - x_2 is a nonzero vector such that Ax0=0Ax_0 = 0.

For any scalar kk, x1+kx0x_1 + kx_0 is also a solution, leading to infinitely many solutions 78.

8.2 Solving linear systems by matrix inversion

When the coefficient matrix AA of a linear system Ax=bAx = b is an invertible n×nn \times n matrix, there is exactly one solution. This unique solution can be found using the formula x=A−1bx = A^{-1}b.

This method provides an explicit formula for the solution when AA is invertible 78.

📝 If AA is an invertible n×nn \times n matrix, then for every n×1n \times 1 matrix bb, the system Ax=bAx = b has exactly one solution, x=A−1bx = A^{-1}b 78.

8.3 Theorem 1.6.1

If AA is an invertible n×nn \times n matrix, then for every n×1n \times 1 matrix bb, the system of equations Ax=bAx = b has exactly one solution, namely, x=A−1bx = A^{-1}b 78.

8.4 Theorem 1.6.2

Proof: Since A(A−1b)=bA(A^{-1}b) = b, it follows that x=A−1bx = A^{-1}b is a solution of Ax=bAx = b. To show that this is the only solution, assume x0x_0 is an arbitrary solution.

Then Ax0=bAx_0 = b. Multiplying both sides by A−1A^{-1} yields x0=A−1bx_0 = A^{-1}b 78.

8.5 Linear systems with a common coefficient matrix

When solving multiple linear systems that share the same square coefficient matrix AA, if AA is invertible, the solutions can be found efficiently. This involves forming a partitioned matrix [A∣b1∣b2∣…∣bk][A | b_1 | b_2 | \dots | b_k] and reducing it to reduced row echelon form.

This method allows solving all kk systems simultaneously and works even if AA is not invertible 79.

8.6 Example 1: Solution of a linear system using A−1A^{-1}

Consider the system: x1+2x2+3x3=5x_1 + 2x_2 + 3x_3 = 5 2x1+5x2+3x3=32x_1 + 5x_2 + 3x_3 = 3 x1+8x3=17x_1 + 8x_3 = 17 If the coefficient matrix AA is invertible with A−1=[40−16−9−166313−5−3]A^{-1} = \begin{bmatrix} 40 & -16 & -9 \\ -16 & 6 & 3 \\ 13 & -5 & -3 \end{bmatrix}, the solution is x=A−1b=[1−12]x = A^{-1}b = \begin{bmatrix} 1 \\ -1 \\ 2 \end{bmatrix} 79.

8.7 Example 2: Solving two linear systems at once

To solve the systems: (a) x1+2x2+3x3=4x_1 + 2x_2 + 3x_3 = 4 2x1+5x2+3x3=52x_1 + 5x_2 + 3x_3 = 5 x1+8x3=9x_1 + 8x_3 = 9 (b) x1+2x2+3x3=1x_1 + 2x_2 + 3x_3 = 1 2x1+5x2+3x3=62x_1 + 5x_2 + 3x_3 = 6 x1+8x3=−6x_1 + 8x_3 = -6 Augment the common coefficient matrix with the constant columns: [123∣4∣1253∣5∣6108∣9∣−6]\begin{bmatrix} 1 & 2 & 3 & | & 4 & | & 1 \\ 2 & 5 & 3 & | & 5 & | & 6 \\ 1 & 0 & 8 & | & 9 & | & -6 \end{bmatrix}. Reducing this to reduced row echelon form yields the solutions: (a) x1=1,x2=0,x3=1x_1 = 1, x_2 = 0, x_3 = 1; (b) x1=2,x2=1,x3=−1x_1 = 2, x_2 = 1, x_3 = -1 79 80.

8.8 Properties of invertible matrices

To demonstrate that a square matrix AA is invertible, it is sufficient to find a square matrix BB such that either AB=IAB = I or BA=IBA = I. The other condition will hold automatically.

If BA=IBA = I, then B=A−1B = A^{-1}. This is because if Ax=0Ax = 0 has only the trivial solution, AA is invertible.

Multiplying BAx0=B0BAx_0 = B0 by BB yields Ix0=0Ix_0 = 0, so x0=0x_0 = 0 80.

8.9 Theorem 1.6.3

Let AA be a square matrix. (a) If BB is a square matrix satisfying BA=IBA = I, then B=A−1B = A^{-1}. (b) If BB is a square matrix satisfying AB=IAB = I, then B=A−1B = A^{-1} 80.

8.10 Theorem 1.6.4: Equivalent statements

If AA is an n×nn \times n matrix, then the following are equivalent: (a) AA is invertible. (b) Ax=0Ax = 0 has only the trivial solution 80. (c) The reduced row echelon form of AA is InI_n. (d) AA is expressible as a product of elementary matrices. (e) Ax=bAx = b is consistent for every n×1n \times 1 matrix bb. (f) Ax=bAx = b has exactly one solution for every n×1n \times 1 matrix bb 81.

Proof sketch: (a) ⇒\Rightarrow (f) was shown in Theorem 1.6.2. (f) ⇒\Rightarrow (e) is direct. (e) ⇒\Rightarrow (a) is shown by constructing an invertible matrix CC whose columns are solutions to Ax=eiAx = e_i, where eie_i are standard basis vectors 81.

8.11 Theorem 1.6.5

Let AA and BB be square matrices of the same size. If ABAB is invertible, then AA and BB must also be invertible 81.

Proof sketch: If ABAB is invertible, then Bx=0Bx = 0 has only the trivial solution, implying BB is invertible. Since A=(AB)B−1A = (AB)B^{-1}, AA is a product of invertible matrices and thus invertible 82.

8.12 Determining consistency by elimination

The consistency of a linear system Ax=bAx = b can be determined by reducing the augmented matrix [A∣b][A|b] to row echelon form. If no row of the form [0 0 … 0 ∣ c][0 \ 0 \ \dots \ 0 \ | \ c] with c≠0c \neq 0 appears, the system is consistent 82.

8.13 Example 3: Determining consistency by elimination

For the system: x1+x2+2x3=b1x_1 + x_2 + 2x_3 = b_1 x1+x3=b2x_1 + x_3 = b_2 2x1+x2+3x3=b32x_1 + x_2 + 3x_3 = b_3 The augmented matrix reduces to [112∣b1011∣b2−b1000∣b3−b2−b1]\begin{bmatrix} 1 & 1 & 2 & | & b_1 \\ 0 & 1 & 1 & | & b_2 - b_1 \\ 0 & 0 & 0 & | & b_3 - b_2 - b_1 \end{bmatrix}. The system is consistent if and only if b3−b2−b1=0b_3 - b_2 - b_1 = 0, or b3=b1+b2b_3 = b_1 + b_2 82 83.

8.14 Example 4: Determining consistency by elimination

For the system: x1+2x2+3x3=b1x_1 + 2x_2 + 3x_3 = b_1 2x1+5x2+3x3=b22x_1 + 5x_2 + 3x_3 = b_2 x1+8x3=b3x_1 + 8x_3 = b_3 The augmented matrix reduces to [108∣b301−3/2∣b2−2b3001∣5b1−2b2+b3]\begin{bmatrix} 1 & 0 & 8 & | & b_3 \\ 0 & 1 & -3/2 & | & b_2 - 2b_3 \\ 0 & 0 & 1 & | & 5b_1 - 2b_2 + b_3 \end{bmatrix} (after further reduction). There are no restrictions on b1,b2,b3b_1, b_2, b_3, so the system is always consistent and has a unique solution 83.

8.15 Exercises

The exercise set includes problems on solving systems by matrix inversion, solving multiple systems simultaneously, determining conditions for consistency, solving matrix equations, and working with proofs related to linear systems and invertible matrices 83 84.

9.7 Diagonal, Triangular, and Symmetric Matrices

13.1 Diagonal matrices

A square matrix where all entries off the main diagonal are zero is a diagonal matrix. A general n×nn \times n diagonal matrix DD can be represented as: D=[d10⋯00d2⋯0⋮⋮⋱⋮00⋯dn]D = \begin{bmatrix} d_1 & 0 & \cdots & 0 \\ 0 & d_2 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & d_n \end{bmatrix} 85.

A diagonal matrix is invertible if and only if all its diagonal entries are nonzero. The inverse of a diagonal matrix DD is: D−1=[1/d10⋯001/d2⋯0⋮⋮⋱⋮00⋯1/dn]D^{-1} = \begin{bmatrix} 1/d_1 & 0 & \cdots & 0 \\ 0 & 1/d_2 & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & 1/d_n \end{bmatrix} 85.

Powers of diagonal matrices are straightforward to compute. For a diagonal matrix DD and a positive integer kk: Dk=[d1k0⋯00d2k⋯0⋮⋮⋱⋮00⋯dnk]D^k = \begin{bmatrix} d_1^k & 0 & \cdots & 0 \\ 0 & d_2^k & \cdots & 0 \\ \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & \cdots & d_n^k \end{bmatrix} 85.

Matrix products involving diagonal factors are simplified. Multiplying a matrix AA on the left by a diagonal matrix DD scales the rows of AA by the corresponding diagonal entries of DD.

Multiplying AA on the right by DD scales the columns of AA by the corresponding diagonal entries of DD 86.

📝 If D=[2003]D = \begin{bmatrix} 2 & 0 \\ 0 & 3 \end{bmatrix} and A=[1456]A = \begin{bmatrix} 1 & 4 \\ 5 & 6 \end{bmatrix}, then DA=[2⋅12⋅43⋅53⋅6]=[281518]DA = \begin{bmatrix} 2 \cdot 1 & 2 \cdot 4 \\ 3 \cdot 5 & 3 \cdot 6 \end{bmatrix} = \begin{bmatrix} 2 & 8 \\ 15 & 18 \end{bmatrix} 86.

13.2 Triangular matrices 87

A square matrix with all entries above the main diagonal being zero is called lower triangular. A square matrix with all entries below the main diagonal being zero is called upper triangular.

A matrix that is either upper or lower triangular is simply called triangular 86.

A square matrix A=[aij]A = [a_{ij}] is upper triangular if aij=0a_{ij} = 0 for i>ji > j. It is lower triangular if aij=0a_{ij} = 0 for i<ji < j 86.

Diagonal matrices are both upper and lower triangular. Matrices in row echelon form are upper triangular 86.

PropertyDescription
TransposeThe transpose of a lower triangular matrix is upper triangular, and vice versa.
ProductThe product of lower triangular matrices is lower triangular, and the product of upper triangular matrices is upper triangular.
InvertibilityA triangular matrix is invertible if and only if its diagonal entries are all nonzero.
InverseThe inverse of an invertible lower triangular matrix is lower triangular, and the inverse of an invertible upper triangular matrix is upper triangular.

📝 Consider the upper triangular matrices A=[1203]A = \begin{bmatrix} 1 & 2 \\ 0 & 3 \end{bmatrix} and B=[4506]B = \begin{bmatrix} 4 & 5 \\ 0 & 6 \end{bmatrix}. Their product AB=[417018]AB = \begin{bmatrix} 4 & 17 \\ 0 & 18 \end{bmatrix} is also upper triangular 87.

13.3 Symmetric matrices

A square matrix AA is symmetric if A=ATA = A^T. This means that the entry in the ii-th row and jj-th column is equal to the entry in the jj-th row and ii-th column (aij=ajia_{ij} = a_{ji}) 88.

Symmetric matrices have the following algebraic properties:

  • The transpose of a symmetric matrix is symmetric.
  • The sum and difference of symmetric matrices are symmetric.
  • A scalar multiple of a symmetric matrix is symmetric 88.
OperationResult
ATA^TSymmetric
A+BA+BSymmetric
A−BA-BSymmetric
kAkASymmetric

The product of two symmetric matrices AA and BB is symmetric if and only if AA and BB commute (AB=BAAB = BA) 88.

📝 Let A=[1223]A = \begin{bmatrix} 1 & 2 \\ 2 & 3 \end{bmatrix} and B=[4556]B = \begin{bmatrix} 4 & 5 \\ 5 & 6 \end{bmatrix}. Both are symmetric. AB=[12141418]AB = \begin{bmatrix} 12 & 14 \\ 14 & 18 \end{bmatrix}, which is symmetric. BA=[14181821]BA = \begin{bmatrix} 14 & 18 \\ 18 & 21 \end{bmatrix}, which is also symmetric. Since AB=BAAB=BA, their product is symmetric 88.

A symmetric matrix is not necessarily invertible. However, if an invertible symmetric matrix AA exists, its inverse A−1A^{-1} is also symmetric 89.

Products of the form AATAA^T and ATAA^TA are always symmetric. If AA is an m×nm \times n matrix, AATAA^T is m×mm \times m and ATAA^TA is n×nn \times n 89.

📝 Let A=[101184]A = \begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 8 & 4 \end{bmatrix}. Then ATA=[118014][101184]=[66333317]A^TA = \begin{bmatrix} 1 & 1 & 8 \\ 0 & 1 & 4 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 8 & 4 \end{bmatrix} = \begin{bmatrix} 66 & 33 \\ 33 & 17 \end{bmatrix}, which is symmetric 90.

10. Introduction to Linear Transformations

10.1 Vectors and Functions

  • Ordered n-tuple: A sequence of n real numbers.
  • Vector: An element of RnR^n, often written in boldface.
  • Comma-delimited form: (s1,s2,…,sn)(s_1, s_2, \dots, s_n).
  • Column-vector form: A column matrix with n entries.
  • Standard basis vectors (eie_i): Vectors in RnR^n with a 1 in the ii-th position and zeros elsewhere. These form a basis for RnR^n, meaning any vector in RnR^n can be uniquely expressed as a linear combination of them.
  • A function is a rule that associates each element in a set (domain) with exactly one element in another set (codomain). In this context, we focus on functions where the domain is RnR^n and the codomain is RmR^m.
  • Function: A rule ff such that b=f(a)b = f(a), where aa is in the domain and bb is in the codomain 93.

10.2 Matrix Transformations

A matrix transformation maps a vector xx in RnR^n to a vector ww in RmR^m through matrix multiplication, denoted as w=Axw = Ax. This transformation is also represented as TA:Rn→RmT_A: R^n \to R^m, where TAT_A signifies multiplication by matrix AA.

  • Matrix Transformation: A function TA:Rn→RmT_A: R^n \to R^m defined by TA(x)=AxT_A(x) = Ax.
  • Matrix Operator: A matrix transformation where m=nm = n 94.
  • Zero Transformation: T0(x)=0x=0T_0(x) = 0x = 0, mapping every vector to the zero vector.
  • Identity Operator: TI(x)=Ix=xT_I(x) = Ix = x, mapping every vector to itself 95.

10.3 Properties of Matrix Transformations

Matrix transformations possess properties derived from matrix arithmetic, such as mapping the zero vector to the zero vector and preserving linear combinations of vectors.

  • Homogeneity: TA(ku)=kTA(u)T_A(ku) = k T_A(u) for any scalar kk and vector uu.
  • Additivity: TA(u+v)=TA(u)+TA(v)T_A(u + v) = T_A(u) + T_A(v) for any vectors uu and vv.
  • Preservation of Linear Combinations: TA(k1u1+⋯+krur)=k1TA(u1)+⋯+krTA(ur)T_A(k_1u_1 + \dots + k_ru_r) = k_1T_A(u_1) + \dots + k_rT_A(u_r) 96.

10.4 Linear Transformations

A linear transformation is a function T:Rn→RmT: R^n \to R^m that satisfies two fundamental properties: additivity and homogeneity. These properties ensure that the transformation preserves vector addition and scalar multiplication.

  • Linear Transformation: A transformation T:Rn→RmT: R^n \to R^m satisfying T(u+v)=T(u)+T(v)T(u+v) = T(u) + T(v) and T(ku)=kT(u)T(ku) = kT(u) for all vectors u,vu, v in RnR^n and scalar kk 96.

10.5 Equivalence of Matrix and Linear Transformations

Theorem 1.8.2 establishes that for transformations between RnR^n and RmR^m, the terms "linear transformation" and "matrix transformation" are synonymous. This means any linear transformation can be represented by a matrix, and vice versa.

  • Theorem 1.8.2: A transformation T:Rn→RmT: R^n \to R^m is a matrix transformation if and only if it satisfies the additivity and homogeneity properties 96.
  • The standard matrix AA for a linear transformation TT is constructed using the images of the standard basis vectors: A=[T(e1)∣T(e2)∣…∣T(en)]A = [T(e_1) | T(e_2) | \dots | T(e_n)] 97.

10.6 Finding Standard Matrices

The standard matrix for a linear transformation T:Rn→RmT: R^n \to R^m can be found by determining the images of the standard basis vectors e1,e2,…,ene_1, e_2, \dots, e_n and using these images as the columns of the matrix.

Procedure for Finding the Standard Matrix:

  1. Find the images of the standard basis vectors e1,e2,…,ene_1, e_2, \dots, e_n for RnR^n.
  2. Construct the matrix whose successive columns are these images 98.

📝 To find the standard matrix for a linear transformation T:Rn→RmT: R^n \to R^m, first find the images of the standard basis vectors e1,e2,…,ene_1, e_2, \dots, e_n, and then construct the matrix with these images as its successive columns 98.

10.7 Examples of Finding Standard Matrices

  • Example 4: Finding the standard matrix for T:R2→R3T: R^2 \to R^3 defined by T(x1,x2)=(x1−3x2,2x1+x2,x3)T(x_1, x_2) = (x_1 - 3x_2, 2x_1 + x_2, x_3).
  • The standard matrix is A=[1−32101]A = \begin{bmatrix} 1 & -3 \\ 2 & 1 \\ 0 & 1 \end{bmatrix} 98.
  • Example 5: Computing T([1−2])T(\begin{bmatrix} 1 \\ -2 \end{bmatrix}) using the standard matrix found in Example 4.
  • T([1−2])=[1−32101][1−2]=[70−2]T(\begin{bmatrix} 1 \\ -2 \end{bmatrix}) = \begin{bmatrix} 1 & -3 \\ 2 & 1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 \\ -2 \end{bmatrix} = \begin{bmatrix} 7 \\ 0 \\ -2 \end{bmatrix}.
  • Example 6: Finding the standard matrix for T(x1,x2)=(3x1+x2,2x1−4x2)T(x_1, x_2) = (3x_1 + x_2, 2x_1 - 4x_2).
  • The standard matrix is A=[312−4]A = \begin{bmatrix} 3 & 1 \\ 2 & -4 \end{bmatrix} 99.

10.8 Geometric Transformations

Matrix operators can perform various geometric transformations on vectors in R2R^2 and R3R^3, such as reflections, projections, and rotations. The standard matrices for these transformations are derived from their effects on the standard basis vectors.

10.9 Reflection Operators 101

Reflection operators map points to their symmetric images across lines or planes passing through the origin.

OperatorIllustrationImages of Basis VectorsStandard Matrix
Reflection about the x-axisT(x, y) = (x, −y)T(e1) = (1, 0), T(e2) = (0, −1)[,]
Reflection about the y-axisT(x, y) = (−x, y)T(e1) = (−1, 0), T(e2) = (0, 1)[,]
Reflection about the line y = xT(x, y) = (y, x)T(e1) = (0, 1), T(e2) = (1, 0)[,]
Reflection about the xy-planeT(x, y, z) = (x, y, −z)T(e1) = (1, 0, 0), T(e2) = (0, 1, 0), T(e3) = (0, 0, −1)[,,]
Reflection about the xz-planeT(x, y, z) = (x, −y, z)T(e1) = (1, 0, 0), T(e2) = (0, −1, 0), T(e3) = (0, 0, 1)[,,]
Reflection about the yz-planeT(x, y, z) = (−x, y, z)T(e1) = (−1, 0, 0), T(e2) = (0, 1, 0), T(e3) = (0, 0, 1)[,, 1]

📝 Reflection about the y-axis maps (x,y)(x, y) to (−x,y)(-x, y). The images of the standard basis vectors are T(e1)=(−1,0)T(e_1) = (-1, 0) and T(e2)=(0,1)T(e_2) = (0, 1) 101.

10.10 Projection Operators 102

Projection operators map points to their orthogonal projections onto lines or planes through the origin.

OperatorIllustrationImages of Basis VectorsStandard Matrix
Orthogonal projection onto the x-axisT(x, y) = (x, 0)T(e1) = (1, 0), T(e2) = (0, 0)[,]
Orthogonal projection onto the y-axisT(x, y) = (0, y)T(e1) = (0, 0), T(e2) = (0, 1)[,]
Orthogonal projection onto the xy-planeT(x, y, z) = (x, y, 0)T(e1) = (1, 0, 0), T(e2) = (0, 1, 0), T(e3) = (0, 0, 0)[,,]
Orthogonal projection onto the xz-planeT(x, y, z) = (x, 0, z)T(e1) = (1, 0, 0), T(e2) = (0, 0, 0), T(e3) = (0, 0, 1)[,,]
Orthogonal projection onto the yz-planeT(x, y, z) = (0, y, z)T(e1) = (0, 0, 0), T(e2) = (0, 1, 0), T(e3) = (0, 0, 1)[,, 1]

10.11 Rotation Operators 103

Rotation operators in R2R^2 rotate points counterclockwise around the origin by a specified angle θ\theta. The standard matrix for such a rotation is called the rotation matrix.

  • Rotation Matrix (RθR_\theta): The standard matrix for a counterclockwise rotation in R2R^2 by an angle θ\theta 103.
OperatorIllustrationImages of Basis VectorsStandard Matrix
Counterclockwise rotation about the origin through an angle θT(x, y) = (x cos θ - y sin θ, x sin θ + y cos θ)T(e1) = (cos θ, sin θ), T(e2) = (−sin θ, cos θ)[[cos θ, -sin θ, [sin θ, cos θ]]
  • Example 8: Finding the image of (1,1)(1, 1) under a rotation of π/6\pi/6 radians.
  • Rπ/6(1,1)≈(0.37,1.37)R_{\pi/6}(1, 1) \approx (0.37, 1.37) 103.

11. Compositions of Matrix Transformations Compositions of Matrix Transformations

11.1 Compositions of Matrix Transformations

The composition of matrix transformations involves applying one transformation to the result of another. If TA:Rn→RkT_A: R^n \to R^k and TB:Rk→RmT_B: R^k \to R^m are matrix transformations, their composition, denoted TB∘TAT_B \circ T_A, maps a vector xx in RnR^n to TB(TA(x))T_B(T_A(x)) in RmR^m.

This composition is itself a matrix transformation 106.

  • Composition definition: (TB∘TA)(x)=TB(TA(x))(T_B \circ T_A)(x) = T_B(T_A(x)) 106.
  • Standard matrix of composition: If TAT_A has standard matrix AA and TBT_B has standard matrix BB, then the standard matrix for TB∘TAT_B \circ T_A is the matrix product BABA.
  • Linearity of composition: The composition of two linear transformations is also a linear transformation, satisfying additivity and homogeneity properties 107.

11.2 Example: Compositions of transformations in R3 and R2

Let T1:R3→R2T_1: R^3 \to R^2 and T2:R2→R3T_2: R^2 \to R^3 be linear transformations. T1(x,y,z)=(x+2y,x+2z−y)T_1(x, y, z) = (x + 2y, x + 2z - y) and T2(x,y)=(3x+y,x,x−2y)T_2(x, y) = (3x + y, x, x - 2y). The standard matrix for T1T_1 is A=(1201−12)A = \begin{pmatrix} 1 & 2 & 0 \\ 1 & -1 & 2 \end{pmatrix}, and the standard matrix for T2T_2 is B=(31101−2)B = \begin{pmatrix} 3 & 1 \\ 1 & 0 \\ 1 & -2 \end{pmatrix}.

The standard matrix for T2∘T1T_2 \circ T_1 is BA=(31101−2)(1201−12)=(452120−14−4)BA = \begin{pmatrix} 3 & 1 \\ 1 & 0 \\ 1 & -2 \end{pmatrix} \begin{pmatrix} 1 & 2 & 0 \\ 1 & -1 & 2 \end{pmatrix} = \begin{pmatrix} 4 & 5 & 2 \\ 1 & 2 & 0 \\ -1 & 4 & -4 \end{pmatrix}. The standard matrix for T1∘T2T_1 \circ T_2 is AB=(1201−12)(31101−2)=(513−3)AB = \begin{pmatrix} 1 & 2 & 0 \\ 1 & -1 & 2 \end{pmatrix} \begin{pmatrix} 3 & 1 \\ 1 & 0 \\ 1 & -2 \end{pmatrix} = \begin{pmatrix} 5 & 1 \\ 3 & -3 \end{pmatrix} 107.

11.3 Commutativity of Matrix Transformations

The order in which matrix transformations are composed matters, meaning that TA∘TBT_A \circ T_B is generally not equal to TB∘TAT_B \circ T_A. This non-commutativity arises because matrix multiplication is not commutative (AB≠BAAB \neq BA in general).

Transformations that commute are special cases 108.

11.4 Example: Non-commutative transformations

Consider a reflection about the line y=xy=x (TAT_A) and an orthogonal projection onto the y-axis (TBT_B). Graphically and by examining their standard matrices (A=(0110)A = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, B=(0001)B = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}), it is shown that TA∘TB≠TB∘TAT_A \circ T_B \neq T_B \circ T_A because AB=(0100)AB = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} and BA=(0001)BA = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}, which are not equal 108.

📝 A reflection about the line y=xy=x (A=(0110)A = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}) and an orthogonal projection onto the y-axis (B=(0001)B = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}) do not commute, as AB=(0100)AB = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} and BA=(0001)BA = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} 108.

11.5 Example: Reflections that commute

Let T1T_1 be the reflection about the y-axis (A1=(−1001)A_1 = \begin{pmatrix} -1 & 0 \\ 0 & 1 \end{pmatrix}) and T2T_2 be the reflection about the x-axis (A2=(100−1)A_2 = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}). Both T1∘T2T_1 \circ T_2 and T2∘T1T_2 \circ T_1 map (x,y)(x, y) to (−x,−y)(-x, -y), which is a reflection about the origin.

This commutativity is confirmed by their matrices: A1A2=A2A1=(−100−1)A_1A_2 = A_2A_1 = \begin{pmatrix} -1 & 0 \\ 0 & -1 \end{pmatrix} 109.

11.6 Example: Composition of rotations is commutative

Rotations about the origin in R2R^2 by angles θ1\theta_1 and θ2\theta_2 commute. The composition of these rotations results in a rotation by the sum of the angles, θ1+θ2\theta_1 + \theta_2.

The standard matrices for these rotations are Rθ1=(cos⁡θ1−sin⁡θ1sin⁡θ1cos⁡θ1)R_{\theta_1} = \begin{pmatrix} \cos \theta_1 & -\sin \theta_1 \\ \sin \theta_1 & \cos \theta_1 \end{pmatrix} and Rθ2=(cos⁡θ2−sin⁡θ2sin⁡θ2cos⁡θ2)R_{\theta_2} = \begin{pmatrix} \cos \theta_2 & -\sin \theta_2 \\ \sin \theta_2 & \cos \theta_2 \end{pmatrix}. It can be shown that Rθ1Rθ2=Rθ2Rθ1=Rθ1+θ2R_{\theta_1}R_{\theta_2} = R_{\theta_2}R_{\theta_1} = R_{\theta_1+\theta_2} 109.

11.7 Composition of Three or More Matrix Transformations

Compositions can be extended to any finite sequence of matrix transformations, provided the dimensions of the domains and ranges are compatible. For three transformations TA:Rn→RkT_A: R^n \to R^k, TB:Rk→RlT_B: R^k \to R^l, and TC:Rl→RmT_C: R^l \to R^m, their composition is (TC∘TB∘TA)(x)=TC(TB(TA(x)))(T_C \circ T_B \circ T_A)(x) = T_C(T_B(T_A(x))).

The standard matrix for this composition is CBACBA 110.

11.8 Example: Composition of rotation, reflection, and projection

Find the image of a vector xx under a sequence of transformations: first, rotation by π/6\pi/6 (AA), then reflection about y=xy=x (BB), and finally orthogonal projection onto the y-axis (CC). The standard matrices are A=(cos⁡(π/6)−sin⁡(π/6)sin⁡(π/6)cos⁡(π/6))A = \begin{pmatrix} \cos(\pi/6) & -\sin(\pi/6) \\ \sin(\pi/6) & \cos(\pi/6) \end{pmatrix}, B=(0110)B = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, and C=(0001)C = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix}.

The composite transformation's matrix is CBA=(0001)(0110)(cos⁡(π/6)−sin⁡(π/6)sin⁡(π/6)cos⁡(π/6))=(00sin⁡(π/6)cos⁡(π/6))CBA = \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix} \begin{pmatrix} \cos(\pi/6) & -\sin(\pi/6) \\ \sin(\pi/6) & \cos(\pi/6) \end{pmatrix} = \begin{pmatrix} 0 & 0 \\ \sin(\pi/6) & \cos(\pi/6) \end{pmatrix}. The image of xx is (CBA)x(CBA)x 110.

11.9 Invertibility of Matrix Operators

A matrix operator TA:Rn→RnT_A: R^n \to R^n is invertible if its standard matrix AA is invertible. The inverse operator, denoted TA−1T_A^{-1}, has the standard matrix A−1A^{-1}.

Composing an operator with its inverse in either order results in the identity transformation (II) 111.

  • Inverse operator definition: TA−1T_A^{-1} is the operator such that TA∘TA−1=TA−1∘TA=IT_A \circ T_A^{-1} = T_A^{-1} \circ T_A = I.
  • Standard matrix of inverse: The standard matrix for TA−1T_A^{-1} is A−1A^{-1}.
  • Effect of inverse: For any vector xx in RnR^n, (TA∘TA−1)(x)=x(T_A \circ T_A^{-1})(x) = x and (TA−1∘TA)(x)=x(T_A^{-1} \circ T_A)(x) = x 111.

11.10 Example: Inverse of a rotation operator

The operator T:R2→R2T: R^2 \to R^2 that rotates vectors by an angle θ\theta has the standard matrix Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R_\theta = \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{pmatrix}. To undo this rotation, one must rotate by −θ-\theta.

The inverse operator T−1T^{-1} has the standard matrix R−θ=(cos⁡(−θ)−sin⁡(−θ)sin⁡(−θ)cos⁡(−θ))=(cos⁡θsin⁡θ−sin⁡θcos⁡θ)R_{-\theta} = \begin{pmatrix} \cos (-\theta) & -\sin (-\theta) \\ \sin (-\theta) & \cos (-\theta) \end{pmatrix} = \begin{pmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{pmatrix}, which is Rθ−1R_\theta^{-1} 111.

📝 The operator T:R2→R2T: R^2 \to R^2 that rotates vectors by θ\theta has matrix Rθ=(cos⁡θ−sin⁡θsin⁡θcos⁡θ)R_\theta = \begin{pmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{pmatrix}. Its inverse T−1T^{-1} rotates by −θ-\theta, with matrix R−θ=(cos⁡θsin⁡θ−sin⁡θcos⁡θ)R_{-\theta} = \begin{pmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{pmatrix} 111.

11.11 Example: Inverse transformations from linear equations

Consider the linear equations w1=2x1+x2w_1 = 2x_1 + x_2 and w2=3x1+4x2w_2 = 3x_1 + 4x_2. The standard matrix for this transformation TT is A=(2134)A = \begin{pmatrix} 2 & 1 \\ 3 & 4 \end{pmatrix}.

The inverse matrix is A−1=15(4−1−32)A^{-1} = \frac{1}{5} \begin{pmatrix} 4 & -1 \\ -3 & 2 \end{pmatrix}. Thus, the inverse transformation is T−1(w1,w2)=(45w1−15w2,−35w1+25w2)T^{-1}(w_1, w_2) = (\frac{4}{5}w_1 - \frac{1}{5}w_2, -\frac{3}{5}w_1 + \frac{2}{5}w_2) 111.

  • Non-invertible transformations: Not all matrix transformations are invertible. For instance, orthogonal projections onto an axis are not invertible because their standard matrices are not invertible 112.

12. Applications of Linear Systems Network Analysis

12.1 Network analysis

Networks are systems of interconnected branches where something "flows," such as electricity, water, traffic, or money. These branches meet at nodes or junctions where flow can divide.

A key principle in network analysis is flow conservation at each node, meaning the rate of flow into a node equals the rate of flow out. This prevents buildup and ensures smooth movement.

A common problem is to determine unknown flow rates in certain branches using known rates in others 114.

  • Flow conservation: The rate of flow into any node must equal the rate of flow out of that node.
  • Network analysis goal: To find unknown flow rates in branches of a network, given some known flow rates 114.

12.2 Network analysis using linear systems

In network analysis, arbitrary directions are assigned to unknown flow rates. If a calculated flow rate is negative, it indicates that the actual flow is in the opposite direction to the one assigned.

This method uses systems of linear equations derived from flow conservation at each node to solve for unknown flow rates 115.

12.3 Example 1: Network analysis using linear systems

The problem involves finding unknown flow rates (x1,x2,x3x_1, x_2, x_3) in a network with four nodes. By applying the principle of flow conservation at each node, a system of linear equations is formed.

For instance, at node A, the equation is x1+x2=30x_1 + x_2 = 30. Solving this system reveals the flow rates and their directions.

A negative value for a flow rate indicates that the assumed direction was incorrect 115.

📝 For a network with nodes A, B, C, and D, and known flows, the conservation at node A yields x1+x2=30x_1 + x_2 = 30, at node B yields x2+x3=35x_2 + x_3 = 35, at node C yields x3+15=60x_3 + 15 = 60, and at node D yields x1+15=55x_1 + 15 = 55. Solving this system gives x1=40x_1 = 40, x2=−10x_2 = -10, and x3=45x_3 = 45. The negative value for x2x_2 indicates flow into node A 115.

12.4 Design of traffic patterns

Traffic patterns can be analyzed using linear systems, especially in areas with complex intersections and one-way streets. The goal is to ensure that the total flow of vehicles into a complex equals the total flow out, and to determine the flow rates along individual streets.

This involves setting up equations based on traffic flow at each intersection 115 116.

12.5 Example 2: Design of traffic patterns

This example concerns traffic flow around a park in Philadelphia. The problem asks how many vehicles per hour a traffic light should allow through to balance the inflow and outflow of traffic into the complex.

It also asks about the resulting flow rates along the bordering streets. By setting up equations for flow conservation at each intersection, a linear system is formed 116.

  • Balancing traffic flow: To ensure the average number of vehicles per hour flowing into a complex equals the average number flowing out, the total inflow must equal the total outflow.
  • Traffic light setting: In a traffic scenario, if the total inflow is 1700 vehicles per hour and the outflow is x+700+400x + 700 + 400, the traffic light must allow x=600x = 600 vehicles per hour to pass to balance the flow.
  • Street flow rates: For traffic to flow smoothly at intersections, the flow in must equal the flow out at each point. This leads to a system of linear equations with potentially infinitely many solutions, constrained by physical realities like non-negative flow rates 116.

12.6 Electrical circuits

Electrical circuits, composed of batteries and resistors, can be analyzed using principles similar to general network analysis. Ohm's Law describes the relationship between voltage drop (EE), current (II), and resistance (RR) as E=IRE = IR.

Kirchhoff's laws are fundamental to circuit analysis: Kirchhoff's Current Law states that the sum of currents into a node equals the sum of currents out, and Kirchhoff's Voltage Law states that the sum of voltage rises equals the sum of voltage drops around any closed loop 117.

  • Ohm's Law: The voltage drop (EE) across a resistor is the product of the current (II) flowing through it and its resistance (RR), expressed as E=IRE = IR.
  • Node: A point in an electrical network where three or more wires are joined.
  • Branch: A wire connecting two nodes in an electrical network.
  • Closed loop: A sequence of connected branches that starts and ends at the same node.
  • Kirchhoff's Current Law: The sum of currents flowing into any node equals the sum of currents flowing out of that node.
  • Kirchhoff's Voltage Law: In any closed loop, the sum of voltage rises equals the sum of voltage drops 117.

When analyzing circuits, arbitrary directions are assigned to current flows. Positive values for calculated currents indicate correct direction assignments, while negative values indicate the opposite direction 117.

12.7 A circuit with one closed loop

This section demonstrates how to apply Kirchhoff's laws to a simple electrical circuit with a single closed loop, a battery, and a resistor. By setting up an equation based on Kirchhoff's Voltage Law, the current in the circuit can be determined 118.

12.8 Example 3: A circuit with one closed loop

The problem involves a circuit with a 6-volt battery and a 3-ohm resistor. Applying Kirchhoff's Voltage Law, the voltage drop across the resistor (3I3I) is set equal to the voltage rise from the battery (6 V).

Solving the equation 3I=63I = 6 yields the current I=2I = 2 amperes. The positive result confirms the assigned current direction 118.

📝 In a circuit with a 6 V battery and a 3 Ω resistor, Kirchhoff's voltage law gives 3I=63I = 6. Solving for II yields I=2I = 2 A, indicating the assigned current direction is correct 118.

12.9 A circuit with three closed loops

Analyzing circuits with multiple loops and batteries requires setting up a system of linear equations using both Kirchhoff's Current Law and Kirchhoff's Voltage Law. For each node, a current conservation equation is formed.

For each closed loop, a voltage law equation is established 118.

12.10 Example 4: A circuit with three closed loops

This example involves a circuit with two batteries and three resistors, creating three closed loops. Kirchhoff's Current Law is applied at the nodes to relate the currents (I1,I2,I3I_1, I_2, I_3).

Kirchhoff's Voltage Law is applied to the loops to form additional equations. Solving the resulting system of linear equations provides the values for the currents in each branch 118 119.

  • System of equations: For a circuit with multiple loops, a system of linear equations is formed using Kirchhoff's Current Law at nodes and Kirchhoff's Voltage Law for each closed loop 118.
  • Current direction: A negative calculated current indicates that the actual flow is in the opposite direction to the one initially assigned 119.

📝 In a circuit with currents I1,I2,I3I_1, I_2, I_3, Kirchhoff's current law at a node gives I1+I2−I3=0I_1 + I_2 - I_3 = 0. Applying Kirchhoff's voltage law to loops yields equations like 5I1+20I3=505I_1 + 20I_3 = 50 and 10I2+20I3=−3010I_2 + 20I_3 = -30. Solving this system gives I1=6I_1 = 6 A, I2=−5I_2 = -5 A, and I3=1I_3 = 1 A, indicating I2I_2 flows in the opposite direction 119.

12.11 Balancing chemical equations

Balancing chemical equations ensures that the number of atoms of each element is the same on both sides of the reaction arrow, adhering to the law of conservation of mass. This process involves finding integer coefficients for the chemical formulas of reactants and products.

While simple equations can be balanced by trial and error, more complex ones benefit from a systematic method using linear systems 119.

  • Chemical equation: A representation of a chemical reaction showing reactants and products, separated by an arrow.
  • Reactants: The molecules on the left side of the chemical equation arrow.
  • Products: The molecules on the right side of the chemical equation arrow.
  • Balanced chemical equation: An equation where the number of atoms of each element is equal on both the reactant and product sides.
  • Standard convention: To use the smallest positive integers as coefficients to balance a chemical equation 119.

The method involves setting up a system of linear equations where variables represent the coefficients of the chemical formulas. The number of atoms of each element in the reaction forms the basis for these equations.

Solving this system, often with the goal of finding the smallest positive integer solution, yields the balanced chemical equation 119.

13. Balancing Chemical Equations

13.1 Balancing chemical equations using linear systems

Balancing chemical equations ensures that the number of atoms of each element is the same on both sides of the equation, adhering to the law of conservation of mass. This process can be systematically approached by setting up a system of linear equations.

For a general reaction like x1(A)+x2(B)→x3(C)+x4(D)x_1(A) + x_2(B) \rightarrow x_3(C) + x_4(D), the coefficients x1,x2,x3,x4x_1, x_2, x_3, x_4 are determined by equating the number of atoms of each element on the reactant and product sides.

For example, balancing the combustion of methane (CH4CH_4) with oxygen (O2O_2) to produce carbon dioxide (CO2CO_2) and water (H2OH_2O) involves finding coefficients x1,x2,x3,x4x_1, x_2, x_3, x_4 for the equation x1(CH4)+x2(O2)→x3(CO2)+x4(H2O)x_1(CH_4) + x_2(O_2) \rightarrow x_3(CO_2) + x_4(H_2O). This leads to a system of linear equations based on the atom counts for carbon, hydrogen, and oxygen:

  • Carbon: x1=x3x_1 = x_3
  • Hydrogen: 4x1=2x44x_1 = 2x_4
  • Oxygen: 2x2=2x3+x42x_2 = 2x_3 + x_4

This system can be rewritten as a homogeneous linear system: x1−x3=0x_1 - x_3 = 0 4x1−2x4=04x_1 - 2x_4 = 0 2x2−2x3−x4=02x_2 - 2x_3 - x_4 = 0

The general solution for this system is x1=t/2,x2=t,x3=t/2,x4=tx_1 = t/2, x_2 = t, x_3 = t/2, x_4 = t. To find the smallest positive integer values, we set t=2t=2, yielding x1=1,x2=2,x3=1,x4=2x_1=1, x_2=2, x_3=1, x_4=2, which balances the equation to CH4+2O2→CO2+2H2OCH_4 + 2O_2 \rightarrow CO_2 + 2H_2O 120.

Balancing the reaction between hydrochloric acid (HClHCl) and sodium phosphate (Na3PO4Na_3PO_4) to produce phosphoric acid (H3PO4H_3PO_4) and sodium chloride (NaClNaCl) follows a similar procedure. The equation is x1(HCl)+x2(Na3PO4)→x3(H3PO4)+x4(NaCl)x_1(HCl) + x_2(Na_3PO_4) \rightarrow x_3(H_3PO_4) + x_4(NaCl).

The atom counts yield the system:

  • Hydrogen (H): x1=3x3x_1 = 3x_3
  • Chlorine (Cl): x1=x4x_1 = x_4
  • Sodium (Na): 3x2=x43x_2 = x_4
  • Phosphorus (P): x2=x3x_2 = x_3
  • Oxygen (O): 4x2=4x34x_2 = 4x_3

This results in the homogeneous linear system: x1−3x3=0x_1 - 3x_3 = 0 x1−x4=0x_1 - x_4 = 0 3x2−x4=03x_2 - x_4 = 0 x2−x3=0x_2 - x_3 = 0

The general solution is x1=t,x2=t/3,x3=t/3,x4=tx_1 = t, x_2 = t/3, x_3 = t/3, x_4 = t. Setting t=3t=3 gives the smallest positive integers: x1=3,x2=1,x3=1,x4=3x_1=3, x_2=1, x_3=1, x_4=3.

The balanced equation is 3HCl+Na3PO4→H3PO4+3NaCl3HCl + Na_3PO_4 \rightarrow H_3PO_4 + 3NaCl 121.

13.2 Polynomial interpolation 122

Polynomial interpolation involves finding a polynomial whose graph passes through a given set of points. For nn points (x1,y1),…,(xn,yn)(x_1, y_1), \dots, (x_n, y_n) with distinct xx-coordinates, there exists a unique polynomial of degree n−1n-1 or less that passes through these points.

To find a linear polynomial p(x)=ax+bp(x) = ax + b passing through two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), we set up the system: ax1+b=y1ax_1 + b = y_1 ax2+b=y2ax_2 + b = y_2

Solving this system yields: a=y2−y1x2−x1a = \frac{y_2 - y_1}{x_2 - x_1} b=y1x2−y2x1x2−x1b = \frac{y_1x_2 - y_2x_1}{x_2 - x_1} provided x1≠x2x_1 \neq x_2 121.

For a general polynomial of degree n−1n-1, p(x)=a0+a1x+⋯+an−1xn−1p(x) = a_0 + a_1x + \dots + a_{n-1}x^{n-1}, passing through nn points (x1,y1),…,(xn,yn)(x_1, y_1), \dots, (x_n, y_n), we set up a system of nn linear equations in the nn unknowns a0,a1,…,an−1a_0, a_1, \dots, a_{n-1}: a0+a1x1+a2x12+⋯+an−1x1n−1=y1a_0 + a_1x_1 + a_2x_1^2 + \dots + a_{n-1}x_1^{n-1} = y_1 a0+a1x2+a2x22+⋯+an−1x2n−1=y2a_0 + a_1x_2 + a_2x_2^2 + \dots + a_{n-1}x_2^{n-1} = y_2 ⋮\vdots a0+a1xn+a2xn2+⋯+an−1xnn−1=yna_0 + a_1x_n + a_2x_n^2 + \dots + a_{n-1}x_n^{n-1} = y_n

The augmented matrix for this system is a Vandermonde matrix:

x_1x12x_1^2...x1n−1x_1^{n-1}y_1
x_2x22x_2^2...x2n−1x_2^{n-1}y_2
...............
x_nxn2x_n^2...xnn−1x_n^{n-1}y_n

Reducing this matrix to reduced row echelon form allows us to find the coefficients a0,…,an−1a_0, \dots, a_{n-1}.

13.3 Polynomial interpolation by Gauss–Jordan elimination EXAMPLE 6 123

To find a cubic polynomial passing through the points (1, 3), (2, −2), (3, −5), and (4, 0), we seek p(x)=a0+a1x+a2x2+a3x3p(x) = a_0 + a_1x + a_2x^2 + a_3x^3. The system of equations derived from these points leads to the augmented matrix:

11113
1248-2
13927-5
1416640

The reduced row echelon form of this matrix yields a0=4,a1=3,a2=−5,a3=1a_0 = 4, a_1 = 3, a_2 = -5, a_3 = 1. Thus, the interpolating polynomial is p(x)=4+3x−5x2+x3p(x) = 4 + 3x - 5x^2 + x^3 123.

13.4 Approximate integration EXAMPLE 7

Interpolating polynomials can also be used to approximate integrals. For instance, to approximate the integral ∫01sin⁡(πx22)dx\int_0^1 \sin(\frac{\pi x^2}{2}) dx, we can find an interpolating polynomial for the function f(x)=sin⁡(πx22)f(x) = \sin(\frac{\pi x^2}{2}) at specific points.

Using five points (0, 0), (0.25, 0.098017), (0.5, 0.382683), (0.75, 0.77301), and (1, 1), the interpolating polynomial is found to be p(x)=0.098796x+0.762356x2+2.14429x3−2.00544x4p(x) = 0.098796x + 0.762356x^2 + 2.14429x^3 - 2.00544x^4. Integrating this polynomial approximates the original integral: ∫01p(x)dx≈0.438501\int_0^1 p(x) dx \approx 0.438501 124.

📝 To find the equation of the line passing through (2, 1) and (5, 4), we use the formulas for aa and bb. a=4−15−2=33=1a = \frac{4 - 1}{5 - 2} = \frac{3}{3} = 1 b=(1)(5)−(4)(2)5−2=5−83=−33=−1b = \frac{(1)(5) - (4)(2)}{5 - 2} = \frac{5 - 8}{3} = \frac{-3}{3} = -1 The equation of the line is y=x−1y = x - 1 122.

14. Leontief Input–Output Models Inputs and Outputs in an Economy

14.1 Introduction to Input-Output Analysis

Input-output analysis is a method for studying the interrelationships between different sectors of an economy. It models an economy as a network where sectors produce outputs and require inputs from themselves and other sectors.

These flows are typically measured in monetary units.

  • Sectors: An economy can be divided into sectors, such as manufacturing, agriculture, and utilities.
  • Interactions: Each sector produces outputs but also requires inputs from other sectors and its own sector. For example, agriculture needs machinery from manufacturing and electricity from utilities.
  • Measurement: Inputs and outputs are commonly measured in dollars, but other units are also possible.
  • Real-world complexity: The flows between sectors can be complex, as illustrated by a World War II example involving airplane production, copper components, and a silver substitute. Modern input-output analysis aims to anticipate such shortages 126.

14.2 Open and Closed Economies

Economies can be classified based on the presence of sectors that consume outputs without producing any themselves.

  • Open Sectors: These are sectors that consume outputs but do not produce any. The consumer market is an example.
  • Closed Economies: Economies with no open sectors.
  • Open Economies: Economies with one or more open sectors. This section focuses on open economies with one open sector 126.

14.3 Leontief Model of an Open Economy

The Leontief model uses matrices to represent the flow of goods and services between sectors in an open economy. The goal is to determine the production levels needed to satisfy both internal sector demands and external demands.

  • Consumption Matrix (C): This matrix represents the input required by each sector to produce one dollar's worth of output.
  • The entry cijc_{ij} is the monetary value of output from sector ii needed by sector jj to produce one unit of output.
  • The columns of CC are called consumption vectors, indicating the inputs for a specific sector's output.
  • Production Vector (x): This vector represents the total dollar value of output from each sector.
  • xix_i is the monetary value of the output of the ii-th sector.
  • Outside Demand Vector (d): This vector represents the demand for goods and services from the open sector.
  • did_i is the dollar value of output from sector ii required by the open sector 127.
  • Intermediate Demand Vector (Cx): This vector represents the portion of production consumed by the productive sectors themselves.
  • Leontief Equation: The core equation that relates production, intermediate demand, and outside demand: x−Cx=dx - Cx = d, which can be rewritten as (I−C)x=d(I - C)x = d.
  • II is the identity matrix.
  • I−CI - C is called the Leontief matrix 128.

14.4 Satisfying Outside Demand

To meet the outside demand dd, the production vector xx must satisfy the Leontief equation (I−C)x=d(I - C)x = d. If the Leontief matrix I−CI - C is invertible, the unique solution is x=(I−C)−1dx = (I - C)^{-1}d.

For xx to be a valid production vector, its entries must be nonnegative.

  • Example 1: An economy with a given consumption matrix CC and an outside demand vector dd is analyzed. The Leontief equation is solved using row reduction to find the production vector xx that exactly meets the demand.

📝 For an economy with consumption matrix

C=(0.50.10.10.20.50.30.10.30.4)C = \begin{pmatrix} 0.5 & 0.1 & 0.1 \\ 0.2 & 0.5 & 0.3 \\ 0.1 & 0.3 & 0.4 \end{pmatrix}

and an outside demand vector

d=(790039501975)d = \begin{pmatrix} 7900 \\ 3950 \\ 1975 \end{pmatrix}

the Leontief equation (I−C)x=d(I - C)x = d is solved. The augmented matrix for this system is reduced to find that the economy can meet the demand by producing 27,50027,500 worth of manufacturing, 33,75033,750 of agriculture, and 24,75024,750 of utilities 128.

14.5 Productive Open Economies

An open economy is considered productive if its Leontief matrix (I−C)(I - C) is invertible and its inverse (I−C)−1(I - C)^{-1} has nonnegative entries. This ensures that any demand vector dd can be met by a valid (nonnegative) production vector xx.

  • Theorem 1.11.1: If all column sums of the consumption matrix CC are less than 1, then the economy is productive.
  • A column sum less than 1 indicates that the sector is "profitable" because it requires less than $1 dollar in input to produce $1 dollar of output.
  • Row Sums: An open economy is also productive if all row sums of CC are less than 1 129.

14.6 Example 2: An Open Economy Whose Sectors Are All Profitable

This example demonstrates the application of the theorem by calculating the inverse of the Leontief matrix for a given consumption matrix and using it to solve the Leontief equation.

  • The inverse of the Leontief matrix (I−C)−1(I - C)^{-1} is calculated.
  • This inverse is then used to find the production vector xx for a given outside demand vector dd, confirming the results obtained through row reduction.

📝 For the consumption matrix CC from Example 1, the inverse of the Leontief matrix (I−C)−1(I - C)^{-1} is approximately

(2.658231.139241.012661.898733.670892.151901.392412.025322.91139)\begin{pmatrix} 2.65823 & 1.13924 & 1.01266 \\ 1.89873 & 3.67089 & 2.15190 \\ 1.39241 & 2.02532 & 2.91139 \end{pmatrix}

Multiplying this inverse by the demand vector dd yields the production vector xx, which matches the solution found previously 130.

14.7 Exercises for Leontief Models

The exercise set provides problems that require constructing consumption matrices, solving Leontief equations using row reduction or matrix inversion, and analyzing economic scenarios.

  • Exercise Set 1.11: Includes problems involving:
  • Constructing consumption matrices for two-sector economies (mechanic/body shop, food/housing).
  • Calculating production vectors to meet specific outside demands using row reduction.
  • Using matrix inversion to find production vectors for given consumption matrices and demands.
  • Analyzing scenarios where demand can or cannot be met, with mathematical and economic explanations.
  • Determining which sector must produce the greatest dollar value when demands are equal.
  • Proving properties related to the Leontief equation and the economic significance of the inverse matrix.
  • True/False questions testing understanding of basic concepts like open/closed economies and consumption matrix properties.
  • A problem using technology to determine if an economy can meet a given demand 130 131.

14.8 Determinants: Introduction and Definitions

Determinants are numerical values associated with square matrices that provide information about the matrix's properties, such as invertibility. They are crucial for understanding concepts like Cramer's Rule and finding matrix inverses.

  • Determinant Function: Assigns a real number to a square matrix.
  • Notation: det⁡(A)\det(A) or ∣A∣|A|.
  • 2x2 Determinant: For a matrix A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix}, the determinant is det⁡(A)=ad−bc\det(A) = ad - bc.
  • Invertibility: A 2x2 matrix AA is invertible if and only if det⁡(A)≠0\det(A) \neq 0.
  • Inverse Formula (2x2): The inverse of a 2x2 matrix A=(abcd)A = \begin{pmatrix} a & b \\ c & d \end{pmatrix} can be expressed as A−1=1det⁡(A)(d−b−ca)A^{-1} = \frac{1}{\det(A)} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} 135.

14.9 Minors and Cofactors

To define determinants for matrices larger than 2x2, we use the concepts of minors and cofactors, which are derived from submatrices.

  • Minor (MijM_{ij}): The determinant of the submatrix formed by deleting the ii-th row and jj-th column of a square matrix AA.
  • Cofactor (CijC_{ij}): The minor multiplied by (−1)i+j(-1)^{i+j}. Cij=(−1)i+jMijC_{ij} = (-1)^{i+j}M_{ij} 136.
  • The sign associated with a cofactor follows a checkerboard pattern:
      • -...
      • +...

14.10 Cofactor Expansions of a 2x2 Matrix

The determinant of a 2x2 matrix can be expressed in terms of its entries and cofactors in four ways, corresponding to expansions along each row and column.

  • Expansion along the first row: det⁡(A)=a11C11+a12C12\det(A) = a_{11}C_{11} + a_{12}C_{12}
  • Expansion along the second row: det⁡(A)=a21C21+a22C22\det(A) = a_{21}C_{21} + a_{22}C_{22}
  • Expansion along the first column: det⁡(A)=a11C11+a21C21\det(A) = a_{11}C_{11} + a_{21}C_{21}
  • Expansion along the second column: det⁡(A)=a12C12+a22C22\det(A) = a_{12}C_{12} + a_{22}C_{22} 137.

14.11 Definition of a General Determinant

The determinant of an n×nn \times n matrix can be calculated by expanding along any row or column, multiplying each entry by its corresponding cofactor and summing the results.

  • Cofactor Expansion: For an n×nn \times n matrix AA:
  • Along the jj-th column: det⁡(A)=a1jC1j+a2jC2j+⋯+anjCnj\det(A) = a_{1j}C_{1j} + a_{2j}C_{2j} + \dots + a_{nj}C_{nj}.
  • Along the ii-th row: det⁡(A)=ai1Ci1+ai2Ci2+⋯+ainCin\det(A) = a_{i1}C_{i1} + a_{i2}C_{i2} + \dots + a_{in}C_{in}.
  • Theorem 2.1.1: The value obtained from any cofactor expansion (along any row or column) is the same and equals the determinant of the matrix 138.

14.12 Example 3: Cofactor Expansion Along the First Row

This example demonstrates calculating the determinant of a 3x3 matrix by expanding along its first row.

  • The determinant is computed by multiplying each element of the first row by its corresponding cofactor and summing these products.

📝 To find the determinant of the matrix

A=(3−4015−2−321)A = \begin{pmatrix} 3 & -4 & 0 \\ 1 & 5 & -2 \\ -3 & 2 & 1 \end{pmatrix}

by cofactor expansion along the first row: det⁡(A)=3⋅C11+(−4)⋅C12+0⋅C13\det(A) = 3 \cdot C_{11} + (-4) \cdot C_{12} + 0 \cdot C_{13}. Calculating the cofactors C11C_{11} and C12C_{12} and substituting them yields det⁡(A)=−37\det(A) = -37 138.

14.13 Example 4: Cofactor Expansion Along the First Column

This example shows how to calculate the determinant of the same 3x3 matrix by expanding along its first column, yielding the same result.

  • The determinant is calculated by summing the products of the elements in the first column with their respective cofactors.

📝 Expanding the determinant of the matrix AA from Example 3 along the first column: det⁡(A)=3⋅C11+1⋅C21+(−3)⋅C31\det(A) = 3 \cdot C_{11} + 1 \cdot C_{21} + (-3) \cdot C_{31}. This calculation also results in det⁡(A)=−37\det(A) = -37 139.

14.14 Example 5: Smart Choice of Row or Column

Choosing a row or column with the most zeros simplifies the cofactor expansion process, as terms multiplied by zero do not need to be calculated.

  • For a 4x4 matrix, expanding along the second column (which contains two zeros) is more efficient than other expansions.

📝 For the matrix

A=(1203−2−41036210012)A = \begin{pmatrix} 1 & 2 & 0 & 3 \\ -2 & -4 & 1 & 0 \\ 3 & 6 & 2 & 1 \\ 0 & 0 & 1 & 2 \end{pmatrix}

expanding along the second column: det⁡(A)=2⋅C12+(−4)⋅C22+6⋅C32+0⋅C42\det(A) = 2 \cdot C_{12} + (-4) \cdot C_{22} + 6 \cdot C_{32} + 0 \cdot C_{42}. The calculation involves finding the determinants of 3x3 submatrices 139.

14.15 Example 6: Determinant of a Lower Triangular Matrix

The determinant of a triangular matrix (upper or lower) is simply the product of its diagonal entries.

  • This is demonstrated by repeatedly applying cofactor expansion along the first row of a lower triangular matrix.

📝 The determinant of a 4x4 lower triangular matrix A=[aij]A = [a_{ij}] is shown to be a11a22a33a44a_{11}a_{22}a_{33}a_{44} by successive cofactor expansions along the first row 140.

  • Theorem 2.1.2: For any n×nn \times n triangular matrix AA (upper, lower, or diagonal), det⁡(A)=a11a22…ann\det(A) = a_{11}a_{22} \dots a_{nn} 140.

14.16 Evaluating 2x2 and 3x3 Determinants

A visual method can be used to efficiently calculate determinants for 2x2 and 3x3 matrices.

  • 2x2 Determinant Pattern: For A=(a11a12a21a22)A = \begin{pmatrix} a_{11} & a_{12} \\ a_{21} & a_{22} \end{pmatrix}, det⁡(A)=a11a22−a12a21\det(A) = a_{11}a_{22} - a_{12}a_{21}.
  • 3x3 Determinant Pattern: This method involves repeating the first two columns of the matrix and summing the products of the diagonals going down and subtracting the products of the diagonals going up 140.

14.17 Evaluating determinants by cofactor expansion

The determinant of a square matrix can be calculated using cofactor expansion. This method involves selecting a row or column and computing the sum of the products of each entry in that row or column with its corresponding cofactor.

The cofactor of an entry is the minor of that entry multiplied by (−1)i+j(-1)^{i+j}, where ii is the row number and jj is the column number. The minor of an entry is the determinant of the submatrix formed by deleting the row and column containing that entry.

This process is recursive, breaking down the determinant of an n×nn \times n matrix into determinants of (n−1)×(n−1)(n-1) \times (n-1) matrices, until 2×22 \times 2 matrices are reached.

  • Cofactor expansion: This technique allows the calculation of a determinant by selecting any row or column.
  • Minor (MijM_{ij}): The determinant of the submatrix obtained by deleting the ii-th row and jj-th column of a matrix.
  • Cofactor (CijC_{ij}): Calculated as Cij=(−1)i+jMijC_{ij} = (-1)^{i+j} M_{ij}.
  • Determinant calculation: The determinant of matrix AA can be found by det⁡(A)=∑j=1naijCij\det(A) = \sum_{j=1}^{n} a_{ij} C_{ij} for any row ii, or det⁡(A)=∑i=1naijCij\det(A) = \sum_{i=1}^{n} a_{ij} C_{ij} for any column jj.

14.18 Technique for evaluating 2 × 2 and 3 × 3 determinants

For 2×22 \times 2 and 3×33 \times 3 matrices, a visual "arrow technique" can be used to compute the determinant. For a 2×22 \times 2 matrix, multiply the entries on the rightward diagonal and subtract the product of the entries on the leftward diagonal.

For a 3×33 \times 3 matrix, recopy the first two columns to the right of the matrix. Then, sum the products of the entries on the three rightward diagonals and subtract the sum of the products of the entries on the three leftward diagonals.

This method is equivalent to cofactor expansion along the first row but is limited to these specific matrix sizes.

  • 2 × 2 determinant: For matrix (abcd)\begin{pmatrix} a & b \\ c & d \end{pmatrix}, the determinant is ad−bcad - bc.
  • 3 × 3 determinant (arrow technique): For matrix (a11a12a13a21a22a23a31a32a33)\begin{pmatrix} a_{11} & a_{12} & a_{13} \\ a_{21} & a_{22} & a_{23} \\ a_{31} & a_{32} & a_{33} \end{pmatrix}, the determinant is (a11a22a33+a12a23a31+a13a21a32)−(a13a22a31+a11a23a32+a12a21a33)(a_{11}a_{22}a_{33} + a_{12}a_{23}a_{31} + a_{13}a_{21}a_{32}) - (a_{13}a_{22}a_{31} + a_{11}a_{23}a_{32} + a_{12}a_{21}a_{33}).
  • Limitation: The arrow technique is only applicable to 2×22 \times 2 and 3×33 \times 3 matrices and does not work for larger matrices.

📝 For the matrix (4−213)\begin{pmatrix} 4 & -2 \\ 1 & 3 \end{pmatrix}, the determinant is (4)(3)−(−2)(1)=12−(−2)=14(4)(3) - (-2)(1) = 12 - (-2) = 14.

14.19 Theorem on zero determinants

A fundamental theorem states that if a square matrix has a row or a column consisting entirely of zeros, its determinant is zero. This is because in any cofactor expansion along that row or column, every term will have a factor of zero, resulting in a total determinant of zero.

This property is crucial for understanding matrix invertibility, as a matrix with a determinant of zero is not invertible.

  • Zero row or column: If a square matrix AA contains a row or column of all zeros, then det⁡(A)=0\det(A) = 0.
  • Implication: A matrix with a zero determinant is singular, meaning it does not have an inverse.

14.20 Evaluating determinants by row reduction

Evaluating determinants using row reduction is generally more efficient than cofactor expansion, especially for larger matrices. This method involves transforming the matrix into row echelon form using elementary row operations.

The effect of each row operation on the determinant is known:

  1. Swapping two rows multiplies the determinant by -1.
  2. Multiplying a row by a nonzero scalar kk multiplies the determinant by kk.
  3. Adding a multiple of one row to another row does not change the determinant. Once the matrix is in row echelon form (which is an upper triangular matrix), its determinant is simply the product of the diagonal entries. The determinant of the original matrix can then be found by accounting for the changes made by the row operations.
  • Row echelon form: A matrix is in row echelon form if all nonzero rows are above any rows of all zeros, and the leading coefficient (pivot) of a nonzero row is strictly to the right of the leading coefficient of any row above it.
  • Determinant of upper triangular matrix: The determinant of an upper triangular matrix is the product of its diagonal entries.
  • Row operations and determinants:
  • Row swap: det⁡(A′)=−det⁡(A)\det(A') = -\det(A).
  • Row scaling by kk: det⁡(A′)=kdet⁡(A)\det(A') = k \det(A).
  • Row addition: det⁡(A′)=det⁡(A)\det(A') = \det(A) 141.
Row OperationEffect on Determinant
Interchange two rowsMultiplies determinant by -1
Multiply a row by a nonzero scalar kkMultiplies determinant by kk
Add a multiple of one row to another rowLeaves determinant unchanged

15. Evaluating Determinants by Row Reduction a Basic theorem

15.1 Theorem 2.2.1: Determinant with a row or column of zeros

If a square matrix A has a row or column consisting entirely of zeros, then det(A) = 0. This is because the determinant can be calculated using a cofactor expansion along that row or column, where each term in the expansion will be zero 144.

15.2 Theorem 2.2.2: Determinant of a transpose

For any square matrix A, the determinant of A is equal to the determinant of its transpose, A^T. This means det(A) = det(A^T) 144.

15.3 Theorem 2.2.3: Effect of elementary row operations on the determinant

Elementary row operations on a square matrix A have predictable effects on its determinant:

  • Multiplying a row or column by a scalar kk: If matrix B is obtained by multiplying a single row or column of A by kk, then det(B) = kk det(A).
  • Interchanging two rows or columns: If matrix B is obtained by interchanging two rows or columns of A, then det(B) = -det(A).
  • Adding a multiple of one row or column to another: If matrix B is obtained by adding a multiple of one row (or column) to another row (or column) of A, then det(B) = det(A) 144.

The first panel of Table 1 illustrates that a common factor can be brought out from any row or column of a determinant 144.

OperationEffect on Determinant
Multiply a row/column by kdet(B) = k det(A)
Interchange two rows/columnsdet(B) = -det(A)
Add a multiple of one row/column to anotherdet(B) = det(A)

15.4 Theorem 2.2.4: Determinants of elementary matrices

Elementary matrices are formed by applying a single elementary row operation to the identity matrix (InI_n). Their determinants are:

  • If E results from multiplying a row of InI_n by a nonzero scalar kk, then det(E) = kk.
  • If E results from interchanging two rows of InI_n, then det(E) = -1.
  • If E results from adding a multiple of one row of InI_n to another, then det(E) = 1 145.

15.5 Theorem 2.2.5: Determinant with proportional rows or columns

If a square matrix A has two proportional rows or two proportional columns, then det(A) = 0. This is because a row of zeros can be introduced by adding a suitable multiple of one row to the other, and a matrix with a row of zeros has a determinant of zero 146.

15.6 Evaluating determinants by row reduction

A more efficient method for evaluating determinants, especially for larger matrices, involves reducing the matrix to upper triangular form using elementary row operations. The determinant of an upper triangular matrix is simply the product of its diagonal entries.

The relationship between the original determinant and the determinant of the row-reduced matrix is determined by the row operations performed 146.

15.7 Example 1: Matrices with proportional rows or columns

Matrices with proportional rows or columns have a determinant of zero. For instance, a matrix where one row is a multiple of another will have a determinant of 0 146.

15.8 Example 2: Using row reduction to evaluate a determinant

To evaluate det(A), we can perform row operations to transform A into an upper triangular matrix. Each operation affects the determinant as follows:

  1. Interchanging rows multiplies the determinant by -1.
  2. Multiplying a row by a scalar kk multiplies the determinant by kk.
  3. Adding a multiple of one row to another does not change the determinant.

After reducing the matrix to upper triangular form, the determinant is the product of the diagonal entries, adjusted by the factors from the row operations 146.

📝 Evaluate det(A) where

A=(123245356)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{pmatrix}

Solution:

det⁡(A)=∣123245356∣\det(A) = \begin{vmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{vmatrix}

Interchange R1 and R2:

=−∣245123356∣= -\begin{vmatrix} 2 & 4 & 5 \\ 1 & 2 & 3 \\ 3 & 5 & 6 \end{vmatrix}

Take a factor of 2 from R1:

=−2∣122.5123356∣= -2 \begin{vmatrix} 1 & 2 & 2.5 \\ 1 & 2 & 3 \\ 3 & 5 & 6 \end{vmatrix}

Subtract R1 from R2, and subtract 3*R1 from R3:

=−2∣122.5000.50−1−1.5∣= -2 \begin{vmatrix} 1 & 2 & 2.5 \\ 0 & 0 & 0.5 \\ 0 & -1 & -1.5 \end{vmatrix}

Since there is a row of zeros after subtracting R1 from R2, the determinant is 0.

=−2(0)=0= -2(0) = 0

146.

15.9 Example 3: Row operations and cofactor expansion

Determinants can be evaluated by combining row operations with cofactor expansion. Row operations can simplify the matrix, creating zeros that make cofactor expansion more efficient 147.

15.10 Example 4: Using column operations to evaluate a determinant

Column operations can also be used to simplify a determinant. Similar to row operations, adding a multiple of one column to another does not change the determinant.

This can be used to create zeros, simplifying subsequent cofactor expansion 147.

📝 Compute the determinant of

A=(123245356)A = \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{pmatrix}

Solution:

det⁡(A)=∣123245356∣\det(A) = \begin{vmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{vmatrix}

Add -3 times the first column to the fourth column (this is not a standard row/column operation, but an example of creating zeros):

=∣1230245−3356−3∣= \begin{vmatrix} 1 & 2 & 3 & 0 \\ 2 & 4 & 5 & -3 \\ 3 & 5 & 6 & -3 \end{vmatrix}

This example seems to be illustrating a different concept or has a typo, as column operations are typically applied to simplify the matrix itself, not to create an augmented matrix. Assuming the intent was to simplify the original 3x3 matrix using column operations:

Let's re-evaluate using column operations to simplify:

det⁡(A)=∣123245356∣\det(A) = \begin{vmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{vmatrix}

Add -2 times the first column to the second column:

=∣1032053−16∣= \begin{vmatrix} 1 & 0 & 3 \\ 2 & 0 & 5 \\ 3 & -1 & 6 \end{vmatrix}

Add -3 times the first column to the third column:

=∣10020−13−1−3∣= \begin{vmatrix} 1 & 0 & 0 \\ 2 & 0 & -1 \\ 3 & -1 & -3 \end{vmatrix}

Expand along the first row:

=1∣0−1−1−3∣=1((0)(−3)−(−1)(−1))=1(0−1)=−1= 1 \begin{vmatrix} 0 & -1 \\ -1 & -3 \end{vmatrix} = 1((0)(-3) - (-1)(-1)) = 1(0 - 1) = -1

147.

15.11 Example 5: Row operations and cofactor expansion

Combining row operations with cofactor expansion can be an effective strategy. Row operations can introduce zeros into the matrix, which simplifies the cofactor expansion process 148.

📝 Compute the determinant of

A=(12313381826)A = \begin{pmatrix} 1 & 2 & 3 \\ 1 & 3 & 3 \\ 8 & 18 & 26 \end{pmatrix}

Solution:

det⁡(A)=∣12313381826∣\det(A) = \begin{vmatrix} 1 & 2 & 3 \\ 1 & 3 & 3 \\ 8 & 18 & 26 \end{vmatrix}

Add the first row to the third row:

=∣12313392029∣= \begin{vmatrix} 1 & 2 & 3 \\ 1 & 3 & 3 \\ 9 & 20 & 29 \end{vmatrix}

Subtract the first row from the second row:

=∣12301092029∣= \begin{vmatrix} 1 & 2 & 3 \\ 0 & 1 & 0 \\ 9 & 20 & 29 \end{vmatrix}

Expand along the second row:

=−(1)∣13929∣=−(1⋅29−3⋅9)=−(29−27)=−2= -(1) \begin{vmatrix} 1 & 3 \\ 9 & 29 \end{vmatrix} = -(1 \cdot 29 - 3 \cdot 9) = -(29 - 27) = -2

148.

16. Chapter 3: Euclidean Vector Spaces

16.1 Basic Properties of Determinants

The properties of determinants are fundamental to understanding matrix behavior and solving linear systems. Key relationships exist between the determinants of matrices and their scalar multiples, sums, and products.

  • Scalar Multiplication of a Matrix: When a matrix AA is multiplied by a scalar kk, the determinant of the resulting matrix kAkA is related to the determinant of AA by the formula det⁡(kA)=kndet⁡(A)\det(kA) = k^n \det(A), where nn is the size of the square matrix. This is because each of the nn rows of kAkA has a common factor of kk 150.

  • Determinant of a Sum: In general, there is no simple relationship between det⁡(A)\det(A), det⁡(B)\det(B), and det⁡(A+B)\det(A + B). It is usually the case that det⁡(A+B)≠det⁡(A)+det⁡(B)\det(A + B) \neq \det(A) + \det(B) 150.

  • Determinant of a Matrix Product: For square matrices AA and BB of the same size, the determinant of their product is the product of their determinants: det⁡(AB)=det⁡(A)det⁡(B)\det(AB) = \det(A) \det(B) 151.

  • Determinant of an Elementary Matrix: If EE is an elementary matrix and BB is any n×nn \times n matrix, then det⁡(EB)=det⁡(E)det⁡(B)\det(EB) = \det(E) \det(B). This property is crucial in proving the general determinant product rule 151.

  • Determinant of an Inverse Matrix: If AA is an invertible matrix, then the determinant of its inverse is the reciprocal of its determinant: det⁡(A−1)=1det⁡(A)\det(A^{-1}) = \frac{1}{\det(A)} 153.

  • Sums of Determinants with a Single Row/Column Difference: If two matrices AA and BB differ only in a single row (or column), and the corresponding row (or column) of a third matrix CC is the sum of the corresponding rows (or columns) of AA and BB, then det⁡(C)=det⁡(A)+det⁡(B)\det(C) = \det(A) + \det(B) 150 151.

📝 Consider matrices A=(1234)A = \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} and B=(1256)B = \begin{pmatrix} 1 & 2 \\ 5 & 6 \end{pmatrix}. Here, det⁡(A)=(1)(4)−(2)(3)=−2\det(A) = (1)(4) - (2)(3) = -2 and det⁡(B)=(1)(6)−(2)(5)=−4\det(B) = (1)(6) - (2)(5) = -4. If C=(12810)C = \begin{pmatrix} 1 & 2 \\ 8 & 10 \end{pmatrix}, then det⁡(C)=(1)(10)−(2)(8)=−6\det(C) = (1)(10) - (2)(8) = -6. Notice that det⁡(A)+det⁡(B)=−2+(−4)=−6=det⁡(C)\det(A) + \det(B) = -2 + (-4) = -6 = \det(C) 150.

16.2 Determinant Test for Invertibility

A fundamental property of determinants is their direct relationship to the invertibility of a square matrix.

  • Invertibility Criterion: A square matrix AA is invertible if and only if its determinant is non-zero (det⁡(A)≠0\det(A) \neq 0) 152.

This theorem connects the concept of invertibility, previously discussed in terms of row echelon forms and linear systems, directly to the determinant. If a matrix can be reduced to the identity matrix through elementary row operations, its determinant will be non-zero.

Conversely, if the determinant is non-zero, the matrix must be reducible to the identity matrix and thus is invertible 152.

📝 The matrix A=(1224)A = \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix} has a determinant of (1)(4)−(2)(2)=0(1)(4) - (2)(2) = 0. Since the determinant is zero, the matrix AA is not invertible. This is because the second row is a multiple of the first row, indicating linear dependence 152.

16.3 The Adjoint of a Matrix 154 155

The adjoint of a matrix is a related matrix that plays a key role in finding the inverse of a matrix and in Cramer's Rule.

  • Matrix of Cofactors: For an n×nn \times n matrix AA, the matrix of cofactors is an n×nn \times n matrix where each entry CijC_{ij} is the cofactor of the corresponding entry aija_{ij} in AA 154.

  • Adjoint Matrix: The adjoint of a matrix AA, denoted by adj(A)\text{adj}(A), is the transpose of its matrix of cofactors 154.

The relationship between a matrix AA and its adjoint is given by the equation A⋅adj(A)=det⁡(A)IA \cdot \text{adj}(A) = \det(A)I, where II is the identity matrix. This property is essential for deriving the formula for the inverse of a matrix using its adjoint 156.

MatrixCofactor MatrixAdjoint Matrix
A=(32−1 421 12−1016)A = \begin{pmatrix} 3 & 2 & -1 \ 4 & 2 & 1 \ 12 & -10 & 16 \end{pmatrix}C=(12−4−16 6210 12−1616)C = \begin{pmatrix} 12 & -4 & -16 \ 6 & 2 & 10 \ 12 & -16 & 16 \end{pmatrix}adj(A)=(12612 −42−16 −161016)adj(A) = \begin{pmatrix} 12 & 6 & 12 \ -4 & 2 & -16 \ -16 & 10 & 16 \end{pmatrix}

16.4 Inverse of a Matrix Using Its Adjoint

The adjoint matrix provides a direct method for calculating the inverse of an invertible matrix.

  • Formula for Inverse: If AA is an invertible n×nn \times n matrix, its inverse can be found using the formula: A−1=1det⁡(A)adj(A)A^{-1} = \frac{1}{\det(A)} \text{adj}(A) 155.

This formula is particularly useful for theoretical purposes and for finding the inverse of small matrices. It directly links the determinant, the adjoint, and the inverse 156.

📝 For the matrix A=(32−142112−1016)A = \begin{pmatrix} 3 & 2 & -1 \\ 4 & 2 & 1 \\ 12 & -10 & 16 \end{pmatrix}, we found det⁡(A)=64\det(A) = 64 and adj(A)=(12612−42−16−161016)\text{adj}(A) = \begin{pmatrix} 12 & 6 & 12 \\ -4 & 2 & -16 \\ -16 & 10 & 16 \end{pmatrix}. Therefore, A−1=164(12612−42−16−161016)=(12/646/6412/64−4/642/64−16/64−16/6410/6416/64)=(3/163/323/16−1/161/32−1/4−1/45/321/4)A^{-1} = \frac{1}{64} \begin{pmatrix} 12 & 6 & 12 \\ -4 & 2 & -16 \\ -16 & 10 & 16 \end{pmatrix} = \begin{pmatrix} 12/64 & 6/64 & 12/64 \\ -4/64 & 2/64 & -16/64 \\ -16/64 & 10/64 & 16/64 \end{pmatrix} = \begin{pmatrix} 3/16 & 3/32 & 3/16 \\ -1/16 & 1/32 & -1/4 \\ -1/4 & 5/32 & 1/4 \end{pmatrix} 156.

16.5 Cramer’s Rule

Cramer's Rule offers a method for solving systems of linear equations Ax=bAx = b when the coefficient matrix AA is invertible.

  • Unique Solution: If AA is an n×nn \times n invertible matrix, the system Ax=bAx = b has a unique solution 157.

  • Cramer's Rule Formula: The unique solution for each variable xjx_j is given by: xj=det⁡(Aj)det⁡(A)x_j = \frac{\det(A_j)}{\det(A)} where AjA_j is the matrix formed by replacing the jj-th column of AA with the vector bb 157.

This rule provides an explicit formula for each component of the solution vector. It is particularly useful for theoretical analysis and for solving systems with a small number of equations 157.

📝 To solve the system: x1+x2+2x3=6x_1 + x_2 + 2x_3 = 6 −3x1+4x2+6x3=30-3x_1 + 4x_2 + 6x_3 = 30 −x1−2x2+3x3=8-x_1 - 2x_2 + 3x_3 = 8

The coefficient matrix is A=(112−346−1−23)A = \begin{pmatrix} 1 & 1 & 2 \\ -3 & 4 & 6 \\ -1 & -2 & 3 \end{pmatrix}, and b=(6308)b = \begin{pmatrix} 6 \\ 30 \\ 8 \end{pmatrix}. We calculate det⁡(A)=44\det(A) = 44.

To find x1x_1, we form A1=(61230468−23)A_1 = \begin{pmatrix} 6 & 1 & 2 \\ 30 & 4 & 6 \\ 8 & -2 & 3 \end{pmatrix}, and det⁡(A1)=−40\det(A_1) = -40. So, x1=−4044=−1011x_1 = \frac{-40}{44} = -\frac{10}{11}.

To find x2x_2, we form A2=(162−3306−183)A_2 = \begin{pmatrix} 1 & 6 & 2 \\ -3 & 30 & 6 \\ -1 & 8 & 3 \end{pmatrix}, and det⁡(A2)=−72\det(A_2) = -72. So, x2=−7244=−1811x_2 = \frac{-72}{44} = -\frac{18}{11}.

To find x3x_3, we form A3=(116−3430−1−28)A_3 = \begin{pmatrix} 1 & 1 & 6 \\ -3 & 4 & 30 \\ -1 & -2 & 8 \end{pmatrix}, and det⁡(A3)=−152\det(A_3) = -152. So, x3=−15244=−3811x_3 = \frac{-152}{44} = -\frac{38}{11}.

The solution is x1=−10/11x_1 = -10/11, x2=−18/11x_2 = -18/11, x3=−38/11x_3 = -38/11 157.

16.6 Equivalence Theorem

The concept of invertibility of a matrix is linked to numerous other important properties, forming a comprehensive equivalence theorem.

  • Equivalent Statements: For an n×nn \times n matrix AA, the following statements are equivalent:
  • AA is invertible.
  • Ax=0Ax = 0 has only the trivial solution.
  • The reduced row echelon form of AA is InI_n.
  • AA can be expressed as a product of elementary matrices.
  • Ax=bAx = b is consistent for every n×1n \times 1 matrix bb.
  • Ax=bAx = b has exactly one solution for every n×1n \times 1 matrix bb.
  • det⁡(A)≠0\det(A) \neq 0 158.

This theorem consolidates many of the key ideas about matrices studied so far, emphasizing that these different conditions all signify the same fundamental property of a matrix: its invertibility 158.

16.7 Properties of Triangular Matrices

Triangular matrices possess specific properties related to their invertibility and the nature of their inverses.

  • Invertibility of Triangular Matrices: A triangular matrix (either upper or lower) is invertible if and only if all of its diagonal entries are non-zero 159.

  • Inverse of Triangular Matrices: If an invertible triangular matrix is upper triangular, its inverse is also upper triangular. Similarly, the inverse of an invertible lower triangular matrix is lower triangular 159.

The proof for the inverse of an upper triangular matrix involves showing that its adjoint matrix is lower triangular, which implies that the inverse itself is upper triangular 159.

16.8 Vectors in 2-Space, 3-Space, and n-Space

Engineers and physicists distinguish between scalars, described by a numerical value alone, and vectors, which require both a number and a direction. While these concepts originate in physics, they are used here to build mathematical structures applicable to diverse fields 165.

Geometric vectors in two or three dimensions are represented by arrows, where the arrowhead indicates direction and the arrow's length indicates magnitude. The tail is the initial point, and the tip is the terminal point 165.

  • Equivalent vectors: Vectors with the same length and direction are considered equivalent and thus the same vector, regardless of their position.
  • Zero vector: The vector with zero length, denoted by 0, has no natural direction and can be assigned any convenient direction 166.

16.9 Vector addition

Vector addition can be visualized using two rules:

  • Parallelogram Rule: If two vectors with coinciding initial points form adjacent sides of a parallelogram, their sum is the vector from the common initial point to the opposite vertex.
  • Triangle Rule: If the initial point of one vector is placed at the terminal point of another, their sum is the vector from the initial point of the first vector to the terminal point of the second 166.

Vector addition is commutative (v+w=w+vv + w = w + v) and can be viewed as a translation of points 166.

📝 If v=(1,2)v = (1, 2) and w=(3,4)w = (3, 4), then v+w=(1+3,2+4)=(4,6)v + w = (1+3, 2+4) = (4, 6).

16.10 Vector subtraction

Vector subtraction is defined as adding the negative of a vector: w−v=w+(−v)w - v = w + (-v). The negative of a vector, −v-v, has the same length as vv but the opposite direction 167.

16.11 Scalar multiplication

Scalar multiplication involves multiplying a vector by a real number (scalar) to change its length or reverse its direction.

  • If k>0k > 0, kvkv has the same direction as vv and length ∣k∣|k| times the length of vv.
  • If k<0k < 0, kvkv has the opposite direction to vv and length ∣k∣|k| times the length of vv.
  • If k=0k = 0 or v=0v = 0, then kv=0kv = 0 168.

📝 If v=(2,−3,4)v = (2, -3, 4) and k=−2k = -2, then kv=(−4,6,−8)kv = (-4, 6, -8).

16.12 Parallel and collinear vectors

Vectors are considered parallel or collinear if one is a scalar multiple of the other. The zero vector is considered parallel to all vectors 168.

16.13 Sums of three or more vectors

Vector addition is associative, meaning the order of addition does not affect the result (u+(v+w)=(u+v)+wu + (v + w) = (u + v) + w). The sum of three or more vectors can be constructed by placing them "tip to tail" in succession 168.

16.14 Vectors in coordinate systems

Using a coordinate system simplifies vector computations.

  • Vectors in 2-space and 3-space: A vector with its initial point at the origin is determined by the coordinates of its terminal point, called its components. For v=(v1,v2)v = (v_1, v_2) in 2-space and v=(v1,v2,v3)v = (v_1, v_2, v_3) in 3-space.
  • Vectors with initial points not at the origin: The components of a vector with initial point P1(x1,y1)P_1(x_1, y_1) and terminal point P2(x2,y2)P_2(x_2, y_2) are (x2−x1,y2−y1)(x_2 - x_1, y_2 - y_1) 169.

16.15 Example: Finding the components of a vector

The components of a vector with initial point P1(2,−1,4)P_1(2, -1, 4) and terminal point P2(7,5,−8)P_2(7, 5, -8) are (7−2,5−(−1),−8−4)=(5,6,−12)(7-2, 5-(-1), -8-4) = (5, 6, -12) 170.

16.16 Vectors in n-Space

An ordered n-tuple is a sequence of nn real numbers (v1,v2,…,vn)(v_1, v_2, \dots, v_n). The set of all ordered n-tuples is real n-space, denoted by RnR^n 170.

  • Applications of n-tuples: n-tuples are used to represent experimental data, distributions, electrical circuits, graphical images, economic outputs, and the state of mechanical systems 171.

16.17 Operations on vectors in RnR^n

Operations on vectors in RnR^n are natural extensions of those in R2R^2 and R3R^3.

  • Equality: Vectors v=(v1,…,vn)v = (v_1, \dots, v_n) and w=(w1,…,wn)w = (w_1, \dots, w_n) are equal if vi=wiv_i = w_i for all ii 172.
  • Addition: v+w=(v1+w1,…,vn+wn)v + w = (v_1 + w_1, \dots, v_n + w_n).
  • Scalar Multiplication: kv=(kv1,…,kvn)kv = (kv_1, \dots, kv_n).
  • Subtraction: w−v=(w1−v1,…,wn−vn)w - v = (w_1 - v_1, \dots, w_n - v_n) 173.

16.18 Theorem 3.1.1: Properties of vector operations

Let u,v,wu, v, w be vectors in RnR^n and k,mk, m be scalars.

PropertyDescription
(a) Commutativity of Additionu + v = v + u
(b) Associativity of Addition(u + v) + w = u + (v + w)
(c) Additive Identityu + 0 = 0 + u = u
(d) Additive Inverseu + (−u) = 0
(e) Distributivity of Scalar Multiplication over Vector Additionk(u + v) = ku + kv
(f) Distributivity of Scalar Addition over Vector Multiplication(k + m)u = ku + mu
(g) Associativity of Scalar Multiplicationk(mu) = (km)u
(h) Multiplicative Identity1u = u

16.19 Theorem 3.1.2: Properties involving zero vector

If vv is a vector in RnR^n and kk is a scalar:

PropertyDescription
(a)0v = 0
(b)k0 = 0
(c)(−1)v = −v

16.20 Calculating without components

Vector equations can be solved algebraically without resorting to components, using the properties of vector operations 174.

16.21 Linear Combinations

A vector ww in RnR^n is a linear combination of vectors v1,…,vrv_1, \dots, v_r if it can be expressed as w=k1v1+k2v2+⋯+krvrw = k_1v_1 + k_2v_2 + \dots + k_rv_r, where kik_i are scalars called coefficients 174.

16.22 Alternative notations for vectors

Vectors in RnR^n can be represented in comma-delimited form (v1,…,vn)(v_1, \dots, v_n), row-vector form [v1…vn][v_1 \dots v_n], or column-vector form 175.

16.23 Application: RGB color model

The RGB color model uses linear combinations of red (1,0,0)(1, 0, 0), green (0,1,0)(0, 1, 0), and blue (0,0,1)(0, 0, 1) vectors in R3R^3 to create colors. A color c=(k1,k2,k3)c = (k_1, k_2, k_3) where 0≤ki≤10 \le k_i \le 1 175.

16.24 Norm, Dot Product, and Distance in RnR^n

This section focuses on the concepts of length, distance, and angle for vectors 177.

16.25 Norm of a vector

The norm (or length or magnitude) of a vector v=(v1,v2,…,vn)v = (v_1, v_2, \dots, v_n) in RnR^n is denoted by ∣∣v∣∣||v|| and calculated as:

∣∣v∣∣=v12+v22+⋯+vn2||v|| = \sqrt{v_1^2 + v_2^2 + \dots + v_n^2} 178.

16.26 Theorem 3.2.1: Properties of vector norms

For any vector vv in RnR^n and scalar kk:

PropertyDescription
(a)Nonnegativity
(b)Zero vector property
(c)Scalar multiplication property
  • ∣∣v∣∣≥0||v|| \ge 0.
  • ∣∣v∣∣=0||v|| = 0 if and only if v=0v = 0 178.
  • $
  • kv
  • =: k
  • v

$ 178.

16.27 Unit vectors

A unit vector has a norm of 1. A unit vector uu in the same direction as a nonzero vector vv is found by normalizing vv:

u=v∣∣v∣∣u = \frac{v}{||v||} 179.

16.28 Example: Normalizing a vector

To find the unit vector uu in the same direction as v=(2,2,−1)v = (2, 2, -1), first calculate its norm: $

  • v
  • = \sqrt{2^2 + 2^2 + (-1)^2} = \sqrt{4+4+1} = \sqrt{9} = 3$. Then, $u = \frac{v}{
  • v

} = \frac{1}{3}(2, 2, -1) = (\frac{2}{3}, \frac{2}{3}, -\frac{1}{3})$ 179.

16.29 Standard unit vectors

In RnR^n, the standard unit vectors are e1=(1,0,…,0)e_1 = (1, 0, \dots, 0), e2=(0,1,…,0)e_2 = (0, 1, \dots, 0),..., en=(0,0,…,1)e_n = (0, 0, \dots, 1). Any vector v=(v1,…,vn)v = (v_1, \dots, v_n) can be written as a linear combination: v=v1e1+v2e2+⋯+vnenv = v_1e_1 + v_2e_2 + \dots + v_ne_n 179.

16.30 Example: Linear combinations of standard unit vectors

The vector (2,−3,4)(2, -3, 4) can be written as 2i−3j+4k2i - 3j + 4k, where i=(1,0,0)i=(1,0,0), j=(0,1,0)j=(0,1,0), and k=(0,0,1)k=(0,0,1) 180.

16.31 Distance in RnR^n

The distance dd between two points P1(x1,y1,z1)P_1(x_1, y_1, z_1) and P2(x2,y2,z2)P_2(x_2, y_2, z_2) in R3R^3 is the norm of the vector connecting them: d=∣∣P1P2⃗∣∣=(x2−x1)2+(y2−y1)2+(z2−z1)2d = ||\vec{P_1P_2}|| = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2} 180.

The distance between two points u=(u1,…,un)u = (u_1, \dots, u_n) and v=(v1,…,vn)v = (v_1, \dots, v_n) in RnR^n is defined as:

d(u,v)=∣∣u−v∣∣=(u1−v1)2+(u2−v2)2+⋯+(un−vn)2d(u, v) = ||u - v|| = \sqrt{(u_1-v_1)^2 + (u_2-v_2)^2 + \dots + (u_n-v_n)^2} 180.

16.32 Example: Calculating distance in RnR^n

The distance between u=(1,3,−2,7)u = (1, 3, -2, 7) and v=(0,7,2,2)v = (0, 7, 2, 2) is d(u,v)=(1−0)2+(3−7)2+(−2−2)2+(7−2)2=12+(−4)2+(−4)2+52=1+16+16+25=58d(u, v) = \sqrt{(1-0)^2 + (3-7)^2 + (-2-2)^2 + (7-2)^2} = \sqrt{1^2 + (-4)^2 + (-4)^2 + 5^2} = \sqrt{1 + 16 + 16 + 25} = \sqrt{58} 180.

16.33 Norm, dot product, and distance in Rn

The dot product, also known as the Euclidean inner product, of two nonzero vectors uu and vv in R2R^2 or R3R^3 is defined as $u \cdot v =

  • u
  • v

\cos \theta$, where θ\theta is the angle between them. If either vector is the zero vector, their dot product is 0. The sign of the dot product indicates the angle: positive for acute (θ<π/2\theta < \pi/2), negative for obtuse (θ>π/2\theta > \pi/2), and zero for a right angle (θ=π/2\theta = \pi/2) 181.

The component form of the dot product simplifies calculations. For vectors in R3R^3, u=(u1,u2,u3)u = (u_1, u_2, u_3) and v=(v1,v2,v3)v = (v_1, v_2, v_3), the dot product is u⋅v=u1v1+u2v2+u3v3u \cdot v = u_1v_1 + u_2v_2 + u_3v_3.

For vectors in R2R^2, it is u⋅v=u1v1+u2v2u \cdot v = u_1v_1 + u_2v_2. This component-wise formula extends to RnR^n, where u=(u1,u2,…,un)u = (u_1, u_2, \dots, u_n) and v=(v1,v2,…,vn)v = (v_1, v_2, \dots, v_n), as u⋅v=u1v1+u2v2+⋯+unvnu \cdot v = u_1v_1 + u_2v_2 + \dots + u_nv_n.

To compute the dot product, multiply corresponding components and sum the results 182.

The norm of a vector vv can be expressed using the dot product: ∣∣v∣∣=v⋅v||v|| = \sqrt{v \cdot v} 183.

16.34 Algebraic properties of the dot product 183

The dot product shares several algebraic properties with real number multiplication.

PropertyDescription
Symmetryu · v = v · u
Distributiveu · (v + w) = u · v + u · w
Homogeneityk(u · v) = (ku) · v
Positivityv · v ≥ 0, and v · v = 0 if and only if v = 0

Additional properties include 0⋅v=v⋅0=00 \cdot v = v \cdot 0 = 0, (u+v)⋅w=u⋅w+v⋅w(u + v) \cdot w = u \cdot w + v \cdot w, u⋅(v−w)=u⋅v−u⋅wu \cdot (v - w) = u \cdot v - u \cdot w, (u−v)⋅w=u⋅w−v⋅w(u - v) \cdot w = u \cdot w - v \cdot w, and k(u⋅v)=u⋅(kv)k(u \cdot v) = u \cdot (kv) 184.

These properties allow for algebraic manipulation of dot product expressions, such as expanding $(u - 2v) \cdot (3u + 4v) = 3

  • u
  • ^2 - 2(u \cdot v) - 8
  • v

^2$ 184.

16.35 Cauchy–Schwarz inequality

The Cauchy–Schwarz inequality states that for any vectors uu and vv in RnR^n, $

u \cdot v\leq
u—
v—

$. This inequality is crucial for defining the angle between vectors in RnR^n, ensuring that cos⁡θ\cos \theta is always between -1 and 1 185.

16.36 Geometry in Rn

The triangle inequality for vectors, $

  • u + v
  • \leq
  • u
  • v

$, extends geometric principles to RnR^n. This means the length of the sum of two vectors is less than or equal to the sum of their individual lengths.

Similarly, the triangle inequality for distances, d(u,v)≤d(u,w)+d(w,v)d(u, v) \leq d(u, w) + d(w, v), states that the shortest distance between two points is a straight line 186.

The parallelogram equation for vectors, $

  • u + v
  • ^2 +
  • u - v
  • ^2 = 2(
  • u
  • ^2 +
  • v

^2)$, generalizes a property of parallelograms in plane geometry to RnR^n 186.

A fundamental relationship between the dot product and norm is given by $

  • u + v
  • ^2 -
  • u - v

^2 = 4(u \cdot v)$ 187.

16.37 Dot products as matrix multiplication 188

The dot product can be expressed using matrix notation, depending on whether vectors are row or column matrices 188.

u (Matrix Form)v (Matrix Form)Dot Product u · v
Column MatrixColumn Matrixuᵀv = vᵀu
Row MatrixColumn Matrixuv = vᵀuᵀ
Column MatrixRow Matrixvu = uᵀvᵀ
Row MatrixRow Matrixuvᵀ = vuᵀ

This matrix representation leads to the identities Au⋅v=u⋅ATvAu \cdot v = u \cdot A^T v and u⋅Av=ATu⋅vu \cdot Av = A^T u \cdot v for an n×nn \times n matrix AA 188.

Matrix multiplication can be viewed through dot products. The ijij-th entry of the product ABAB is the dot product of the ii-th row vector of AA and the jj-th column vector of BB 189.

16.38 Orthogonality

Two nonzero vectors uu and vv in RnR^n are considered orthogonal (or perpendicular) if their dot product is zero (u⋅v=0u \cdot v = 0). The zero vector is orthogonal to every vector in RnR^n 191.

16.39 Orthogonal vectors 192

The condition u⋅v=0u \cdot v = 0 implies that the angle between the vectors is π/2\pi/2 radians (90 degrees) 191.

VectorsDot ProductRelationship
u = (−2, 3, 1, 4), v = (1, 2, 0, −1) in R4u · v = (−2)+ 2 3 + 1 + 4(−1) = 0Orthogonal
Standard unit vectors i, j, k in R3i · j = 0, i · k = 0, j · k = 0Mutually orthogonal

16.40 Lines and planes determined by points and normals

A line in R2R^2 or a plane in R3R^3 can be defined by a point and a normal vector nn, which is orthogonal to the line or plane. The point-normal equation for a line through P0(x0,y0)P_0(x_0, y_0) with normal n=(a,b)n = (a, b) is a(x−x0)+b(y−y0)=0a(x - x_0) + b(y - y_0) = 0.

For a plane through P0(x0,y0,z0)P_0(x_0, y_0, z_0) with normal n=(a,b,c)n = (a, b, c), the equation is a(x−x0)+b(y−y0)+c(z−z0)=0a(x - x_0) + b(y - y_0) + c(z - z_0) = 0 192.

These equations can be simplified to ax+by+c=0ax + by + c = 0 for a line in R2R^2 and ax+by+cz+d=0ax + by + cz + d = 0 for a plane in R3R^3, where the coefficients (a,b)(a, b) and (a,b,c)(a, b, c) form the normal vectors, respectively 193.

Homogeneous equations like ax+by=0ax + by = 0 and ax+by+cz=0ax + by + cz = 0 can be written in vector form as n⋅x=0n \cdot x = 0, where nn is the vector of coefficients and xx is the vector of unknowns. This signifies that the normal vector is orthogonal to every vector on the line or in the plane 194.

16.41 Orthogonal projections

A vector uu can be decomposed into two orthogonal components: one parallel to a nonzero vector aa and another orthogonal to aa. This decomposition is unique and is given by u=w1+w2u = w_1 + w_2, where w1w_1 is a scalar multiple of aa and w2w_2 is orthogonal to aa 194.

  • The vector w1w_1 is the orthogonal projection of uu on aa, denoted as projau\text{proj}_a u.
  • The vector w2w_2 is the vector component of uu orthogonal to aa.

The formulas for these components are: projau=u⋅a∣∣a∣∣2a\text{proj}_a u = \frac{u \cdot a}{||a||^2} a w2=u−projauw_2 = u - \text{proj}_a u 195.

📝 Let u=(2,−1,3)u = (2, -1, 3) and a=(4,−1,2)a = (4, -1, 2). The dot product u⋅a=(2)(4)+(−1)(−1)+(3)(2)=15u \cdot a = (2)(4) + (-1)(-1) + (3)(2) = 15. The squared norm of aa is ∣∣a∣∣2=42+(−1)2+22=21||a||^2 = 4^2 + (-1)^2 + 2^2 = 21.

The projection of uu along aa is projau=1521(4,−1,2)=57(4,−1,2)=(207,−57,107)\text{proj}_a u = \frac{15}{21}(4, -1, 2) = \frac{5}{7}(4, -1, 2) = (\frac{20}{7}, -\frac{5}{7}, \frac{10}{7}). The component of uu orthogonal to aa is w2=u−projau=(2,−1,3)−(207,−57,107)=(14−207,−7+57,21−107)=(−67,−27,117)w_2 = u - \text{proj}_a u = (2, -1, 3) - (\frac{20}{7}, -\frac{5}{7}, \frac{10}{7}) = (\frac{14-20}{7}, \frac{-7+5}{7}, \frac{21-10}{7}) = (-\frac{6}{7}, -\frac{2}{7}, \frac{11}{7}) 195.

The orthogonal projection of a vector onto a line through the origin making an angle θ\theta with the positive x-axis can be found using a standard matrix. For a unit vector a=(cos⁡θ,sin⁡θ)a = (\cos \theta, \sin \theta) along the line, the projection matrix is: Pθ=[cos⁡2θsin⁡θcos⁡θsin⁡θcos⁡θsin⁡2θ]P_\theta = \begin{bmatrix} \cos^2 \theta & \sin \theta \cos \theta \\ \sin \theta \cos \theta & \sin^2 \theta \end{bmatrix} 196.

16.42 Reflections about lines through the origin

Reflections about a line L through the origin that makes an angle θ with the positive x-axis can be represented by the matrix HθH_\theta. This matrix is related to the orthogonal projection matrix PθP_\theta by the formula Hθ=2Pθ−IH_\theta = 2P_\theta - I.

The standard matrix for HθH_\theta is given by:

AngleMatrix
HθH_\theta(cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ)\begin{pmatrix} \cos 2\theta & \sin 2\theta \\ \sin 2\theta & -\cos 2\theta \end{pmatrix}

This formula allows for the calculation of the reflection of a vector about a line through the origin 197.

📝 Find the reflection of the vector x=(1,5)x = (1, 5) about the line through the origin that makes an angle of π/6\pi/6 with the x-axis.

The standard matrix for this reflection is:

Hπ/6=(cos⁡(π/3)sin⁡(π/3)sin⁡(π/3)−cos⁡(π/3))=(1/23/23/2−1/2)H_{\pi/6} = \begin{pmatrix} \cos(\pi/3) & \sin(\pi/3) \\ \sin(\pi/3) & -\cos(\pi/3) \end{pmatrix} = \begin{pmatrix} 1/2 & \sqrt{3}/2 \\ \sqrt{3}/2 & -1/2 \end{pmatrix}

Applying this matrix to the vector (1,5)(1, 5):

Hπ/6(15)≈(2.91−1.68)H_{\pi/6} \begin{pmatrix} 1 \\ 5 \end{pmatrix} \approx \begin{pmatrix} 2.91 \\ -1.68 \end{pmatrix}

Thus, the reflection of (1,5)(1, 5) is approximately (2.91,−1.68)(2.91, -1.68) 197.

16.43 Norm of a projection

The norm of the vector component of uu along a vector aa (the projection of uu onto aa) can be calculated using the formula:

∥projau∥=∣u⋅a∣∥a∥\| \text{proj}_a u \| = \frac{|u \cdot a|}{\|a\|}

This can also be expressed in terms of the angle θ\theta between uu and aa as:

∥projau∥=∥u∥∣cos⁡θ∣\| \text{proj}_a u \| = \|u\| |\cos \theta|

This represents the length of the projection of uu onto the line defined by aa 197.

16.44 The Theorem of Pythagoras in Rn

A generalization of the Pythagorean theorem states that if uu and vv are orthogonal vectors in RnR^n, then the square of the norm of their sum is equal to the sum of their squared norms:

∥u+v∥2=∥u∥2+∥v∥2\|u + v\|^2 = \|u\|^2 + \|v\|^2

This holds because the dot product u⋅vu \cdot v is zero when uu and vv are orthogonal 198.

📝 Verify the Theorem of Pythagoras for orthogonal vectors u=(−2,3,1,4)u = (-2, 3, 1, 4) and v=(1,2,0,−1)v = (1, 2, 0, -1).

First, confirm orthogonality: u⋅v=(−2)(1)+(3)(2)+(1)(0)+(4)(−1)=−2+6+0−4=0u \cdot v = (-2)(1) + (3)(2) + (1)(0) + (4)(-1) = -2 + 6 + 0 - 4 = 0.

Then, calculate the norms: ∥u+v∥2=∥(−1,5,1,3)∥2=(−1)2+52+12+32=1+25+1+9=36\|u + v\|^2 = \|(-1, 5, 1, 3)\|^2 = (-1)^2 + 5^2 + 1^2 + 3^2 = 1 + 25 + 1 + 9 = 36. ∥u∥2=(−2)2+32+12+42=4+9+1+16=30\|u\|^2 = (-2)^2 + 3^2 + 1^2 + 4^2 = 4 + 9 + 1 + 16 = 30. ∥v∥2=12+22+02+(−1)2=1+4+0+1=6\|v\|^2 = 1^2 + 2^2 + 0^2 + (-1)^2 = 1 + 4 + 0 + 1 = 6.

Thus, ∥u+v∥2=36\|u + v\|^2 = 36 and ∥u∥2+∥v∥2=30+6=36\|u\|^2 + \|v\|^2 = 30 + 6 = 36. The theorem holds 198.

16.45 Distance problems

Orthogonal projections can be used to solve distance problems involving points, lines, and planes.

ProblemFormula
Distance D between point P0(x0, y0) and line ax + by + c = 0 in R2D=∣ax0+by0+c∣a2+b2D = \frac{\vert ax_0 + by_0 + c\vert }{\sqrt{a^2 + b^2}}
Distance D between point P0(x0, y0, z0) and plane ax + by + cz + d = 0 in R3D=∣ax0+by0+cz0+d∣a2+b2+c2D = \frac{\vert ax_0 + by_0 + cz_0 + d\vert }{\sqrt{a^2 + b^2 + c^2}}

The distance between two parallel planes can be found by selecting a point in one plane and calculating its distance to the other plane 198 199.

📝 Find the distance D between the point (1,−4,−3)(1, -4, -3) and the plane 2x−3y+6z=−12x - 3y + 6z = -1.

First, rewrite the plane equation as 2x−3y+6z+1=02x - 3y + 6z + 1 = 0. Using the distance formula: D=∣2(1)−3(−4)+6(−3)+1∣22+(−3)2+62=∣2+12−18+1∣4+9+36=∣−3∣49=37D = \frac{|2(1) - 3(-4) + 6(-3) + 1|}{\sqrt{2^2 + (-3)^2 + 6^2}} = \frac{|2 + 12 - 18 + 1|}{\sqrt{4 + 9 + 36}} = \frac{|-3|}{\sqrt{49}} = \frac{3}{7} The distance is 3/73/7 199.

📝 Find the distance between the parallel planes x+2y−2z=3x + 2y - 2z = 3 and 2x+4y−4z=72x + 4y - 4z = 7.

Select a point in the first plane, for example, P0(3,0,0)P_0(3, 0, 0) by setting y=z=0y=z=0. The second plane's equation is 2x+4y−4z−7=02x + 4y - 4z - 7 = 0. Using the distance formula for a point to a plane: D=∣2(3)+4(0)−4(0)−7∣22+42+(−4)2=∣6−7∣4+16+16=∣−1∣36=16D = \frac{|2(3) + 4(0) - 4(0) - 7|}{\sqrt{2^2 + 4^2 + (-4)^2}} = \frac{|6 - 7|}{\sqrt{4 + 16 + 16}} = \frac{|-1|}{\sqrt{36}} = \frac{1}{6} The distance between the planes is 1/61/6 200.

16.46 Vector and parametric equations of lines in Rn

A line in RnR^n passing through a point x0x_0 and parallel to a nonzero vector vv can be represented by the vector equation:

x=x0+tvx = x_0 + tv

where tt is a parameter. If x0=0x_0 = 0, the line passes through the origin.

Equating the components of the vectors yields the parametric equations of the line 202 203 204.

📝 Find a vector equation and parametric equations for the line in R3R^3 passing through P0(1,2,−3)P_0(1, 2, -3) and parallel to v=(4,−5,1)v = (4, -5, 1).

The vector equation is: (x,y,z)=(1,2,−3)+t(4,−5,1)(x, y, z) = (1, 2, -3) + t(4, -5, 1) The parametric equations are: x=1+4tx = 1 + 4t y=2−5ty = 2 - 5t z=−3+tz = -3 + t

Two other points on the line can be found by choosing values for tt. For t=1t=1, the point is (5,−3,−2)(5, -3, -2). For t=−1t=-1, the point is (−3,7,−4)(-3, 7, -4) 204.

16.47 Vector and parametric equations of planes in R3

A plane in R3R^3 passing through a point x0x_0 and parallel to two noncollinear vectors v1v_1 and v2v_2 can be represented by the vector equation:

x=x0+t1v1+t2v2x = x_0 + t_1v_1 + t_2v_2

where t1t_1 and t2t_2 are parameters. If x0=0x_0 = 0, the plane passes through the origin.

Equating components yields the parametric equations 203 204.

17. Vector and Parametric Equations of a Plane in R3 EXAMPLE 2

17.1 Vector and parametric equations of a plane in R4

A plane in R4 can be defined by a point and two non-parallel vectors. The vector equation of a plane passing through a point x0x_0 and parallel to vectors v1v_1 and v2v_2 is given by x=x0+t1v1+t2v2x = x_0 + t_1v_1 + t_2v_2.

This equation can be expanded into parametric equations by equating the components of the vectors.

For example, to find the vector and parametric equations of a plane in R4 passing through x0=(2,−1,0,3)x_0 = (2, -1, 0, 3) and parallel to v1=(1,5,2,−4)v_1 = (1, 5, 2, -4) and v2=(0,7,−8,6)v_2 = (0, 7, -8, 6):

  • The vector equation is: (x1,x2,x3,x4)=(2,−1,0,3)+t1(1,5,2,−4)+t2(0,7,−8,6)(x_1, x_2, x_3, x_4) = (2, -1, 0, 3) + t_1(1, 5, 2, -4) + t_2(0, 7, -8, 6).
  • The parametric equations are: x1=2+t1x_1 = 2 + t_1 x2=−1+5t1+7t2x_2 = -1 + 5t_1 + 7t_2 x3=2t1−8t2x_3 = 2t_1 - 8t_2 x4=3−4t1+6t2x_4 = 3 - 4t_1 + 6t_2 205.

17.2 Vector and parametric equations of a line in R4

A line in R4 can be defined by a point and a direction vector. The vector equation of a line passing through the origin and parallel to a vector vv is x=tvx = tv.

For example, to find the vector and parametric equations of a line through the origin of R4 parallel to v=(5,−3,6,1)v = (5, -3, 6, 1):

  • The vector equation is: (x1,x2,x3,x4)=t(5,−3,6,1)(x_1, x_2, x_3, x_4) = t(5, -3, 6, 1).
  • The parametric equations are: x1=5tx_1 = 5t x2=−3tx_2 = -3t x3=6tx_3 = 6t x4=tx_4 = t 205.

📝 The line through the origin of R4 parallel to v=(5,−3,6,1)v = (5, -3, 6, 1) has the vector equation (x1,x2,x3,x4)=t(5,−3,6,1)(x_1, x_2, x_3, x_4) = t(5, -3, 6, 1) and parametric equations x1=5tx_1 = 5t, x2=−3tx_2 = -3t, x3=6tx_3 = 6t, x4=tx_4 = t 205.

17.3 Lines through two points in Rn

A line in Rn passing through two distinct points x0x_0 and x1x_1 can be represented by a vector equation. This line is parallel to the vector v=x1−x0v = x_1 - x_0.

The two-point vector equations of a line in Rn are:

  • x=x0+t(x1−x0)x = x_0 + t(x_1 - x_0).
  • x=(1−t)x0+tx1x = (1 - t)x_0 + tx_1 205.

For example, to find vector and parametric equations for the line in R2 passing through points P(0, 7) and Q(5, 0):

  • Let x0=(0,7)x_0 = (0, 7) and x1=(5,0)x_1 = (5, 0). Then x1−x0=(5,−7)x_1 - x_0 = (5, -7).
  • The vector equation is: (x,y)=(0,7)+t(5,−7)(x, y) = (0, 7) + t(5, -7).
  • The parametric equations are: x=5tx = 5t y=7−7ty = 7 - 7t 206.

📝 The line in R2 passing through P(0, 7) and Q(5, 0) has the vector equation (x,y)=(0,7)+t(5,−7)(x, y) = (0, 7) + t(5, -7) and parametric equations x=5tx = 5t, y=7−7ty = 7 - 7t 206.

17.4 Line segments in Rn

A line segment from x0x_0 to x1x_1 in Rn is defined by restricting the parameter tt in the line equation to the interval [0,1][0, 1].

The equations for a line segment are:

  • x=x0+t(x1−x0)x = x_0 + t(x_1 - x_0), where 0≤t≤10 \le t \le 1.
  • x=(1−t)x0+tx1x = (1 - t)x_0 + tx_1, where 0≤t≤10 \le t \le 1 206.

For example, the line segment in R2 from x0=(1,−3)x_0 = (1, -3) to x1=(5,6)x_1 = (5, 6) can be represented by:

  • x=(1,−3)+t(4,9)x = (1, -3) + t(4, 9), where 0≤t≤10 \le t \le 1.
  • x=(1−t)(1,−3)+t(5,6)x = (1 - t)(1, -3) + t(5, 6), where 0≤t≤10 \le t \le 1 206.

17.5 Dot product form of a linear system

Linear equations can be expressed concisely using dot product notation. A linear equation a1x1+a2x2+⋯+anxn=ba_1x_1 + a_2x_2 + \dots + a_nx_n = b can be written as a⋅x=ba \cdot x = b, where a=(a1,a2,…,an)a = (a_1, a_2, \dots, a_n) and x=(x1,x2,…,xn)x = (x_1, x_2, \dots, x_n).

For a homogeneous linear system, where the right-hand side is zero, each solution vector xx is orthogonal to the coefficient vector aa.

Consider a homogeneous system Ax=0Ax = 0, where AA is an m×nm \times n matrix with row vectors r1,r2,…,rmr_1, r_2, \dots, r_m. This system can be written in dot product form as:

  • r1⋅x=0r_1 \cdot x = 0
  • r2⋅x=0r_2 \cdot x = 0
  • …\dots
  • rm⋅x=0r_m \cdot x = 0 207.

17.6 Theorem 3.4.3: Orthogonality of row vectors and solution vectors

The solution set of a homogeneous linear system Ax=0Ax = 0 consists of all vectors in RnR^n that are orthogonal to every row vector of the coefficient matrix AA 207.

17.7 Orthogonality of row vectors and solution vectors EXAMPLE 6

This example demonstrates Theorem 3.4.3 by confirming that the solution vectors of a homogeneous linear system are orthogonal to the row vectors of the coefficient matrix.

Given the homogeneous linear system: [13−202026−5−24−3005100152608418][x1x2x3x4x5x6]=[0000]\begin{bmatrix} 1 & 3 & -2 & 0 & 2 & 0 \\ 2 & 6 & -5 & -2 & 4 & -3 \\ 0 & 0 & 5 & 10 & 0 & 15 \\ 2 & 6 & 0 & 8 & 4 & 18 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \\ x_3 \\ x_4 \\ x_5 \\ x_6 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \\ 0 \end{bmatrix} The general solution is x=(−3r−4s−2t,r,−2s,s,t,0)x = (-3r - 4s - 2t, r, -2s, s, t, 0). The row vectors are r1=(1,3,−2,0,2,0)r_1 = (1, 3, -2, 0, 2, 0), r2=(2,6,−5,−2,4,−3)r_2 = (2, 6, -5, -2, 4, -3), r3=(0,0,5,10,0,15)r_3 = (0, 0, 5, 10, 0, 15), and r4=(2,6,0,8,4,18)r_4 = (2, 6, 0, 8, 4, 18).

The dot product r1⋅xr_1 \cdot x is: 1(−3r−4s−2t)+3(r)+(−2)(−2s)+0(s)+2(t)+0(0)=01(-3r - 4s - 2t) + 3(r) + (-2)(-2s) + 0(s) + 2(t) + 0(0) = 0 This confirms that xx is orthogonal to r1r_1. The orthogonality to the other row vectors can be similarly verified 208.

📝 For the homogeneous linear system with coefficient matrix A=[13−202026−5−24−3005100152608418]A = \begin{bmatrix} 1 & 3 & -2 & 0 & 2 & 0 \\ 2 & 6 & -5 & -2 & 4 & -3 \\ 0 & 0 & 5 & 10 & 0 & 15 \\ 2 & 6 & 0 & 8 & 4 & 18 \end{bmatrix} and general solution x=(−3r−4s−2t,r,−2s,s,t,0)x = (-3r - 4s - 2t, r, -2s, s, t, 0), the dot product r1⋅x=(1,3,−2,0,2,0)⋅x=0r_1 \cdot x = (1, 3, -2, 0, 2, 0) \cdot x = 0 208.

17.8 Cross product of vectors in R3

The cross product is an operation on two vectors in 3-space that results in a vector. For vectors u=(u1,u2,u3)u = (u_1, u_2, u_3) and v=(v1,v2,v3)v = (v_1, v_2, v_3), the cross product u×vu \times v is defined as: u×v=(u2v3−u3v2,u3v1−u1v3,u1v2−u2v1)u \times v = (u_2v_3 - u_3v_2, u_3v_1 - u_1v_3, u_1v_2 - u_2v_1) 210.

This can also be represented using determinants:

———
u1u_1u2u_2u3u_3
v1v_1v2v_2v3v_3

where the first component is found by deleting the first column and taking the determinant, the second component by deleting the second column and taking the negative determinant, and the third component by deleting the third column and taking the determinant 210.

17.9 Calculating a cross product EXAMPLE 1

To find u×vu \times v where u=(1,2,−2)u = (1, 2, -2) and v=(3,0,1)v = (3, 0, 1): u×v=(2(1)−(−2)(0),(−2)(3)−(1)(1),(1)(0)−(2)(3))u \times v = (2(1) - (-2)(0), (-2)(3) - (1)(1), (1)(0) - (2)(3)) u×v=(2,−7,−6)u \times v = (2, -7, -6) 210.

17.10 Theorem 3.5.1: Relationships involving cross product and dot product 210

For vectors u,v,wu, v, w in 3-space:

PropertyEquation
Orthogonal to uu⋅(u×v)=0u \cdot (u \times v) = 0
Orthogonal to vv⋅(u×v)=0v \cdot (u \times v) = 0
Lagrange's identity∥u×v∥2=∥u∥2∥v∥2−(u⋅v)2\Vert u \times v\Vert ^2 = \Vert u\Vert ^2\Vert v\Vert ^2 - (u \cdot v)^2
Vector triple productu×(v×w)=(u⋅w)v−(u⋅v)wu \times (v \times w) = (u \cdot w)v - (u \cdot v)w
Vector triple product(u×v)×w=(u⋅w)v−(v⋅w)u(u \times v) \times w = (u \cdot w)v - (v \cdot w)u

17.11 u × v is perpendicular to u and to v EXAMPLE 2

Using the vectors u=(1,2,−2)u = (1, 2, -2) and v=(3,0,1)v = (3, 0, 1) from Example 1, we found u×v=(2,−7,−6)u \times v = (2, -7, -6).

  • u⋅(u×v)=(1)(2)+(2)(−7)+(−2)(−6)=2−14+12=0u \cdot (u \times v) = (1)(2) + (2)(-7) + (-2)(-6) = 2 - 14 + 12 = 0
  • v⋅(u×v)=(3)(2)+(0)(−7)+(1)(−6)=6−0−6=0v \cdot (u \times v) = (3)(2) + (0)(-7) + (1)(-6) = 6 - 0 - 6 = 0 This confirms that u×vu \times v is orthogonal to both uu and vv 211.

17.12 Standard unit vectors in R3

The standard unit vectors in 3-space are i=(1,0,0)i = (1, 0, 0), j=(0,1,0)j = (0, 1, 0), and k=(0,0,1)k = (0, 0, 1). They have length 1 and lie along the coordinate axes.

Any vector v=(v1,v2,v3)v = (v_1, v_2, v_3) can be written as v=v1i+v2j+v3kv = v_1i + v_2j + v_3k 212.

17.13 Cross products of the standard unit vectors EXAMPLE 3

The cross products of the standard unit vectors follow specific patterns:

  • i×i=0i \times i = 0, j×j=0j \times j = 0, k×k=0k \times k = 0
  • i×j=ki \times j = k, j×k=ij \times k = i, k×i=jk \times i = j
  • j×i=−kj \times i = -k, k×j=−ik \times j = -i, i×k=−ji \times k = -j 212.

17.14 Theorem 3.5.2: Properties of cross product 212

For any vectors u,v,wu, v, w in 3-space and scalar kk:

PropertyEquation
Anticommutativityu×v=−(v×u)u \times v = -(v \times u)
Distributivityu×(v+w)=(u×v)+(u×w)u \times (v + w) = (u \times v) + (u \times w)
Distributivity(u+v)×w=(u×w)+(v×w)(u + v) \times w = (u \times w) + (v \times w)
Scalar multiplicationk(u×v)=(ku)×v=u×(kv)k(u \times v) = (ku) \times v = u \times (kv)
Zero vectoru×0=0×u=0u \times 0 = 0 \times u = 0
Cross product with selfu×u=0u \times u = 0

17.15 Determinant form of cross product 213

The cross product can be symbolically represented using a determinant:

———
iijjkk
u1u_1u2u_2u3u_3
v1v_1v2v_2v3v_3

17.16 Calculating a cross product EXAMPLE 1 (revisited)

Using the determinant form for u=(1,2,−2)u = (1, 2, -2) and v=(3,0,1)v = (3, 0, 1):

———
iijjkk
12-2
301

This determinant expands to i(2⋅1−(−2)⋅0)−j(1⋅1−(−2)⋅3)+k(1⋅0−2⋅3)=2i−7j−6ki(2 \cdot 1 - (-2) \cdot 0) - j(1 \cdot 1 - (-2) \cdot 3) + k(1 \cdot 0 - 2 \cdot 3) = 2i - 7j - 6k, which is (2,−7,−6)(2, -7, -6) 213.

17.17 Geometric interpretation of cross product

The norm of the cross product ∣∣u×v∣∣||u \times v|| represents the area of the parallelogram determined by vectors uu and vv. This is derived from Lagrange's identity: $

  • u \times v
  • =
  • u
  • v

\sin \theta$ 213.

17.18 Theorem 3.5.3: Area of a parallelogram

If uu and vv are vectors in 3-space, then ∣∣u×v∣∣||u \times v|| is equal to the area of the parallelogram determined by uu and vv 214.

17.19 Area of a triangle EXAMPLE 4

To find the area of the triangle with vertices P1(2, 2, 0), P2(−1, 0, 2), and P3(0, 4, 3):

  1. Define vectors from one vertex: P1P2⃗=(−1−2,0−2,2−0)=(−3,−2,2)\vec{P_1P_2} = (-1-2, 0-2, 2-0) = (-3, -2, 2) P1P3⃗=(0−2,4−2,3−0)=(−2,2,3)\vec{P_1P_3} = (0-2, 4-2, 3-0) = (-2, 2, 3)
  2. Calculate the cross product: P1P2⃗×P1P3⃗=(−3,−2,2)×(−2,2,3)=(−10,5,−10)\vec{P_1P_2} \times \vec{P_1P_3} = (-3, -2, 2) \times (-2, 2, 3) = (-10, 5, -10)
  3. The area of the triangle is half the magnitude of the cross product: Area =12∣∣(−10,5,−10)∣∣=12(−10)2+52+(−10)2=12100+25+100=12225=152= \frac{1}{2} ||(-10, 5, -10)|| = \frac{1}{2} \sqrt{(-10)^2 + 5^2 + (-10)^2} = \frac{1}{2} \sqrt{100 + 25 + 100} = \frac{1}{2} \sqrt{225} = \frac{15}{2} 214.

17.20 Scalar triple product 215

The scalar triple product of vectors u,v,wu, v, w in 3-space is u⋅(v×w)u \cdot (v \times w). It can be calculated using a determinant:

———
u1u_1u2u_2u3u_3
v1v_1v2v_2v3v_3
w1w_1w2w_2w3w_3

17.21 Calculating a scalar triple product EXAMPLE 5

For vectors u=3i−2j−5ku = 3i - 2j - 5k, v=i+4j−4kv = i + 4j - 4k, and w=3j+2kw = 3j + 2k: The scalar triple product u⋅(v×w)u \cdot (v \times w) is calculated as the determinant:

———
3-2-5
14-4
032

Determinant =3(4⋅2−(−4)⋅3)−(−2)(1⋅2−(−4)⋅0)+(−5)(1⋅3−4⋅0)= 3(4 \cdot 2 - (-4) \cdot 3) - (-2)(1 \cdot 2 - (-4) \cdot 0) + (-5)(1 \cdot 3 - 4 \cdot 0) =3(8+12)+2(2)−5(3)=3(20)+4−15=60+4−15=49= 3(8 + 12) + 2(2) - 5(3) = 3(20) + 4 - 15 = 60 + 4 - 15 = 49 215.

17.22 Theorem 3.5.4: Geometric interpretation of determinants

  • The absolute value of the determinant of two vectors in 2-space, det⁡(u,v)\det(u, v), equals the area of the parallelogram they determine.
  • The absolute value of the determinant of three vectors in 3-space, det⁡(u,v,w)\det(u, v, w), equals the volume of the parallelepiped they determine 216.

17.23 Theorem 3.5.5: Coplanar vectors

Three vectors u,v,wu, v, w in 3-space with the same initial point lie in the same plane if and only if their scalar triple product is zero: det⁡(u,v,w)=u⋅(v×w)=0\det(u, v, w) = u \cdot (v \times w) = 0 217.

17.24 Supplementary Exercises: Vector Operations and Geometric Objects

This section presents a series of exercises focusing on vector operations, geometric interpretations in R2 and R3, and the properties of lines and planes. These problems require applying concepts such as dot products, cross products, projections, and orthogonality.

  • Vector Operations: Exercises involve computing linear combinations of vectors, magnitudes of vector sums, distances between vectors, and projections of one vector onto another.
  • Orthogonality: Several exercises explore the geometric objects formed by sets of vectors orthogonal to a given vector or set of vectors in R2 and R3.
  • Geometric Interpretation: Problems ask to describe geometric objects (lines, planes) defined by orthogonality conditions or vector equations.
  • Parallelism: Exercises involve finding points or vectors such that one vector is parallel to another, often in the context of lines in R4 or R3.
  • Angles and Distances: Calculations include finding the cosine of the angle between vectors and the distance between points and planes 219 220.

17.25 Finding Vector and Parametric Equations for Lines and Planes

This set of exercises focuses on deriving vector and parametric equations for lines and planes in R2 and R3, given specific conditions such as containing certain points or being parallel/orthogonal to other geometric objects.

  • Plane Equations:
  • Find the equation of a plane containing three distinct noncollinear points.
  • Find the equation of a plane containing a given point and parallel to another plane.
  • Find the equation of a plane represented by a vector equation.
  • Find the equation of a plane containing a given point and orthogonal to a given line.
  • Line Equations:
  • Find the equation of a line containing a given point and orthogonal to a given plane.
  • Find the equation of a line parallel to a given vector and containing a given point.
  • Find the equation of a line given in slope-intercept form 220.

📝 Find the equation of a line parallel to the vector v=(6,−1)v = (6, -1) and containing the point P(0,−3)P(0, -3) 220.

17.26 Finding Point-Normal Equations for Planes

These exercises require finding a point-normal equation for a plane, which involves identifying a point on the plane and a vector normal to it.

  • Plane from Vector Equation: Given a vector equation of a plane, identify a point and two non-parallel vectors within the plane to find a normal vector using their cross product.
  • Plane Orthogonal to a Line: For a plane orthogonal to a line defined by parametric equations, the direction vector of the line serves as the normal vector to the plane.
  • Plane Through Three Points: To find the point-normal equation for a plane passing through three points, first find two vectors lying in the plane, then compute their cross product to obtain the normal vector 220.

17.27 Properties of Orthogonal Vectors and Spaces

This exercise explores the properties of orthogonal vectors and their implications in vector spaces.

  • Orthogonality of Vector Combinations: If a set of vectors V is orthogonal to a set of vectors W, then any linear combination of vectors from V is orthogonal to any linear combination of vectors from W. This demonstrates a fundamental property of orthogonal subspaces 220.

17.28 Distance from a Point to a Line in 3-Space

This exercise provides a formula for calculating the distance from a point to a line in 3-space and asks for its application.

  • Distance Formula: The distance dd from a point PP to a line LL through points AA and BB is given by:
- \vec{AP} \times \vec{AB} - }{ - \vec{AB} }$$ This formula utilizes the cross product to find a vector perpendicular to the plane formed by $\vec{AP}$ and $\vec{AB}$, whose magnitude is related to the area of the parallelogram defined by these vectors [219](#page=219) [220](#page=220). > 📝 The distance $d$ from a point $P$ to a line $L$ through points $A$ and $B$ is given by: $d = \frac{ - \vec{AP} \times \vec{AB} - }{ - \vec{AB} }$ [219](#page=219). ## 17.29 Geometric Interpretation of Linear Equations This exercise probes the geometric representation of linear equations in different dimensions. - **Equation $Ax + By = 0$ in R2:** This equation represents a line passing through the origin in a 2-dimensional space, provided $A$ and $B$ are not both zero. - **Equation $Ax + By + 0z = 0$ in R3:** In a 3-dimensional space, this equation simplifies to $Ax + By = 0$. This represents a plane that contains the z-axis and passes through the origin [220](#page=220). ## 17.30 Proof of Vector Magnitude Equality This exercise requires proving a condition under which the sum of the magnitudes of two vectors equals the magnitude of their sum. - **Triangle Inequality Equality:** The equality $ - \mathbf{u} + \mathbf{v} - = - \mathbf{u} - + - \mathbf{v} $ holds if and only if one of the vectors is a non-negative scalar multiple of the other, meaning they are collinear and point in the same direction [220](#page=220). ## 17.31 Applications of Vector Spaces in Robotics, Computer Vision, and Artificial Intelligence This section discusses the broad applications of vector spaces in modern technological fields. - **Robotics:** Vector spaces are used for motion planning, control systems, representing positions, velocities, and forces, enabling precise navigation and manipulation. - **Computer Vision:** Images are treated as high-dimensional vectors for tasks like recognition and detection, crucial for autonomous systems and augmented reality. - **Artificial Intelligence:** Data points are represented as vectors in machine learning, and neural networks use vector spaces to model complex relationships for natural language processing and speech recognition [219](#page=219). ## 17.32 Properties of Cross Products and Scalar Triple Products [219](#page=219) This exercise tests understanding of fundamental properties related to cross products and scalar triple products. | Statement | True/False | | --- | --- | | The cross product of two nonzero vectors u and v is a nonzero vector if and only if u and v are not parallel. | True | | A normal vector to a plane can be obtained by taking the cross product of two nonzero and noncollinear vectors lying in the plane. | True | | The scalar triple product of u, v, and w determines a vector whose length is equal to the volume of the parallelepiped determined by u, v, and w. | False | | If u and v are vectors in 3-space, then | — | v × u | — | is equal to the area of the parallelogram determined by u and v. | True | | For all vectors u, v, and w in 3-space, the vectors (u × v) × w and u × (v × w) are the same. | False | | If u, v, and w are vectors in R3, where u is nonzero and u × v = u × w, then v = w. | False | # 18. Real Vector Spaces Vector Space Axioms ## 18.1 Vector space definition A vector space is a nonempty set V of objects, called vectors, for which two operations are defined: addition and scalar multiplication. These operations must satisfy ten axioms for all objects u, v, w in V and all scalars k, m. The scalars are typically real or complex numbers; this text focuses on real vector spaces. The ten axioms are: 1. **Closure under addition**: If u and v are in V, then u + v is in V. 2. **Commutativity of addition**: u + v = v + u. 3. **Associativity of addition**: u + (v + w) = (u + v) + w. 4. **Existence of zero vector**: There exists an object 0 in V such that 0 + u = u + 0 = u for all u in V. 5. **Existence of additive inverse**: For each u in V, there exists an object −u in V such that u + (−u) = (−u) + u = 0. 6. **Closure under scalar multiplication**: If k is any scalar and u is in V, then ku is in V. 7. **Distributivity of scalar multiplication with respect to vector addition**: k(u + v) = ku + kv. 8. **Distributivity of scalar multiplication with respect to scalar addition**: (k + m)u = ku + mu. 9. **Associativity of scalar multiplication**: k(mu) = (km)(u). 10. **Scalar identity**: 1u = u [222](#page=222). ## 18.2 Steps to show a set is a vector space To demonstrate that a set V with defined addition and scalar multiplication operations is a vector space, follow these steps: * **Step 1**: Identify the set V of objects that will serve as vectors. * **Step 2**: Identify the specific addition and scalar multiplication operations on V. * **Step 3**: Verify closure under addition (Axiom 1) and closure under scalar multiplication (Axiom 6). This ensures that the operations produce results within the set V. * **Step 4**: Confirm that the remaining eight axioms (Axioms 2, 3, 4, 5, 7, 8, 9, and 10) hold true for all vectors in V and all scalars [222](#page=222). > 📝 To show V = R2 with u + v = (u1 + v1, u2 + v2) and ku = (0, ku2) is a vector space, you must verify closure under addition and scalar multiplication, and then confirm the remaining eight axioms. For instance, Axiom 10 fails because 1u = (u1, 0) ≠ u for u = (u1, u2) where u2 ≠ 0 [228](#page=228). ## 18.3 The zero vector space This vector space consists of a single object, denoted by 0. The operations are defined as 0 + 0 = 0 and k0 = 0 for any scalar k. All ten vector space axioms are satisfied [222](#page=222). ## 18.4 Rn is a vector space The set V = Rn, consisting of ordered n-tuples of real numbers, forms a vector space with the standard componentwise addition and scalar multiplication. These operations satisfy all ten axioms, as established by previous theorems on Rn [223](#page=223). ## 18.5 The vector space of infinite sequences of real numbers This vector space, denoted R∞, comprises infinite sequences of real numbers (u1, u2,..., un,...). Addition and scalar multiplication are performed componentwise, similar to Rn. The closure axioms and the other eight axioms can be verified, confirming it as a vector space [223](#page=223) [224](#page=224). ## 18.6 The vector space of m × n matrices The set of all m × n matrices with real entries, denoted Mmn, forms a vector space under the usual matrix addition and scalar multiplication. The standard properties of matrix operations ensure that the vector space axioms are satisfied. For example, the zero matrix serves as the zero vector, and the negative of a matrix is its additive inverse [224](#page=224) [225](#page=225). > 📝 The set of all 2 × 2 invertible matrices with standard matrix addition and scalar multiplication is not a vector space because it fails closure under scalar multiplication (e.g., 0 * A = 0 matrix, which is not invertible) and lacks a zero vector (the zero matrix is not invertible) [228](#page=228). ## 18.7 The vector space of real-valued functions The set of all real-valued functions defined on the interval (−∞, ∞), denoted F(−∞, ∞), is a vector space. Functions are added by adding their values at each point, and scalar multiplication involves multiplying the function's value at each point by the scalar. The zero function (where f(x) = 0 for all x) is the zero vector, and the function −f(x) = −f(x) is the additive inverse [225](#page=225). ## 18.8 An unusual vector space Consider the set of positive real numbers V. Vector addition is defined as numerical multiplication (u + v = uv), and scalar multiplication is defined as numerical exponentiation (ku = uk). With these operations, V satisfies the vector space axioms. The number 1 acts as the zero vector (since u + 1 = u · 1 = u), and the reciprocal 1/u acts as the additive inverse (since u + 1/u = u · (1/u) = 1, the zero vector) [227](#page=227). ## 18.9 Properties of Vectors in a Vector Space Let V be a vector space, u a vector in V, and k a scalar. The following properties hold: * **0u = 0**: The scalar multiple of any vector by zero is the zero vector. * **k0 = 0**: The scalar multiple of the zero vector by any scalar is the zero vector. * **(−1)u = −u**: The scalar multiple of a vector by -1 is its additive inverse. * **If ku = 0, then k = 0 or u = 0**: If a scalar multiple of a vector is the zero vector, then either the scalar is zero or the vector is the zero vector [227](#page=227) [228](#page=228). ## 18.10 Proof of 0u = 0 1. `0u + 0u = (0 + 0)u` (Axiom 8) 2. `= 0u` (Property of the number 0) 3. Add `−0u` to both sides: `(0u + 0u) + (−0u) = 0u + (−0u)` 4. `0u + [0u + (−0u)] = 0u + (−0u)` (Axiom 3) 5. `0u + 0 = 0` (Axiom 5) 6. `0u = 0` (Axiom 4) [227](#page=227). ## 18.11 Proof of (−1)u = −u 1. `u + (−1)u = 1u + (−1)u` (Axiom 10) 2. `= (1 + (−1))u` (Axiom 8) 3. `= 0u` (Property of numbers) 4. `= 0` (Part (a) of this theorem) [228](#page=228). ## 18.12 A set that is not a vector space Consider V = R2 with addition defined as the standard addition in R2, but scalar multiplication defined as ku = (ku1, 0) for u = (u1, u2). While Axioms 1–9 are satisfied, Axiom 10 fails because for any vector u = (u1, u2) where u2 ≠ 0, 1u = (u1, 0) ≠ u. Therefore, V is not a vector space under these operations [226](#page=226). > 📝 The set of all real numbers with standard addition and multiplication is not a vector space because it fails closure under scalar multiplication; for example, -1 * 2 = -2, which is not a positive real number [228](#page=228). ## 18.13 Exercise 1 Let V be the set of all ordered pairs of real numbers, and consider the following addition and scalar multiplication operations on u = (u1, u2) and v = (v1, v2): u + v = (u1 + v1, u2 + v2) ku = (0, ku2) a. Compute u + v and ku for u = (−1, 2), v = (3, 4), and k = 3. * u + v = (−1 + 3, 2 + 4) = (2, 6) * ku = (0, 3 * 2) = (0, 6) b. In words, explain why V is closed under addition and scalar multiplication. * Addition: The sum of two ordered pairs results in another ordered pair, so V is closed under addition. * Scalar multiplication: Multiplying an ordered pair by a scalar results in another ordered pair with the first component zeroed out, so V is closed under scalar multiplication. c. Since addition on V is the standard addition operation on R2, certain vector space axioms hold for V because they are known to hold for R2. Which axioms are they? * Axioms 2, 3, 4, 5, 7, 8, and 9 hold because they are properties of standard vector addition and scalar multiplication in R2. d. Show that Axioms 7, 8, and 9 hold. * Axiom 7: k(u + v) = k(u1 + v1, u2 + v2) = (0, k(u2 + v2)) = (0, ku2 + kv2). Also, ku + kv = (0, ku2) + (0, kv2) = (0, ku2 + kv2). Thus, k(u + v) = ku + kv. * Axiom 8: (k + m)u = (0, (k + m)u2) = (0, ku2 + mu2). Also, ku + mu = (0, ku2) + (0, mu2) = (0, ku2 + mu2). Thus, (k + m)u = ku + mu. * Axiom 9: k(mu) = k(0, mu2) = (0, k(mu2)) = (0, (km)u2). Also, (km)u = (0, (km)u2). Thus, k(mu) = (km)u. e. Show that Axiom 10 fails and hence that V is not a vector space under the given operations. * Axiom 10 states that 1u = u. For u = (u1, u2), 1u = (0, 1*u2) = (0, u2). This is equal to u = (u1, u2) only if u1 = 0. Since this is not true for all vectors in V, Axiom 10 fails [228](#page=228). ## 18.14 Exercise 2 Let V be the set of all ordered pairs of real numbers, and consider the following addition and scalar multiplication operations on u = (u1, u2) and v = (v1, v2): u + v = (u1 + v1 + 1, u2 + v2 + 1) ku = (ku1, ku2) a. Compute u + v and ku for u = (0, 4), v = (1, −3), and k = 2. * u + v = (0 + 1 + 1, 4 + (−3) + 1) = (2, 2) * ku = (2 * 0, 2 * 4) = (0, 8) b. Show that (0, 0) ≠ 0. * The zero vector 0 must satisfy 0 + u = u for all u. Let 0 = (a, b). Then (a, b) + (0, 4) = (a + 0 + 1, b + 4 + 1) = (a + 1, b + 5). For this to equal (0, 4), we need a + 1 = 0 and b + 5 = 4, so a = -1 and b = -1. Thus, the zero vector is (−1, −1), not (0, 0). c. Show that (−1, −1) = 0. * Let 0 = (−1, −1). Then for any u = (u1, u2), u + 0 = (u1 + (−1) + 1, u2 + (−1) + 1) = (u1, u2) = u. Thus, (−1, −1) is the zero vector. d. Show that Axiom 5 holds by producing a vector −u such that u + (−u) = 0 for u = (u1, u2). * Let −u = (−u1 − 2, −u2 − 2). Then u + (−u) = (u1 + (−u1 − 2) + 1, u2 + (−u2 − 2) + 1) = (−1, −1), which is the zero vector. e. Find two vector space axioms that fail to hold. * Axiom 2 (Commutativity of addition): u + v = (u1 + v1 + 1, u2 + v2 + 1), while v + u = (v1 + u1 + 1, v2 + u2 + 1). These are equal. * Axiom 7 (Distributivity): k(u + v) = k(u1 + v1 + 1, u2 + v2 + 1) = (k(u1 + v1 + 1), k(u2 + v2 + 1)). ku + kv = (ku1, ku2) + (kv1, kv2) = (ku1 + kv1, ku2 + kv2). These are not generally equal. For example, if k=2, u=(1,1), v=(1,1), then k(u+v) = 2((1+1+1),(1+1+1)) = (6,6), but ku+kv = (2,2)+(2,2) = (4,4) [228](#page=228) [229](#page=229). ## 18.15 Exercises 3-12: Determine if sets are vector spaces [228](#page=228) [229](#page=229) | Exercise | Set V | Operations | Vector Space? | Failing Axioms | | --- | --- | --- | --- | --- | | 3 | All real numbers | Standard addition and multiplication | No | Closure under scalar multiplication (e.g., -1 * 2 = -2, which is not positive) | | 4 | Pairs (x, 0) | Standard R2 operations | Yes | — | | 5 | Pairs (x, y) with x ≥ 0 | Standard R2 operations | No | Closure under scalar multiplication (e.g., -1 * (1, 0) = (-1, 0), where -1 < 0) | | 6 | n-tuples (x, x,..., x) | Standard Rn operations | Yes | — | | 7 | Triples (x, y, z) | Standard vector addition, k(x, y, z) = (k^2x, k^2y, k^2z) | No | Closure under scalar multiplication (e.g., k=-1, u=(1,0,0) -> -1u = (1,0,0)!= u) and Axiom 10 (1u!= u) | | 8 | 2x2 invertible matrices | Standard matrix operations | No | Closure under scalar multiplication (e.g., 0 * A = 0 matrix, which is not invertible) and existence of zero vector (zero matrix is not invertible) | | 9 | 2x2 matrices of the form [[a, b, [0, c]] | Standard matrix operations | Yes | — | | 10 | Functions f with f[1](#page=1) = 0 | Standard function operations | Yes | — | | 11 | Pairs (1, x) | (1, y) + (1, y') = (1, y + y'), k(1, y) = (1, ky) | Yes | — | | 12 | Polynomials a0 + a1x | Standard polynomial addition and scalar multiplication | Yes | — | # 19. Subspaces ## 19.1 Definition of a subspace A subset $W$ of a vector space $V$ is called a **subspace** of $V$ if $W$ is itself a vector space under the addition and scalar multiplication defined on $V$. To prove a nonempty set $W$ is a subspace of $V$, it must satisfy two conditions: - **Closure under addition**: If $\mathbf{u}$ and $\mathbf{v}$ are vectors in $W$, then $\mathbf{u} + \mathbf{v}$ is in $W$. - **Closure under scalar multiplication**: If $k$ is a scalar and $\mathbf{u}$ is a vector in $W$, then $k\mathbf{u}$ is in $W$. If these two conditions hold, the existence of a zero vector in $W$ and the existence of a negative in $W$ for every vector in $W$ are guaranteed [230](#page=230) [231](#page=231). ## 19.2 The zero subspace The set containing only the zero vector, $\{\mathbf{0}\}$, is a subspace of any vector space $V$. This is known as the **zero subspace** [231](#page=231). ## 19.3 Examples of subspaces Several types of sets are subspaces of common vector spaces: - Lines through the origin in $\mathbb{R}^2$ or $\mathbb{R}^3$ are subspaces. - Planes through the origin in $\mathbb{R}^3$ are subspaces [231](#page=231). - The set of $n \times n$ symmetric matrices is a subspace of $M_{nn}$. - The set of continuous functions on $(-\infty, \infty)$, denoted $C(-\infty, \infty)$, is a subspace of $F(-\infty, \infty)$ [232](#page=232). - The set of all polynomials, denoted $P_\infty$, is a subspace of $F(-\infty, \infty)$. - For any non-negative integer $n$, the set of polynomials of degree $n$ or less, denoted $P_n$, is a subspace of $F(-\infty, \infty)$ [233](#page=233). ## 19.4 Sets that are not subspaces Some subsets of vector spaces are not subspaces because they fail the closure properties: - A set that does not include the origin cannot be a subspace. - The set of invertible $n \times n$ matrices is not a subspace of $M_{nn}$ because it is not closed under addition or scalar multiplication [232](#page=232). - The set of polynomials with a positive degree is not a subspace because it is not closed under addition (e.g., the sum of two polynomials of degree 2 might have a degree less than 2) [233](#page=233). ## 19.5 Applying the subspace test The subspace test is used to determine if a given set is a subspace. ## 19.6 Applying the subspace test in M22 Consider the set $U$ of all matrices of the form $\begin{bmatrix} x & y \\ x & y \end{bmatrix}$. This set is a subspace of $M_{22}$ because it is closed under addition and scalar multiplication. Consider the set $W$ of all $2 \times 2$ matrices $A$ such that $A_{12} = 1$. This set is not a subspace of $M_{22}$ because it is not closed under scalar multiplication (e.g., $2A$ does not satisfy $A_{12}=1$) [234](#page=234) [235](#page=235). ## 19.7 Applying the subspace test in P2 Consider the set $U$ of all polynomials of the form $p = 1 + ax - ax^2$. This set is not a subspace of $P_2$ because it is not closed under addition. Consider the set $W$ of all polynomials $p$ in $P_2$ such that $p(2) = 0$. This set is a subspace of $P_2$ because it is closed under addition and scalar multiplication [235](#page=235). ## 19.8 Intersection of subspaces The intersection of any collection of subspaces of a vector space $V$ is also a subspace of $V$ [235](#page=235). ## 19.9 Solution spaces of homogeneous systems The solution set of a homogeneous linear system $A\mathbf{x} = \mathbf{0}$ is a subspace of $\mathbb{R}^n$. This subspace is often called the **solution space** [236](#page=236). ## 19.10 Geometric description of solution sets The solution set of a homogeneous system can be geometrically described as: - A plane through the origin [236](#page=236). - A line through the origin. - The origin only (the zero subspace). - The entire space $\mathbb{R}^n$ [237](#page=237). > 📝 For the system $x - 2y + 3z = 0$, the solutions are $x = 2s - 3t$, $y = s$, $z = t$. This describes a plane through the origin with normal vector $(1, -2, 3)$ [236](#page=236). ## 19.11 The kernel of a linear transformation The kernel of a matrix transformation $T_A: \mathbb{R}^n \to \mathbb{R}^m$ (multiplication by matrix $A$) is the set of vectors in $\mathbb{R}^n$ that $T_A$ maps to the zero vector in $\mathbb{R}^m$. The kernel of $T_A$ is a subspace of $\mathbb{R}^n$ [237](#page=237). ## 19.12 Hierarchy of function spaces [233](#page=233) [234](#page=234) Function spaces can be nested within each other, forming a hierarchy: | Space | Description | | --- | --- | | $F(-\infty, \infty)$ | All functions on $(-\infty, \infty)$ | | $C(-\infty, \infty)$ | Continuous functions on $(-\infty, \infty)$ | | $C^1(-\infty, \infty)$ | Functions with continuous first derivatives on $(-\infty, \infty)$ | | $C^m(-\infty, \infty)$ | Functions with $m$ continuous derivatives on $(-\infty, \infty)$ | | $C^\infty(-\infty, \infty)$ | Functions with derivatives of all orders on $(-\infty, \infty)$ | | $P_\infty$ | All polynomials on $(-\infty, \infty)$ | | $P_n$ | Polynomials of degree $\le n$ on $(-\infty, \infty)$ | # 20. Spanning Sets ## 20.1 Definition of a linear combination A **linear combination** of vectors $v_1, v_2, \dots, v_r$ in a vector space $V$ is an expression of the form $w = k_1v_1 + k_2v_2 + \dots + k_rv_r$, where $k_1, k_2, \dots, k_r$ are scalars. These scalars are called the **coefficients** of the linear combination [240](#page=240). ## 20.2 Theorem: Spanning sets If $S = \{w_1, w_2, \dots, w_r\}$ is a nonempty set of vectors in a vector space $V$, then: * The set $W$ of all possible linear combinations of the vectors in $S$ is a subspace of $V$. * The set $W$ is the "smallest" subspace of $V$ that contains all of the vectors in $S$ [240](#page=240). The subspace $W$ is called the **subspace of $V$ spanned by $S$**. The vectors $w_1, w_2, \dots, w_r$ in $S$ are said to **span** $W$, and this is written as $W = \text{span}\{w_1, w_2, \dots, w_r\}$ or $W = \text{span}(S)$. If $S$ is the empty set, $\text{span}(\emptyset) = \{0\}$ [241](#page=241). ## 20.3 The standard unit vectors span Rⁿ The standard unit vectors in $R^n$, denoted by $e_1, e_2, \dots, e_n$, span $R^n$. This is because any vector $v = (v_1, v_2, \dots, v_n)$ in $R^n$ can be expressed as a linear combination: $v = v_1e_1 + v_2e_2 + \dots + v_nen$ [241](#page=241). For example, the vectors $i = (1, 0, 0)$, $j = (0, 1, 0)$, and $k = (0, 0, 1)$ span $R^3$, as any vector $v = (a, b, c)$ can be written as $v = ai + bj + ck$ [241](#page=241). ## 20.4 Geometric view of spanning in R² and R³ * For a nonzero vector $v$ in $R^2$ or $R^3$, $\text{span}\{v\}$ is the line through the origin determined by $v$. This set consists of all scalar multiples of $v$. * For two nonzero, noncollinear vectors $v_1$ and $v_2$ in $R^3$, $\text{span}\{v_1, v_2\}$ is the plane through the origin determined by these vectors. This set consists of all linear combinations of $v_1$ and $v_2$ [241](#page=241). > 📝 If $v_1$ and $v_2$ are nonzero vectors in $R^3$ with initial points at the origin, then $\text{span}\{v_1, v_2\}$ is the plane through the origin determined by these two vectors [241](#page=241). ## 20.5 Linear combinations and spanning sets Two common problems involve spanning sets: 1. Determining if a given vector $v$ is a linear combination of vectors in a set $S$. 2. Determining if a set $S$ of vectors spans a vector space $V$ [242](#page=242). ## 20.6 Testing for spanning To determine if a set of vectors spans a vector space, we can set up a system of linear equations. If an arbitrary vector in the space can be expressed as a linear combination of the given vectors, the system must be consistent for all possible values of the components of the arbitrary vector [243](#page=243). ## 20.7 Procedure for identifying spanning sets 1. Let $S = \{w_1, w_2, \dots, w_r\}$ be a set of vectors in $V$, and let $x$ be an arbitrary vector in $V$. 2. Set up the augmented matrix for the linear system resulting from the vector equation $k_1w_1 + k_2w_2 + \dots + k_rw_r = x$. 3. Investigate the consistency of the system. If it is consistent for all choices of $x$, the vectors in $S$ span $V$. If it is inconsistent for some $x$, they do not [243](#page=243). ## 20.8 Example: Testing for spanning in R³ To determine if vectors $v_1 = (1, 1, 2)$, $v_2 = (1, 0, 1)$, and $v_3 = (2, 1, 3)$ span $R^3$, we check if an arbitrary vector $b = (b_1, b_2, b_3)$ can be written as $b = k_1v_1 + k_2v_2 + k_3v_3$. This leads to a system of linear equations. If the determinant of the coefficient matrix is zero, the system may be inconsistent, meaning the vectors do not span $R^3$ [243](#page=243). ## 20.9 Example: Testing for spanning in P₂ To test if $S = \{1 + x + x^2, -1 - x, 2 + 2x + x^2\}$ spans $P_2$, we set up the equation $k_1(1 + x + x^2) + k_2(-1 -x) + k_3(2 + 2x + x^2) = a + bx + cx^2$. Equating coefficients leads to a system of linear equations. If the coefficient matrix has a determinant of zero, the system is inconsistent for some choices of $a, b, c$, indicating that $S$ does not span $P_2$. [243](#page=243) [244](#page=244). For $S = \{x + x^2, x - x^2, 1 + x, 1 - x\}$, the corresponding system is consistent for every choice of $a, b, c$, meaning $S$ spans $P_2$ [244](#page=244). ## 20.10 Example: Testing for spanning in M₂₂ To determine if a set $S$ spans $M_{22}$, we express an arbitrary $2 \times 2$ matrix $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ as a linear combination of the matrices in $S$. This results in a system of linear equations. If the coefficient matrix is square and its determinant is non-zero, the system is consistent for all $a, b, c, d$, and $S$ spans $M_{22}$. If the determinant is zero, $S$ does not span $M_{22}$. [244](#page=244) [245](#page=245). ## 20.11 Theorem: Spanning sets equality If $S = \{v_1, v_2, \dots, v_r\}$ and $S' = \{w_1, w_2, \dots, w_k\}$ are nonempty sets of vectors in a vector space $V$, then $\text{span}\{v_1, v_2, \dots, v_r\} = \text{span}\{w_1, w_2, \dots, w_k\}$ if and only if each vector in $S$ is a linear combination of those in $S'$, and each vector in $S'$ is a linear combination of those in $S$ [245](#page=245). ## 20.12 Exercise Set 4.3 | Question | Description | | --- | --- | | 1a | Determine if (2, 2, 2) is a linear combination of u = (0, -2, 2) and v = (1, 3, -1). | | 1b | Determine if (0, 3, 4) is a linear combination of u = (0, -2, 2) and v = (1, 3, -1). | | 1c | Determine if (0, 0, 0) is a linear combination of u = (0, -2, 2) and v = (1, 3, -1). | | 2a | Express (-9, -7, -15) as a linear combination of u = (2, 1, 4), v = (1, -1, 3), and w = (3, 2, 5). | | 2b | Express (6, 8, 8) as a linear combination of u = (2, 1, 4), v = (1, -1, 3), and w = (3, 2, 5). | | 2c | Express (0, 0, 0) as a linear combination of u = (2, 1, 4), v = (1, -1, 3), and w = (3, 2, 5). | | 3a | Determine if matrix [,[8](#page=8)] is a linear combination of [,] and [,. | | 3b | Determine if matrix [,] is a linear combination of [,] and [,. | | 3c | Determine if matrix [, [4](#page=4) [7](#page=7)] is a linear combination of [,] and [,. | | 4a | Determine if polynomial 1 + x is a linear combination of p1 = 2 + x + x², p2 = 1 - x², p3 = 1 + 2x. | | 4b | Determine if polynomial 1 + x² is a linear combination of p1 = 2 + x + x², p2 = 1 - x², p3 = 1 + 2x. | | 4c | Determine if polynomial 1 + x + x² is a linear combination of p1 = 2 + x + x², p2 = 1 - x², p3 = 1 + 2x. | | 5a | Express vector [,] as a linear combination of [,] and [,. | | 5b | Express vector [,] as a linear combination of [,] and [,. | | 6a | Express -9 - 7x -15x² as a linear combination of p1 = 2 + x + 4x², p2 = 1 - x + 3x², and p3 = 3 + 2x + 5x². | | 6b | Express 6 + 11x + 6x² as a linear combination of p1 = 2 + x + 4x², p2 = 1 - x + 3x², and p3 = 3 + 2x + 5x². | | 6c | Express 0 as a linear combination of p1 = 2 + x + 4x², p2 = 1 - x + 3x², and p3 = 3 + 2x + 5x². | | 6d | Express 7 + 8x + 9x² as a linear combination of p1 = 2 + x + 4x², p2 = 1 - x + 3x², and p3 = 3 + 2x + 5x². | | 7a | Determine if vectors v1 = (3, 3, 3), v2 = (0, 0, 4), v3 = (0, 1, 1) span R³. | | 7b | Determine if vectors v1 = (2, -1, 3), v2 = (4, 1, 2), v3 = (8, -1, 8) span R³. | | 8a | Determine if (2, 3, -7, 3) is in span{v1, v2, v3} where v1 = (2, 1, 0, 3), v2 = (3, -1, 5, 2), v3 = (-1, 0, 2, 1). | | 8b | Determine if (0, 0, 0, 0) is in span{v1, v2, v3} where v1 = (2, 1, 0, 3), v2 = (3, -1, 5, 2), v3 = (-1, 0, 2, 1). | | 8c | Determine if (1, 1, 1, 1) is in span{v1, v2, v3} where v1 = (2, 1, 0, 3), v2 = (3, -1, 5, 2), v3 = (-1, 0, 2, 1). | | 8d | Determine if (-4, 6, -13, 4) is in span{v1, v2, v3} where v1 = (2, 1, 0, 3), v2 = (3, -1, 5, 2), v3 = (-1, 0, 2, 1). | | 9 | Determine if polynomials p1 = 1 - x + 2x², p2 = 3 + x, p3 = 5 - x + 4x², p4 = -2 - 2x + 2x² span P². | | 10 | Determine if polynomials p1 = 1 + x, p2 = 1 - x, p3 = 1 + x + x², p4 = 2 - x² span P². | | 11a | Determine if the set of matrices spans M₂₂. | | 11b | Determine if the set of matrices spans M₂₂. | | 11c | Determine if the set of matrices spans M₂₂. | | 12 | Determine if vector u = (1, 2) is in the span of {TA(e₁), TA(e₂)} for matrix A = [,. | | 13 | Determine if vector u = (1, 1, 1) is in the span of {TA(e₁), TA(e₂)} for matrix A = [,,. | | 14a | Determine if cos 2x lies in the space spanned by f = cos² x and g = sin² x. | | 14b | Determine if 3 + x² lies in the space spanned by f = cos² x and g = sin² x. | | 14c | Determine if 1 lies in the space spanned by f = cos² x and g = sin² x. | | 14d | Determine if sin x lies in the space spanned by f = cos² x and g = sin² x. | | 14e | Determine if 0 lies in the space spanned by f = cos² x and g = sin² x. | | 15a | Determine if {u, v} spans W, where W is the solution space to Ax = 0, u = (1, 0, -1, 0), v = (0, 1, 0, -1). | | 15b | Determine if {u, v} spans W, where W is the solution space to Ax = 0, u = (1, 0, -1, 0), v = (1, 1, -1, -1). | | 16a | Determine if {u, v} spans W, where W is the solution space to Ax = 0, u = (1, 1, 1, 0), v = (0, -1, 0, 1). | | 16b | Determine if {u, v} spans W, where W is the solution space to Ax = 0, u = (0, 1, 1, 0), v = (1, 0, 1, 1). | | 17a | Determine if {TA(u₁), TA(u₂)} spans R² for matrix A = [,, where u₁ = (1, 2) and u₂ = (-1, 1). | | 17b | Determine if {TA(u₁), TA(u₂)} spans R² for matrix A = [,, where u₁ = (1, 2) and u₂ = (-1, 1). | | 18a | Determine if {TA(u₁), TA(u₂), TA(u₃)} spans R² for matrix A = [,, where u₁ = (0, 1, 1), u₂ = (2, -1, 1), u₃ = (1, 1, -2). | | 18b | Determine if {TA(u₁), TA(u₂), TA(u₃)} spans R² for matrix A = [, [1](#page=1), where u₁ = (0, 1, 1), u₂ = (2, -1, 1), u₃ = (1, 1, -2). | | 19 | Use Theorem 4.3.2 to show that span{p₁, p₂} = span{q₁, q₂} for p₁ = 1 + x², p₂ = 1 + x + x², q₁ = 2x, q₂ = 1 + x². | | 20 | Use Theorem 4.3.2 to show that span{v₁, v₂, v₃} = span{w₁, w₂} for v₁ = (1, 6, 4), v₂ = (2, 4, -1), v₃ = (-1, 2, 5), w₁ = (1, -2, -5), w₂ = (0, 8, 9). | | 21 | Find a vector v in V and a vector w in W for which v + w = (7, 12), where V and W are subspaces of R² spanned by (1, 2) and (2, 3), respectively. | | 22 | Find a vector v in V and a vector w in W for which v + w = (1, 0, 1), where V is the solution space of 4x - y + 2z = 0 and W is spanned by (1, 1, 1). | | 23 | Prove that if {u, v} spans V, then {u, u + v} spans V. | | 24 | Prove Theorem 4.3.2. | [245](#page=245) | ## 20.13 True-False Exercises | Statement | True/False | Justification | | --- | --- | --- | | a. An expression of the form k₁v₁ + k₂v₂ +... + kᵣvᵣ is called a linear combination. | True | Definition of linear combination. | | b. The span of a single vector in R² is a line. | True | The span of a single vector consists of all its scalar multiples, forming a line through the origin. | | c. The span of two vectors in R³ is a plane. | False | The span of two vectors in R³ is a plane only if they are noncollinear. If they are collinear, it is a line. | | d. The span of a nonempty set S of vectors in V is the smallest subspace of V that contains S. | True | This is a fundamental property of spanning sets. | | e. The span of any finite set of vectors in a vector space is closed under addition and scalar multiplication. | True | The span of a finite set of vectors is, by definition, a subspace, and subspaces are closed under these operations. | | f. Two subsets of a vector space V that span the same subspace of V must be equal. | False | Different sets of vectors can span the same subspace. For example, {(1,0), (0,1)} and {(1,1), (1,-1)} both span R². | | g. The polynomials x - 1, (x - 1)², and (x - 1)³ span P₃. | False | These polynomials span a subspace of P₃, but not all of P₃. For example, the polynomial 1 cannot be expressed as a linear combination of these three. | [246](#page=246) | # 21. Linear Independence Linear Independence and Dependence ## 21.1 Definition of linear independence A set of vectors S = {v1, v2,..., vr} in a vector space V is **linearly independent** if no vector in S can be expressed as a linear combination of the others. If S has only one vector, it is linearly independent if and only if that vector is nonzero. A set that is not linearly independent is called **linearly dependent** [247](#page=247). The most efficient way to determine linear independence is through a specific vector equation. A nonempty set S = {v1, v2,..., vr} in a vector space V is linearly independent if and only if the only coefficients satisfying the vector equation $k_1v_1 + k_2v_2 + \dots + k_rv_r = 0$ are $k_1 = 0, k_2 = 0, \dots, k_r = 0$ [248](#page=248). ## 21.2 Linear independence of standard unit vectors in R^n The standard unit vectors in $R^n$, denoted as $e_1 = (1, 0, \dots, 0)$, $e_2 = (0, 1, \dots, 0)$,..., $e_n = (0, 0, \dots, 1)$, form a linearly independent set. This is because the only solution to the equation $k_1e_1 + k_2e_2 + \dots + k_ne_n = 0$ is $k_1 = k_2 = \dots = k_n = 0$ [248](#page=248). ## 21.3 Linear independence in R^3 To determine if vectors in $R^3$ are linearly independent or dependent, we set up a vector equation and check if it has only the trivial solution (all coefficients are zero). If nontrivial solutions exist, the vectors are linearly dependent [248](#page=248) [249](#page=249). ## 21.4 Example 1: Linear independence in R^3 Determine if the vectors $v_1 = (1, -2, 3)$, $v_2 = (5, 6, -1)$, and $v_3 = (3, 2, 1)$ are linearly independent or dependent in $R^3$. Setting up the equation $k_1v_1 + k_2v_2 + k_3v_3 = 0$ leads to a homogeneous linear system. If this system has nontrivial solutions, the vectors are linearly dependent. For these vectors, the system has nontrivial solutions, indicating linear dependence [248](#page=248). > 📝 To determine if vectors $v_1 = (1, -2, 3)$, $v_2 = (5, 6, -1)$, and $v_3 = (3, 2, 1)$ are linearly independent in $R^3$, we set up the equation $k_1v_1 + k_2v_2 + k_3v_3 = 0$. This leads to the system: $k_1 + 5k_2 + 3k_3 = 0$, $-2k_1 + 6k_2 + 2k_3 = 0$, $3k_1 - k_2 + k_3 = 0$. Since this system has nontrivial solutions, the vectors are linearly dependent [248](#page=248). ## 21.5 Example 2: Linear independence in R^3 Determine if the vectors $v_1 = (1, -2, 3)$, $v_2 = (5, 6, -1)$, and $v_3 = (3, 2, 1)$ are linearly independent or dependent in $R^3$. The system of equations derived from $k_1v_1 + k_2v_2 + k_3v_3 = 0$ is: $k_1 + 5k_2 + 3k_3 = 0$ $-2k_1 + 6k_2 + 2k_3 = 0$ $3k_1 - k_2 + k_3 = 0$ Solving this system reveals nontrivial solutions, confirming linear dependence [248](#page=248). ## 21.6 Linear independence in R^4 The principle for determining linear independence in $R^4$ is the same as in $R^3$. A set of vectors is linearly independent if the only solution to the vector equation $k_1v_1 + k_2v_2 + \dots + k_rv_r = 0$ is the trivial solution [249](#page=249). ## 21.7 Example 3: Linear independence in R^4 Determine if the vectors $v_1 = (1, 2, 2, -1)$, $v_2 = (4, 9, 9, -4)$, and $v_3 = (5, 8, 9, -5)$ in $R^4$ are linearly dependent or independent. The vector equation $k_1v_1 + k_2v_2 + k_3v_3 = 0$ leads to the homogeneous linear system: $k_1 + 4k_2 + 5k_3 = 0$ $2k_1 + 9k_2 + 8k_3 = 0$ $2k_1 + 9k_2 + 9k_3 = 0$ $-k_1 - 4k_2 - 5k_3 = 0$ This system has only the trivial solution ($k_1 = k_2 = k_3 = 0$), indicating that the vectors are linearly independent [249](#page=249). ## 21.8 Linear independence of polynomials Polynomials can be treated as vectors in the vector space $P_n$. A set of polynomials is linearly independent if the only linear combination that equals the zero polynomial has all coefficients equal to zero [249](#page=249) [250](#page=250). ## 21.9 Example 4: An important linearly independent set in P_n The set of polynomials $\{1, x, x^2, \dots, x^n\}$ forms a linearly independent set in $P_n$. This is because a polynomial $a_0 + a_1x + a_2x^2 + \dots + a_nx^n = 0$ for all $x$ implies that all coefficients $a_0, a_1, \dots, a_n$ must be zero [249](#page=249) [250](#page=250). ## 21.10 Example 5: Linear independence of polynomials Determine if the polynomials $p_1 = 1 - x$, $p_2 = 5 + 3x - 2x^2$, and $p_3 = 1 + 3x - x^2$ are linearly dependent or independent in $P_2$. The vector equation $k_1p_1 + k_2p_2 + k_3p_3 = 0$ leads to a system of linear equations by equating coefficients of like powers of $x$: $(k_1 + 5k_2 + k_3) + (-k_1 + 3k_2 + 3k_3)x + (-2k_2 - k_3)x^2 = 0$ This requires the coefficients to be zero: $k_1 + 5k_2 + k_3 = 0$ $-k_1 + 3k_2 + 3k_3 = 0$ $-2k_2 - k_3 = 0$ This system has nontrivial solutions, meaning the polynomials are linearly dependent [250](#page=250). ## 21.11 Properties of linear independence Two important theorems regarding linear independence are: * A set with finitely many vectors that contains the zero vector is linearly dependent. * A set with exactly two vectors is linearly independent if and only if neither vector is a scalar multiple of the other [251](#page=251). ## 21.12 Example 6: Linear independence of two functions The functions $f_1 = x$ and $f_2 = \sin x$ are linearly independent because neither is a scalar multiple of the other. However, $g_1 = \sin 2x$ and $g_2 = \sin x \cos x$ are linearly dependent since $\sin 2x = 2 \sin x \cos x$ [251](#page=251). ## 21.13 Geometric interpretation of linear independence * In $R^2$ or $R^3$, two vectors are linearly independent if they do not lie on the same line through the origin. * In $R^3$, three vectors are linearly independent if they do not lie in the same plane through the origin [251](#page=251). ## 21.14 Maximum number of linearly independent vectors in R^n A set of vectors in $R^n$ with more than $n$ vectors is always linearly dependent. This means there can be at most $n$ linearly independent vectors in $R^n$ [252](#page=252). ## 21.15 Linear independence of row vectors in row echelon form The nonzero row vectors of a matrix in row echelon or reduced row echelon form are linearly independent [252](#page=252). ## 21.16 Linear independence of functions Determining the linear independence of functions can sometimes be done using known identities. For example, $f_1 = \sin^2 x$, $f_2 = \cos^2 x$, and $f_3 = 5$ are linearly dependent because $5f_1 + 5f_2 - f_3 = 0$ [253](#page=253). ## 21.17 The Wronskian For functions $f_1, f_2, \dots, f_n$ that are $n-1$ times differentiable, the **Wronskian** is defined as the determinant: $$ W(x) = \det \begin{pmatrix} f_1(x) & f_2(x) & \cdots & f_n(x) \\ f_1'(x) & f_2'(x) & \cdots & f_n'(x) \\ \vdots & \vdots & \ddots & \vdots \\ f_1^{(n-1)}(x) & f_2^{(n-1)}(x) & \cdots & f_n^{(n-1)}(x) \end{pmatrix} $$ [253](#page=253) [254](#page=254). ## 21.18 Theorem 4.4.4 If the functions $f_1, f_2, \dots, f_n$ have $n-1$ continuous derivatives on an interval, and their Wronskian is not identically zero on that interval, then these functions form a linearly independent set. The converse is not necessarily true; a zero Wronskian does not guarantee linear dependence [254](#page=254). ## 21.19 Example 8: Linear independence using the Wronskian Use the Wronskian to show that $f_1 = x$ and $f_2 = \sin x$ are linearly independent vectors in $C^\infty(-\infty, \infty)$. The Wronskian is: $$ W(x) = \det \begin{pmatrix} x & \sin x \\ 1 & \cos x \end{pmatrix} = x \cos x - \sin x $$ Since $W(x)$ is not identically zero (e.g., $W(\pi/2) = -\pi/2$), the functions are linearly independent [254](#page=254). ## 21.20 Example 9: Linear independence using the Wronskian Use the Wronskian to show that $f_1 = 1$, $f_2 = e^x$, and $f_3 = e^{2x}$ are linearly independent vectors in $C^\infty(-\infty, \infty)$. The Wronskian is: $$ W(x) = \det \begin{pmatrix} 1 & e^x & e^{2x} \\ 0 & e^x & 2e^{2x} \\ 0 & e^x & 4e^{2x} \end{pmatrix} = 1(4e^{3x} - 2e^{3x}) = 2e^{3x} $$ Since $W(x) = 2e^{3x}$ is not identically zero, the functions are linearly independent [255](#page=255). ## 21.21 Proof of Theorem 4.4.1 The proof shows that a set of vectors is linearly independent if and only if the only solution to the vector equation $k_1v_1 + k_2v_2 + \dots + k_rv_r = 0$ is the trivial solution. If coefficients are not all zero, one vector can be expressed as a linear combination of the others. Conversely, if one vector is a linear combination of others, a nontrivial solution exists [255](#page=255). ## 21.22 Summary table of linear independence concepts [247](#page=247) [251](#page=251) [252](#page=252) | Concept | Definition/Condition | Implication | | --- | --- | --- | | Linearly Independent Set S = {v1,..., vr} | Only solution to k1v1 +... + krvr = 0 is k1=...=kr=0 | No vector in S is a linear combination of the others. | | Linearly Dependent Set S = {v1,..., vr} | At least one non-zero solution to k1v1 +... + krvr = 0 exists | At least one vector in S is a linear combination of the others. | | Set containing the zero vector | S = {v1,..., vr, 0} | S is linearly dependent. | | Set of two vectors {v1, v2} | v1 is not a scalar multiple of v2 | S is linearly independent. | | Set of vectors in R^n | Number of vectors r > n | S is linearly dependent. | ## 21.23 Exercise Set 4.4 1. Determine linear dependence by inspection: * a. $u_1 = (-1, 3, 5)$ and $u_2 = (4, -12, -20)$ in $R^3$. ($u_2 = -4u_1$). * b. $u_1 = (3, -1)$, $u_2 = (4, 5)$, $u_3 = (-4, 7)$ in $R^2$. (More than 2 vectors in $R^2$). * c. $p_1 = 2 - 3x + x^2$ and $p_2 = 6 - 9x + 3x^2$ in $P_2$. ($p_2 = 3p_1$). * d. Matrices in $M_{22}$. (Specific matrices provided in source). 2. Determine linear independence/dependence in $R^3$: * a. $(-3, 0, 4), (5, -1, 2), (1, 1, 3)$. * b. $(-2, 0, 1), (3, 2, 5), (6, -1, 1), (7, 0, -2)$ (More than 3 vectors in $R^3$). 3. Determine linear independence/dependence in $R^4$: * a. $(3, 8, 7, -3), (1, 5, 3, -1), (2, -1, 2, 6), (4, 2, 6, 4)$. * b. $(3, 0, -3, 6), (0, 2, 3, 1), (0, -2, -2, 0), (-2, 1, 2, 1)$ [255](#page=255). 4. Determine linear independence/dependence in $P_2$: * a. $-1 + x^2, -2 + x + x^2, 2 + 3x + x^2$. * b. $1 + 3x + 3x^2, x + 4x^2, 5 + 6x + 3x^2, 7 + 2x - x^2$ (More than 3 vectors in $P_2$). 5. Determine linear independence/dependence of matrices in $M_{22}$: * a. Specific matrices provided in source. * b. Specific matrices provided in source. 6. Find values of $k$ for which matrices in $M_{22}$ are linearly independent. 7. Determine if three vectors lie in a plane in $R^3$: * a. $v_1 = (2, -2, 0), v_2 = (6, 1, 4), v_3 = (2, 0, -4)$. * b. $v_1 = (-6, 7, 2), v_2 = (3, 2, 4), v_3 = (4, -1, 2)$. 8. Determine if three vectors lie on the same line in $R^3$: * a. $v_1 = (-1, 2, 3), v_2 = (2, -4, -6), v_3 = (-3, 6, 0)$. * b. $v_1 = (2, -1, 4), v_2 = (4, 2, 3), v_3 = (2, 7, -6)$. * c. $v_1 = (6, 8, 12), v_2 = (3, 4, 6), v_3 = (-3, -4, -6)$. 9. a. Show that $v_1 = (0, 3, 1, -1)$, $v_2 = (6, 0, 5, 1)$, and $v_3 = (4, -7, 1, 3)$ form a linearly dependent set in $R^4$. b. Express each vector as a linear combination of the other two. 10. a. Show that $v_1 = (1, 2, 3, 4)$, $v_2 = (0, 1, 0, -1)$, and $v_3 = (1, 3, 3, 3)$ form a linearly dependent set in $R^4$. b. Express each vector as a linear combination of the other two. 11. Find real values of $\lambda$ for which vectors form a linearly dependent set in $R^3$. 12. Conditions for a set with one vector to be linearly independent. 13. Determine if $\{T_A(u_1), T_A(u_2)\}$ is linearly independent in $R^2$ for given matrices $A$. 14. Determine if $\{T_A(u_1), T_A(u_2), T_A(u_3)\}$ is linearly independent in $R^3$ for given matrices $A$. 15. Are vectors in Figure Ex-15 linearly independent? Explain. 16. Determine which sets of vectors in $F(-\infty, \infty)$ are linearly dependent using identities. 17. Confirm linear independence of $f_1(x) = x$ and $f_2(x) = \cos x$ using the Wronskian. 18. Confirm linear independence of $f_1(x) = \sin x$ and $f_2(x) = \cos x$ using the Wronskian. 19. Use the Wronskian to show linear independence of: * a. $1, x, e^x$. * b. $1, x, x^2$. 20. Use the Wronskian to show linear independence of $f_1(x) = e^x$, $f_2(x) = xe^x$, and $f_3(x) = x^2e^x$. 21. Use the Wronskian to show linear independence of $f_1(x) = \sin x$, $f_2(x) = \cos x$, and $f_3(x) = x \cos x$. 22. Show that $u - v, v - w, w - u$ form a linearly dependent set. 23. a. Geometric argument for mutually orthogonal vectors in $R^3$. b. Algebraic argument for mutually orthogonal vectors in $R^3$ [256](#page=256). # 22. Coordinates and Basis Coordinate Systems in Linear Algebra ## 22.1 Basis for a vector space A basis for a finite-dimensional vector space V is a set of vectors S = {v1, v2,..., vn} that satisfies two conditions: it spans V, and it is linearly independent. This definition ensures that every vector in V can be uniquely represented as a linear combination of the basis vectors. Vector spaces are classified as finite-dimensional if they have a finite spanning set, and infinite-dimensional otherwise. - **Spanning V**: The set of basis vectors must be able to generate every vector in the vector space through linear combinations. - **Linear independence**: No vector in the basis set can be expressed as a linear combination of the other vectors in the set [259](#page=259). ## 22.2 The standard basis for Rn The standard basis for Rn consists of the set of n vectors {e1, e2,..., en}, where ei has a 1 in the i-th position and 0s elsewhere. These vectors are fundamental for representing vectors in Rn and form the basis for many calculations. - **e1**: (1, 0, 0,..., 0). - **e2**: (0, 1, 0,..., 0). - **en**: (0, 0, 0,..., 1) [259](#page=259). > 📝 The standard basis for R3 is {i, j, k}, where i = (1, 0, 0), j = (0, 1, 0), and k = (0, 0, 1) [259](#page=259). ## 22.3 The standard basis for Pn The vector space Pn, consisting of polynomials of degree n or less, has a standard basis given by the set {1, x, x²,..., xⁿ}. These polynomials are linearly independent and span Pn, making them the fundamental building blocks for any polynomial in this space. - **p0**: 1. - **p1**: x. - **pn**: xⁿ [260](#page=260). ## 22.4 The standard basis for Mmn The vector space Mmn, comprising m x n matrices, has a standard basis consisting of mn matrices. Each matrix in this basis has a single entry of 1 and all other entries as 0. These matrices are linearly independent and span Mmn. - **Example for M22**: The matrices $$ \begin{bmatrix} 1 & 0 \\ 0 & 0 \end{bmatrix}, \begin{bmatrix} 0 & 1 \\ 0 & 0 \end{bmatrix}, \begin{bmatrix} 0 & 0 \\ 1 & 0 \end{bmatrix}, \begin{bmatrix} 0 & 0 \\ 0 & 1 \end{bmatrix} $$ form a basis for M22 [261](#page=261). ## 22.5 Coordinates relative to a basis When a basis S = {v1, v2,..., vn} is established for a vector space V, any vector v in V can be uniquely expressed as a linear combination of these basis vectors: v = c1v1 + c2v2 +... + cnvn. The scalars c1, c2,..., cn are known as the coordinates of v relative to the basis S. - **Uniqueness of representation**: Theorem 4.5.1 guarantees that for any basis S, each vector v in V has exactly one set of coefficients (coordinates) that expresses it as a linear combination of the basis vectors [262](#page=262). - **Coordinate vector**: The column matrix [c1, c2,..., cn]ᵀ or the comma-delimited vector (c1, c2,..., cn) is called the coordinate vector of v relative to S, denoted as (v)S. - **Ordered basis**: A basis where the order of vectors matters is called an ordered basis. Changing the order of basis vectors creates a different ordered basis [263](#page=263). ## 22.6 Coordinates relative to the standard basis for Rn For the vector space Rn and its standard basis S = {e1, e2,..., en}, the coordinate vector (v)S of a vector v is identical to the vector v itself. This is because v is already expressed as a linear combination of the standard basis vectors. - **Example**: For v = (a, b, c) in R3 with the standard basis S = {i, j, k}, the representation is v = ai + bj + ck, so (v)S = (a, b, c) [263](#page=263). ## 22.7 Coordinate vectors relative to standard bases The coordinate vector of a polynomial or a matrix relative to its standard basis is simply the sequence of its coefficients. This simplifies the process of finding coordinates for these common vector spaces. - **Polynomials**: For a polynomial p(x) = c0 + c1x + c2x² +... + cnxⁿ in Pn, its coordinate vector relative to the standard basis S = {1, x, x²,..., xⁿ} is (p)S = (c0, c1, c2,..., cn). - **Matrices**: For a 2x2 matrix B = [[a, b, [c, d]] in M22, its coordinate vector relative to the standard basis is (B)S = (a, b, c, d) [264](#page=264). ## 22.8 Coordinates in R3 Finding coordinates relative to a non-standard basis in R3 involves solving a system of linear equations. The process requires expressing the target vector as a linear combination of the basis vectors and then solving for the coefficients. - **Example**: To find the coordinate vector of v = (5, -1, 9) relative to the basis S = {v1, v2, v3} where v1 = (1, 2, 1), v2 = (2, 9, 0), and v3 = (3, 3, 4), we solve the system: c1(1, 2, 1) + c2(2, 9, 0) + c3(3, 3, 4) = (5, -1, 9). The solution yields c1 = 1, c2 = -1, c3 = 2, so (v)S = (1, -1, 2) [264](#page=264). ## 22.9 Infinite-dimensional vector spaces A vector space is infinite-dimensional if it cannot be spanned by any finite set of vectors. This is often demonstrated by showing that there is always a polynomial of higher degree than any polynomial in a proposed finite spanning set. - **Example**: The vector space P∞ of all polynomials with real coefficients is infinite-dimensional because any finite set of polynomials would have a maximum degree, preventing the expression of higher-degree polynomials [261](#page=261). # 23. Dimension Number of Vectors in a Basis ## 23.1 Dimension of a finite-dimensional vector space The dimension of a finite-dimensional vector space V, denoted dim(V), is the number of vectors in any basis for V. The zero vector space is defined to have dimension zero [267](#page=267). ## 23.2 Dimensions of some familiar vector spaces [267](#page=267) | Vector Space | Dimension | | --- | --- | | $R^n$ | n | | $P_n$ | n + 1 | | $M_{mn}$ | mn | > 📝 The vector space $R^n$ has dimension n. For example, $R^3$ has dimension 3 [267](#page=267). ## 23.3 Dimension of Span(S) If S is a linearly independent set of vectors, the dimension of the space spanned by S is equal to the number of vectors in S [268](#page=268). For example, if $S = \{v_1, v_2, \dots, v_r\}$ is linearly independent, then $\dim(\text{span}(S)) = r$. ## 23.4 Dimension of a solution space The dimension of the solution space of a homogeneous linear system is equal to the number of free variables in its general solution [268](#page=268). For instance, if the solution to a system is given by $x_1 = -3r - 4s - 2t$, $x_2 = r$, $x_3 = -2s$, $x_4 = s$, $x_5 = t$, $x_6 = 0$, the solution space has dimension 3, corresponding to the free variables $r$, $s$, and $t$. ## 23.5 The Plus/Minus Theorem This theorem describes how adding or removing vectors affects linear independence and spanning properties [269](#page=269). * If S is a linearly independent set and v is a vector not in span(S), then $S \cup \{v\}$ remains linearly independent. * If v is a vector in S that is a linear combination of other vectors in S, then removing v from S does not change the span of the set; $\text{span}(S) = \text{span}(S - \{v\})$. ## 23.6 Basis for an n-dimensional vector space In an n-dimensional vector space V, a set S with exactly n vectors is a basis for V if and only if S either spans V or is linearly independent. This is because if the number of vectors matches the dimension, one property implies the other [270](#page=270). ## 23.7 Bases by inspection When dealing with an n-dimensional space, if you have a set of n vectors, you only need to check for linear independence or spanning to confirm it's a basis [270](#page=270). * For $R^2$, two vectors are a basis if neither is a scalar multiple of the other. * For $R^3$, three vectors form a basis if one is not in the plane spanned by the other two, ensuring linear independence. ## 23.8 Subspaces and Dimension If W is a subspace of a finite-dimensional vector space V, then: * W is finite-dimensional. * The dimension of W is less than or equal to the dimension of V ($\dim(W) \le \dim(V)$). * W equals V if and only if their dimensions are equal ($\dim(W) = \dim(V)$) [271](#page=271). ## 23.9 Theorem 4.6.2 Proof Sketch This theorem establishes that in an n-dimensional space, any set with more than n vectors is linearly dependent, and any set with fewer than n vectors cannot span the space. The proof involves expressing vectors from a larger set as linear combinations of a basis and analyzing the resulting linear system [271](#page=271). ## 23.10 Theorem 4.6.3 Proof Sketch This theorem proves that if a set S is linearly independent and a vector v is added that is outside span(S), the new set remains linearly independent. Conversely, if a vector v in S is a linear combination of others, removing it does not change the span [272](#page=272). ## 23.11 Theorem 4.6.5 Proof Sketch This theorem states that a spanning set for a subspace can be reduced to a basis by removing vectors, and a linearly independent set can be enlarged to a basis. The proofs involve iteratively removing dependent vectors or adding independent vectors until a basis is formed [273](#page=273). ## 23.12 Change of Basis Changing the basis of a vector space is analogous to changing coordinate axes. The relationship between coordinate vectors relative to different bases is crucial [275](#page=275). ## 23.13 Coordinate Map For a basis $S = \{v_1, v_2, \dots, v_n\}$ of a vector space V, the mapping $v \to (v)_S$ that sends a vector v to its coordinate vector $(v)_S$ in $R^n$ is called the coordinate map relative to S [275](#page=275). ## 23.14 The Change-of-Basis Problem Given a vector v in a finite-dimensional vector space V, if the basis is changed from an old basis B to a new basis B′, the problem is to find the relationship between the old coordinate vector $[v]_B$ and the new coordinate vector $[v]_{B'}$ [275](#page=275). ## 23.15 Transition Matrices The transition matrix $P_{B \to B'}$ changes coordinates from basis B to basis B'. Its columns are the coordinate vectors of the old basis vectors relative to the new basis [276](#page=276). * $[v]_{B'} = P_{B \to B'} [v]_B$ * The columns of $P_{B \to B'}$ are $[u_1]_{B'}, [u_2]_{B'}, \dots, [u_n]_{B'}$, where $B = \{u_1, u_2, \dots, u_n\}$. ## 23.16 Invertibility of Transition Matrices Transition matrices are invertible. The transition matrix from B to B' ($P_{B \to B'}$) and the transition matrix from B' to B ($P_{B' \to B}$) are inverses of each other: $P_{B \to B'} P_{B' \to B} = I$ [278](#page=278). ## 23.17 An efficient Method for Computing transition Matrices Between Bases for Rn A procedure for computing transition matrices between bases for $R^n$ involves forming a partitioned matrix and using row operations [278](#page=278): 1. Form the matrix [new basis | old basis. 2. Reduce this matrix to reduced row echelon form. 3. The result will be [I | transition matrix from old to new. > 📝 The transition matrix from basis B to basis B' is denoted $P_{B \to B'}$, and its columns are the coordinate vectors of the old basis vectors relative to the new basis. For example, if $B = \{u_1, u_2\}$, then $P_{B \to B'} = [[u_1]_{B'} | [u_2]_{B'}]$ [276](#page=276). ## 23.18 Transition to the Standard Basis for Rn If B = $\{u_1, u_2, \dots, u_n\}$ is a basis for $R^n$, the transition matrix from B to the standard basis S = $\{e_1, e_2, \dots, e_n\}$ is the matrix whose columns are the vectors of B written in column form [279](#page=279). * $P_{B \to S} = [u_1 | u_2 | \dots | u_n]$ Any invertible $n \times n$ matrix can be viewed as a transition matrix from some basis to the standard basis. ## 23.19 Exercises on Change of Basis This section presents a series of exercises focused on understanding and applying the concepts of change of basis and transition matrices in vector spaces, particularly R2 and R3. These problems require calculating transition matrices, verifying their properties, and using them to convert coordinate vectors between different bases. * **Exercise 8**: Involves finding the transition matrix between a standard basis (S) and a custom basis (B) for R2, and then using these matrices to find coordinate vectors of a given vector in both bases. It also requires confirming that the transition matrices are inverses of each other. * **Exercise 9**: Similar to Exercise 8, but for R3, with a custom basis B defined by three vectors. It requires calculating the transition matrix PB→S by inspection and PS→B using a formula, verifying their inverse relationship, and converting a vector's coordinates between bases. * **Exercise 10**: Explores the transition matrix when a basis B for R2 is obtained by reflecting the standard basis vectors (S) about the line y = x. It asks for the transition matrix PB→S and to show that its transpose equals PS→B. * **Exercise 11**: Generalizes Exercise 10 to reflection about a line making an angle θ with the positive x-axis. It requires finding the transition matrix PB→S and demonstrating that its transpose equals PS→B. * **Exercise 12**: Deals with the composition of transition matrices. Given transition matrices between bases B1 and B2, and B2 and B3, it asks for the transition matrix from B1 to B3. * **Exercise 13**: Asks for the transition matrix from a basis B′ to a basis C, given the transition matrix from B′ to B and from B to C. It also asks for the transition matrix from C to B′. * **Exercise 14**: Investigates the effect on a transition matrix P from basis B′ to basis B if the order of vectors in B is reversed, and also if the order of vectors in both B′ and B is reversed. * **Exercise 15**: Given a matrix P, it asks to identify the basis B from which P is the transition matrix to the standard basis S for R3, and vice versa. * **Exercise 16**: Asks to identify the basis B from which a given matrix P is the transition matrix to a specific basis for R3. * **Exercise 17**: Involves finding the transition matrix PB→S for R2, where basis B is formed by applying a linear transformation T to the standard basis vectors. * **Exercise 18**: Similar to Exercise 17, but for R3, where basis B is derived from applying a linear transformation T to the standard basis vectors. * **Exercise 19**: Poses a condition where the coordinate vector of any vector w in Rn with respect to basis B, [w]B, is equal to w itself. It asks what can be concluded about the basis B [281](#page=281). > 📝 For R2 with standard basis S and basis B = {(2, 1), (−3, 4)}, the transition matrix PB→S is found by inspection to be $\begin{pmatrix} 2 & -3 \\ 1 & 4 \end{pmatrix}$ [281](#page=281). ## 23.20 Working with Proofs This section contains exercises that require proving fundamental properties related to bases and coordinate vectors, particularly concerning spanning sets and linear independence. These proofs often involve demonstrating equivalences between properties in a given basis and their corresponding properties in another basis. * **Exercise 20**: Requires proving that a set of vectors {v1, v2,..., vk} spans Rn if and only if their coordinate vectors {[v1]B, [v2]B,..., [vk]B} span Rn, where B is any basis for Rn. * **Exercise 21**: Requires proving that a set of vectors {v1, v2,..., vk} is linearly independent in Rn if and only if their coordinate vectors {[v1]B, [v2]B,..., [vk]B} form a linearly independent set in Rn, where B is any basis for Rn [281](#page=281). ## 23.21 True-False Exercises This section presents a series of true-false statements about transition matrices and bases in vector spaces. Each statement requires justification to determine its validity. * **Statement a**: If B1 and B2 are bases for a vector space V, then a transition matrix from B1 to B2 always exists. * **Statement b**: Transition matrices are always invertible. * **Statement c**: If B is a basis for Rn, then the transition matrix PB→B is the identity matrix. * **Statement d**: If the transition matrix PB2→B1 is a diagonal matrix, then each vector in B2 is a scalar multiple of some vector in B1. * **Statement e**: If each vector in B2 is a scalar multiple of some vector in B1, then the transition matrix PB2→B1 is a diagonal matrix. * **Statement f**: If A is a square matrix, then A is the transition matrix PB1→B2 for some bases B1 and B2 for Rn [281](#page=281). # 24. Change of Basis Coordinate Maps ## 24.1 Row Space, Column Space, and Null Space [283](#page=283) Matrices are associated with several important vector spaces: the row space, the column space, and the null space. These spaces provide deeper insights into the relationships between linear systems and their coefficient matrices [282](#page=282). The row vectors of an $m \times n$ matrix $A$ are the vectors in $R^n$ formed from its rows. The column vectors are the vectors in $R^m$ formed from its columns [282](#page=282). | Term | Definition | | --- | --- | | Row space of A (row(A)) | The subspace of $R^n$ spanned by the row vectors of A. | | Column space of A (col(A)) | The subspace of $R^m$ spanned by the column vectors of A. | | Null space of A (null(A)) | The solution space of the homogeneous system $Ax = 0$, which is a subspace of $R^n$. | Two fundamental questions guide the study of these spaces: * What relationships exist among the solutions of $Ax = b$ and the row space, column space, and null space of $A$? * What relationships exist among the row space, column space, and null space of a matrix [283](#page=283)? A linear system $Ax = b$ is consistent if and only if $b$ can be expressed as a linear combination of the column vectors of $A$, meaning $b$ must be in the column space of $A$ [283](#page=283). ## 24.2 The Relationship Between $Ax = 0$ and $Ax = b$ The solutions of a nonhomogeneous system $Ax = b$ are closely related to the solutions of its corresponding homogeneous system $Ax = 0$ [284](#page=284). A system $Ax = b$ is consistent if and only if $b$ is in the column space of $A$ [284](#page=284). A system $Ax = b$ is consistent if and only if $b$ is in the column space of $A$ [284](#page=284). - **A Vector b in the Column Space of A**: For the system $Ax = b$ with $A = \begin{bmatrix} 1 & 2 & -1 \\ 2 & 4 & -2 \\ -3 & -6 & 3 \end{bmatrix}$ and $b = \begin{bmatrix} 9 \\ 18 \\ -27 \end{bmatrix}$, solving by Gaussian elimination yields $x_1 = 2, x_2 = -1, x_3 = 3$. This shows $b$ is in the column space of $A$ because $b = 2c_1 - c_2 + 3c_3$, where $c_1, c_2, c_3$ are the column vectors of $A$ [284](#page=284). The general solution of a consistent linear system $Ax = b$ can be expressed as the sum of a particular solution $x_0$ of $Ax = b$ and the general solution of the corresponding homogeneous system $Ax = 0$. If $S = \{v_1, v_2, \dots, v_k\}$ is a basis for the null space of $A$, then any solution $x$ can be written as $x = x_0 + c_1v_1 + c_2v_2 + \dots + c_kv_k$ [285](#page=285). Geometrically, the solution set of $Ax = b$ is a translation of the solution space of $Ax = 0$ by a particular solution $x_0$ [286](#page=286). ## 24.3 Bases for Row Spaces, Column Spaces, and Null Spaces[287](#page=287) Row equivalent matrices share the same row space and the same null space [286](#page=286). | Matrix Property | Effect of Row Equivalence | | --- | --- | | Row space | Remains the same. | | Null space | Remains the same. | Elementary row operations do not change the solution set of a linear system, thus preserving the null space. However, these operations can change the column space of a matrix [286](#page=286). For a matrix $R$ in row echelon form: * The nonzero row vectors form a basis for the row space of $R$. * The column vectors corresponding to the leading 1's form a basis for the column space of $R$ [287](#page=287). | Matrix Type | Basis Identification | | --- | --- | | Matrix in row echelon form (R) | Basis for row space: Nonzero row vectors. Basis for column space: Column vectors corresponding to leading 1s. | ## 24.4 Bases Formed from Row and Column Vectors of a Matrix When a matrix $A$ is reduced to a row echelon form $R$, the basis for the row space of $R$ is also a basis for the row space of $A$ [288](#page=288). Elementary row operations do not alter the linear independence of a set of column vectors. If a set of column vectors of $A$ is linearly independent, the corresponding column vectors of a row-equivalent matrix $B$ are also linearly independent [288](#page=288). | Set of Column Vectors | Linear Independence Relationship | | --- | --- | | Set of column vectors of A | Linearly independent if and only if the corresponding column vectors of B are linearly independent. | This property implies that elementary row operations do not change the dimension of the column space [288](#page=288). To find a basis for the column space of $A$ consisting of column vectors of $A$: 1. Reduce $A$ to a row echelon form $R$. 2. Identify the columns in $R$ that contain the leading 1's. 3. The corresponding columns in the original matrix $A$ form a basis for the column space of $A$ [289](#page=289). - **Basis from the Columns of A**: For matrix $A = \begin{bmatrix} 1 & 2 & -1 \\ 2 & 4 & -2 \\ -3 & -6 & 3 \end{bmatrix}$, its row echelon form is $R = \begin{bmatrix} 1 & 2 & -1 \\ 0 & 0 & 0 \\ 0 & 0 & 0 \end{bmatrix}$. The first column of $R$ contains a leading 1. Therefore, the first column of $A$, which is $\begin{bmatrix} 1 \\ 2 \\ -3 \end{bmatrix}$, forms a basis for the column space of $A$ [289](#page=289). To find a basis for the row space of $A$ consisting entirely of row vectors from $A$, one can transpose $A$, find a basis for the column space of $A^T$ using the method above, and then transpose the resulting basis vectors back to rows [289](#page=289). # 25. Row Space, Column Space, and Null Space Matrix Spaces ## 25.1 Basis for the space spanned by a set of vectors To find a basis for the subspace spanned by a set of vectors, we can form a matrix with these vectors as columns and then reduce it to reduced row echelon form (RREF). The columns in the original matrix that correspond to the columns containing leading 1s in the RREF form a basis for the spanned subspace. This process also allows us to express any vector not in the basis as a linear combination of the basis vectors by using the dependency equations derived from the RREF [290](#page=290) [291](#page=291). The steps to find a basis for the space spanned by a set of vectors $S = \{v_1, v_2, \dots, v_k\}$ in $R^n$ are as follows: - **Step 1:** Form a matrix $A$ where the columns are the vectors in $S$. - **Step 2:** Reduce matrix $A$ to its reduced row echelon form, $R$. - **Step 3:** Identify the columns in $R$ that contain leading 1s. - **Step 4:** The corresponding column vectors in the original matrix $A$ form a basis for the span of $S$ [292](#page=292). To express vectors not in the basis as linear combinations of the basis vectors: - **Step 5:** Obtain dependency equations by expressing each column vector in $R$ that does not contain a leading 1 as a linear combination of preceding column vectors that do. - **Step 6:** In each dependency equation, replace the column vectors of $R$ with their corresponding original vectors from $A$ [292](#page=292). > 📝 Given vectors $v_1 = (1, -2, 0, 3)$, $v_2 = (2, -5, -3, 6)$, $v_3 = (0, 1, 3, 0)$, $v_4 = (2, -1, 4, -7)$, and $v_5 = (5, -8, 1, 2)$, we form a matrix $A$ with these as columns. Reducing $A$ to RREF yields columns $w_1, w_2, w_3, w_4, w_5$. Leading 1s are in columns 1, 2, and 4. Thus, $\{v_1, v_2, v_4\}$ is a basis for the column space of $A$. The dependency equations from RREF are $w_3 = 2w_1 - w_2$ and $w_5 = w_1 + w_2 + w_4$. Substituting back the original vectors gives $v_3 = 2v_1 - v_2$ and $v_5 = v_1 + v_2 + v_4$ [291](#page=291) [292](#page=292). # 26. Chapter 5: Eigenvalues and Eigenvectors ## 26.1 Rank, nullity, and the fundamental matrix spaces [299](#page=299) [302](#page=302) The rank of a matrix, denoted rank(A), is the common dimension of its row space and column space. The nullity of a matrix A, denoted nullity(A), is the dimension of its null space. These dimensions provide crucial insights into the structure of linear systems and matrices [295](#page=295). * **Rank and nullity definitions:** * **Rank (rank(A))**: The common dimension of the row space and column space of matrix A. * **Nullity (nullity(A))**: The dimension of the null space of matrix A [295](#page=295). * **Rank and nullity of a 4 × 6 matrix:** * For a matrix A, its rank is determined by the number of leading 1s in its reduced row echelon form. * The nullity is the number of free variables in the solution to Ax = 0, which corresponds to the number of parameters in the general solution [296](#page=296). * **Maximum value for rank:** * The rank of an m × n matrix A is at most the smaller of m and n: $rank(A) ≤ min(m, n)$ [296](#page=296). * **The sum of rank and nullity:** * For any matrix A with n columns, the sum of its rank and nullity equals the number of columns: `rank(A) + nullity(A) = n` [297](#page=297). * **Rank and nullity of a 5 × 7 matrix:** * If A is a 5 × 7 matrix with rank 3, its nullity is `7 - 3 = 4`, meaning there are four parameters in the general solution of Ax = 0. * If Ax = 0 has a two-dimensional solution space (nullity = 2) for a 5 × 7 matrix A, its rank is `7 - 2 = 5` [298](#page=298). * **Rank, nullity, and linear systems:** * If Ax = b is a consistent linear system of m equations in n unknowns, and A has rank r, the general solution contains `n - r` parameters [298](#page=298). * **The fundamental spaces of a matrix:** * An m × n matrix A is associated with four distinct fundamental vector spaces: the row space of A, the column space of A, the null space of A, and the null space of AT (also called the left null space). * The row space and null space of A are subspaces of Rn, while the column space of A and the null space of AT are subspaces of Rm. * The dimension of the left null space of A is called the left nullity of A [298](#page=298). * **Rank of A and AT:** * The rank of a matrix is equal to the rank of its transpose: `rank(A) = rank(AT)`. * This implies `rank(A) + nullity(AT) = m` for an m × n matrix A [299](#page=299). * **Dimensions of fundamental spaces:** * If `rank(A) = r`, then: * `dim[row(A)] = r` * `dim[col(A)] = r` * `dim[null(A)] = n - r` * `dim[null(AT)] = m - r` [299](#page=299). * **Bases for the fundamental spaces:** * To find bases for the fundamental spaces, augment A with the identity matrix [A | I and reduce A to its reduced row echelon form R, yielding [R | E. * The rank `r` is the number of pivots (leading 1s) in R. * The nullity of AT is `m - r`. * **Basis for row(A)**: The `r` pivot rows of R. * **Basis for col(A)**: The `r` pivot columns of A. * **Basis for null(AT)**: The bottom `m - r` rows of E [299](#page=299). * **Example of finding bases for fundamental spaces:** * For the matrix A = [ , its reduced row echelon form R is [ ][5](#page=5). * The rank `r` is 3, nullity is `6 - 3 = 3`, and left nullity is `4 - 3 = 1`. * The bases are: * Row space: [ ] (pivot rows of R) . * Column space: [ ] (pivot columns of A) [1](#page=1) [2](#page=2) [3](#page=3) [4](#page=4) [7](#page=7) [8](#page=8) [9](#page=9). * Left null space: The bottom row of E from [A | I reduced to [R | E [300](#page=300). * **Geometric link between fundamental spaces:** * The **orthogonal complement** of a subspace W (denoted W⊥) is the set of all vectors orthogonal to every vector in W [300](#page=300). * Properties of orthogonal complements: * W⊥ is a subspace. * The only vector common to W and W⊥ is the zero vector: `W ∩ W⊥ = {0}`. * The orthogonal complement of W⊥ is W: `(W⊥)⊥ = W` [301](#page=301). * **Orthogonality of fundamental spaces:** * For an m × n matrix A: * The null space of A and the row space of A are orthogonal complements in Rn. * The null space of AT and the column space of A are orthogonal complements in Rm [301](#page=301). * **Equivalence theorem:** * For an n × n matrix A, the following statements are equivalent: * A is invertible. * Ax = 0 has only the trivial solution. * The reduced row echelon form of A is In. * Ax = b is consistent for every n × 1 matrix b. * Ax = b has exactly one solution for every n × 1 matrix b. * The column vectors of A are linearly independent. * The row vectors of A are linearly independent. * The column vectors of A span Rn. * The row vectors of A span Rn. * The column vectors of A form a basis for Rn. * The row vectors of A form a basis for Rn. * A has rank n. * A has nullity 0. * The orthogonal complement of the null space of A is Rn. * The orthogonal complement of the row space of A is {0} [302](#page=302). * **Applications of rank:** * Rank is used in data compression schemes to approximate data sets with smaller rank, reducing redundancy for faster transmission [303](#page=303). * **Overdetermined and underdetermined systems:** * **Overdetermined system (m > n):** If a system has more equations than unknowns, it is inconsistent for at least one vector b. * **Underdetermined system (m < n):** If a system has fewer equations than unknowns, it is either inconsistent or has infinitely many solutions for any vector b [304](#page=304). * **Example of overdetermined and underdetermined systems:** * A consistent system of 7 equations in 5 unknowns with rank 4 has `5 - 4 = 1` parameter in its general solution. * A system of 5 equations in 7 unknowns with rank 4 may be inconsistent; if consistent, its general solution has `7 - 4 = 3` parameters [304](#page=304). * **Proof of left null space basis:** * The bottom `m - r` rows of the matrix E, obtained from reducing [A | I to [R | E, form a basis for the left null space of A [305](#page=305). | Fundamental Space | Subspace Of | Dimension | | --- | --- | --- | | Row space of A | Rn | r | | Column space of A | Rm | r | | Null space of A | Rn | n - r | | Null space of AT | Rm | m - r | | Statement | Equivalent to | | --- | --- | | A is invertible | Ax = 0 has only the trivial solution | | Ax = 0 has only the trivial solution | The reduced row echelon form of A is In | | The reduced row echelon form of A is In | Ax = b is consistent for every n × 1 matrix b | | Ax = b is consistent for every n × 1 matrix b | Ax = b has exactly one solution for every n × 1 matrix b | | Ax = b has exactly one solution for every n × 1 matrix b | The column vectors of A are linearly independent | | The column vectors of A are linearly independent | The row vectors of A are linearly independent | | The row vectors of A are linearly independent | The column vectors of A span Rn | | The column vectors of A span Rn | The row vectors of A span Rn | | The row vectors of A span Rn | The column vectors of A form a basis for Rn | | The column vectors of A form a basis for Rn | The row vectors of A form a basis for Rn | | The row vectors of A form a basis for Rn | A has rank n | | A has rank n | A has nullity 0 | | A has nullity 0 | The orthogonal complement of the null space of A is Rn | | The orthogonal complement of the null space of A is Rn | The orthogonal complement of the row space of A is {0} | ## 26.2 Eigenvalues and Eigenvectors Eigenvalues and eigenvectors are special scalars and vectors associated with a square matrix. For an $n \times n$ matrix $A$, a nonzero vector $x$ is an **eigenvector** if multiplying $A$ by $x$ results in a scalar multiple of $x$. This scalar is called the **eigenvalue**, denoted by $\lambda$. The relationship is expressed as $Ax = \lambda x$. Eigenvectors represent directions that are preserved under the linear transformation defined by $A$, with the eigenvalue indicating the scaling factor along that direction [311](#page=311). The condition that eigenvectors must be nonzero is crucial to avoid the trivial case $A0 = \lambda 0$, which holds for any matrix and scalar [311](#page=311). ## 26.3 Computing Eigenvalues [314](#page=314) To find the eigenvalues of a matrix $A$, we rearrange the defining equation $Ax = \lambda x$ into $(\lambda I - A)x = 0$. This equation has a nonzero solution for $x$ if and only if the matrix $(\lambda I - A)$ is singular, meaning its determinant is zero. This leads to the **characteristic equation**: $$ \det(\lambda I - A) = 0 $$ The polynomial obtained by expanding this determinant is called the **characteristic polynomial**, $p(\lambda) = \lambda^n + c_1\lambda^{n-1} + \dots + c_n$. The roots of the characteristic equation are the eigenvalues of $A$. An $n \times n$ matrix can have at most $n$ distinct eigenvalues, and these can be complex numbers even if the matrix entries are real [312](#page=312) [313](#page=313). | Matrix Type | Eigenvalues | | --- | --- | | Triangular matrix (upper, lower, or diagonal) | Entries on the main diagonal | ## 26.4 Computing Eigenvectors and Eigenspaces Once the eigenvalues are known, the corresponding eigenvectors are found by solving the system $(\lambda I - A)x = 0$ for each eigenvalue $\lambda$. The set of all solutions to this system, including the zero vector, forms the **eigenspace** corresponding to $\lambda$. This eigenspace is the null space of the matrix $(\lambda I - A)$ [315](#page=315). The following statements are equivalent for an $n \times n$ matrix $A$ and a scalar $\lambda$: * $\lambda$ is an eigenvalue of $A$. * $\lambda$ is a solution to $\det(\lambda I - A) = 0$. * The system $(\lambda I - A)x = 0$ has nontrivial solutions. * There exists a nonzero vector $x$ such that $Ax = \lambda x$ [315](#page=315). ## 26.5 Eigenvalues and Invertibility A key relationship exists between a matrix's eigenvalues and its invertibility. A square matrix $A$ is invertible if and only if $\lambda = 0$ is not an eigenvalue of $A$. This is because if $\lambda = 0$ is an eigenvalue, then $\det(0I - A) = \det(-A) = (-1)^n \det(A) = 0$, which implies $\det(A) = 0$, meaning $A$ is not invertible [318](#page=318). The equivalence of various statements about a matrix's properties is summarized, including its invertibility, the triviality of the solution to $Ax=0$, the form of its reduced row echelon form, the linear independence of its column and row vectors, and whether $\lambda = 0$ is an eigenvalue [318](#page=318). ## 26.6 Example: Finding Eigenvectors and Bases for Eigenspaces For the matrix $$ A = \begin{pmatrix} 0 & 1 \\ 2 & 1 \end{pmatrix} $$ the characteristic equation is $(\lambda - 2)(\lambda + 1) = 0$, yielding eigenvalues $\lambda = 2$ and $\lambda = -1$ [313](#page=313) [316](#page=316). For $\lambda = 2$, the system $(2I - A)x = 0$ becomes: $$ \begin{pmatrix} 2 & -1 \\ -2 & 1 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} $$ The general solution is $x_1 = t, x_2 = t$, so a basis for the eigenspace is $\begin{pmatrix} 1 \\ 1 \end{pmatrix}$ [316](#page=316). For $\lambda = -1$, the system $(-I - A)x = 0$ becomes: $$ \begin{pmatrix} -1 & -1 \\ -2 & -2 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} 0 \\ 0 \end{pmatrix} $$ The general solution is $x_1 = -t, x_2 = t$, so a basis for the eigenspace is $\begin{pmatrix} -1 \\ 1 \end{pmatrix}$ [316](#page=316). > 📝 For the matrix $A = \begin{pmatrix} 0 & 1 \\ 2 & 1 \end{pmatrix}$, the eigenspace for $\lambda = 2$ is the line through the origin and $(1, 1)$, and the eigenspace for $\lambda = -1$ is the line through the origin and $(-1, 1)$. Multiplication by $A$ scales vectors on the first line by 2 and vectors on the second line by -1 [316](#page=316). ## 26.7 Example: Eigenvalues and Bases for Eigenspaces Consider the matrix $$ A = \begin{pmatrix} 4 & 0 & 1 \\ -2 & 1 & 0 \\ -2 & 0 & 1 \end{pmatrix} $$ Its characteristic polynomial is $(\lambda - 1)(\lambda - 2)^2 = 0$, with eigenvalues $\lambda = 1$ and $\lambda = 2$ [317](#page=317). For $\lambda = 2$, the system $(2I - A)x = 0$ leads to eigenvectors of the form $s\begin{pmatrix} -1 \\ 1 \\ 0 \end{pmatrix} + t\begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix}$. A basis for this eigenspace is $\left\{ \begin{pmatrix} -1 \\ 1 \\ 0 \end{pmatrix}, \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix} \right\}$ [317](#page=317). For $\lambda = 1$, the system $(I - A)x = 0$ leads to eigenvectors of the form $s\begin{pmatrix} -2 \\ 1 \\ 1 \end{pmatrix}$. A basis for this eigenspace is $\left\{ \begin{pmatrix} -2 \\ 1 \\ 1 \end{pmatrix} \right\}$ [317](#page=317). # 27. Diagonalization the Matrix Diagonalization problem ## 27.1 Diagonalization the Matrix Diagonalization problem [321](#page=321) Similarity transformations, of the form $A \rightarrow P^{-1}AP$, are crucial for understanding matrix properties. These transformations preserve several key characteristics of the original matrix. * **Similarity Invariants**: Properties that remain unchanged under similarity transformations. | Property | Description | | --- | --- | | Determinant | A and P^-1AP have the same determinant. | | Invertibility | A is invertible if and only if P^-1AP is invertible. | | Rank | A and P^-1AP have the same rank. | | Nullity | A and P^-1AP have the same nullity. | | Trace | A and P^-1AP have the same trace. | | Characteristic polynomial | A and P^-1AP have the same characteristic polynomial. | | Eigenvalues | A and P^-1AP have the same eigenvalues. | | Eigenspace dimension | If λ is an eigenvalue of A (and hence of P^-1AP), then the eigenspace of A corresponding to λ and the eigenspace of P^-1AP corresponding to λ have the same dimension. | A square matrix $A$ is **diagonalizable** if it is similar to a diagonal matrix $D$, meaning there exists an invertible matrix $P$ such that $P^{-1}AP = D$. The matrix $P$ is said to **diagonalize** $A$. * **Diagonalizability Condition**: An $n \times n$ matrix $A$ is diagonalizable if and only if it has $n$ linearly independent eigenvectors. This is equivalent to stating that there exists a basis for $\mathbb{R}^n$ consisting of eigenvectors of $A$ [322](#page=322). ## 27.2 Theorem 5.2.1 This theorem establishes the equivalence between a matrix being diagonalizable and possessing $n$ linearly independent eigenvectors. The proof outlines how to construct the diagonalizing matrix $P$ and the diagonal matrix $D$ from these eigenvectors and their corresponding eigenvalues. * **Proof Outline (a) ⇒ (b)**: If $A$ is diagonalizable, then $P^{-1}AP = D$ for some invertible $P$ and diagonal $D$. This implies $AP = PD$. By expressing $P$ in terms of its column vectors $p_1, \dots, p_n$ and $D$ in terms of its diagonal entries $\lambda_1, \dots, \lambda_n$, we get $Ap_i = \lambda_i p_i$. Since $P$ is invertible, its columns $p_1, \dots, p_n$ are linearly independent eigenvectors of $A$. * **Proof Outline (b) ⇒ (a)**: If $A$ has $n$ linearly independent eigenvectors $p_1, \dots, p_n$ with corresponding eigenvalues $\lambda_1, \dots, \lambda_n$, form matrix $P$ with these eigenvectors as columns and diagonal matrix $D$ with $\lambda_i$ on the diagonal. Then $AP = PD$, and since $P$ is invertible, $P^{-1}AP = D$, showing $A$ is diagonalizable. [322](#page=322) [323](#page=323). > 📝 An $n \times n$ matrix with $n$ distinct eigenvalues is diagonalizable. For example, a $3 \times 3$ matrix with eigenvalues $\lambda = 4$, $\lambda = 3$, and $\lambda = -1$ is diagonalizable. [325](#page=325) ## 27.3 Theorem 5.2.2 This theorem provides conditions for diagonalizability based on eigenvalues. * **Distinct Eigenvalues**: If $\lambda_1, \dots, \lambda_k$ are distinct eigenvalues of a matrix $A$, and $v_1, \dots, v_k$ are corresponding eigenvectors, then $\{v_1, \dots, v_k\}$ is a linearly independent set. * **Diagonalizability with Distinct Eigenvalues**: An $n \times n$ matrix with $n$ distinct eigenvalues is diagonalizable [323](#page=323). ## 27.4 Procedure for Diagonalizing a Matrix This procedure outlines the steps to determine if a matrix is diagonalizable and, if so, to find the diagonalizing matrix $P$. 1. **Check for Diagonalizability**: Find $n$ linearly independent eigenvectors. This can be done by finding a basis for each eigenspace and summing the number of basis vectors. If the total equals $n$, the matrix is diagonalizable. 2. **Form Matrix P**: If diagonalizable, construct matrix $P$ using the $n$ linearly independent eigenvectors as its column vectors. 3. **Construct Diagonal Matrix D**: The resulting matrix $P^{-1}AP$ will be a diagonal matrix where the diagonal entries are the eigenvalues corresponding to the columns of $P$ [323](#page=323). ## 27.5 Finding a Matrix P That Diagonalizes a Matrix A EXAMPLE 1 For matrix $A$, the characteristic equation is $(\lambda - 1)(\lambda - 2)^2 = 0$, yielding eigenvalues $\lambda = 1$ and $\lambda = 2$. The bases for the eigenspaces are found to be $\{[1, 1, 0]^T\}$ for $\lambda=1$ and $\{[1, 0, 1]^T, [0, 1, 1]^T\}$ for $\lambda=2$. Since there are three basis vectors in total (one for $\lambda=1$ and two for $\lambda=2$), the matrix is diagonalizable. The matrix $P$ is formed by these eigenvectors as columns: $P = [[1, 1, 0], [1, 0, 1], [0, 1, 1]]$. The resulting matrix $P^{-1}AP$ is diagonal with eigenvalues on the diagonal. [323](#page=323) [324](#page=324). > 📝 For the matrix $A$ from Example 2, the eigenvalues are $\lambda = 1$ and $\lambda = 2$. Thus, the eigenvalues of $A^7$ are $1^7 = 1$ and $2^7 = 128$. The eigenvectors for $A^7$ are the same as for $A$. [326](#page=326) ## 27.6 A Matrix That Is Not Diagonalizable EXAMPLE 2 The characteristic polynomial of matrix $A$ is $(\lambda - 1)(\lambda - 2)^2 = 0$, with distinct eigenvalues $\lambda = 1$ and $\lambda = 2$. The eigenspace for $\lambda = 1$ is one-dimensional, spanned by $[1, 1, 1]^T$. The eigenspace for $\lambda = 2$ is also one-dimensional, spanned by $[1, 0, -1]^T$. Since $A$ is a $3 \times 3$ matrix and only two linearly independent eigenvectors can be found, $A$ is not diagonalizable [324](#page=324). ## 27.7 Recognizing Diagonalizability EXAMPLE 3 A matrix with distinct eigenvalues is diagonalizable. For instance, a $3 \times 3$ matrix with eigenvalues $\lambda = 4$, $\lambda = 3$, and $\lambda = -1$ is diagonalizable. The matrix $P$ can be found using the procedure described earlier [325](#page=325). > 📝 The identity matrix $I$ and the Jordan block matrix $J$ both have only one distinct eigenvalue ($\lambda = 1$). However, $I$ is diagonalizable (its eigenspace is $\mathbb{R}^3$), while $J$ is not (its eigenspace is one-dimensional). [328](#page=328) ## 27.8 Diagonalizability of Triangular Matrices EXAMPLE 4 Triangular matrices with distinct entries on the main diagonal are diagonalizable. For example, a triangular matrix with diagonal entries $-1, 3, 5, -2$ has these as its eigenvalues and is therefore diagonalizable [325](#page=325). ## 27.9 Eigenvalues of powers of a Matrix If $\lambda$ is an eigenvalue of $A$ with corresponding eigenvector $x$, then $\lambda^k$ is an eigenvalue of $A^k$ with the same eigenvector $x$. ## 27.10 Theorem 5.2.3 If $k$ is a positive integer, $\lambda$ is an eigenvalue of a matrix $A$, and $x$ is a corresponding eigenvector, then $\lambda^k$ is an eigenvalue of $A^k$ and $x$ is a corresponding eigenvector [326](#page=326). ## 27.11 Eigenvalues and Eigenvectors of Matrix Powers EXAMPLE 5 For the matrix $A$ from Example 2, the eigenvalues are $\lambda = 1$ and $\lambda = 2$. Thus, the eigenvalues of $A^7$ are $1^7 = 1$ and $2^7 = 128$. The eigenvectors for $A^7$ are the same as for $A$ [326](#page=326). ## 27.12 Powers of a Matrix EXAMPLE 6 To compute $A^{13}$ for a diagonalizable matrix $A$, first find the diagonalizing matrix $P$ and the diagonal matrix $D$ such that $P^{-1}AP = D$. Then $A^k = PD^kP^{-1}$. For the given matrix $A$, $P = [[1, 1, 0], [1, 0, 1], [0, 1, 1]]$ and $D = [[1, 0, 0], [0, 2, 0], [0, 0, 2]]$. Thus, $A^{13} = PD^{13}P^{-1}$, where $D^{13} = [[1^{13}, 0, 0], [0, 2^{13}, 0], [0, 0, 2^{13}]]$ [327](#page=327). ## 27.13 Geometric and algebraic Multiplicity The relationship between the dimension of an eigenspace (geometric multiplicity) and the number of times an eigenvalue appears as a root of the characteristic polynomial (algebraic multiplicity) is key to understanding diagonalizability. ## 27.14 Theorem 5.2.4 For a square matrix $A$: * The geometric multiplicity of every eigenvalue is less than or equal to its algebraic multiplicity. * $A$ is diagonalizable if and only if its characteristic polynomial factors into linear terms, and the geometric multiplicity equals the algebraic multiplicity for every eigenvalue [328](#page=328). ## 27.15 The Converse of Theorem 5.2.2(b) Is False EXAMPLE 7 This example illustrates that having fewer than $n$ distinct eigenvalues does not automatically mean a matrix is not diagonalizable. The identity matrix $I$ and the Jordan block matrix $J$ both have only one distinct eigenvalue ($\lambda = 1$). However, $I$ is diagonalizable (its eigenspace is $\mathbb{R}^3$), while $J$ is not (its eigenspace is one-dimensional). [327](#page=327) [328](#page=328). # 28. Diagonalization the Matrix Diagonalization problem ## 28.1 Complex vector spaces and complex numbers A complex vector space is a vector space where scalars are allowed to be complex numbers. The set of all complex n-tuples, denoted by $C^n$, forms a complex vector space. Operations like addition, subtraction, and scalar multiplication are performed componentwise. A vector $v = (v_1, v_2, \dots, v_n)$ in $C^n$ can be expressed as $v = \text{Re}(v) + i \text{Im}(v)$, where $\text{Re}(v)$ and $\text{Im}(v)$ are vectors in $R^n$. The complex conjugate of $v$, denoted by $\bar{v}$, is given by $\bar{v} = \text{Re}(v) - i \text{Im}(v)$ [332](#page=332). Matrices can also have complex entries. A real matrix can be viewed as a complex matrix where all entries have a zero imaginary part. The standard operations on real matrices extend to complex matrices. For a complex matrix $A$, $A = \text{Re}(A) + i \text{Im}(A)$ and $\bar{A} = \text{Re}(A) - i \text{Im}(A)$ [333](#page=333). ## 28.2 Algebraic properties of the complex conjugate The complex conjugate has several useful algebraic properties for vectors and matrices: * Conjugation of a sum or difference: $\overline{u \pm v} = \bar{u} \pm \bar{v}$. * Conjugation of a scalar multiple: $\overline{ku} = \bar{k}\bar{u}$. * Conjugation of a sum or difference of matrices: $\overline{A \pm B} = \bar{A} \pm \bar{B}$. * Conjugation of a scalar multiple of a matrix: $\overline{kA} = \bar{k}\bar{A}$. * Conjugation of a transpose: $(\bar{A})^T = \overline{A^T}$. * Conjugation of a product of matrices: $\overline{AB} = \bar{A}\bar{B}$ [333](#page=333). ## 28.3 Complex Euclidean inner product and norm The complex Euclidean inner product (or complex dot product) of two vectors $u = (u_1, u_2, \dots, u_n)$ and $v = (v_1, v_2, \dots, v_n)$ in $C^n$ is defined as: $u \cdot v = u_1\bar{v}_1 + u_2\bar{v}_2 + \dots + u_n\bar{v}_n$ [334](#page=334). The Euclidean norm on $C^n$ is defined as: $||v|| = \sqrt{v \cdot v} = \sqrt{|v_1|^2 + |v_2|^2 + \dots + |v_n|^2}$ [334](#page=334). Key properties of the complex Euclidean inner product include: * Antisymmetry: $u \cdot v = \overline{v \cdot u}$. * Distributivity: $u \cdot (v + w) = u \cdot v + u \cdot w$. * Homogeneity: $(ku) \cdot v = k(u \cdot v)$. * Antihomogeneity: $u \cdot (kv) = \bar{k}(u \cdot v)$. * Positivity: $v \cdot v \ge 0$, and $v \cdot v = 0$ if and only if $v = 0$ [334](#page=334). ## 28.4 Complex eigenvalues and eigenvectors Eigenvalues and eigenvectors are defined for complex matrices similarly to real matrices. The complex roots of the characteristic equation $\det(\lambda I - A) = 0$ are the complex eigenvalues of $A$. A nonzero vector $x$ in $C^n$ is a complex eigenvector of $A$ corresponding to eigenvalue $\lambda$ if $Ax = \lambda x$. The set of all such eigenvectors forms a subspace of $C^n$, called the complex eigenspace [335](#page=335). A significant property is that if a real matrix $A$ has a complex eigenvalue $\lambda$, then its complex conjugate $\bar{\lambda}$ is also an eigenvalue, and if $x$ is an eigenvector for $\lambda$, then $\bar{x}$ is an eigenvector for $\bar{\lambda}$ [335](#page=335). | Matrix A | Characteristic Equation | Eigenvalues | | --- | --- | --- | | $$ \begin{pmatrix} 0 & -1 \ 1 & 0 \end{pmatrix} $$ | $$\lambda^2 + 1 = 0$$ | $\lambda = i, -i$ | | $$ \begin{pmatrix} 7 & -10 \ 5 & -3 \end{pmatrix} $$ | $$\lambda^2 - 4\lambda + 12 = 0$$ | $\lambda = 2 \pm i\sqrt{8}$ | [335](#page=335) [337](#page=337). ## 28.5 Eigenvalues of a 2 × 2 matrix For a 2x2 matrix $A$ with real entries, the characteristic equation is $\lambda^2 - \text{tr}(A)\lambda + \det(A) = 0$. The nature of the eigenvalues depends on the discriminant $\text{tr}(A)^2 - 4\det(A)$: * If $\text{tr}(A)^2 - 4\det(A) > 0$, there are two distinct real eigenvalues. * If $\text{tr}(A)^2 - 4\det(A) = 0$, there is one repeated real eigenvalue. * If $\text{tr}(A)^2 - 4\det(A) < 0$, there are two complex conjugate eigenvalues [337](#page=337). ## 28.6 Symmetric matrices have real eigenvalues A real symmetric matrix $A$ has only real eigenvalues. This can be shown by considering the eigenvalue equation $Ax = \lambda x$ and manipulating it using the complex conjugate transpose and the properties of the complex Euclidean inner product [338](#page=338). ## 28.7 A geometric interpretation of complex eigenvalues For a real 2x2 matrix $A$ with complex eigenvalues $\lambda = a \pm bi$ (where $b \neq 0$), the matrix can be related to a rotation and scaling. If $x$ is an eigenvector for $\lambda = a - bi$, then the matrix $P = [\text{Re}(x) \quad \text{Im}(x)]$ is invertible, and $A = PCP^{-1}$, where $C$ is of the form: $$ C = \begin{pmatrix} a & -b \\ b & a \end{pmatrix} $$ This matrix $C$ can be factored into a scaling matrix with factor $|\lambda|$ and a rotation matrix by an angle $f$, where $a = |\lambda|\cos f$ and $b = |\lambda|\sin f$. Geometrically, multiplication by $A$ can be viewed as a rotation by angle $f$ followed by a scaling by $|\lambda|$. [339](#page=339) [340](#page=340). > 📝 For the matrix $A = \begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}$, the eigenvalues are $\lambda = 1 \pm i$. The corresponding eigenvector for $\lambda = 1 - i$ is $x = \begin{pmatrix} 1 \\ i \end{pmatrix}$. The matrix $P = [\text{Re}(x) \quad \text{Im}(x)] = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}$. The matrix $C$ is $\begin{pmatrix} 1 & -1 \\ 1 & 1 \end{pmatrix}$. Here, $|\lambda| = \sqrt{1^2 + 1^2} = \sqrt{2}$, and the angle $f$ satisfies $\cos f = 1/\sqrt{2}$ and $\sin f = 1/\sqrt{2}$, so $f = \pi/4$. Thus, $A = \sqrt{2} \begin{pmatrix} \cos(\pi/4) & -\sin(\pi/4) \\ \sin(\pi/4) & \cos(\pi/4) \end{pmatrix}$. [339](#page=339) [341](#page=341). # 29. Complex Vector Spaces review of Complex Numbers ## 29.1 Complex scalars and vectors The properties of real vector spaces extend to complex vector spaces, where scalars can be complex numbers. In a complex vector space $C^n$, vectors are ordered $n$-tuples of complex numbers, and scalar multiplication involves multiplying each component of a vector by a complex scalar. The dot product in $C^n$ is defined such that it satisfies certain properties, including linearity in the first argument and conjugate linearity in the second. - **Complex scalar multiplication**: For a complex scalar $k$ and a vector $v$ in $C^n$, the norm satisfies $ - kv - =: k - v $. - **Complex dot product**: For vectors $u$ and $v$ in $C^n$, the dot product $u \cdot v$ is defined as $\sum_{i=1}^n u_i \overline{v_i}$. - **Properties of the complex dot product**: - $u \cdot v = \overline{v \cdot u}$. - $u \cdot (v+w) = u \cdot v + u \cdot w$. - $(u+v) \cdot w = u \cdot w + v \cdot w$. - $(ku) \cdot v = k(u \cdot v)$ for any complex scalar $k$. - $u \cdot (kv) = \overline{k}(u \cdot v)$ for any complex scalar $k$. - $u \cdot u \ge 0$, and $u \cdot u = 0$ if and only if $u = 0$ [343](#page=343). ## 29.2 Complex analog of Cauchy-Schwarz inequality The Cauchy-Schwarz inequality, fundamental in real vector spaces, has a direct analog in complex vector spaces. This inequality relates the magnitude of the dot product of two vectors to the product of their norms. - **Proof of the complex Cauchy-Schwarz inequality**: - For any complex number $k$ and vectors $u, v$ in $C^n$, the inequality $|u \cdot v|^2 \le (u \cdot u)(v \cdot v)$ holds. - This is proven by considering the expression $|u - kv|^2 \ge 0$ and expanding it using the properties of the complex dot product [343](#page=343). - By setting $k = \frac{u \cdot v}{v \cdot v}$, the inequality $ | u \cdot v | \le | | --- | --- | | u | — | | v | — | $ is derived [343](#page=343). | Inequality | Condition | | --- | --- | | $\vert u \cdot v\vert ^2 \le (u \cdot u)(v \cdot v)$ | For any complex $k$ and vectors $u, v \in C^n$ | | $\vert u \cdot v\vert \le \Vert u\Vert \Vert v\Vert $ | Derived from the above by setting $k = \frac{u \cdot v}{v \cdot v}$ | # 30. Differential Equations ## 30.1 Terminology A differential equation is an equation that involves unknown functions and their derivatives. The order of a differential equation is determined by the highest order of derivative it contains. The simplest type is a first-order equation of the form $y' = ay$, where $y = f(x)$ is the unknown function and $a$ is a constant. The general solution to this type of equation is $y = ce^{ax}$, where $c$ is an arbitrary constant. * **Differential equation**: An equation containing unknown functions and their derivatives. * **Order of a differential equation**: The highest order of derivative present in the equation. * **First-order linear differential equation**: An equation of the form $y' = ay$. * **General solution**: The set of all possible solutions to a differential equation, typically involving arbitrary constants. For $y' = ay$, the general solution is $y = ce^{ax}$ [344](#page=344). An initial condition is a specific value of the solution at a particular point, which allows for the isolation of a unique solution from the general solution. A problem that combines a differential equation with an initial condition is known as an initial-value problem. * **Initial condition**: A constraint specifying the value of the solution at a particular point (e.g., $y(0) = 6$). * **Initial-value problem**: A differential equation coupled with one or more initial conditions [344](#page=344). ## 30.2 First-order linear systems Systems of differential equations of the form $y'_i = \sum_{j=1}^n a_{ij} y_j$ for $i=1, \dots, n$ can be written in matrix form as $y' = Ay$, where $y$ is a vector of unknown functions and $A$ is a matrix of constants. These are called constant coefficient first-order homogeneous linear systems. The trivial solution ($y_i = 0$ for all $i$) is always a solution. * **System of differential equations**: A set of equations involving multiple unknown functions and their derivatives. * **Matrix form of a system**: Representing the system as $y' = Ay$, where $y$ is a vector of functions and $A$ is a constant coefficient matrix. * **Constant coefficient first-order homogeneous linear system**: A system where derivatives are all first-order, coefficients are constant, and the trivial solution ($y=0$) exists [344](#page=344). ## 30.3 Solution by diagonalization To solve a system $y' = Ay$ where $A$ is not diagonal, we can use a change of variables $y = Pu$, where $P$ is an invertible matrix that diagonalizes $A$. This transforms the system into $u' = Du$, where $D = P^{-1}AP$ is a diagonal matrix. This diagonal system is easier to solve. * **Diagonalization**: Transforming a matrix $A$ into a diagonal matrix $D$ using an invertible matrix $P$ such that $D = P^{-1}AP$. * **Change of variables**: Substituting $y = Pu$ and $y' = Pu'$ into the system $y' = Ay$ to obtain $u' = Du$ [345](#page=345). The procedure for solving $y' = Ay$ when $A$ is diagonalizable involves: 1. Finding a matrix $P$ that diagonalizes $A$. 2. Substituting $y = Pu$ and $y' = Pu'$ to get the diagonal system $u' = Du$. 3. Solving the diagonal system $u' = Du$. 4. Obtaining $y$ from $y = Pu$ [346](#page=346). ## 30.4 Solution using diagonalization example 2 This example demonstrates solving a system $y' = Ay$ where $A$ is a $3 \times 3$ matrix. The process involves finding the eigenvalues and eigenvectors of $A$ to construct the diagonalizing matrix $P$. * **System**: y1' = 3y1 y2' = -2y2 y3' = 5y3. * **Coefficient matrix**: $A = \begin{bmatrix} 3 & 0 & 0 \\ 0 & -2 & 0 \\ 0 & 0 & 5 \end{bmatrix}$ [345](#page=345). * **Eigenvalues**: The eigenvalues of $A$ are $\lambda = 2$ and $\lambda = -3$. * **Eigenvectors**: * For $\lambda = 2$: $\begin{bmatrix} 1 \\ 1 \\ 0 \end{bmatrix}$ and $\begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}$ * For $\lambda = -3$: $\begin{bmatrix} 1 \\ -2 \\ 0 \end{bmatrix}$ [346](#page=346). * **Diagonalizing matrix P**: $P = \begin{bmatrix} 1 & 0 & 1 \\ 1 & 0 & -2 \\ 0 & 1 & 0 \end{bmatrix}$. * **Diagonal matrix D**: $D = P^{-1}AP = \begin{bmatrix} 2 & 0 & 0 \\ 0 & -3 & 0 \\ 0 & 0 & 5 \end{bmatrix}$. * **General solution for u**: $u_1 = c_1e^{2x}$, $u_2 = c_2e^{-3x}$, $u_3 = c_3e^{5x}$. * **General solution for y**: $y = Pu = \begin{bmatrix} c_1e^{2x} + c_3e^{5x} \\ c_1e^{2x} - 2c_3e^{5x} \\ c_2e^{-3x} \end{bmatrix}$. * **Solution with initial conditions**: $y_1(0) = 1, y_2(0) = 6$. This leads to $c_1 = 2$ and $c_2 = 4$, resulting in the particular solution: $y_1 = 2e^{2x} - e^{-3x}$ $y_2 = 2e^{2x} + 4e^{-3x}$ [347](#page=347). > 📝 Solving the system $y_1' = 3y_1$, $y_2' = -2y_2$, $y_3' = 5y_3$ with initial conditions $y_1(0) = 1$, $y_2(0) = 6$, $y_3(0) = -2$. The solutions are $y_1 = e^{3x}$, $y_2 = 4e^{-2x}$, $y_3 = -2e^{5x}$ [345](#page=345). # 31. Chapter 6: Inner Product Spaces ## 31.1 Dynamical systems and Markov chains A dynamical system is a set of variables whose values change over time, with the collection of these values forming the state vector. Markov chains are a type of stochastic process where the state vectors at successive times are related by a transition matrix, representing probabilities of moving between states. * **State vector**: A vector representing the values of variables in a dynamical system at a specific time [349](#page=349). * **Markov chain**: A dynamical system where state vectors are probability vectors, and successive states are related by a stochastic matrix. * **Stochastic matrix**: A square matrix where each column is a probability vector, meaning all entries are nonnegative and sum to 1. * **Transition matrix**: The stochastic matrix $P$ in a Markov chain, where $p_{ij}$ is the probability of transitioning from state $j$ to state $i$ [352](#page=352). ## 31.2 Market share as a dynamical system This example models the market share of two competing television channels over time, showing how their shares evolve based on retention and acquisition rates. * **Initial state**: Channel 1 and Channel 2 each hold 50% of the market [349](#page=349). * **Year 1 calculation**: * Channel 1 retains 80% of its share and gains 10% from Channel 2. * Channel 2 retains 90% of its share and gains 20% from Channel 1. * **Evolution over time**: The market shares stabilize over the long term, with Channel 1 holding approximately one-third and Channel 2 holding approximately two-thirds of the market [350](#page=350) [351](#page=351). > 📝 For a two-channel market, if Channel 1 retains 80% of its share and gains 10% from Channel 2, and Channel 2 retains 90% and gains 20% from Channel 1, the state vector evolves as $x(1) = \begin{bmatrix} 0.8 & 0.1 \\ 0.2 & 0.9 \end{bmatrix} x(0)$ [350](#page=350). ## 31.3 Markov chains in terms of powers of the transition matrix The state vector at time $k$, denoted $x_k$, can be computed from the initial state vector $x_0$ and the transition matrix $P$ using the formula $x_k = P^k x_0$. This allows for direct calculation of any future state without computing intermediate states. * **Successive state vectors**: $x_1 = Px_0$, $x_2 = Px_1$, $x_3 = Px_2$, and so on. * **Direct calculation**: $x_k = P^k x_0$ [354](#page=354). > 📝 To find the state vector after 3 years, $x(3)$, for a Markov chain with initial state $x(0) = \begin{bmatrix} 0.5 \\ 0.5 \end{bmatrix}$ and transition matrix $P = \begin{bmatrix} 0.8 & 0.1 \\ 0.2 & 0.9 \end{bmatrix}$, you can compute $x(3) = P^3 x(0) = \begin{bmatrix} 0.3905 \\ 0.6095 \end{bmatrix}$ [354](#page=354). ## 31.4 Example 2 revisited Using the formula $x_k = P^k x_0$, the state vector $x(3)$ for Example 2 is calculated [354](#page=354). * **Initial state vector**: $x(0) = \begin{bmatrix} 0.5 \\ 0.5 \end{bmatrix}$. * **Transition matrix**: $P = \begin{bmatrix} 0.8 & 0.1 \\ 0.2 & 0.9 \end{bmatrix}$. * **Calculation of $P^3$**: The matrix $P^3$ is computed, and then multiplied by $x(0)$ to find $x(3)$. * **Result**: $x(3) = \begin{bmatrix} 0.3905 \\ 0.6095 \end{bmatrix}$ [354](#page=354). ## 31.5 Example 6: A Markov chain that does not stabilize This example illustrates a Markov chain where the state vectors do not converge to a single limit, demonstrating that stabilization is not guaranteed for all Markov chains. * **Oscillating states**: The state vectors oscillate between $x_0$ and $Px_0$ because $P^2 = I$. * **Condition for stabilization**: The chain does not stabilize unless both components of the initial state vector $x_0$ are $1/2$ [354](#page=354). ## 31.6 Regular stochastic matrices A stochastic matrix is regular if it or a positive power of it has all positive entries. Regular Markov chains are guaranteed to have a unique steady-state vector that all state vectors converge to. * **Regular stochastic matrix**: A stochastic matrix $P$ where $P$ or some positive power of $P$ has all positive entries. * **Regular Markov chain**: A Markov chain whose transition matrix is regular [355](#page=355). ## 31.7 Theorem 5.5.1: Long-term behavior of regular Markov chains This theorem states that for a regular Markov chain, the state vectors converge to a unique steady-state vector, and the powers of the transition matrix converge to a matrix where each column is this steady-state vector. * **Unique steady-state vector**: There exists a unique probability vector $q$ with positive entries such that $Pq = q$. * **Convergence of state vectors**: For any initial probability vector $x_0$, the sequence $x_0, Px_0, P^2x_0, \dots$ converges to $q$. * **Convergence of transition matrix powers**: The sequence $P, P^2, P^3, \dots$ converges to a matrix $Q$ where each column is $q$ [355](#page=355). ## 31.8 Finding a steady-state vector The steady-state vector $q$ of a regular Markov chain is an eigenvector corresponding to the eigenvalue $\lambda = 1$. It is found by solving the system $(I - P)q = 0$ with the constraint that $q$ is a probability vector. > 📝 The steady-state vector for the market share example, where $P = \begin{bmatrix} 0.8 & 0.1 \\ 0.2 & 0.9 \end{bmatrix}$, is found by solving $(I - P)q = 0$, yielding $q = \begin{bmatrix} 1/3 \\ 2/3 \end{bmatrix}$ [356](#page=356). ## 31.9 Examples 1 and 2 revisited The steady-state vector for the market share example is found by solving $(I - P)q = 0$. * **System to solve**: $(I - P)q = 0$. * **Steady-state vector**: $q = \begin{bmatrix} 1/3 \\ 2/3 \end{bmatrix}$ [356](#page=356). ## 31.10 Example 4 revisited The steady-state vector for the wildlife migration example is calculated by solving $(I - P)q = 0$. * **System to solve**: $(I - P)q = 0$ [356](#page=356). * **Steady-state vector**: $q \approx \begin{bmatrix} 0.504 \\ 0.227 \\ 0.269 \end{bmatrix}$ [357](#page=357). | Matrix | Stochastic? | Reason | | --- | --- | --- | | [[0.4, 0.9, [0.6, 0.1]] | Yes | Columns sum to 1. | | [[0.4, 0.6, [0.9, 0.1]] | Yes | Columns sum to 1. | | [[0.2, 0.3, [0.8, 0.7]] | Yes | Columns sum to 1. | | [[0.2, 0.8, [0.3, 0.7]] | Yes | Columns sum to 1. | | [[1/2, 1/3, [1/2, 2/3]] | Yes | Columns sum to 1. | ## 31.11 Exercises This section contains exercises related to identifying stochastic matrices, computing state vectors using transition matrix powers, determining if matrices are regular stochastic, and finding steady-state vectors for Markov chains. It also includes problems involving applications of Markov chains to air quality, mouse food choices, population distribution, and market share. ## 31.12 Exercise set 5.5 * **Exercises 1-2**: Determine if given matrices are stochastic. * **Exercises 3-4**: Compute the state vector $x_4$ in two ways using formulas and [11](#page=11) [12](#page=12). * **Exercises 5-6**: Determine if $P$ is a regular stochastic matrix. * **Exercises 7-10**: Verify that $P$ is a regular stochastic matrix and find its steady-state vector. * **Exercises 11-12**: Analyze Markov processes with given transition matrices, including interpreting entries and calculating probabilities [357](#page=357). * **Exercises 13-14**: Model phenomena (air quality, mouse food choice) as Markov chains and calculate probabilities for future states. * **Exercises 15-16**: Model population distribution and market share as Markov chains, calculate populations/shares over time, and determine long-term distributions. * **Exercise 17**: Fill in missing entries of a stochastic matrix and find its steady-state vector. * **Exercise 18**: Determine the product $MP$ where $M$ is a matrix of ones and $P$ is stochastic. * **Exercise 19**: Analyze the behavior of the sequence $Pq, P^2q, \dots$ as $k \to \infty$ for a regular stochastic matrix $P$ with steady-state vector $q$. * **Exercise 20**: Analyze the behavior of sequences $Pe_i, P^2e_i, \dots$ and the column vectors of $P^k$ as $k \to \infty$ [358](#page=358). * **Exercises 21-22**: Prove properties of stochastic matrices. * **True-False Exercises**: Assess statements about probability vectors, regular stochastic matrices, steady-state vectors, and eigenvalues. * **Working with Technology T1-T3**: Use technology to confirm numerical values, convergence of matrix powers, and analyze car rental agency dynamics and genetic inheritance [359](#page=359) [360](#page=360) [361](#page=361). ## 31.13 Eigenvalues and eigenvectors: transformative applications Eigenvalues and eigenvectors are fundamental in linear algebra and have critical applications in network analysis, big data, and genomics. They help in understanding network structures, reducing data dimensionality, and identifying patterns in gene expression. * **Network analysis**: Eigenvalues of adjacency matrices reveal network connectivity and stability; eigenvectors identify influential nodes and communities. * **Big data**: Principal Component Analysis (PCA) uses eigenvalues and eigenvectors to reduce dimensionality and uncover patterns in large datasets. * **Genomics**: Eigenvalues and eigenvectors are used in gene expression analysis to identify key genes and biological pathways associated with diseases [359](#page=359). ## 31.14 Chapter 5 Supplementary Exercises This section provides additional exercises that delve deeper into eigenvalues and eigenvectors, covering topics such as matrices with no real eigenvalues, finding eigenvalues of specific matrices, properties of diagonalizable matrices, and the Cayley-Hamilton Theorem. * **Exercise 1**: Show that a specific matrix has no real eigenvalues and provide a geometric explanation. * **Exercise 2**: Find the eigenvalues of a given matrix. * **Exercises 3**: Prove properties related to matrices with nonnegative eigenvalues and finding matrices whose square equals a given matrix. * **Exercise 4**: Determine if related matrices (transpose, powers, inverse) are similar if the original matrices are similar. * **Exercise 5**: Prove that the coefficient of $l^{n-1}$ in the characteristic polynomial of a matrix is the negative of its trace. * **Exercise 6**: Prove that a specific type of matrix is not diagonalizable. * **Exercises 7-10**: Verify and apply the Cayley-Hamilton Theorem to calculate powers of matrices [360](#page=360). * **Exercise 11**: Find the eigenvalues of a specific matrix. * **Exercise 12**: Show that a given polynomial is the characteristic polynomial of a specific matrix (companion matrix) and find a matrix for a given polynomial. * **Exercise 13**: Determine the eigenvalues of a nilpotent matrix. * **Exercise 14**: Prove that an $n \times n$ matrix with real entries and odd $n$ has at least one real eigenvalue. * **Exercise 15**: Find a $3 \times 3$ matrix with given eigenvalues and eigenvectors. * **Exercise 16**: Use properties of eigenvalues to find the determinant and trace of a matrix. * **Exercise 17**: Determine possible eigenvalues for a matrix satisfying $A^3 = A$. * **Exercises 18-19**: Solve systems of differential equations and determine possible eigenvalues[363](#page=363). * **Exercise 20**: Show that two matrices are similar under a specific condition [361](#page=361). ## 31.15 Inner product spaces This section introduces the concept of inner products as a generalization of the dot product in $\mathbb{R}^n$. Inner products allow for the definition of length, distance, angle, and orthogonality in general real vector spaces. * **General inner product**: An operation on a real vector space $V$ that satisfies specific properties, generalizing the dot product. * **Properties of inner products**: * Symmetry: $\langle u, v \rangle = \langle v, u \rangle$. * Linearity in the first argument: $\langle cu + dv, w \rangle = c\langle u, w \rangle + d\langle v, w \rangle$. * Positive definiteness: $\langle v, v \rangle \ge 0$, and $\langle v, v \rangle = 0$ if and only if $v$ is the zero vector [363](#page=363). ## 31.16 Inner products An inner product on a real vector space $V$ is a function that associates a real number $\langle u, v \rangle$ with each pair of vectors in $V$, satisfying four axioms: symmetry, additivity, homogeneity, and positivity. A real vector space with an inner product is called a real inner product space [364](#page=364). The norm (or length) of a vector $v$ in an inner product space $V$ is denoted by $ - v - $ and defined as $ - v - = \sqrt{\langle v, v \rangle}$. The distance between two vectors $u$ and $v$ is defined as $d(u, v) = - u - v $. A vector with a norm of 1 is called a unit vector [364](#page=364). ## 31.17 Inner product axioms [364](#page=364) | Axiom | Description | | --- | --- | | 1. Symmetry | ⟨u, v⟩ = ⟨v, u⟩ | | 2. Additivity | ⟨u + v, w⟩ = ⟨u, w⟩ + ⟨v, w⟩ | | 3. Homogeneity | ⟨ku, v⟩ = k⟨u, v⟩ | | 4. Positivity | ⟨v, v⟩ ≥ 0 and ⟨v, v⟩ = 0 if and only if v = 0 | > 📝 For vectors $u = (u_1, u_2)$ and $v = (v_1, v_2)$ in $\mathbb{R}^2$, the weighted Euclidean inner product is defined as $\langle u, v \rangle = 3u_1v_1 + 2u_2v_2$. For $u = (1, 1)$ and $v = (3, 2)$, $\langle u, v \rangle = 3(1)(3) + 2(1)(2) = 9 + 4 = 13$ [365](#page=365). ## 31.18 Types of inner products * **Euclidean inner product:** The standard dot product on $\mathbb{R}^n$, defined as $\langle u, v \rangle = u \cdot v = u_1v_1 + u_2v_2 + \dots + u_nv_n$ [364](#page=364). * **Weighted Euclidean inner product:** Defined on $\mathbb{R}^n$ using positive weights $w_1, w_2, \dots, w_n$ as $\langle u, v \rangle = w_1u_1v_1 + w_2u_2v_2 + \dots + w_nu_nv_n$ [365](#page=365). * **Matrix inner product:** Generated by an invertible $n \times n$ matrix $A$ on $\mathbb{R}^n$ as $\langle u, v \rangle = Au \cdot Av = (Av)^TAu = v^TA^TAu$ [367](#page=367). * **Standard inner product on $M_{nn}$:** For matrices $U$ and $V$ in $M_{nn}$, defined as $\langle U, V \rangle = \text{tr}(U^TV)$. This is equivalent to the dot product of the matrices' entries when flattened. * **Standard inner product on $P_n$:** For polynomials $p = a_0 + a_1x + \dots + a_nx^n$ and $q = b_0 + b_1x + \dots + b_nx^n$ in $P_n$, defined as $\langle p, q \rangle = a_0b_0 + a_1b_1 + \dots + a_nb_n$ [368](#page=368). * **Evaluation inner product on $P_n$:** For polynomials $p$ and $q$ in $P_n$, and distinct real numbers $x_0, x_1, \dots, x_n$, defined as $\langle p, q \rangle = p(x_0)q(x_0) + p(x_1)q(x_1) + \dots + p(x_n)q(x_n)$. * **Integral inner product on $C[a, b]$:** For functions $f$ and $g$ in $C[a, b]$, defined as $\langle f, g \rangle = \int_a^b f(x)g(x) \, dx$ [369](#page=369). ## 31.19 Algebraic properties of inner products [371](#page=371) Theorem 6.1.2 lists several algebraic properties that follow from the inner product axioms, generalizing properties of the dot product [371](#page=371). | Property | Formula | | --- | --- | | Zero vector | ⟨0, v⟩ = ⟨v, 0⟩ = 0 | | Additivity (right) | ⟨u, v + w⟩ = ⟨u, v⟩ + ⟨u, w⟩ | | Subtractivity (right) | ⟨u, v - w⟩ = ⟨u, v⟩ - ⟨u, w⟩ | | Subtractivity (left) | ⟨u - v, w⟩ = ⟨u, w⟩ - ⟨v, w⟩ | | Scalar multiplication | k⟨u, v⟩ = ⟨u, kv⟩ | > 📝 To calculate $\langle u - 2v, 3u + 4v \rangle$, we use the algebraic properties: $3\langle u, u \rangle + 4\langle u, v \rangle - 6\langle v, u \rangle - 8\langle v, v \rangle = 3 - u - ^2 - 2\langle u, v \rangle - 8 - v ^2$ [371](#page=371). ## 31.20 Cauchy–Schwarz Inequality [375](#page=375) The Cauchy–Schwarz Inequality states that for any vectors $u$ and $v$ in a real inner product space $V$, the absolute value of their inner product is less than or equal to the product of their norms: $ | \langle u, v \rangle | \leq | | --- | --- | | u | — | | v | — | $ [374](#page=374). This inequality is crucial for defining the angle between vectors, as it ensures that the argument of the cosine function is within the valid range $[-1, 1]$ [374](#page=374). | Form of Cauchy-Schwarz Inequality | Formula | | --- | --- | | Standard form | — | ⟨u, v⟩ | ≤ | — | u | — | — | — | v | — | — | | Squared form 1 | ⟨u, v⟩² ≤ ⟨u, u⟩⟨v, v⟩ | | Squared form 2 | ⟨u, v⟩² ≤ | — | u | — | ² | — | v | — | ² | > 📝 For vectors $u$ and $v$ in a real inner product space, the Cauchy–Schwarz Inequality states that $ | \langle u, v \rangle | \leq | | --- | --- | | u | — | | v | — | | $. For example, if $u = (1, 1)$ and $v = (1, -1)$ with the Euclidean inner product, then $ | \langle u, v \rangle | = | 0 | = 0$, and $ | | u | — | | v | — | = \sqrt{2} \sqrt{2} = 2$, so $0 \leq 2$ [374](#page=374). ## 31.21 Angle between vectors The angle $\theta$ between two nonzero vectors $u$ and $v$ in a real inner product space is defined by $\cos \theta = \frac{\langle u, v \rangle}{ - u - v }$. The angle $\theta$ is the unique value in $[0, \pi]$ that satisfies this equation [375](#page=375). ## 31.22 Properties of length and distance [376](#page=376) General inner product spaces satisfy triangle inequalities for both vector norms and distances, mirroring properties found in Euclidean spaces [376](#page=376). | Property | Inequality | | --- | --- | | Triangle inequality for vectors | — | — | u + v | — | ≤ | — | u | — | + | — | v | — | — | | Triangle inequality for distances | d(u, v) ≤ d(u, w) + d(w, v) | ## 31.23 Orthogonality Two vectors $u$ and $v$ in an inner product space $V$ are called **orthogonal** if their inner product is zero, i.e., $\langle u, v \rangle = 0$. This concept generalizes the idea of perpendicularity from Euclidean geometry [376](#page=376). Orthogonality is dependent on the specific inner product used. Vectors that are orthogonal with respect to one inner product may not be orthogonal with respect to another [377](#page=377). ## 31.24 Generalized Theorem of Pythagoras If $u$ and $v$ are orthogonal vectors in a real inner product space, then the square of the norm of their sum equals the sum of their squared norms: $ - u + v - ^2 = - u - ^2 + - v ^2$ [378](#page=378). ## 31.25 Orthogonal complement The **orthogonal complement** of a subspace $W$ of an inner product space $V$, denoted by $W^\perp$, is the set of all vectors in $V$ that are orthogonal to every vector in $W$ [378](#page=378). ## 31.26 Orthogonal Complements The orthogonal complement of a subspace $W$, denoted $W^\perp$, is the set of all vectors in the inner product space that are orthogonal to every vector in $W$. * $W^\perp$ always contains the zero vector. * $W^\perp$ is closed under addition and scalar multiplication, making it a subspace. * The intersection of a subspace $W$ and its orthogonal complement $W^\perp$ contains only the zero vector. If $W$ is a subspace of a finite-dimensional inner product space $V$, then the orthogonal complement of $W^\perp$ is $W$ itself, i.e., $(W^\perp)^\perp = W$. This means orthogonal complements occur in pairs, with each being orthogonal to the other [379](#page=379). ## 31.27 Basis for an Orthogonal Complement The problem of finding a basis for the orthogonal complement of a subspace can often be reduced to finding the null space of a related matrix. If $W$ is the row space of a matrix $A$, then $W^\perp$ is the null space of $A$. ## 31.28 EXAMPLE 6: Basis for an Orthogonal Complement Let $W$ be the subspace of $\mathbb{R}^6$ spanned by the vectors $w_1 = (1, 3, -2, 0, 2, 0)$, $w_2 = (2, 6, -5, -2, 4, -3)$, $w_3 = (0, 0, 5, 10, 0, 15)$, and $w_4 = (2, 6, 0, 8, 4, 18)$. To find a basis for $W^\perp$, we form a matrix $A$ whose rows are $w_1, w_2, w_3, w_4$. The orthogonal complement $W^\perp$ is the null space of $A$. Finding the null space of $A$ yields the basis vectors $v_1 = (-3, 1, 0, 0, 0, 0)$, $v_2 = (-4, 0, -2, 1, 0, 0)$, and $v_3 = (-2, 0, 0, 0, 1, 0)$ for $W^\perp$. [379](#page=379) [380](#page=380). ## 31.29 Orthogonal and Orthonormal Sets A set of two or more vectors in an inner product space is **orthogonal** if all pairs of distinct vectors in the set are orthogonal (their inner product is zero). An orthogonal set where each vector has a norm of 1 is called **orthonormal**. * Orthogonal sets of nonzero vectors are linearly independent. * Orthonormal sets are also linearly independent. * A basis consisting of orthonormal vectors is an **orthonormal basis**. ## 31.30 EXAMPLE 1: An Orthogonal Set in $\mathbb{R}^3$ The set $S = \{v_1, v_2, v_3\}$ with $v_1 = (0, 1, 0)$, $v_2 = (1, 0, 1)$, and $v_3 = (1, 0, -1)$ is an orthogonal set in $\mathbb{R}^3$ with the Euclidean inner product because $\langle v_1, v_2 \rangle = \langle v_1, v_3 \rangle = \langle v_2, v_3 \rangle = 0$ [383](#page=383). ## 31.31 EXAMPLE 2: Constructing an Orthonormal Set Normalizing the vectors in an orthogonal set of nonzero vectors converts it into an orthonormal set. For the orthogonal set $S = \{v_1, v_2, v_3\}$ from Example 1, the norms are $ - v_1 - = 1$, $ - v_2 - = \sqrt{2}$, and $ - v_3 = \sqrt{2}$. Normalizing these vectors yields the orthonormal set $\{ (0, 1, 0), (\frac{1}{\sqrt{2}}, 0, \frac{1}{\sqrt{2}}), (\frac{1}{\sqrt{2}}, 0, -\frac{1}{\sqrt{2}}) \}$. [383](#page=383) [384](#page=384). ## 31.32 EXAMPLE 3: An Orthonormal Basis for $P_n$ The standard basis for $P_n$, $S = \{1, x, x^2, \dots, x^n\}$, is orthonormal with respect to the standard inner product $\langle p, q \rangle = a_0b_0 + a_1b_1 + \dots + a_nb_n$, where $p = a_0 + a_1x + \dots + a_nx^n$ and $q = b_0 + b_1x + \dots + b_nx^n$ [385](#page=385). ## 31.33 EXAMPLE 4: An Orthonormal Basis The set of vectors $\{ (0, 1, 0), (\frac{1}{\sqrt{2}}, 0, \frac{1}{\sqrt{2}}), (\frac{1}{\sqrt{2}}, 0, -\frac{1}{\sqrt{2}}) \}$ from Example 2 forms an orthonormal basis for $\mathbb{R}^3$ because it is an orthonormal set and spans $\mathbb{R}^3$. [384](#page=384) [385](#page=385). ## 31.34 Coordinates Relative to Orthonormal Bases If $S = \{v_1, v_2, \dots, v_n\}$ is an orthogonal basis for an inner product space $V$, any vector $u \in V$ can be expressed as a linear combination $u = c_1v_1 + c_2v_2 + \dots + c_nv_n$, where the coefficients are given by $c_i = \frac{\langle u, v_i \rangle}{||v_i||^2}$. If $S$ is an orthonormal basis, the coefficients simplify to $c_i = \langle u, v_i \rangle$. ## 31.35 EXAMPLE 5: A Coordinate Vector Relative to an Orthonormal Basis Given the orthonormal basis $S = \{v_1, v_2, v_3\}$ for $\mathbb{R}^3$ where $v_1 = (0, 1, 0)$, $v_2 = (\frac{1}{\sqrt{2}}, 0, \frac{1}{\sqrt{2}})$, and $v_3 = (\frac{1}{\sqrt{2}}, 0, -\frac{1}{\sqrt{2}})$, we can express the vector $u = (1, 1, 1)$ as a linear combination of these basis vectors. The coefficients are $\langle u, v_1 \rangle = 1$, $\langle u, v_2 \rangle = \frac{2}{\sqrt{2}} = \sqrt{2}$, and $\langle u, v_3 \rangle = 0$. Thus, $u = 1v_1 + \sqrt{2}v_2 + 0v_3$, and the coordinate vector of $u$ relative to $S$ is $(u)_S = (1, \sqrt{2}, 0)$. [386](#page=386) [387](#page=387). ## 31.36 Orthogonal Projections The **Projection Theorem** states that any vector $u$ in a finite-dimensional subspace $W$ of an inner product space $V$ can be uniquely expressed as $u = w_1 + w_2$, where $w_1 \in W$ and $w_2 \in W^\perp$. $w_1$ is the **orthogonal projection of $u$ on $W$** (denoted $\text{proj}_W u$), and $w_2$ is the **orthogonal projection of $u$ on $W^\perp$** (denoted $\text{proj}_{W^\perp} u$). The vector $w_2$ is also called the component of $u$ orthogonal to $W$. * $\text{proj}_W u = u - \text{proj}_{W^\perp} u$ * $\text{proj}_{W^\perp} u = u - \text{proj}_W u$ ## 31.37 Theorem 6.3.4: Formulas for Orthogonal Projections If $\{v_1, v_2, \dots, v_r\}$ is an orthogonal basis for a subspace $W$ of an inner product space $V$, and $u$ is any vector in $V$, then: * $\text{proj}_W u = \frac{\langle u, v_1 \rangle}{ - v_1 - ^2}v_1 + \frac{\langle u, v_2 \rangle}{ - v_2 - ^2}v_2 + \dots + \frac{\langle u, v_r \rangle}{ - v_r ^2}v_r$ * If $\{v_1, v_2, \dots, v_r\}$ is an orthonormal basis for $W$, then $\text{proj}_W u = \langle u, v_1 \rangle v_1 + \langle u, v_2 \rangle v_2 + \dots + \langle u, v_r \rangle v_r$ [388](#page=388). ## 31.38 EXAMPLE 7: Calculating Projections Let $\mathbb{R}^3$ have the Euclidean inner product, and let $W$ be the subspace spanned by the orthonormal vectors $v_1 = (0, 1, 0)$ and $v_2 = (\frac{1}{\sqrt{2}}, 0, -\frac{1}{\sqrt{2}})$. For the vector $u = (1, 1, 1)$, the orthogonal projection of $u$ on $W$ is $\text{proj}_W u = \langle u, v_1 \rangle v_1 + \langle u, v_2 \rangle v_2 = (1)(0, 1, 0) + (-\frac{1}{\sqrt{2}})(\frac{1}{\sqrt{2}}, 0, -\frac{1}{\sqrt{2}}) = (0, 1, 0) + (-\frac{1}{2}, 0, \frac{1}{2}) = (-\frac{1}{2}, 1, \frac{1}{2})$. The component of $u$ orthogonal to $W$ is $\text{proj}_{W^\perp} u = u - \text{proj}_W u = (1, 1, 1) - (-\frac{1}{2}, 1, \frac{1}{2}) = (\frac{3}{2}, 0, \frac{1}{2})$ [389](#page=389). > 📝 For the orthonormal vectors $v_1 = (0, 1, 0)$ and $v_2 = (\frac{1}{\sqrt{2}}, 0, -\frac{1}{\sqrt{2}})$ spanning subspace $W$ in $\mathbb{R}^3$, the orthogonal projection of $u = (1, 1, 1)$ on $W$ is $\text{proj}_W u = \langle u, v_1 \rangle v_1 + \langle u, v_2 \rangle v_2 = (-\frac{1}{2}, 1, \frac{1}{2})$ [389](#page=389). ## 31.39 The Gram–Schmidt Process The Gram–Schmidt process is an algorithm for converting an arbitrary basis into an orthogonal or orthonormal basis for a finite-dimensional inner product space. ## 31.40 Theorem 6.3.5: Existence of Orthonormal Bases Every nonzero finite-dimensional inner product space has an orthonormal basis [390](#page=390). ## 31.41 The Gram–Schmidt Process Steps To convert a basis $\{u_1, u_2, \dots, u_r\}$ into an orthogonal basis $\{v_1, v_2, \dots, v_r\}$: 1. $v_1 = u_1$ 2. $v_2 = u_2 - \text{proj}_{W_1} u_2$, where $W_1 = \text{span}\{v_1\}$ 3. $v_3 = u_3 - \text{proj}_{W_2} u_3$, where $W_2 = \text{span}\{v_1, v_2\}$ 4. Continue this process for $r$ steps. To obtain an orthonormal basis $\{q_1, q_2, \dots, q_r\}$, normalize each vector $v_i$ in the orthogonal basis: $q_i = \frac{v_i}{||v_i||}$ [391](#page=391). ## 31.42 EXAMPLE 8: Using the Gram–Schmidt Process Apply the Gram–Schmidt process to the basis $\{u_1, u_2, u_3\} = \{(1, 1, 1), (0, 1, 1), (0, 0, 1)\}$ for $\mathbb{R}^3$ with the Euclidean inner product. 1. $v_1 = (1, 1, 1)$ 2. $v_2 = (0, 1, 1) - \frac{\langle (0, 1, 1), (1, 1, 1) \rangle}{||(1, 1, 1)||^2}(1, 1, 1) = (0, 1, 1) - \frac{2}{3}(1, 1, 1) = (-\frac{2}{3}, \frac{1}{3}, \frac{1}{3})$ 3. $v_3 = (0, 0, 1) - \frac{\langle (0, 0, 1), (1, 1, 1) \rangle}{ - (1, 1, 1) - ^2}(1, 1, 1) - \frac{\langle (0, 0, 1), (-\frac{2}{3}, \frac{1}{3}, \frac{1}{3}) \rangle}{ - \,(-\frac{2}{3}, \frac{1}{3}, \frac{1}{3})\, ^2}(-\frac{2}{3}, \frac{1}{3}, \frac{1}{3}) = (0, 0, 1) - \frac{1}{3}(1, 1, 1) - \frac{1/3}{2/9}(-\frac{2}{3}, \frac{1}{3}, \frac{1}{3}) = (0, 0, 1) - (\frac{1}{3}, \frac{1}{3}, \frac{1}{3}) - \frac{3}{2}(-\frac{2}{3}, \frac{1}{3}, \frac{1}{3}) = (-\frac{1}{3}, -\frac{1}{3}, \frac{2}{3}) + (1, \frac{1}{2}, \frac{1}{2}) = (\frac{2}{3}, -\frac{1}{6}, \frac{1}{6})$ The orthogonal basis is $\{(1, 1, 1), (-\frac{2}{3}, \frac{1}{3}, \frac{1}{3}), (\frac{2}{3}, -\frac{1}{6}, \frac{1}{6})\}$. Normalizing these vectors yields the orthonormal basis $\{(\frac{1}{\sqrt{3}}, \frac{1}{\sqrt{3}}, \frac{1}{\sqrt{3}}), (-\frac{2}{\sqrt{6}}, \frac{1}{\sqrt{6}}, \frac{1}{\sqrt{6}}), (\frac{4}{\sqrt{21}}, -\frac{1}{\sqrt{21}}, \frac{1}{\sqrt{21}})\}$ [392](#page=392). ## 31.43 EXAMPLE 9: Legendre Polynomials Applying the Gram–Schmidt process to the standard basis $\{1, x, x^2\}$ for $P_2$ with the integral inner product $\langle p, q \rangle = \int_0^1 p(x)q(x) dx$ yields the orthogonal basis $\{1, 2x-1, 6x^2-6x+1\}$. These are related to the Legendre polynomials, which are often scaled to have a value of 1 at $x=1$ [393](#page=393). ## 31.44 Extending Orthonormal Sets to Orthonormal Bases An orthogonal or orthonormal set of nonzero vectors in a finite-dimensional inner product space can always be enlarged to form an orthogonal or orthonormal basis, respectively [393](#page=393). ## 31.45 Optional: QR-Decomposition QR-decomposition is a numerical algorithm based on the Gram-Schmidt process, crucial for various numerical algorithms, including eigenvalue computation. It decomposes a matrix $A$ into the product of a matrix $Q$ with orthonormal column vectors and an invertible upper triangular matrix $R$. If $A$ is an $m \times n$ matrix with linearly independent column vectors, it can be factored as $A = QR$, where $Q$ is an $m \times n$ matrix with orthonormal column vectors, and $R$ is an $n \times n$ invertible upper triangular matrix [395](#page=395). The matrix $R$ in the QR-decomposition $A = QR$ is upper triangular [394](#page=394). | Matrix A | Matrix Q | Matrix R | | --- | --- | --- | | m x n with linearly independent column vectors | m x n with orthonormal column vectors | n x n invertible upper triangular matrix | ## 31.46 Least Squares Solutions of Linear Systems When a linear system $Ax = b$ is inconsistent, often due to measurement errors, we seek a vector $x$ that minimizes the error $ - b - Ax - $. This vector $x$ is called a \ast\ast least squares solution\ast\ast. The term "least squares" arises because minimizing $ [398](#page=398). - b - Ax $ is equivalent to minimizing the sum of the squares of the components of the error vector $b - Ax$ [399](#page=399). The product $Ax$ for any vector $x$ lies in the column space of $A$. Therefore, finding a least squares solution is equivalent to finding a vector $\hat{Ax}$ in the column space of $A$ that is closest to $b$. This closest vector is the **orthogonal projection** of $b$ onto the column space of $A$ [399](#page=399). The **Best Approximation Theorem** states that for a finite-dimensional subspace $W$ of an inner product space $V$, the vector $proj_W b$ is the best approximation to $b$ from $W$, meaning $ - b - proj_W b - < - b - w $ for any $w \in W$ where $w \neq proj_W b$ [399](#page=399). > 📝 For the system $x_1 - x_2 = 4$, $3x_1 + 2x_2 = 1$, $-2x_1 + 4x_2 = 3$, the normal system is $\begin{bmatrix} 14 & -10 \\ -10 & 21 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 14 \\ 21 \end{bmatrix}$, yielding the least squares solution $x = \begin{bmatrix} 17/143 \\ 95/286 \end{bmatrix}$ [401](#page=401). ## 31.47 Finding Least Squares Solutions A least squares solution $x$ can be found by calculating the orthogonal projection of $b$ onto the column space of $A$ and solving $Ax = proj_W b$. Alternatively, this can be achieved by solving the **normal equations**: $$A^TAx = A^Tb$$ [400](#page=400). The normal equations are always consistent, and their solutions are the least squares solutions of $Ax = b$. If $x$ is a least squares solution, then $Ax = proj_{col(A)} b$ [400](#page=400). ## 31.48 Example 1: Unique Least Squares Solution For the system: $x_1 - x_2 = 4$ $3x_1 + 2x_2 = 1$ $-2x_1 + 4x_2 = 3$ The matrix form is $Ax = b$, where: $$A = \begin{bmatrix} 1 & -1 \\ 3 & 2 \\ -2 & 4 \end{bmatrix}, \quad b = \begin{bmatrix} 4 \\ 1 \\ 3 \end{bmatrix}$$ [401](#page=401). The normal system $A^TAx = A^Tb$ is: $$\begin{bmatrix} 14 & -10 \\ -10 & 21 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 14 \\ 21 \end{bmatrix}$$ [401](#page=401). Solving this system yields the unique least squares solution: $$x = \begin{bmatrix} 17/143 \\ 95/286 \end{bmatrix}$$ [401](#page=401). The least squares error vector is: $$b - Ax = \begin{bmatrix} 4 \\ 1 \\ 3 \end{bmatrix} - \begin{bmatrix} 1 & -1 \\ 3 & 2 \\ -2 & 4 \end{bmatrix} \begin{bmatrix} 17/143 \\ 95/286 \end{bmatrix} = \begin{bmatrix} 92/286 \\ -154/286 \\ 57/286 \end{bmatrix}$$ [401](#page=401). The least squares error is $||b - Ax|| \approx 4.556$ [401](#page=401). > 📝 For the system $x_1 - x_2 = 4$, $3x_1 + 2x_2 = 1$, $-2x_1 + 4x_2 = 3$, the matrix form is $Ax = b$, where $A = \begin{bmatrix} 1 & -1 \\ 3 & 2 \\ -2 & 4 \end{bmatrix}$ and $b = \begin{bmatrix} 4 \\ 1 \\ 3 \end{bmatrix}$ [401](#page=401). ## 31.49 Example 2: Infinitely Many Least Squares Solutions For the system: $3x_1 + 2x_2 - x_3 = 2$ $x_1 - 4x_2 + 3x_3 = -2$ $x_1 + 10x_2 - 7x_3 = 1$ The matrix form is $Ax = b$, where: $$A = \begin{bmatrix} 3 & 2 & -1 \\ 1 & -4 & 3 \\ 1 & 10 & -7 \end{bmatrix}, \quad b = \begin{bmatrix} 2 \\ -2 \\ 1 \end{bmatrix}$$ [401](#page=401). The augmented matrix for the normal system $A^TAx = A^Tb$ is: $$\begin{bmatrix} 11 & 12 & 7 & | & 12 \\ 12 & 120 & -84 & | & 15 \\ 7 & -84 & 59 & | & 7 \end{bmatrix}$$ [402](#page=402). The reduced row echelon form indicates infinitely many solutions given by parametric equations: $x_1 = 7/84 - 7/84 t$ $x_2 = 13/84 + 7/84 t$ $x_3 = t$ [402](#page=402). All least squares solutions produce the same error vector: $$b - Ax = \begin{bmatrix} -11/84 \\ -10/84 \\ -7/84 \end{bmatrix}$$ [402](#page=402). ## 31.50 Conditions for Uniqueness of Least Squares Solutions A linear system $Ax = b$ has a unique least squares solution if and only if the matrix $A^TA$ is invertible [402](#page=402). The following are equivalent for an $m \times n$ matrix $A$: * The column vectors of $A$ are linearly independent. * $A^TA$ is invertible [402](#page=402). If $A$ is an $m \times n$ matrix with linearly independent column vectors, the unique least squares solution of $Ax = b$ is given by: $$x = (A^TA)^{-1}A^Tb$$ [403](#page=403). The matrix for the orthogonal projection onto the column space of $A$ is: $$P = A(A^TA)^{-1}A^T$$ [403](#page=403). ## 31.51 Example 3: A Formula Solution to Example 1 Using the matrices from Example 1, the least squares solution is found by computing $(A^TA)^{-1}A^Tb$ [403](#page=403). ## 31.52 Example 4: Orthogonal Projection on a Column Space To derive the projection matrix onto a line $W$ making an angle $\theta$ with the positive x-axis, we can use the formula $P = A(A^TA)^{-1}A^T$. The matrix $A$ is formed by the direction vector of the line, $w = (\cos \theta, \sin \theta)$ [403](#page=403). $$A = \begin{bmatrix} \cos \theta \\ \sin \theta \end{bmatrix}$$ [404](#page=404). The projection matrix is: $$P = \begin{bmatrix} \cos^2 \theta & \cos \theta \sin \theta \\ \cos \theta \sin \theta & \sin^2 \theta \end{bmatrix}$$ [404](#page=404). > 📝 To derive the projection matrix onto a line $W$ making an angle $\theta$ with the x-axis, use $P = A(A^TA)^{-1}A^T$ with $A = \begin{bmatrix} \cos \theta \\ \sin \theta \end{bmatrix}$, resulting in $P = \begin{bmatrix} \cos^2 \theta & \cos \theta \sin \theta \\ \cos \theta \sin \theta & \sin^2 \theta \end{bmatrix}$ [403](#page=403). ## 31.53 Equivalent Statements For an $n \times n$ matrix $A$ with no duplicate rows or columns, the following statements are equivalent: * $A$ is invertible. * $Ax = 0$ has only the trivial solution. * The reduced row echelon form of $A$ is $I_n$. * $Ax = b$ is consistent for every $n \times 1$ matrix $b$. * $Ax = b$ has exactly one solution for every $n \times 1$ matrix $b$. * The row vectors of $A$ are linearly independent. * The column vectors of $A$ span $R^n$. * The row vectors of $A$ span $R^n$. * The column vectors of $A$ form a basis for $R^n$. * The row vectors of $A$ form a basis for $R^n$. * $A$ has rank $n$. * $A$ has nullity $0$. * $A^TA$ is invertible [404](#page=404). | Property | Equivalent Statements | | --- | --- | | Invertibility | A is invertible; det(A) ≠ 0; A^TA is invertible | | Solutions to Ax=0 | Ax=0 has only the trivial solution; nullity of A is 0 | | Solutions to Ax=b | Ax=b is consistent for every b; Ax=b has exactly one solution for every b | | Column Vectors | Linearly independent; span R^n; form a basis for R^n | | Row Vectors | Linearly independent; span R^n; form a basis for R^n | | Rank | Rank of A is n | ## 31.54 Optional: Another View of Least Squares Vectors $x$ and $b$ can be decomposed into orthogonal projections onto fundamental subspaces: * $x = x_{row(A)} + x_{null(A)}$ * $b = b_{col(A)} + b_{null(A^T)}$ Here, $x_{row(A)}$ is the projection of $x$ onto the row space of $A$, and $x_{null(A)}$ is the projection onto the null space of $A$. Similarly, $b_{col(A)}$ is the projection of $b$ onto the column space of $A$, and $b_{null(A^T)}$ is the projection onto the null space of $A^T$ [405](#page=405). The product $Ax$ maps $x_{row(A)}$ into the column space of $A$ [405](#page=405). ## 31.55 Optional: The Role of QR-Decomposition in Least Squares Problems QR-decomposition provides a numerically stable method for finding least squares solutions. If $A$ is an $m \times n$ matrix with linearly independent column vectors and $A = QR$ is its QR-decomposition, then the unique least squares solution of $Ax = b$ is given by: $$x = R^{-1}Q^Tb$$ [405](#page=405). This formula can be derived by substituting $A = QR$ into the normal equation formula $x = (A^TA)^{-1}A^Tb$ and using the property $Q^TQ = I$ [405](#page=405). # 32. Chapter 7: Diagonalization and Quadratic Forms ## 32.1 Mathematical modeling using least squares This section introduces the concept of fitting curves to data points using the method of least squares. This technique is particularly useful when experimental data contains measurement errors, making it impossible for a single curve to pass through all points. The goal is to find the curve that best approximates the data by minimizing the sum of the squares of the errors (residuals) [407](#page=407). * **Mathematical models** are relationships of the form $y = f(x)$ used to describe experimental data. Common models include straight lines ($y = a + bx$), quadratic polynomials ($y = a + bx + cx^2$), and cubic polynomials ($y = a + bx + cx^2 + dx^3$) [407](#page=407). * When fitting a model to data points $(x_1, y_1), (x_2, y_2), \dots, (x_n, y_n)$, the system of equations is often represented as $Mv = y$. * If the system $Mv = y$ is inconsistent due to measurement errors, the **least squares approximation** is found by solving the normal system $M^T M v = M^T y$ [408](#page=408). * The solution $v^\ast$ minimizes the norm $||y - Mv||$, which corresponds to minimizing the sum of the squares of the residuals $d_i = |y_i - (a + bx_i)|$. * The line $y = a^\ast + b^\ast x$ obtained from the least squares solution is called the **regression line** or the least squares line of best fit [409](#page=409). ## 32.2 Least squares fit of a straight line The process of fitting a straight line $y = a + bx$ to a set of data points $(x_1, y_1), \dots, (x_n, y_n)$ involves setting up a matrix equation and solving the corresponding normal system [408](#page=408). * The system of equations for a line passing through all points is: $y_1 = a + bx_1$ $y_2 = a + bx_2$ $\vdots$ $y_n = a + bx_n$ This can be written in matrix form as $Mv = y$, where $v = \begin{bmatrix} a \\ b \end{bmatrix}$. * The matrix $M$ is given by: $M = \begin{bmatrix} 1 & x_1 \\ 1 & x_2 \\ \vdots & \vdots \\ 1 & x_n \end{bmatrix}$ and $y = \begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{bmatrix}$ [408](#page=408). * The normal system $M^T M v = M^T y$ yields the unique least squares solution $v^\ast = (M^T M)^{-1} M^T y$, provided $M$ has linearly independent columns [409](#page=409). | Concept | Description | | --- | --- | | Regression line | The least squares straight line fit to data points, minimizing the sum of squared residuals. | | Residuals | The vertical distances between the data points and the regression line, representing measurement errors. | > 📝 For the points (0, 1), (1, 3), (2, 4), and (3, 4), the least squares straight line fit is $y = 1.5 + x$ [410](#page=410). > 📝 For a spring experiment, fitting a line $y = a + bx$ to data points (length, weight) yields an estimated spring constant $b^\ast \approx 1.4$ pounds/inch [410](#page=410). ## 32.3 Least squares fit of a polynomial The least squares method can be generalized to fit polynomials of any specified degree to data points. For a polynomial of degree $m$, $y = a_0 + a_1x + \dots + a_mx^m$, a system of $n$ equations is formed, which is then solved using the normal equations [411](#page=411). * To fit a polynomial $y = a_0 + a_1x + \dots + a_mx^m$ to $n$ data points $(x_1, y_1), \dots, (x_n, y_n)$, we set up the system $Mv = y$. * The matrix $M$ has columns formed by powers of $x_i$: $M = \begin{bmatrix} 1 & x_1 & x_1^2 & \dots & x_1^m \\ 1 & x_2 & x_2^2 & \dots & x_2^m \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & x_n & x_n^2 & \dots & x_n^m \end{bmatrix}$ and $v = \begin{bmatrix} a_0 \\ a_1 \\ \vdots \\ a_m \end{bmatrix}$, $y = \begin{bmatrix} y_1 \\ y_2 \\ \vdots \\ y_n \end{bmatrix}$. * The coefficients of the polynomial are found by solving the normal equations $M^T M v = M^T y$. If $M^T M$ is invertible, the unique solution is $v^\ast = (M^T M)^{-1} M^T y$ [411](#page=411). > 📝 For a falling weight experiment, fitting a quadratic curve $s = a_0 + a_1t + a_2t^2$ to displacement data over time yields $s = -0.40 + 0.35t + 16.1t^2$, estimating the acceleration due to gravity as $g = 32.2$ ft/sec² [412](#page=412). ## 32.4 Function approximation; Fourier series This section extends the concept of least squares approximation from data points to functions. It introduces the idea of finding the "best possible approximation" of a function within a specified subspace, using the mean square error as the measure of approximation quality. This leads to the concept of Fourier series for approximating functions over an interval [414](#page=414). * The **Approximation Problem** involves finding the best approximation to a function $f$ on an interval $[a, b]$ using functions from a subspace $W$ of $C[a, b]$ [414](#page=414). * The **error** in approximating $f(x)$ by $g(x)$ can be measured by the integral of the deviation: $\int_a^b |f(x) - g(x)| dx$. * The **mean square error** is a preferred measure: $\int_a^b [f(x) - g(x)]^2 dx$. This error is minimized when $g$ is the orthogonal projection of $f$ onto the subspace $W$, relative to the inner product $\langle f, g \rangle = \int_a^b f(x)g(x) dx$. * The **Least Squares Approximation Problem** seeks a function $g \in W$ that minimizes $||f - g||^2$. This function is $g = \text{proj}_W f$ [415](#page=415). ## 32.5 Fourier series A **trigonometric polynomial** is a function of the form $T(x) = c_0 + c_1 \cos x + \dots + c_n \cos nx + d_1 \sin x + \dots + d_n \sin nx$. These polynomials form a subspace $W$ of $C[0, 2\pi]$. The least squares approximation of a function $f(x)$ on $[0, 2\pi]$ by a trigonometric polynomial is given by its Fourier series [416](#page=416). * The subspace $W$ of trigonometric polynomials of order $n$ or less is spanned by the linearly independent functions $\{1, \cos x, \dots, \cos nx, \sin x, \dots, \sin nx\}$. * The inner product used is $\langle f, g \rangle = \int_0^{2\pi} f(x)g(x) dx$ [416](#page=416). * The least squares approximation of $f$ by a trigonometric polynomial of order $n$ is the orthogonal projection of $f$ onto $W$: $\text{proj}_W f = a_0 + \sum_{k=1}^n (a_k \cos kx + b_k \sin kx)$. * The **Fourier coefficients** are calculated as: $a_0 = \frac{1}{2\pi} \int_0^{2\pi} f(x) dx$ $a_k = \frac{1}{\pi} \int_0^{2\pi} f(x) \cos kx dx$ for $k \ge 1$ $b_k = \frac{1}{\pi} \int_0^{2\pi} f(x) \sin kx dx$ for $k \ge 1$ [417](#page=417). | Function | Integral for Fourier Coefficient | | --- | --- | | $f(x)$ | $a_0 = \frac{1}{2\pi} \int_0^{2\pi} f(x) dx$ | | $f(x) \cos(kx)$ | $a_k = \frac{1}{\pi} \int_0^{2\pi} f(x) \cos(kx) dx$ | | $f(x) \sin(kx)$ | $b_k = \frac{1}{\pi} \int_0^{2\pi} f(x) \sin(kx) dx$ | > 📝 The least squares approximation of $f(x) = x$ on $[0, 2\pi]$ by a trigonometric polynomial of order 2 or less is $x \approx \pi - 2 \sin x - \sin 2x$ [417](#page=417). * As the order $n$ of the trigonometric polynomial increases, the mean square error approaches zero. The infinite series representation of $f(x)$ is called its **Fourier series** [418](#page=418). ## 32.6 Orthogonal Matrices A square matrix $A$ is **orthogonal** if its transpose is equal to its inverse, meaning $A^{-1} = A^T$. This is equivalent to the condition $A^T A = AA^T = I$. An orthogonal matrix represents an **orthogonal transformation** or **orthogonal operator** [423](#page=423). The following are equivalent for an $n \times n$ matrix $A$: * $A$ is orthogonal. * The row vectors of $A$ form an orthonormal set in $R^n$ with the Euclidean inner product. * The column vectors of $A$ form an orthonormal set in $R^n$ with the Euclidean inner product [424](#page=424). | Property | Description | | --- | --- | | Orthonormal set | A set of vectors where each vector has a norm of 1 and is orthogonal to every other vector in the set. | **Rotation and reflection matrices** are examples of orthogonal matrices. For instance, the standard matrix for a counterclockwise rotation in $R^2$ by an angle $\theta$ is: $$ \begin{bmatrix} \cos \theta & -\sin \theta \\ \sin \theta & \cos \theta \end{bmatrix} $$ This matrix is orthogonal for all values of $\theta$ [424](#page=424). Additional properties of orthogonal matrices include: * The transpose of an orthogonal matrix is orthogonal. * The inverse of an orthogonal matrix is orthogonal. * A product of orthogonal matrices is orthogonal. * If $A$ is orthogonal, then $\det(A) = 1$ or $\det(A) = -1$ [425](#page=425). Orthogonal operators preserve norms, dot products, angles, and distances. For any vector $x$ in $R^n$, if $A$ is orthogonal, then $ - Ax - = - x $. Also, for any vectors $x$ and $y$ in $R^n$, $Ax \cdot Ay = x \cdot y$ [426](#page=426). When working with an **orthonormal basis** $S = \{u_1, u_2, \dots, u_n\}$ for an inner product space $V$, the following hold for vectors $u$ and $v$ with coordinate vectors $(u)_S = (u_1, \dots, u_n)$ and $(v)_S = (v_1, \dots, v_n)$: * $ - u - = - (u)_S $ * $d(u, v) = d((u)_S, (v)_S)$ * $\langle u, v \rangle = \langle (u)_S, (v)_S \rangle = u_1v_1 + u_2v_2 + \dots + u_nv_n$ [427](#page=427). The transition matrix between two orthonormal bases for an inner product space is always an orthogonal matrix [427](#page=427). **Rotation of axes** in 2-space involves transforming coordinates $(x, y)$ to $(x', y')$ when the coordinate system is rotated by an angle $\theta$. The relationship is given by: $$ \begin{bmatrix} x' \\ y' \end{bmatrix} = \begin{bmatrix} \cos \theta & \sin \theta \\ -\sin \theta & \cos \theta \end{bmatrix} \begin{bmatrix} x \\ y \end{bmatrix} $$ This is equivalent to rotating the vectors in $R^2$ by an angle $-\theta$. [427-428] ## 32.7 Orthogonal Diagonalization A square matrix $A$ is **orthogonally diagonalizable** if there exists an orthogonal matrix $P$ such that $P^{-1}AP = D$, where $D$ is a diagonal matrix. This is equivalent to $A = PDP^T$ [432](#page=432). The following are equivalent for an $n \times n$ matrix $A$ with real entries: * $A$ is orthogonally diagonalizable. * $A$ has an orthonormal set of $n$ eigenvectors. * $A$ is symmetric [433](#page=433). **Symmetric matrices** with real entries have important properties regarding their eigenvalues and eigenvectors: * All eigenvalues of a symmetric matrix are real numbers. * Eigenvectors from different eigenspaces are orthogonal [433](#page=433). The process for orthogonally diagonalizing an $n \times n$ symmetric matrix $A$ involves these steps: 1. Find a basis for each eigenspace of $A$. 2. Apply the Gram-Schmidt process to each basis to obtain an orthonormal basis for each eigenspace. 3. Form the matrix $P$ using these orthonormal eigenvectors as columns. $P$ will orthogonally diagonalize $A$, and the diagonal entries of $D = P^T AP$ will be the eigenvalues in the order corresponding to their eigenvectors in $P$ [434](#page=434). **Spectral decomposition** expresses a symmetric matrix $A$ as a sum of matrices, each associated with an eigenvalue and its corresponding unit eigenvector $u$: $$ A = \lambda_1 u_1 u_1^T + \lambda_2 u_2 u_2^T + \dots + \lambda_n u_n u_n^T $$ Each term $\lambda_i u_i u_i^T$ represents the standard matrix for the orthogonal projection onto the subspace spanned by $u_i$. The spectral decomposition shows that the image of a vector $x$ under multiplication by $A$ is obtained by projecting $x$ onto the lines defined by the eigenvectors, scaling these projections by the eigenvalues, and summing the results [436](#page=436). | Matrix Type | Properties | | --- | --- | | Orthogonal Matrix | Inverse equals transpose ($A^{-1} = A^T$), preserves norms and dot products, columns/rows form orthonormal sets. | | Symmetric Matrix | Equal to its transpose ($A = A^T$), all eigenvalues are real, eigenvectors from distinct eigenvalues are orthogonal. | ## 32.8 Schur's and Hessenberg's Theorems Schur's Theorem states that any square matrix with real entries and real eigenvalues is orthogonally similar to an upper triangular matrix. This upper triangular matrix, often denoted as S, has the eigenvalues of the original matrix on its main diagonal. This relationship is expressed as $A = PSP^T$, where P is an orthogonal matrix [437](#page=437) [438](#page=438). Hessenberg's Theorem states that any square matrix with real entries is orthogonally similar to an upper Hessenberg matrix. An upper Hessenberg matrix has zeros below the first subdiagonal. This decomposition is expressed as $A = PH P^T$, where H is the upper Hessenberg matrix and P is an orthogonal matrix [438](#page=438). ## 32.9 Quadratic Forms Definition [441](#page=441) A quadratic form on $R^n$ is a function of the form $\sum_{i=1}^n a_i x_i^2 + \sum_{i \neq j} a_{ij} x_i x_j$. Terms where $i \neq j$ are called cross product terms. A general quadratic form can be expressed in matrix notation as $Q(x) = x^T A x$, where A is a symmetric matrix. The diagonal entries of A are the coefficients of the squared terms, and the off-diagonal entries are half the coefficients of the cross product terms [440](#page=440) [441](#page=441). | Form | Matrix Notation | | --- | --- | | Quadratic form on R2: $a_{11}x_1^2 + 2a_{12}x_1x_2 + a_{22}x_2^2$ | $[x_1 \ x_2] \begin{bmatrix} a_{11} & a_{12} \ a_{12} & a_{22} \end{bmatrix} \begin{bmatrix} x_1 \ x_2 \end{bmatrix}$ | | Quadratic form on R3: $a_{11}x_1^2 + a_{22}x_2^2 + a_{33}x_3^2 + 2a_{12}x_1x_2 + 2a_{13}x_1x_3 + 2a_{23}x_2x_3$ | $[x_1 \ x_2 \ x_3] \begin{bmatrix} a_{11} & a_{12} & a_{13} \ a_{12} & a_{22} & a_{23} \ a_{13} & a_{23} & a_{33} \end{bmatrix} \begin{bmatrix} x_1 \ x_2 \ x_3 \end{bmatrix}$ | > 📝 For the quadratic form $Q = 2x_1^2 + 2x_1x_2 + 2x_2^2$, the matrix is $A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}$. The eigenvalues are $\lambda = 1, 3$. The new quadratic form after the principal axes transformation is $Q = y_1^2 + 3y_2^2$ [443](#page=443). ## 32.10 Problems Involving Quadratic Forms Three important problems related to quadratic forms are: * Identifying the curve or surface represented by $x^T A x = k$. * Determining conditions for $x^T A x > 0$ for all $x \neq 0$. * Finding the maximum and minimum values of $x^T A x$ subject to $||x|| = 1$ [441](#page=441). ## 32.11 Principal Axes Theorem The Principal Axes Theorem states that for any symmetric $n \times n$ matrix A, there exists an orthogonal change of variable $x = Py$ that transforms the quadratic form $x^T A x$ into a quadratic form $y^T D y$ with no cross product terms. Here, D is a diagonal matrix whose entries are the eigenvalues of A, and P is an orthogonal matrix whose columns are the corresponding eigenvectors [442](#page=442). The transformation $x = Py$ eliminates cross product terms, simplifying the quadratic form. The new quadratic form is $y^T D y = \sum_{i=1}^n \lambda_i y_i^2$, where $\lambda_i$ are the eigenvalues of A [442](#page=442). - **An illustration of the Principal Axes Theorem**: For the quadratic form $Q = 2x_1^2 + 2x_1x_2 + 2x_2^2$, the matrix is $A = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix}$. The eigenvalues are $\lambda = 1, 3$. Orthonormal eigenvectors for $\lambda=1$ and $\lambda=3$ are $\frac{1}{\sqrt{2}}\begin{bmatrix} -1 \\ 1 \end{bmatrix}$ and $\frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ 1 \end{bmatrix}$, respectively. The orthogonal matrix is $P = \frac{1}{\sqrt{2}}\begin{bmatrix} -1 & 1 \\ 1 & 1 \end{bmatrix}$. The new quadratic form is $Q = y_1^2 + 3y_2^2$ [443](#page=443). ## 32.12 Quadratic Forms in Geometry [444](#page=444) Quadratic forms in $R^2$ are used to study conic sections. An equation of the form $ax^2 + 2bxy + cy^2 + dx + ey + f = 0$ represents a conic section. If $d=e=0$, it's a central conic. If $b=0$, it's a central conic in standard position [444](#page=444). | Equation | Conic Type | | --- | --- | | $\frac{x^2}{\alpha^2} + \frac{y^2}{\beta^2} = 1$ ($\alpha \ge \beta > 0$) | Ellipse | | $\frac{x^2}{\alpha^2} + \frac{y^2}{\beta^2} = 1$ ($\beta \ge \alpha > 0$) | Ellipse | | $\frac{x^2}{\alpha^2} - \frac{y^2}{\beta^2} = 1$ ($\alpha > 0, \beta > 0$) | Hyperbola | | $\frac{y^2}{\beta^2} - \frac{x^2}{\alpha^2} = 1$ ($\alpha > 0, \beta > 0$) | Hyperbola | Equations with a cross product term ($b \neq 0$) represent conics rotated out of standard position. These can be identified by rotating the coordinate axes using an orthogonal change of variable $x = Px'$, where P is chosen to diagonalize the associated symmetric matrix. The rotated equation will be of the form $\lambda_1 (x')^2 + \lambda_2 (y')^2 = k$, where $\lambda_1$ and $\lambda_2$ are the eigenvalues of the matrix [445](#page=445). - **Identifying a conic by eliminating the cross product term**: For the equation $5x^2 - 4xy + 8y^2 - 36 = 0$, the associated matrix is $A = \begin{bmatrix} 5 & -2 \\ -2 & 8 \end{bmatrix}$. The eigenvalues are $\lambda = 4, 9$. The orthogonal matrix is $P = \frac{1}{\sqrt{5}}\begin{bmatrix} 2 & 1 \\ 1 & -2 \end{bmatrix}$. The equation in the rotated coordinates is $4(x')^2 + 9(y')^2 = 36$, or $\frac{(x')^2}{9} + \frac{(y')^2}{4} = 1$, which is an ellipse. The angle of rotation is $q = \tan^{-1}(1/2) \approx 26.6^\circ$ [446](#page=446). ## 32.13 Positive Definite Quadratic Forms A quadratic form $x^T A x$ is classified based on its values for $x \neq 0$: * **Positive definite:** $x^T A x > 0$ for all $x \neq 0$. * **Negative definite:** $x^T A x < 0$ for all $x \neq 0$. * **Indefinite:** $x^T A x$ takes both positive and negative values [447](#page=447). A symmetric matrix A and its associated quadratic form $x^T A x$ are positive definite if and only if all eigenvalues of A are positive. They are negative definite if and only if all eigenvalues are negative. They are indefinite if A has at least one positive and at least one negative eigenvalue [447](#page=447). * **Positive semidefinite:** $x^T A x \ge 0$ for all $x \neq 0$. * **Negative semidefinite:** $x^T A x \le 0$ for all $x \neq 0$ [448](#page=448). ## 32.14 Classifying Conic Sections Using Eigenvalues The type of conic section represented by $x^T B x = k$ (where $k \neq 0$) can be determined by the signs of the eigenvalues of the associated matrix $A = (1/k)B$. After rotation to eliminate cross product terms, the equation becomes $\lambda_1 (x')^2 + \lambda_2 (y')^2 = 1$ [448](#page=448). * If $\lambda_1 > 0$ and $\lambda_2 > 0$, the conic is an ellipse. * If $\lambda_1 < 0$ and $\lambda_2 < 0$, the conic has no graph. * If $\lambda_1$ and $\lambda_2$ have opposite signs, the conic is a hyperbola [448](#page=448). - **Classifying conic sections using eigenvalues**: The equation $5x^2 - 4xy + 8y^2 - 36 = 0$ can be written as $x^T A x = 36$, where $A = \begin{bmatrix} 5 & -2 \\ -2 & 8 \end{bmatrix}$. The eigenvalues are $\lambda = 4, 9$. Since both eigenvalues are positive, the matrix is positive definite, and the equation represents an ellipse. The axes lengths are $2\sqrt{36/4} = 6$ and $2\sqrt{36/9} = 4$ [449](#page=449). ## 32.15 Identifying Positive Definite Matrices [449](#page=449) A symmetric matrix A is positive definite if and only if the determinant of every principal submatrix is positive [449](#page=449). | Matrix Property | Condition for Positive Definite | | --- | --- | | Principal Submatrices | Determinant of every principal submatrix is positive. | For a symmetric matrix A: * A is positive definite if and only if all eigenvalues are positive [447](#page=447). * A is positive definite if and only if the determinant of every principal submatrix is positive [449](#page=449). * A is negative definite if and only if the determinants of the principal submatrices alternate in sign, starting with negative. * A is indefinite if it is neither positive nor negative definite, and at least one principal submatrix determinant is positive and at least one is negative [450](#page=450). - **Working with principal submatrices**: The matrix $A = \begin{bmatrix} 2 & 1 \\ 1 & 3 \end{bmatrix}$ is positive definite because its principal submatrices have positive determinants: $|2| = 2 > 0$ and $\det(A) = (2)(3) - (1)(1) = 5 > 0$ [450](#page=450). ## 32.16 Exercises This section presents exercises related to quadratic forms, ellipsoids, and properties of symmetric matrices. ## 32.17 Exercise 34: Ellipsoid equation and axes This exercise involves analyzing an equation representing an ellipsoid and determining the lengths of its axes. * **a. Show that the equation** $ax^2 + by^2 + cz^2 + dxy + exz + fyz = 1$ **represents an ellipsoid, and find the lengths of its axes.** * **Suggestion:** Write the equation in the form $x^TAx = 1$ and make an orthogonal change of variable to eliminate the cross product terms. * **b. What property must a symmetric 3 × 3 matrix have in order for the equation** $x^TAx = 1$ **to represent an ellipsoid?** [452](#page=452). > 📝 The equation $ax^2 + by^2 + cz^2 + dxy + exz + fyz = 1$ represents an ellipsoid, and its axes lengths are determined by the eigenvalues of the associated symmetric matrix [452](#page=452). ## 32.18 Exercise 35: Circle equation This exercise asks for the property a symmetric 2x2 matrix must have for the equation $x^TAx = 1$ to represent a circle [452](#page=452). ## 32.19 Exercise 36: Eliminating cross product terms This exercise requires proving that for a quadratic form $ax^2 + 2bxy + cy^2$, if $b \neq 0$, the cross product term can be eliminated by rotating the coordinate axes. The angle of rotation $q$ must satisfy a specific equation [452](#page=452). ## 32.20 Exercise 37: Nonnegative eigenvalues and quadratic forms This exercise asks to prove that if a symmetric $n \times n$ matrix $A$ has all non-negative eigenvalues, then $x^TAx \geq 0$ for all non-zero vectors $x$ in $R^n$ [452](#page=452). > 📝 If a symmetric $n \times n$ matrix $A$ has all non-negative eigenvalues, then for any non-zero vector $x$ in $R^n$, the quadratic form $x^TAx \geq 0$ [452](#page=452). ## 32.21 True-False Exercises This section presents a series of true-false statements about symmetric matrices, eigenvalues, and quadratic forms. * **a. If all eigenvalues of a symmetric matrix A are positive, then A is positive definite.**. * **b. The expression** $\begin{pmatrix} x_1 & x_2 & x_3 \end{pmatrix} \begin{pmatrix} 1 & 2 & 3 \\ 2 & 4 & 5 \\ 3 & 5 & 6 \end{pmatrix} \begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix}$ **is a quadratic form.**. * **c. The expression** $(x_1 - 3x_2)^2$ **is a quadratic form.**. * **d. A positive definite matrix is invertible.**. * **e. A symmetric matrix is either positive definite, negative definite, or indefinite.**. * **f. If A is positive definite, then −A is negative definite.**. * **g. The expression** $x \cdot x$ **is a quadratic form for all** $x$ **in** $R^n$. * **h. If A is symmetric and invertible, and if** $x^TAx$ **is a positive definite quadratic form, then** $x^TA^{-1}x$ **is also a positive definite quadratic form.**. * **i. If A is symmetric and has only positive eigenvalues, then** $x^TAx$ **is a positive definite quadratic form.**. * **j. If A is a 2 × 2 symmetric matrix with positive entries and det(A) > 0, then A is positive definite.**. * **k. If A is symmetric, and if the quadratic form** $x^TAx$ **has no cross product terms, then A must be a diagonal matrix.**. * **l. If** $x^TAx$ **is a positive definite quadratic form in two variables and** $c \neq 0$, **then the graph of the equation** $x^TAx = c$ **is an ellipse.** [452](#page=452). ## 32.22 Working with Technology This section involves using technology to analyze matrices and quadratic forms. * **T1. Find an orthogonal matrix P such that P^TAP is diagonal.**. * **T2. Use the eigenvalues of the following matrix to determine whether it is positive definite, negative definite, or indefinite, and then confirm your conclusion using Theorem 7.3.4:** 8 7 7 8 [452](#page=452). # 33. Chapter 7 Supplementary Exercises ## 33.1 Optimization Using Quadratic Forms [453](#page=453) This section explores finding maximum and minimum values of quadratic forms, particularly under constraints. The geometric interpretation involves finding the highest and lowest points on the intersection of a surface defined by the quadratic form and a cylinder defined by the constraint. The **Constrained Extremum Theorem** states that for a symmetric $n \times n$ matrix $A$ with eigenvalues $\lambda_1 \ge \lambda_2 \ge \dots \ge \lambda_n$, the quadratic form $x^T A x$ subject to the constraint $||x|| = 1$ has a maximum value of $\lambda_1$ and a minimum value of $\lambda_n$. The maximum occurs at an eigenvector corresponding to $\lambda_1$, and the minimum occurs at an eigenvector corresponding to $\lambda_n$ [453](#page=453). | Condition | Result | | --- | --- | | $x^T A x$ subject to $\Vert x\Vert = 1$ | Maximum value is $\lambda_1$, minimum value is $\lambda_n$ | | Maximum occurs at | Eigenvector corresponding to $\lambda_1$ | | Minimum occurs at | Eigenvector corresponding to $\lambda_n$ | **Example 1: Finding Constrained Extrema** To find the maximum and minimum values of $z = 5x^2 + 5y^2 + 4xy$ subject to $x^2 + y^2 = 1$, we express the quadratic form in matrix notation: $A = \begin{bmatrix} 5 & 2 \\ 2 & 5 \end{bmatrix}$. The eigenvalues are $\lambda_1 = 7$ and $\lambda_2 = 3$. The constrained maximum is $z=7$ at eigenvectors corresponding to $\lambda_1$, and the constrained minimum is $z=3$ at eigenvectors corresponding to $\lambda_2$ [453](#page=453) [454](#page=454). **Example 2: A Constrained Extremum Problem** To maximize the area $z = 4xy$ of a rectangle inscribed in the ellipse $4x^2 + 9y^2 = 36$, we transform the constraint to $x_1^2 + y_1^2 = 1$ using $x = 3x_1$ and $y = 2y_1$. The problem becomes maximizing $z = 24x_1y_1$ subject to $x_1^2 + y_1^2 = 1$. The matrix for $24x_1y_1$ is $A = \begin{bmatrix} 0 & 12 \\ 12 & 0 \end{bmatrix}$, with eigenvalues $\lambda = \pm 12$. The maximum area is $z=12$, occurring when $x = \frac{3}{\sqrt{2}}$ and $y = \frac{2}{\sqrt{2}}$ [454](#page=454). **Constrained Extrema and Level Curves** Level curves of a quadratic form $x^T A x = k$ are visualized by their intersection with the unit circle $||x|| = 1$. The maximum and minimum values of $k$ for which these curves intersect the unit circle correspond to the constrained extrema [455](#page=455). **Relative Extrema of Functions of Two Variables** For a function $f(x, y)$, critical points occur where $f_x(x, y) = 0$ and $f_y(x, y) = 0$. The nature of these critical points (relative minimum, relative maximum, or saddle point) can be determined using the second derivative test [456](#page=456). The **Second Derivative Test** uses the sign of $D(x, y) = f_{xx}(x, y)f_{yy}(x, y) - [f_{xy}(x, y)]^2$ at a critical point $(x_0, y_0)$: * Relative minimum if $D(x_0, y_0) > 0$ and $f_{xx}(x_0, y_0) > 0$. * Relative maximum if $D(x_0, y_0) > 0$ and $f_{xx}(x_0, y_0) < 0$. * Saddle point if $D(x_0, y_0) < 0$. * Inconclusive if $D(x_0, y_0) = 0$ [456](#page=456). The **Hessian Matrix** $H(x, y) = \begin{bmatrix} f_{xx}(x, y) & f_{xy}(x, y) \\ f_{xy}(x, y) & f_{yy}(x, y) \end{bmatrix}$ is used to reformulate the second derivative test [456](#page=456). The **Hessian Form of the Second Derivative Test** states that for a critical point $(x_0, y_0)$: * Relative minimum if $H(x_0, y_0)$ is positive definite. * Relative maximum if $H(x_0, y_0)$ is negative definite. * Saddle point if $H(x_0, y_0)$ is indefinite. * Inconclusive otherwise [457](#page=457). **Example 4: Using the Hessian to Classify Relative Extrema** For $f(x, y) = \frac{1}{3}x^3 + \frac{1}{3}y^3 - 8xy$, the critical points are $(0, 0)$, $(0, 8)$, $(4, 4)$, and $(-4, 4)$. Evaluating the Hessian at these points and examining its eigenvalues classifies them: * $(0, 0)$: Saddle point. * $(0, 8)$: Saddle point. * $(4, 4)$: Relative minimum. * $(-4, 4)$: Relative maximum [457](#page=457) [458](#page=458). **Proof of Theorem 7.4.1** The proof utilizes an orthogonal change of variable $x = Py$ based on the principal axes theorem, transforming $x^T A x$ into a sum of squares involving eigenvalues. This transformation, along with the constraint $ - x - = 1$ implying $ - y = 1$, shows that $x^T A x$ is bounded by the largest and smallest eigenvalues, $\lambda_1$ and $\lambda_n$ [458](#page=458). ## 33.2 Hermitian, Unitary, and Normal Matrices [461](#page=461) [466](#page=466) This section introduces matrices with complex entries, focusing on Hermitian, unitary, and normal matrices, which are complex analogs of real symmetric, orthogonal, and normal matrices, respectively. The **conjugate transpose** of a complex matrix $A$, denoted $A^\ast$, is obtained by taking the transpose and then conjugating each entry. If $A$ is real, $A^\ast = A^T$ [460](#page=460). | Operation | Property | | --- | --- | | $(A^\ast)^\ast = A$ | Conjugate transpose of conjugate transpose is the original matrix | | $(A + B)^\ast = A^\ast + B^\ast$ | Distributive property for addition | | $(kA)^\ast = \overline{k}A^\ast$ | Scalar multiplication property | | $(AB)^\ast = B^\ast A^\ast$ | Reverses order for multiplication | A square matrix $A$ is **unitary** if $AA^\ast = A^\ast A = I$, meaning $A^\ast = A^{-1}$. A square matrix $A$ is **Hermitian** if $A^\ast = A$. Hermitian matrices have real diagonal entries, and entries symmetrically positioned across the main diagonal are complex conjugates [461](#page=461) [462](#page=462). **Theorem 7.5.2** states that for a Hermitian matrix $A$: * Its eigenvalues are real. * Eigenvectors from different eigenspaces are orthogonal with respect to the complex Euclidean inner product [462](#page=462). **Example 4: Eigenvalues and Eigenvectors of a Hermitian Matrix** For $A = \begin{bmatrix} 1 & i \\ -i & 1 \end{bmatrix}$, the eigenvalues are $\lambda = 1$ and $\lambda = 4$ (real). Bases for the eigenspaces are $v_1 = \begin{bmatrix} 1 \\ i \end{bmatrix}$ and $v_2 = \begin{bmatrix} 1 \\ -i \end{bmatrix}$. These vectors are orthogonal, confirming the theorem [463](#page=463). **Theorem 7.5.3** provides equivalent conditions for a matrix $A$ to be unitary: * $A$ is unitary. * $ - Ax - = - x $ for all $x$ in $C^n$. * $Ax \cdot Ay = x \cdot y$ for all $x, y$ in $C^n$. * The column vectors of $A$ form an orthonormal set in $C^n$. * The row vectors of $A$ form an orthonormal set in $C^n$ [463](#page=463). **Example 5: A Unitary Matrix** To show $A = \frac{1}{\sqrt{2}}\begin{bmatrix} 1+i & 1-i \\ 1-i & 1+i \end{bmatrix}$ is unitary, we verify that its row vectors are orthonormal. Since $A$ is unitary, $A^{-1} = A^\ast$ [464](#page=464). A square complex matrix $A$ is **unitarily diagonalizable** if there exists a unitary matrix $P$ such that $P^\ast AP = D$, where $D$ is a complex diagonal matrix [464](#page=464). **Theorem 7.5.4** states that every $n \times n$ Hermitian matrix $A$ has an orthonormal set of $n$ eigenvectors and is unitarily diagonalized by a matrix $P$ whose columns form such a set [464](#page=464). **Skew-Symmetric and Skew-Hermitian Matrices** A real matrix $A$ is **skew-symmetric** if $A^T = -A$. A complex matrix $A$ is **skew-Hermitian** if $A^\ast = -A$. Skew-symmetric matrices have zeros on the main diagonal, while skew-Hermitian matrices have zeros or purely imaginary numbers on the main diagonal [466](#page=466). **Normal Matrices** A square complex matrix $A$ is **normal** if $AA^\ast = A^\ast A$. Normal matrices include Hermitian, skew-Hermitian, and unitary matrices. They also include real symmetric, skew-symmetric, and orthogonal matrices [466](#page=466). **A Comparison of Eigenvalues** * Hermitian matrices have real eigenvalues. * Skew-Hermitian matrices have eigenvalues that are zero or purely imaginary. * Unitary matrices have eigenvalues with modulus 1 [466](#page=466). | Matrix Type | Eigenvalue Properties | | --- | --- | | Hermitian | Real | | Skew-Hermitian | Zero or purely imaginary | | Unitary | Modulus 1 | **Unitarily Diagonalizing a Hermitian Matrix** The procedure is analogous to orthogonally diagonalizing a symmetric matrix: 1. Find a basis for each eigenspace. 2. Apply the Gram-Schmidt process to obtain orthonormal bases for the eigenspaces. 3. Form the matrix $P$ with these orthonormal eigenvectors as columns [465](#page=465). **Example 6: Unitary Diagonalization of a Hermitian Matrix** For $A = \begin{bmatrix} 1 & i \\ -i & 1 \end{bmatrix}$, the eigenvalues are $1$ and $4$. Orthonormal eigenvectors are $p_1 = \frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ i \end{bmatrix}$ and $p_2 = \frac{1}{\sqrt{2}}\begin{bmatrix} 1 \\ -i \end{bmatrix}$. The matrix $P = \begin{bmatrix} p_1 & p_2 \end{bmatrix}$ unitarily diagonalizes $A$ [465](#page=465). ## 33.3 Exercises on Hermitian, Unitary, and Skew-Hermitian Matrices This section presents exercises focusing on the properties of Hermitian, unitary, and skew-Hermitian matrices, including their definitions, eigenvalues, and determinants. * **Exercise 35:** Find a 2x2 matrix that is both Hermitian and unitary, with non-real entries. * **Exercise 36:** Prove parts (b) and (d) of Theorem 7.5.1 using properties of the transpose and complex conjugate. * **Exercise 37:** Prove parts (a) and (e) of Theorem 7.5.1 using properties of the transpose and complex conjugate. * **Exercise 38:** Prove that each entry on the main diagonal of a skew-Hermitian matrix is either zero or a pure imaginary number. * **Exercise 39:** Prove that if A is a unitary matrix, then A* is also unitary. * **Exercise 40:** Prove that the eigenvalues of a skew-Hermitian matrix are either zero or pure imaginary. * **Exercise 41:** Prove that the eigenvalues of a unitary matrix have a modulus of 1. * **Exercise 42:** Prove that if u is a nonzero column vector in Cn, then P = uu* is Hermitian. * **Exercise 43:** Prove that if u is a unit column vector in Cn, then H = I − 2uu* is both Hermitian and unitary. * **Exercise 44:** Prove that if A is an invertible matrix, then A* is invertible, and (A*)−1 = (A−1)*. * **Exercise 45:** * Prove that det(A*) = det(A). * Using part (a) and the property that a matrix and its transpose have the same determinant, prove that det(A*) = det(A). * **Exercise 46:** Use Exercise 45(b) to prove: * If A is Hermitian, then det(A) is real. * If A is unitary, then |det(A)| = 1. * **Exercise 47:** Prove that an n x n matrix A with complex entries is unitary if and only if its columns form an orthonormal set in Cn. * **Exercise 48:** Prove that the eigenvalues of a Hermitian matrix are real [468](#page=468). ## 33.4 True-False Exercises Determine whether each statement is true or false and justify your answer. * **a.** The matrix $\begin{pmatrix} 0 & i \\ i & 0 \end{pmatrix}$ is Hermitian. * **b.** The matrix $\begin{pmatrix} i & i \\ i & i \end{pmatrix}$ is unitary. * **c.** The conjugate transpose of a unitary matrix is unitary. * **d.** Every unitarily diagonalizable matrix is Hermitian. * **e.** A positive integer power of a skew-Hermitian matrix is skew-Hermitian [468](#page=468). ## 33.5 Orthogonal Matrices in Computer Graphics and Virtual Reality Orthogonal matrices are crucial in computer graphics and virtual reality for transformations like rotations and reflections, preserving geometric properties and enabling realistic visualizations. * Orthogonal matrices preserve vector norms and angles, making them essential for transformations in computer graphics and VR. * In computer graphics, they are used for rotations, reflections, and translations to render 3D models without altering intrinsic properties, maintaining proportions and angles. * VR applications use orthogonal matrices for seamless rotation and orientation of virtual objects in response to user input, ensuring spatial coherence and realism. * These matrices also optimize rendering algorithms and reduce computational complexity, improving real-time performance and reducing latency [468](#page=468). > 📝 Orthogonal matrices are used in computer graphics for transformations like rotations and reflections to render 3D models without altering intrinsic properties, maintaining proportions and angles [468](#page=468). ## 33.6 Quadratic Forms in Optimization and Economic Modeling Quadratic forms are fundamental in linear algebra and are applied extensively in optimization problems and economic modeling. * Quadratic forms are pivotal in optimization for solving constrained extremum problems, expressed as $x^TAx$, where A is a symmetric matrix. * The Constrained Extremum Theorem uses eigenvalues and eigenvectors of A to find optimal solutions in quadratic programming. * In finance, quadratic forms model risk and return in portfolio optimization using the covariance matrix to maximize returns while minimizing risk. * They are also used in cost-benefit analysis and utility modeling to quantify trade-offs and optimize economic outcomes. * Quadratic forms facilitate the analysis of economic equilibria and stability by representing economic systems, aiding in studying the effects of perturbations and guiding strategic planning [469](#page=469). ## 33.7 Chapter 7 Supplementary Exercises This section contains a variety of exercises covering orthogonal matrices, eigenvalues, inner products, quadratic forms, and conic sections. * **Exercise 1:** Verify that each given matrix is orthogonal and find its inverse. * **Exercise 2:** Prove that each eigenvalue of an orthogonal matrix of order n lies on the circle of radius 1 in the complex plane. * **Exercise 3:** Prove that if Q is an orthogonal matrix, each entry of Q is the same as its cofactor if det(Q) = 1, and the negative of its cofactor if det(Q) = −1. * **Exercise 4:** Prove that if A is a positive definite symmetric matrix, then $\langle u, v \rangle = u^TAv$ is an inner product on Rn for column vectors u and v. * **Exercise 5:** Find the characteristic polynomial and the dimensions of the eigenspaces of a given symmetric matrix. * **Exercise 6:** Find a matrix P that orthogonally diagonalizes a given matrix A and determine the resulting diagonal matrix D = PTAP. * **Exercise 7:** Express each given quadratic form in the matrix notation $x^TAx$. * **Exercise 8:** Classify a given quadratic form as positive definite, negative definite, indefinite, positive semidefinite, or negative semidefinite. * **Exercise 9:** Find an orthogonal change of variable that eliminates the cross-product terms in each quadratic form and express the form in terms of the new variables. * **Exercise 10:** Identify the type of conic section represented by each given equation [469](#page=469). # 34. Chapter 8: General Linear Transformations ## 34.1 General linear transformations definitions and terminology A linear transformation is a mapping between vector spaces that preserves vector addition and scalar multiplication. This fundamental property allows us to extend concepts from matrix transformations on $\mathbb{R}^n$ to more general vector spaces. * **Definition of a Linear Transformation**: A mapping $T: V \to W$ from a vector space $V$ to a vector space $W$ is linear if for all vectors $u, v$ in $V$ and all scalars $k$: * $T(ku) = kT(u)$ (Homogeneity property) * $T(u + v) = T(u) + T(v)$ (Additivity property). * **Linear Operator**: A linear transformation $T: V \to V$ where the domain and codomain are the same vector space is called a linear operator on $V$. * **Combined Linearity Property**: For any vectors $v_1, \dots, v_n$ in $V$ and scalars $k_1, \dots, k_n$, a linear transformation satisfies: $T(k_1v_1 + k_2v_2 + \dots + k_nv_n) = k_1T(v_1) + k_2T(v_2) + \dots + k_nT(v_n)$ [472](#page=472). ## 34.2 Theorem 8.1.1: Properties of Linear Transformations If $T: V \to W$ is a linear transformation, then: * $T(\mathbf{0}) = \mathbf{0}$. * $T(u - v) = T(u) - T(v)$ for all $u, v$ in $V$. * $T(-v) = -T(v)$ for all $v$ in $V$ [472](#page=472). ## 34.3 Examples of Linear Transformations * **The Zero Transformation**: $T(v) = \mathbf{0}$ for every $v$ in $V$. This transformation is linear because $T(u+v) = \mathbf{0} = T(u) + T(v)$ and $T(ku) = \mathbf{0} = k\mathbf{0} = kT(u)$. * **The Identity Operator**: $I(v) = v$ for all $v$ in $V$. This operator is linear. * **Dilation and Contraction Operators**: $T(x) = cx$ for a scalar $c$. If $0 < c < 1$, it's a contraction; if $c > 1$, it's a dilation. * **Transformation on Polynomials**: $T(p(x)) = xp(x)$ maps a polynomial $p(x)$ in $P_n$ to $xp(x)$ in $P_{n+1}$. This is linear [473](#page=473). * **Transformations on Matrix Spaces**: * $T_1(A) = A^T$ is linear. * $T_2(A) = \det(A)$ is not linear for $n > 1$ because $\det(kA) = k^n \det(A)$. * **Translation is Not Linear**: $T(x) = x + x_0$ (where $x_0 \neq \mathbf{0}$) is not linear because $T(\mathbf{0}) = x_0 \neq \mathbf{0}$. * **Inner Product Transformation**: $T(x) = \langle x, v_0 \rangle$ is linear due to properties of inner products [474](#page=474). * **Evaluation Transformation**: $T(f) = (f(x_1), f(x_2), \dots, f(x_n))$ maps a function $f$ to its values at specific points $x_1, \dots, x_n$. This is linear [475](#page=475). * **Integral Transformation**: $J(f) = \int f(t) dt$ is linear due to properties of integration [477](#page=477). * **Differentiation Transformation**: $D(f) = f'(x)$ is linear due to properties of differentiation [476](#page=476). ## 34.4 Theorem 8.1.2: Linear Transformations and Basis Vectors If $T: V \to W$ is a linear transformation and $S = \{v_1, v_2, \dots, v_n\}$ is a basis for a finite-dimensional vector space $V$, then the image of any vector $v$ in $V$ can be expressed as a linear combination of the images of the basis vectors: $T(v) = c_1T(v_1) + c_2T(v_2) + \dots + c_nT(v_n)$, where $v = c_1v_1 + c_2v_2 + \dots + c_nv_n$ [475](#page=475). > 📝 Given a basis $S = \{v_1, v_2, v_3\}$ for $\mathbb{R}^3$ and a linear transformation $T: \mathbb{R}^3 \to \mathbb{R}^2$ with $T(v_1) = (1, 0)$, $T(v_2) = (2, -1)$, and $T(v_3) = (4, 3)$, we can find a formula for $T(x_1, x_2, x_3)$ by expressing $(x_1, x_2, x_3)$ as a linear combination of $v_1, v_2, v_3$. If $(x_1, x_2, x_3) = x_3v_1 + (x_2 - x_3)v_2 + (x_1 - x_2)v_3$, then $T(x_1, x_2, x_3) = x_3T(v_1) + (x_2 - x_3)T(v_2) + (x_1 - x_2)T(v_3) = x_3(1, 0) + (x_2 - x_3)(2, -1) + (x_1 - x_2)(4, 3) = (4x_1 - 2x_2 - x_3, 3x_1 - 4x_2 + x_3)$. Then $T(2, -3, 5) = (9, 23)$ [476](#page=476). ## 34.5 Kernel and range The kernel and range of a linear transformation are fundamental subspaces that reveal important information about the transformation's behavior. The kernel consists of all vectors mapped to the zero vector, while the range comprises all possible output vectors. * **Kernel of T (ker(T))**: The set of vectors in $V$ that $T$ maps to $\mathbf{0}$. * **Range of T (R(T))**: The set of all vectors in $W$ that are images of at least one vector in $V$ under $T$ [477](#page=477). ## 34.6 Examples of Kernel and Range * **Matrix Transformation**: For $T_A(x) = Ax$, ker($T_A$) is the null space of $A$, and R($T_A$) is the column space of $A$. * **Zero Transformation**: ker($T$) = $V$, R($T$) = $\{\mathbf{0}\}$. * **Identity Operator**: ker($I$) = $\{\mathbf{0}\}$, R($I$) = $V$. * **Rotation**: For a rotation through angle $\theta$, ker($T$) = $\{\mathbf{0}\}$ and R($T$) = $\mathbb{R}^2$. * **Orthogonal Projection**: For projection onto the $xy$-plane in $\mathbb{R}^3$, ker($T$) is the $z$-axis, and R($T$) is the $xy$-plane [478](#page=478). ## 34.7 Theorem 8.1.3: Kernel and Range are Subspaces If $T: V \to W$ is a linear transformation: * The kernel of $T$ is a subspace of $V$. * The range of $T$ is a subspace of $W$ [479](#page=479). > 📝 The kernel of the differentiation transformation $D(f) = f'(x)$ is the set of constant functions, as their derivative is zero [479](#page=479). ## 34.8 Rank and nullity of linear transformations The rank and nullity of a linear transformation quantify the dimensions of its range and kernel, respectively. These concepts are directly analogous to the rank and nullity of matrices and are related by a fundamental theorem. * **Rank of T (rank(T))**: The dimension of the range of $T$, denoted $\dim(R(T))$. * **Nullity of T (nullity(T))**: The dimension of the kernel of $T$, denoted $\dim(\text{ker}(T))$ [480](#page=480). ## 34.9 Theorem 8.1.4: Dimension Theorem for Linear Transformations If $T: V \to W$ is a linear transformation from a finite-dimensional vector space $V$ to a vector space $W$, then the range of $T$ is finite-dimensional, and: $\text{rank}(T) + \text{nullity}(T) = \dim(V)$ [480](#page=480). This theorem states that the sum of the dimensions of the kernel and range equals the dimension of the domain. > 📝 For the linear transformation $T: \mathbb{R}^5 \to P_5$ with rank 3, its nullity is $\dim(\mathbb{R}^5) - \text{rank}(T) = 5 - 3 = 2$ [482](#page=482). # 35. Compositions and Inverse Transformations One-to-One and Onto ## 35.1 Definitions of One-to-One and Onto [484](#page=484) A linear transformation $T: V \to W$ is **one-to-one** if it maps distinct vectors in $V$ to distinct vectors in $W$. This means that if $u \neq v$, then $T(u) \neq T(v)$. Equivalently, $T(u) = T(v)$ implies $u = v$. A linear transformation $T: V \to W$ is **onto** (or onto $W$) if every vector in $W$ is the image of at least one vector in $V$. This means that for every $w \in W$, there exists at least one $v \in V$ such that $T(v) = w$. | Property | Description | | --- | --- | | One-to-one | Distinct vectors in V have distinct images in W. | | Not one-to-one | There exist distinct vectors in V with the same image. | | Onto W | Every vector in W is the image of some vector in V. | | Not onto W | Not every vector in W is the image of some vector in V. | ## 35.2 Properties of One-to-One Transformations A linear transformation $T: V \to W$ is one-to-one if and only if for each vector $w$ in the range of $T$, there is exactly one vector $v$ in $V$ such that $T(v) = w$ [484](#page=484). A linear transformation $T: V \to W$ is one-to-one if and only if $T(u) = T(v)$ implies $u = v$ [484](#page=484). > 📝 The linear operator $T: P_n \to P_{n+1}$ defined by $T(p(x)) = xp(x)$ is one-to-one because distinct polynomials $p(x)$ and $q(x)$ map to distinct polynomials $xp(x)$ and $xq(x)$ [486](#page=486). ## 35.3 Theorem 8.2.1: One-to-one and Kernel For a linear transformation $T: V \to W$, the following statements are equivalent: (a) $T$ is one-to-one. (b) $\text{ker}(T) = \{0\}$ [485](#page=485). * **Proof:** * (a) $\Rightarrow$ (b): If $T$ is one-to-one, then only the zero vector maps to the zero vector, so $\text{ker}(T) = \{0\}$. * (b) $\Rightarrow$ (a): If $\text{ker}(T) = \{0\}$, then for any $u \neq v$, $u-v \neq 0$, so $T(u-v) \neq 0$. Since $T$ is linear, $T(u) - T(v) \neq 0$, which means $T(u) \neq T(v)$. Thus, $T$ is one-to-one [485](#page=485). ## 35.4 Theorem 8.2.2: Equivalence for Finite-Dimensional Spaces If $V$ and $W$ are finite-dimensional vector spaces with the same dimension, and if $T: V \to W$ is a linear transformation, then the following statements are equivalent: (a) $T$ is one-to-one. (b) $\text{ker}(T) = \{0\}$. (c) $T$ is onto (i.e., $R(T) = W$) [487](#page=487). * **Dimension Implications:** * If $\dim(W) < \dim(V)$, then $T$ cannot be one-to-one. * If $\dim(V) < \dim(W)$, then $T$ cannot be onto [487](#page=487). ## 35.5 Theorem 8.2.3: Matrix Transformations If $T_A: \mathbb{R}^n \to \mathbb{R}^m$ is a matrix transformation (multiplication by an $m \times n$ matrix $A$), then: (a) $T_A$ is one-to-one if and only if the columns of $A$ are linearly independent. (b) $T_A$ is onto if and only if the columns of $A$ span $\mathbb{R}^m$ [488](#page=488). ## 35.6 Theorem 8.2.4: Equivalent Statements for Invertible Matrices If $A$ is an $n \times n$ matrix, the following statements are equivalent: (a) $A$ is invertible. (b) $Ax = 0$ has only the trivial solution. (c) The reduced row echelon form of $A$ is $I_n$. (d) $A$ is expressible as a product of elementary matrices. (e) $Ax = b$ is consistent for every $n \times 1$ matrix $b$. (f) $Ax = b$ has exactly one solution for every $n \times 1$ matrix $b$. (g) $\det(A) \neq 0$. (h) The column vectors of $A$ are linearly independent. (i) The row vectors of $A$ are linearly independent. (j) The column vectors of $A$ span $\mathbb{R}^n$. (k) The row vectors of $A$ span $\mathbb{R}^n$. (l) The column vectors of $A$ form a basis for $\mathbb{R}^n$. (m) The row vectors of $A$ form a basis for $\mathbb{R}^n$. (n) $A$ has rank $n$. (o) $A$ has nullity $0$. (p) The orthogonal complement of the null space of $A$ is $\mathbb{R}^n$. (q) The orthogonal complement of the row space of $A$ is $\{0\}$. (r) $0$ is not an eigenvalue of $A$. (s) $A^TA$ is invertible. (t) The kernel of $T_A$ is $\{0\}$. (u) The range of $T_A$ is $\mathbb{R}^n$. (v) $T_A$ is one-to-one [488](#page=488). ## 35.7 Inverse Linear Transformations If $T: V \to W$ is a one-to-one linear transformation with range $R(T)$, its inverse $T^{-1}: R(T) \to V$ is defined such that $T^{-1}(w) = v$ if and only if $T(v) = w$ [490](#page=490). * The inverse transformation $T^{-1}$ is also a linear transformation. * For any $v \in V$ and $w \in R(T)$: * $T^{-1}(T(v)) = v$ * $T(T^{-1}(w)) = w$ [490](#page=490). ## 35.8 Example 8: A One-to-One Matrix Transformation Consider the linear operator $T(x_1, x_2, x_3) = (3x_1 + x_2, -2x_1 - 4x_2 + 3x_3, 5x_1 + 4x_2 - 2x_3)$. Its standard matrix is $A = \begin{pmatrix} 3 & 1 & 0 \\ -2 & -4 & 3 \\ 5 & 4 & -2 \end{pmatrix}$. Since $A$ is invertible with $A^{-1} = \begin{pmatrix} -1 & -2 & -3 \\ -11 & -6 & -9 \\ -12 & -7 & -10 \end{pmatrix}$, the transformation $T$ is invertible [489](#page=489). The inverse transformation is $T^{-1}(x_1, x_2, x_3) = (-x_1 - 2x_2 - 3x_3, -11x_1 - 6x_2 - 9x_3, -12x_1 - 7x_2 - 10x_3)$ [489](#page=489). ## 35.9 Example 9: An Inverse Transformation The linear transformation $T: P_n \to P_{n+1}$ defined by $T(p(x)) = xp(x)$ is one-to-one but not onto. Its inverse is defined on its range (polynomials with a zero constant term) as $T^{-1}(c_0x + c_1x^2 + \dots + c_nx^{n+1}) = c_0 + c_1x + \dots + c_nx^n$ [490](#page=490). ## 35.10 Composition of Linear Transformations The composition of two linear transformations $T_1: U \to V$ and $T_2: V \to W$ is denoted by $T_2 \circ T_1$ and is defined by $(T_2 \circ T_1)(u) = T_2(T_1(u))$ for all $u \in U$ [490](#page=490). * The domain of $T_2$ must contain the range of $T_1$ for the composition to be defined. * The composition of two linear transformations is itself a linear transformation [491](#page=491). > 📝 For $T_1: P_1 \to P_2$ given by $T_1(p(x)) = xp(x)$ and $T_2: P_2 \to P_2$ given by $T_2(p(x)) = p(2x + 4)$, the composition $(T_2 \circ T_1): P_1 \to P_2$ is $(T_2 \circ T_1)(p(x)) = (2x + 4)p(2x + 4)$ [491](#page=491). ## 35.11 Theorem 8.2.5: Composition is Linear If $T_1: U \to V$ and $T_2: V \to W$ are linear transformations, then $(T_2 \circ T_1): U \to W$ is also a linear transformation [491](#page=491). ## 35.12 Example 10: Composition of Linear Transformations Let $T_1: P_1 \to P_2$ be $T_1(p(x)) = xp(x)$ and $T_2: P_2 \to P_2$ be $T_2(p(x)) = p(2x + 4)$. The composition $(T_2 \circ T_1): P_1 \to P_2$ is $(T_2 \circ T_1)(p(x)) = T_2(xp(x)) = (2x + 4)p(2x + 4)$ [491](#page=491). ## 35.13 Example 11: Composition with the Identity Operator For any linear operator $T: V \to V$ and the identity operator $I: V \to V$, we have $T \circ I = T$ and $I \circ T = T$ [492](#page=492). ## 35.14 Theorem 8.2.6: Composition of One-to-One Transformations If $T_1: U \to V$ and $T_2: V \to W$ are one-to-one linear transformations, then: (a) $T_2 \circ T_1$ is one-to-one. (b) $(T_2 \circ T_1)^{-1} = T_1^{-1} \circ T_2^{-1}$ [492](#page=492). * **Proof (a):** If $u_1 \neq u_2$, then $T_1(u_1) \neq T_1(u_2)$ since $T_1$ is one-to-one. Then $T_2(T_1(u_1)) \neq T_2(T_1(u_2))$ since $T_2$ is one-to-one. Thus, $(T_2 \circ T_1)(u_1) \neq (T_2 \circ T_1)(u_2)$ [492](#page=492). * **Proof (b):** This part involves showing that applying $(T_1^{-1} \circ T_2^{-1})$ to $w$ yields the same result as $(T_2 \circ T_1)^{-1}(w)$ [493](#page=493). This result extends to compositions of three or more linear transformations, e.g., $(T_3 \circ T_2 \circ T_1)^{-1} = T_1^{-1} \circ T_2^{-1} \circ T_3^{-1}$ [493](#page=493). In terms of matrix transformations $T_A, T_B, T_C$, this means $(T_C \circ T_B \circ T_A)^{-1} = T_A^{-1} \circ T_B^{-1} \circ T_C^{-1}$, which corresponds to $(CBA)^{-1} = A^{-1}B^{-1}C^{-1}$ [493](#page=493). # 36. Isomorphism Isomorphism ## 36.1 Isomorphism definition A linear transformation $T: V \to W$ that is both one-to-one and onto is called an **isomorphism**. When $T$ is an isomorphism, $W$ is said to be **isomorphic** to $V$. This means that $V$ and $W$ have the same algebraic structure, even if their elements are different [496](#page=496). * **Isomorphic vector spaces**: These spaces share the same "algebraic form" and vector operations mirror each other [497](#page=497). * **Inverse of an isomorphism**: If $T: V \to W$ is an isomorphism, its inverse $T^{-1}: W \to V$ is also an isomorphism [496](#page=496). ## 36.2 Theorem: Every n-dimensional vector space is isomorphic to Rn Every real $n$-dimensional vector space is isomorphic to $R^n$. This fundamental result highlights $R^n$ as the "mother" of all real $n$-dimensional vector spaces, implying that other $n$-dimensional spaces have the same algebraic structure as $R^n$ [497](#page=497). * **Proof outline**: To prove this, a linear transformation $T: V \to R^n$ is constructed that is both one-to-one and onto. * **Coordinate map**: For any basis $S = \{v_1, v_2, \dots, v_n\}$ of $V$, the coordinate map $T(u) = (u)_S = (k_1, k_2, \dots, k_n)$ transforms a vector $u = k_1v_1 + k_2v_2 + \dots + k_nv_n$ in $V$ to its coordinate vector in $R^n$. * **Linearity of coordinate map**: The coordinate map preserves scalar multiplication ($T(cu) = cT(u)$) and vector addition ($T(u+v) = T(u) + T(v)$) [497](#page=497). * **One-to-one property**: Distinct vectors in $V$ map to distinct vectors in $R^n$ because if $u \neq v$, at least one coordinate $k_i$ must differ. * **Onto property**: Any vector $w = (k_1, k_2, \dots, k_n)$ in $R^n$ is the image of the vector $u = k_1v_1 + k_2v_2 + \dots + k_nv_n$ in $V$ [498](#page=498). ## 36.3 Finding isomorphisms using coordinate maps The coordinate map associated with an ordered basis $S$ for a vector space $V$ provides an isomorphism between $V$ and $R^n$. This means that for every ordered basis of $V$, there is a unique isomorphism to $R^n$ [498](#page=498). * **Dependence on basis order**: Coordinate maps are sensitive to the order of basis vectors, leading to multiple possible isomorphisms for a given vector space [498](#page=498). ## 36.4 Natural isomorphisms Specific types of isomorphisms are called "natural isomorphisms" when they arise from standard bases or common representations [498](#page=498) [499](#page=499). * **Natural isomorphism between $P_{n-1}$ and $R^n$**: The coordinate map with respect to the standard basis for $P_{n-1}$ (polynomials of degree $n-1$ or less) is an isomorphism to $R^n$. * **Natural isomorphism between $M_{22}$ and $R^4$**: The map that converts a $2 \times 2$ matrix into its coordinate vector in $R^4$ is an isomorphism. This generalizes to an isomorphism between $M_{mn}$ and $R^{mn}$ [498](#page=498). ## 36.5 Differentiation by matrix multiplication Linear transformations between polynomial spaces can be represented as matrix transformations in $R^n$ via natural isomorphisms. This allows calculus operations like differentiation to be performed using matrix multiplication [499](#page=499). * **Example**: The differentiation transformation $D: P_3 \to P_2$ corresponds to a matrix transformation from $R^4$ to $R^3$ when $P_3$ and $P_2$ are mapped to their coordinate spaces. * **Derivative calculation**: A derivative, such as $\frac{d}{dx}(2 + 8x + 3x^2)$, can be computed by multiplying the coordinate vector of the polynomial by the corresponding matrix [499](#page=499). ## 36.6 Working with isomorphisms Isomorphisms can be used to transform problems in one vector space into equivalent problems in another, often simpler, vector space like $R^n$ [499](#page=499). * **Example**: To determine if polynomials are linearly independent, they can be converted into coordinate vectors using the natural isomorphism to $R^n$. The linear independence of the polynomials is then equivalent to the linear independence of their coordinate vectors, which can be checked using row operations on a matrix [499](#page=499). ## 36.7 Inner product space isomorphisms An isomorphism $T: V \to W$ between inner product spaces $V$ and $W$ is an **inner product space isomorphism** if it preserves the inner product: $\langle T(u), T(v) \rangle_W = \langle u, v \rangle_V$ for all $u, v \in V$. This means geometric structures like length, angle, and orthogonality are preserved [500](#page=500). * **Preservation of geometric structure**: Such isomorphisms ensure that orthogonal vectors in $V$ correspond to orthogonal vectors in $W$, and orthonormal sets in $V$ map to orthonormal sets in $W$ [500](#page=500). ## 36.8 Theorem: Isomorphism via orthonormal basis If $S = \{v_1, v_2, \dots, v_n\}$ is an ordered orthonormal basis for a real $n$-dimensional inner product space $V$, then the coordinate map $T: V \to R^n$ defined by $T(u) = (u)_S$ is an inner product space isomorphism between $V$ and $R^n$ with the Euclidean inner product [500](#page=500). * **Example**: The coordinate map for $P_{n-1}$ with respect to its standard basis (which is orthonormal with respect to the standard inner product) is an inner product space isomorphism to $R^n$. * **Inner product preservation**: The standard inner product on $P_{n-1}$ for two polynomials $p = a_0 + a_1x + \dots + a_{n-1}x^{n-1}$ and $q = b_0 + b_1x + \dots + b_{n-1}x^{n-1}$ is $\langle p, q \rangle = a_0b_0 + a_1b_1 + \dots + a_{n-1}b_{n-1}$, which is identical to the Euclidean inner product of their coordinate vectors $(a_0, \dots, a_{n-1})$ and $(b_0, \dots, b_{n-1})$ in $R^n$ [500](#page=500). ## 36.9 Notational matters in inner product spaces The distinction between $R^n$ and the space of $n \times 1$ matrices ($M_n$) is often merely notational, especially when considering inner products [501](#page=501). * **Isomorphism between $R^n$ and $M_n$**: The mapping $T: R^n \to M_n$ defined by converting a real $n$-tuple into a column matrix is an inner product space isomorphism. * **Inner product definitions**: For $R^n$, the Euclidean inner product is $\langle u, v \rangle = u \cdot v$. For $M_n$, the inner product is $\langle u, v \rangle = u^T v$, where $u$ and $v$ are column vectors [501](#page=501). | Vector Space V | Vector Space W | Isomorphism Type | | --- | --- | --- | | Real n-dimensional vector space | $R^n$ | General isomorphism via coordinate map | | $P_{n-1}$ | $R^n$ | Natural isomorphism (coordinate map with standard basis) | | $M_{22}$ | $R^4$ | Natural isomorphism (matrix to coordinate vector) | | Inner product space V | Inner product space W | Inner product space isomorphism (preserves inner product) | | Real n-dimensional inner product space V | $R^n$ | Isomorphism via orthonormal basis | | $R^n$ | $M_n$ (n x 1 matrices) | Inner product space isomorphism (notational equivalence) | # 37. Matrices for General Linear Transformations Matrices of Linear Transformations ## 37.1 Matrices for linear transformations A linear transformation \(T: V \to W\) between an n-dimensional vector space \(V\) and an m-dimensional vector space \(W\) can be represented by an \(m \times n\) matrix \(A\). This matrix \(A\) allows for the transformation of coordinate vectors from \(V\) to \(W\). Specifically, if \(B\) is a basis for \(V\) and \(B'\) is a basis for \(W\), then the matrix \(A\) satisfies the property \(A[x]_B = [T(x)]_{B'}\) for any vector \(x\) in \(V\). This enables the computation of \(T(x)\) indirectly by first finding the coordinate vector of \(x\) with respect to \(B\), then multiplying by \(A\) to get the coordinate vector of \(T(x)\) with respect to \(B'\), and finally reconstructing \(T(x)\) from this coordinate vector [502](#page=502) [503](#page=503). * **Matrix representation**: The matrix \(A\) for a linear transformation \(T: V \to W\) relative to bases \(B\) for \(V\) and \(B'\) for \(W\) is constructed by using the coordinate vectors of the basis vectors of \(V\) (transformed by \(T\)) as its columns. * **Notation**: This matrix is denoted as \([T]_{B', B}\), where the subscript on the left indicates the basis for the image space (\(W\)) and the subscript on the right indicates the basis for the domain (\(V\)). * **Formula**: \([T]_{B', B} = \begin{bmatrix} [T(u_1)]_{B'} & [T(u_2)]_{B'} & \cdots & [T(u_n)]_{B'} \end{bmatrix}\), where \(B = \{u_1, u_2, \dots, u_n\}\). * **Property**: The fundamental property of this matrix is \([T]_{B', B}[x]_B = [T(x)]_{B'}\) [504](#page=504). ## 37.2 Matrix for a linear transformation EXAMPLE 1 Let \(T: P_1 \to P_2\) be defined by \(T(p(x)) = xp(x)\). Find the matrix for \(T\) with respect to the standard bases \(B = \{1, x\}\) for \(P_1\) and \(B' = \{1, x, x^2\}\) for \(P_2\). * \(T = x = x\). * \(T(x) = x(x) = x^2\) * The coordinate vector for \(T \) relative to \(B'\) is \([x]_{B'} = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}\) [1](#page=1). * The coordinate vector for \(T(x)\) relative to \(B'\) is \([x^2]_{B'} = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}\). * Therefore, the matrix for \(T\) is \([T]_{B', B} = \begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix}\) [504](#page=504). ## 37.3 The three-step procedure EXAMPLE 2 Using the matrix \([T]_{B', B} = \begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix}\) from Example 1, perform the computation \(T(a + bx)\). * **Step 1**: The coordinate vector for \(x = a + bx\) relative to \(B = \{1, x\}\) is \([x]_B = \begin{bmatrix} a \\ b \end{bmatrix}\). * **Step 2**: Multiply \([x]_B\) by \([T]_{B', B}\): \(\begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} a \\ b \end{bmatrix} = \begin{bmatrix} 0 \\ a \\ b \end{bmatrix}\). This is \([T(x)]_{B'}\). * **Step 3**: Reconstruct \(T(x)\) from \([T(x)]_{B'}\): \(0 + a(x) + b(x^2) = ax + bx^2\) [1](#page=1) [505](#page=505). > 📝 To compute \(T(a + bx)\) using \([T]_{B', B} = \begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix}\), first find \([a + bx]_B = \begin{bmatrix} a \\ b \end{bmatrix}\). Then, \(\begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} a \\ b \end{bmatrix} = \begin{bmatrix} 0 \\ a \\ b \end{bmatrix}\), which reconstructs to \(ax + bx^2\) [505](#page=505). ## 37.4 Matrix for a linear transformation EXAMPLE 3 Let \(T: \mathbb{R}^2 \to \mathbb{R}^3\) be defined by \(T\left(\begin{bmatrix} x_1 \\ x_2 \end{bmatrix}\right) = \begin{bmatrix} x_1 + x_2 \\ 3x_1 - x_2 \\ 7x_1 + 2x_2 \end{bmatrix}\). Find the matrix for \(T\) with respect to bases \(B = \{u_1, u_2\}\) for \(\mathbb{R}^2\) and \(B' = \{v_1, v_2, v_3\}\) for \(\mathbb{R}^3\), where \(u_1 = \begin{bmatrix} 1 \\ 1 \end{bmatrix}\), \(u_2 = \begin{bmatrix} 0 \\ 1 \end{bmatrix}\), \(v_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}\), \(v_2 = \begin{bmatrix} 0 \\ 1 \\ 0 \end{bmatrix}\), \(v_3 = \begin{bmatrix} 0 \\ 0 \\ 1 \end{bmatrix}\). * \(T(u_1) = T\left(\begin{bmatrix} 1 \\ 1 \end{bmatrix}\right) = \begin{bmatrix} 1+1 \\ 3 -1 \\ 7 +2 \end{bmatrix} = \begin{bmatrix} 2 \\ 2 \\ 9 \end{bmatrix}\). * \(T(u_2) = T\left(\begin{bmatrix} 0 \\ 1 \end{bmatrix}\right) = \begin{bmatrix} 0+1 \\ 3 -1 \\ 7 +2 \end{bmatrix} = \begin{bmatrix} 1 \\ -1 \\ 2 \end{bmatrix}\) [1](#page=1). * Expressing \(T(u_1)\) and \(T(u_2)\) as linear combinations of \(v_1, v_2, v_3\): * \(T(u_1) = 2v_1 + 2v_2 + 9v_3\) * \(T(u_2) = 1v_1 - 1v_2 + 2v_3\) * The coordinate vectors are \([T(u_1)]_{B'} = \begin{bmatrix} 2 \\ 2 \\ 9 \end{bmatrix}\) and \([T(u_2)]_{B'} = \begin{bmatrix} 1 \\ -1 \\ 2 \end{bmatrix}\). * The matrix for \(T\) is \([T]_{B', B} = \begin{bmatrix} 2 & 1 \\ 2 & -1 \\ 9 & 2 \end{bmatrix}\) [505](#page=505). ## 37.5 Matrices of linear operators When the domain and codomain of a linear transformation are the same vector space (\(T: V \to V\)), it is called a linear operator. In this case, it is common to use the same basis \(B\) for both the domain and the codomain. The resulting matrix is then called the matrix for \(T\) relative to the basis \(B\), denoted as \([T]_B\). This matrix satisfies \([T]_B[x]_B = [T(x)]_B\) [506](#page=506). ## 37.6 Matrices of identity operators EXAMPLE 4 If \(B = \{u_1, u_2, \dots, u_n\}\) is a basis for an n-dimensional vector space \(V\), and \(I: V \to V\) is the identity operator, then the matrix for \(I\) relative to \(B\) is the \(n \times n\) identity matrix. * \(I(u_i) = u_i\) for each basis vector \(u_i\). * The coordinate vector \([I(u_i)]_B\) is the standard basis vector \(e_i\) in \(\mathbb{R}^n\). * Thus, \([I]_B = \begin{bmatrix} [I(u_1)]_B & [I(u_2)]_B & \cdots & [I(u_n)]_B \end{bmatrix} = \begin{bmatrix} e_1 & e_2 & \cdots & e_n \end{bmatrix} = I_n\) [506](#page=506). ## 37.7 Linear operator on P2 EXAMPLE 5 Let \(T: P_2 \to P_2\) be the linear operator defined by \(T(p(x)) = p(3x - 5)\). * **Part (a)**: Find \([T]_B\) relative to the basis \(B = \{1, x, x^2\}\). * \(T = 1\). * \(T(x) = 3x - 5\) * \(T(x^2) = (3x - 5)^2 = 9x^2 - 30x + 25\) * The coordinate vectors relative to \(B\) are: * \([T ]_B = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}\). * \([T(x)]_B = \begin{bmatrix} -5 \\ 3 \\ 0 \end{bmatrix}\) * \([T(x^2)]_B = \begin{bmatrix} 25 \\ -30 \\ 9 \end{bmatrix}\) * Thus, \([T]_B = \begin{bmatrix} 1 & -5 & 25 \\ 0 & 3 & -30 \\ 0 & 0 & 9 \end{bmatrix}\). * **Part (b)**: Use the indirect procedure to compute \(T(1 + 2x + 3x^2)\). * **Step 1**: \([1 + 2x + 3x^2]_B = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}\). * **Step 2**: \([T]_B [1 + 2x + 3x^2]_B = \begin{bmatrix} 1 & -5 & 25 \\ 0 & 3 & -30 \\ 0 & 0 & 9 \end{bmatrix} \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix} = \begin{bmatrix} 1 - 10 + 75 \\ 0 + 6 - 90 \\ 0 + 0 + 27 \end{bmatrix} = \begin{bmatrix} 66 \\ -84 \\ 27 \end{bmatrix}\). * **Step 3**: \(66 - 84(x) + 27(x^2) = 66 - 84x + 27x^2\) [1](#page=1). * **Part (c)**: Check directly. * \(T(1 + 2x + 3x^2) = 1 + 2(3x - 5) + 3(3x - 5)^2 = 1 + 6x - 10 + 3(9x^2 - 30x + 25) = 1 + 6x - 10 + 27x^2 - 90x + 75 = 66 - 84x + 27x^2\) [507](#page=507). > 📝 For the operator \(T(p(x)) = p(3x - 5)\) on \(P_2\) with basis \(B = \{1, x, x^2\}\), the matrix is \([T]_B = \begin{bmatrix} 1 & -5 & 25 \\ 0 & 3 & -30 \\ 0 & 0 & 9 \end{bmatrix}\). Applying this to \([1 + 2x + 3x^2]_B = \begin{bmatrix} 1 \\ 2 \\ 3 \end{bmatrix}\) yields \([T(1 + 2x + 3x^2)]_B = \begin{bmatrix} 66 \\ -84 \\ 27 \end{bmatrix}\) [507](#page=507). ## 37.8 Matrices of compositions and inverse transformations The matrix representation of a composition of linear transformations is the product of their respective matrices. If \(T_1: U \to V\) and \(T_2: V \to W\) are linear transformations, and \(B, B'', B'\) are bases for \(U, V, W\) respectively, then the matrix for the composition \(T_2 \circ T_1\) is given by \([T_2 \circ T_1]_{B', B} = [T_2]_{B', B''} [T_1]_{B'', B}\). This property extends to compositions of multiple transformations [507](#page=507) [508](#page=508). ## 37.9 Theorem 8.4.1 If \(T_1: U \to V\) and \(T_2: V \to W\) are linear transformations, and if \(B, B'', B'\) are bases for \(U, V, W\), respectively, then \([T_2 \circ T_1]_{B', B} = [T_2]_{B', B''} [T_1]_{B'', B}\) [507](#page=507). ## 37.10 Composition EXAMPLE 6 Let \(T_1: P_1 \to P_2\) be \(T_1(p(x)) = xp(x)\) and \(T_2: P_2 \to P_2\) be \(T_2(p(x)) = p(3x - 5)\). Find the matrix for the composition \((T_2 \circ T_1): P_1 \to P_2\) with respect to bases \(B = \{1, x\}\) for \(P_1\) and \(B' = \{1, x, x^2\}\) for \(P_2\). * From Example 1, \([T_1]_{B', B} = \begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix}\). * From Example 5, \([T_2]_{B'} = \begin{bmatrix} 1 & -5 & 25 \\ 0 & 3 & -30 \\ 0 & 0 & 9 \end{bmatrix}\). * Using Theorem 8.4.1 (with \(B'' = B'\) since \(T_2\) is an operator), \([T_2 \circ T_1]_{B', B} = [T_2]_{B'} [T_1]_{B', B}\) [508](#page=508). * \([T_2 \circ T_1]_{B', B} = \begin{bmatrix} 1 & -5 & 25 \\ 0 & 3 & -30 \\ 0 & 0 & 9 \end{bmatrix} \begin{bmatrix} 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} -5 & 25 \\ 3 & -30 \\ 0 & 9 \end{bmatrix}\). * **Check**: \((T_2 \circ T_1)(p(x)) = T_2(xp(x)) = (3x - 5)p(3x - 5)\). * \((T_2 \circ T_1) = (3x - 5) = 3x - 5\). \([3x - 5]_{B'} = \begin{bmatrix} -5 \\ 3 \\ 0 \end{bmatrix}\) [1](#page=1). * \((T_2 \circ T_1)(x) = (3x - 5)(3x - 5) = 9x^2 - 30x + 25\). \([9x^2 - 30x + 25]_{B'} = \begin{bmatrix} 25 \\ -30 \\ 9 \end{bmatrix}\). * The matrix formed by these column vectors is \(\begin{bmatrix} -5 & 25 \\ 3 & -30 \\ 0 & 9 \end{bmatrix}\), matching the result [509](#page=509). ## 37.11 Theorem 8.4.2 If \(T: V \to V\) is a linear operator on a finite-dimensional vector space \(V\), and \(B\) is a basis for \(V\), then the following are equivalent: (a) \(T\) is one-to-one. (b) \([T]_B\) is invertible. When these conditions hold, \([T^{-1}]_B = ([T]_B)^{-1}\) [508](#page=508). # 38. effect of Changing Bases on Matrices of Linear Operators ## 38.1 Theorem 8.5.2: Similarity and Linear Operators Theorem 8.5.2 establishes a fundamental link between matrix similarity and the representation of linear operators. It states that two matrices represent the same linear operator if and only if they are similar. This means that if a linear operator can be represented by matrix A with respect to one basis and by matrix B with respect to another basis, then A and B must be similar matrices. The transition matrix P between these bases satisfies the relationship B = P⁻¹AP [514](#page=514). ## 38.2 Theorem 8.5.3: Similar Matrices Represent the Same Linear Operator Theorem 8.5.3 confirms the converse of Theorem 8.5.2, stating that if two matrices are similar, they represent the same linear operator, possibly with respect to different bases. This theorem is crucial for understanding that the underlying linear transformation is invariant, even though its matrix representation changes with the choice of basis [514](#page=514). > 📝 The matrices $C = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}$ and $D = \begin{bmatrix} -1/2 & 1/2 \\ 3/2 & 1/2 \end{bmatrix}$ represent the same linear operator T : R² → R². They are similar because $D = P^{-1}CP$ where $P = \begin{bmatrix} 1 & 1 \\ 2 & 1 \end{bmatrix}$ [514](#page=514). ## 38.3 Similarity Invariants A property of a square matrix is considered a **similarity invariant** if it is preserved when the matrix is transformed into a similar matrix. This means that all matrices representing the same linear operator with respect to different bases will share these invariant properties [515](#page=515). ## 38.4 Similarity Invariants of Linear Operators [515](#page=515) | Property | Similarity Invariant | | --- | --- | | Determinant | [T]B and P-1[T]BP have the same determinant. | | Invertibility | [T]B is invertible if and only if P-1[T]BP is invertible. | | Rank | [T]B and P-1[T]BP have the same rank. | | Nullity | [T]B and P-1[T]BP have the same nullity. | | Trace | [T]B and P-1[T]BP have the same trace. | | Characteristic polynomial | [T]B and P-1[T]BP have the same characteristic polynomial. | | Eigenvalues | [T]B and P-1[T]BP have the same eigenvalues. | | Eigenspace dimension | If λ is an eigenvalue of [T]B and P-1[T]BP, then the eigenspace of [T]B corresponding to λ and the eigenspace of P-1[T]BP corresponding to λ have the same dimension. | ## 38.5 Determinant of a Linear Operator The determinant of a linear operator T, denoted as det(T), is defined as the determinant of its matrix representation with respect to any basis. Since the determinant is a similarity invariant, its value is independent of the chosen basis. This allows us to associate a unique determinant value with the linear operator itself [515](#page=515). > 📝 For the linear operator $T(a + bx + cx^2) = -2c + (a + 2b + c)x + (a + 3c)x^2$, the eigenvalues are $\lambda = 1$ and $\lambda = 2$ [516](#page=516). ## 38.6 Eigenvalues of a Linear Operator Similar to the determinant, eigenvalues are also similarity invariants. This means that the eigenvalues of a linear operator T are the same regardless of the basis used to represent T. To find the eigenvalues of T, one can choose any convenient basis, find the matrix representation of T with respect to that basis, and then compute the eigenvalues of that matrix [516](#page=516). ## 38.7 Exercises The exercises in this section focus on applying the concepts of matrix similarity and linear operators. They involve: - Verifying that matrices are not similar using properties from Table 1. - Finding the matrix representation of a linear operator relative to a new basis, given its representation in another basis and the transition matrix. - Computing the matrix for a linear operator relative to a specified basis, and then using similarity transformations to find its matrix relative to another basis. - Finding eigenvalues and bases for eigenspaces of linear operators on various vector spaces. [516](#page=516). - Exploring the reasons for using different bases and proving that certain properties are similarity invariants [517](#page=517). # 39. Geometry of Matrix Operators Computerized Transformations ## 39.1 Images of lines under matrix operators The effect of a matrix operator on $\mathbb{R}^2$ can be understood by examining how it transforms the unit square and its constituent lines. For invertible operators, lines are mapped to lines, and parallel lines remain parallel. This property extends to line segments, meaning the image of a segment is the segment connecting the images of its endpoints [519](#page=519). - The image of a straight line is a straight line. - The image of a line through the origin is a line through the origin. - The images of parallel lines are parallel lines. - The image of a line segment joining points P and Q is the line segment joining the images of P and Q. - The images of three points lie on a line if and only if the points themselves lie on a line [519](#page=519). The image of a line under multiplication by an invertible matrix can be found by substituting the expressions for $x$ and $y$ in terms of the transformed coordinates ($x'$ and $y'$) into the line's equation [520](#page=520). ## 39.2 Transformations of the unit square [521](#page=521) [522](#page=522) [523](#page=523) The unit square serves as a visual tool to understand the geometric effects of various matrix operators on $\mathbb{R}^2$. Different types of transformations, such as reflections, rotations, expansions, compressions, and shears, distort the unit square in characteristic ways, producing parallelograms, rectangles, or other shapes. Transformations like reflections, rotations, and orthogonal projections have distinct effects on the unit square. Reflections about axes or the line $y=x$ mirror the square. Rotations rotate the square around the origin. Orthogonal projections flatten the square onto an axis [521](#page=521). Expansions and compressions, also known as dilations and contractions, scale the unit square along the coordinate axes. An expansion increases the dimensions, while a compression decreases them. These transformations result in rectangular shapes if the scaling factors differ [522](#page=522). Shears shift points parallel to a coordinate axis by an amount proportional to the coordinate on the other axis. This operation distorts the unit square into a parallelogram, with the direction and magnitude of the shear determining the shape of the parallelogram [page=523 [522](#page=522) [523](#page=523). | Operator | Standard Matrix | Effect on the Unit Square | | --- | --- | --- | | Reflection about the x-axis | [,] | y; (1, 1)\ny; (1, -1) | | Reflection about the y-axis | [,] | y; (1, 1)\ny; (-1, 1) | | Reflection about the line y = x | [,] | y; (1, 1)\ny; (1, 1) | | Orthogonal projection onto the x-axis | [,] | y; (1, 1)\ny; (1, 0) | | Orthogonal projection onto the y-axis | [, [1](#page=1)] | y; (1, 1)\ny; (0, 1) | | Rotation about the origin through a positive angle θ | [[cos θ, -sin θ, [sin θ, cos θ]] | (cos θ – sin θ, sin θ + cos θ)\ny; θ\ny; (1, 1) | | Operator | Standard Matrix | Effect on the Unit Square | | --- | --- | --- | | Expansion in the x-direction with factor k (k > 1) | [[k, 0,] | (k, 1)\ny; (1, 1) | | Expansion in the y-direction with factor k (k > 1) | [, [0, k]] | (1, k)\ny; (1, 1) | | Compression in the x-direction with factor k (0 < k < 1) | [[k, 0,] | (k, 1)\ny; (1, 1) | | Compression in the y-direction with factor k (0 < k < 1) | [ [1](#page=1), [0, k]] | (1, k)\ny; (1, 1) | | Operator | Standard Matrix | Effect on the Unit Square | | --- | --- | --- | | Shear in the positive x-direction by a factor k (k > 0) | [[1, k,] | (1 + k, 1); (k, 1)\ny; (1, 1) | | Shear in the negative x-direction by a factor k (k < 0) | [[1, k,] | (k + 1, 1); (k, 1)\ny; (1, 1) | | Shear in the positive y-direction by a factor k (k > 0) | [, [k, 1]] | (1, 1 + k); (1, k)\ny; (1, 1) | | Shear in the negative y-direction by a factor k (k < 0) | [ [1](#page=1), [k, 1]] | (1, 1 + k); (1, k)\ny; (1, 1) | > 📝 The matrix $\begin{bmatrix} 1 & 0 \\ 1 & 1 \end{bmatrix}$ transforms the unit square into a parallelogram with vertices (0, 0), (0, 2), (1, 1), and (1, 3) [520](#page=520). ## 39.3 Dilations and contractions Dilation and contraction operators, also known as expansions and compressions, scale vectors by a factor $k$. If $k > 1$, it's a dilation (expansion); if $0 \le k < 1$, it's a contraction (compression). These transformations result in uniform scaling when applied to the unit square, producing squares or rectangles whose dimensions are scaled by $k$ [524](#page=524). | Operator | Standard Matrix | Effect on the Unit Square | | --- | --- | --- | | Contraction with factor k in R2 (0 ≤ k < 1) | [[k, 0, [0, k]] | (0, k); (k, 0); (0, 1); (1, 0) | | Dilation with factor k in R2 (k > 1) | [[k, 0, [0, k]] | (0, k); (k, 0); (0, 1); (1, 0) | > 📝 A contraction with factor $k$ in $\mathbb{R}^2$ where $0 \le k < 1$ transforms the unit square into a smaller square with vertices (0, 0), (0, k), (k, 0), and (k, k) [524](#page=524). ## 39.4 Transformations with diagonal matrices Multiplication by a diagonal matrix with positive entries $k_1$ and $k_2$ on the diagonal results in a transformation that expands or compresses the unit square by a factor of $k_1$ in the x-direction and by a factor of $k_2$ in the y-direction. If $k_1 = k_2$, this is a uniform scaling. If the diagonal entries are negative, the transformation also includes a reflection about the origin [525](#page=525). ## 39.5 Decomposing invertible matrix transformations Any invertible matrix transformation in $\mathbb{R}^2$ can be expressed as a sequence of simpler transformations: shears, compressions, expansions, and reflections. This is because elementary matrices, which represent these basic transformations, can be used to construct any invertible matrix through multiplication [page=527 [526](#page=526) [527](#page=527). Theorem 8.6.2 states that an elementary matrix corresponds to one of these basic transformations: a shear, a reflection about $y=x$, a compression/expansion along a coordinate axis, or a combination of compression/expansion with reflection about a coordinate axis [526](#page=526). Theorem 8.6.3 further establishes that any invertible matrix transformation $T_A$ on $\mathbb{R}^2$ is geometrically equivalent to an appropriate succession of shears, compressions, expansions, and reflections [527](#page=527). ## 39.6 Rotations in R3 Rotations in $\mathbb{R}^3$ are defined by an axis of rotation (a line through the origin) and an angle. The right-hand rule determines the sign of the angle. Standard matrices exist for rotations about the coordinate axes, and a general formula describes rotations about an arbitrary axis [page=529 [528](#page=528) [529](#page=529). | Operator | Illustration | Rotation Equations | Standard Matrix | | --- | --- | --- | --- | | Counterclockwise rotation about the positive x-axis through an angle θ | z\ny\nw; θ | w1 = x\nw2 = y cos θ - z sin θ\nw3 = y sin θ + z cos θ | [, [0, cos θ, -sin θ, [0, sin θ, cos θ]] | | Counterclockwise rotation about the positive y-axis through an angle θ | z\ny\nw; θ | w1 = x cos θ + z sin θ\nw2 = y\nw3 = -x sin θ + z cos θ | [[cos θ, 0, sin θ,, [-sin θ, 0, cos θ]] | | Counterclockwise rotation about the positive z-axis through an angle θ | z\ny\nw; θ | w1 = x cos θ - y sin θ\nw2 = x sin θ + y cos θ\nw3 = z | [[cos θ, -sin θ, 0, [sin θ, cos θ, 0, [1](#page=1)] | ## 39.7 Linear transformations in image processing and computer graphics Linear transformations are fundamental to image processing and computer graphics, enabling efficient manipulation and enhancement of visual data. They are used for operations like filtering, enhancement, compression, and rendering [532](#page=532). - **Image filtering**: Convolution, a linear transformation, applies filters to accentuate features or reduce noise in images. - **Edge detection**: These algorithms use linear transformations to highlight boundaries, aiding object recognition. - **Frequency domain conversion**: The Fourier transform, a linear operation, converts images to frequency domains for compression and transmission. - **3D model manipulation**: Scaling, rotation, and translation are linear transformations applied to objects in virtual environments for realistic animation. - **Texture mapping and shading**: Linear transformations project textures onto 3D surfaces and calculate light interactions for lifelike visual effects [532](#page=532). ## 39.8 Isomorphism in cryptography and network theory Isomorphism, a concept from linear algebra, provides structural equivalence between vector spaces, crucial for modern cryptography and network theory. It facilitates data manipulation while preserving inherent properties, enhancing data security and network analysis [532](#page=532). - **Cryptography**: Isomorphisms between vector spaces and finite fields are used to construct error-correcting codes and secure cryptographic protocols. - **Data integrity and confidentiality**: Isomorphisms allow complex data structures to be mapped into simpler, equivalent forms, creating algorithms resistant to attacks. - **Network analysis**: Identifying isomorphic substructures simplifies the study of network properties and dynamics in social, biological, and communication networks. - **Network modeling**: Isomorphisms enable abstraction and generalization of network structures, allowing efficient exploration of network behaviors [532](#page=532). ## 39.9 Supplementary exercises This section presents a series of exercises designed to test understanding of linear transformations, operators, and related concepts [532](#page=532) [533](#page=533). - **Exercise 1**: Determines if the transformation $T(x) = Ax + B$ is a linear operator on $R^n$, requiring justification. - **Exercise 2**: Involves a rotation matrix $A$ and asks to show its form for $A^n$, guess its form for any positive integer $n$, and derive the result geometrically [532](#page=532). - **Exercise 3**: Requires devising a method to find two non-similar $n \times n$ matrices and applying it to find two non-similar $3 \times 3$ matrices. - **Exercise 4**: Defines a transformation $T(x) = (x \cdot v_1, x \cdot v_2, \dots, x \cdot v_m)$ and asks to show it's linear and that the matrix with row vectors $v_i$ is its standard matrix. - **Exercise 5**: Deals with a linear transformation $T: R^4 \to R^3$ defined by its action on basis vectors and asks for bases of the range and kernel, and the rank and nullity. - **Exercise 6**: Defines a transformation $T: R^3 \to R^3$ using matrix multiplication and asks for bases for the kernel and range. - **Exercise 7**: Involves a linear operator $T: V \to V$ defined by its action on a basis $B = \{v_1, v_2, v_3, v_4\}$ and asks for the rank, nullity, and whether $T$ is one-to-one. - **Exercise 8**: Defines operations for the sum of linear transformations ($T_1 + T_2$) and scalar multiplication ($kT$) and asks to show these result in linear transformations and form a vector space. - **Exercise 9**: Asks to prove that if $A$ and $B$ are similar matrices, then $A^T$ and $B^T$ are similar, and if $A$ and $B$ are invertible, then $A^{-1}$ and $B^{-1}$ are similar. - **Exercise 10**: States the Fredholm Alternative Theorem, requiring proof that for a linear operator $T: V \to V$, either $T(x) = b$ has a solution for all $b$, or the nullity of $T$ is greater than 0. - **Exercise 11**: Defines a linear operator $T: M_{22} \to M_{22}$ and asks for its rank and nullity. - **Exercise 12**: Asks to prove that if matrices $A$ and $B$ are similar, and $B$ and $C$ are similar, then $A$ and $C$ are similar. - **Exercise 13**: Defines a linear operator $L(M) = M^T$ on $M_{22}$ and asks for its matrix with respect to the standard basis. - **Exercise 14**: Involves two bases $B$ and $B'$ for a vector space $V$ and a transition matrix $P$ from $B'$ to $B$, asking to express vectors of one basis in terms of the other. - **Exercise 15**: Defines a linear operator $T: V \to V$ with respect to basis $B$ and asks to find its matrix representation with respect to a different basis $B'$. - **Exercise 16**: Asks to show that two given matrices are similar, but two other given matrices are not. - **Exercise 17**: Provides the matrix of a linear operator $T: V \to V$ with respect to basis $B$ and asks to find its matrix with respect to basis $B$. - **Exercise 18**: Asks to prove that a linear operator $T: V \to V$ is one-to-one if and only if its determinant is non-zero. - **Exercise 19**: Involves the second derivative operator $D(f) = f''(x)$ on twice-differentiable functions, asking to show it's linear, find a basis for its kernel, and show that functions satisfying $f''(x) = f(x)$ form a two-dimensional subspace [533](#page=533). ## 39.10 Exercise 20: Linear transformation from P2 to R3 This exercise involves a function T defined from the space of polynomials of degree at most 2 (P2) to the space of 3-dimensional vectors (R3). The function is given by a specific formula. * **Part a:** Find the image of the polynomial $x^2 + 5x + 6$ under the transformation T. * **Part b:** Demonstrate that T is a linear transformation. This requires showing that T preserves vector addition and scalar multiplication. * **Part c:** Prove that T is a one-to-one transformation. This means showing that if $T(p_1) = T(p_2)$, then $p_1 = p_2$. * **Part d:** Determine the polynomial in P2 that maps to the zero vector $(0, 5, 0)$ under T. This involves finding $T^{-1}(0, 5, 0)$. * **Part e:** Sketch the graph of the polynomial found in part (d). ## 39.11 Exercise 21: Linear transformation with distinct real numbers This exercise defines a function T from P2 to R3 using three distinct real numbers $x_1, x_2, x_3$ such that $x_1 < x_2 < x_3$. The transformation maps a polynomial $p(x)$ to a vector whose components depend on the values of the polynomial at these distinct real numbers. * **Part a:** Show that T is a linear transformation. * **Part b:** Prove that T is a one-to-one transformation. * **Part c:** Verify that for any real numbers $a_1, a_2, a_3$, the transformation of a linear combination of polynomials is equal to the linear combination of their transformed vectors. * **Part d:** Describe the relationship between the graph of the function $a_1P_1(x) + a_2P_2(x) + a_3P_3(x)$ and the points $(x_1, a_1), (x_2, a_2), (x_3, a_3)$. > 📝 For distinct real numbers $x_1, x_2, x_3$, the transformation $T(p(x)) = \begin{bmatrix} p(x_1) \\ p(x_2) \\ p(x_3) \end{bmatrix}$ maps a polynomial $p(x)$ to a vector whose components are the polynomial's values at $x_1, x_2, x_3$. [534](#page=534) ## 39.12 Exercise 22: Linear differential operator This exercise defines a linear operator L on the space of twice-differentiable functions. The operator is defined by a second-order linear differential equation. * **Part a:** Show that L is a linear transformation. * **Part b:** Consider the specific case where $p(x) = 0$ and $q(x) = 1$. Show that the function $f(x) = c_1 \sin x + c_2 \cos x$ is in the kernel of L for all real values of $c_1$ and $c_2$. ## 39.13 Exercise 23: Matrix for the differentiation operator [534](#page=534) This exercise asks for the matrix representation of the differentiation operator D, which maps a polynomial $p(x)$ of degree n to its derivative $p'(x)$, with respect to the standard basis for $P_n$. * Show that the matrix for the differentiation operator D relative to the basis $B = \{1, x, x^2, \dots, x^n\}$ is given by a specific matrix. | — | 1 | x | $x^2$ | ... | $x^n$ | | --- | --- | --- | --- | --- | --- | | 1 | 0 | 0 | 0 | ... | 0 | | x | 1 | 0 | 0 | ... | 0 | | $x^2$ | 0 | 2 | 0 | ... | 0 | | ... | ... | ... | ... | ... | ... | | $x^n$ | 0 | 0 | $n x^{n-1}$ | ... | 0 | > 📝 The matrix for the differentiation operator $D(p) = p'$ relative to the basis $\{1, x, x^2\}$ for $P_2$ is $\begin{bmatrix} 0 & 1 & 0 \\ 0 & 0 & 2 \\ 0 & 0 & 0 \end{bmatrix}$. [534](#page=534) ## 39.14 Exercise 24: Matrix for differentiation with a different basis This exercise involves finding the matrix for the differentiation operator D with respect to a different basis for $P_n$. This basis consists of vectors of the form $1, c, \frac{c^2}{2!}, \dots, \frac{c^n}{n!}$ for any real number c. * Find the matrix for the differentiation operator of Exercise 23 with respect to this alternative basis. ## 39.15 Exercise 25: Matrix for the integration transformation [534](#page=534) This exercise defines an integration transformation J from $P_n$ to $P_{n+1}$. The transformation integrates a polynomial $p(x) = a_0 + a_1x + \dots + a_nx^n$ with respect to $t$ from 0 to $x$. * Find the matrix for J with respect to the standard bases for $P_n$ and $P_{n+1}$. | — | a_0 | a_1 | a_2 | ... | a_n | | --- | --- | --- | --- | --- | --- | | 1 | a_0 x | $a_1 \frac{x^2}{2}$ | $a_2 \frac{x^3}{3}$ | ... | $a_n \frac{x^{n+1}}{n+1}$ | | x | 0 | 0 | 0 | ... | 0 | | $x^2$ | 0 | 0 | 0 | ... | 0 | | ... | ... | ... | ... | ... | ... | | $x^{n+1}$ | 0 | 0 | 0 | ... | 0 | ## 39.16 Exercise 26: Matrix transformation for translation in R3 This exercise illustrates how a matrix transformation in R3 can be used to translate a point $(x, y)$ in R2 to a new point $(x + x_0, y + y_0)$. * **Part a:** Find a 3x3 matrix M such that when multiplied by a vector $v = \begin{bmatrix} x \\ y \\ 1 \end{bmatrix}$, it produces a vector $w = \begin{bmatrix} x + x_0 \\ y + y_0 \\ 1 \end{bmatrix}$. The first two entries of $w$ represent the translated coordinates. | — | x | y | 1 | | --- | --- | --- | --- | | x + x_0 | 1 | 0 | x_0 | | y + y_0 | 0 | 1 | y_0 | | 1 | 0 | 0 | 1 | * **Part b:** Use the result from part (a) to find a specific 3x3 matrix M that translates the point (1, 2) to the point (2, 5) [534](#page=534). # 40. LU-Decompositions Solving Linear Systems by Factoring ## 40.1 Introduction to LU-Decomposition LU-decomposition is a method for solving linear systems, particularly large-scale ones where computer efficiency is crucial. It involves factoring the coefficient matrix $A$ into a product of a lower triangular matrix ($L$) and an upper triangular matrix ($U$), denoted as $A = LU$. This factorization replaces the original system $Ax = b$ with two simpler systems: $Ux = y$ and $Ly = b$, which are solved sequentially. This approach is computationally efficient, especially when solving multiple systems with the same coefficient matrix $A$ but different right-hand side vectors $b$ [535](#page=535) [536](#page=536). ## 40.2 The Method of LU-Decomposition The process of solving a linear system $Ax = b$ using an LU-decomposition $A = LU$ involves three main steps: 1. Rewrite the system as $LUx = b$. 2. Introduce an intermediate vector $y$ such that $Ux = y$. The system then becomes $Ly = b$, which is solved for $y$ using forward substitution. 3. Substitute the computed vector $y$ into $Ux = y$ and solve for $x$ using back substitution [536](#page=536). > 📝 To solve the linear system $Ax = b$ where $b = \begin{bmatrix} 2 \\ 2 \end{bmatrix}$ and $A = \begin{bmatrix} 2 & 1 \\ -3 & 7 \end{bmatrix} = \begin{bmatrix} 2 & 0 \\ -3 & 1 \end{bmatrix} \begin{bmatrix} 1 & 1/2 \\ 0 & 7 \end{bmatrix} = LU$, we first solve $Ly = b$ for $y$ using forward substitution, yielding $y_1 = 1, y_2 = 5$. Then we solve $Ux = y$ for $x$ using back substitution, yielding $x_1 = 1/2, x_2 = 5/7$ [537](#page=537). ## 40.3 Solving Ax = b by LU-Decomposition EXAMPLE 1 Given the LU-decomposition of a matrix $A$ as: $$ A = \begin{bmatrix} 2 & 1 \\ -3 & 7 \end{bmatrix} = \begin{bmatrix} 2 & 0 \\ -3 & 1 \end{bmatrix} \begin{bmatrix} 1 & 1/2 \\ 0 & 7 \end{bmatrix} = LU $$ To solve the linear system $Ax = b$ where $b = \begin{bmatrix} 2 \\ 2 \end{bmatrix}$, we first rewrite the system as $LUx = b$. We then define $y = Ux$, which transforms the system into $Ly = b$: $$ \begin{bmatrix} 2 & 0 \\ -3 & 1 \end{bmatrix} \begin{bmatrix} y_1 \\ y_2 \end{bmatrix} = \begin{bmatrix} 2 \\ 2 \end{bmatrix} $$ Solving this system using forward substitution yields $y_1 = 1$ and $y_2 = 5$. Next, we substitute these values into $Ux = y$: $$ \begin{bmatrix} 1 & 1/2 \\ 0 & 7 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 1 \\ 5 \end{bmatrix} $$ Solving this system using back substitution yields $x_1 = 1/2$ and $x_2 = 5/7$ [537](#page=537). ## 40.4 Finding LU-Decompositions An LU-decomposition exists for a square matrix $A$ if it can be reduced to row echelon form ($U$) using Gaussian elimination without row interchanges. The matrix $L$ is constructed from the inverses of the elementary matrices used in the reduction [539](#page=539). > 📝 For the matrix $A = \begin{bmatrix} 1 & 3 & 1 \\ 0 & 1 & 3 \\ 4 & -9 & 2 \end{bmatrix}$, the LU-decomposition is $A = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 4 & -3 & 1 \end{bmatrix} \begin{bmatrix} 1 & 3 & 1 \\ 0 & 1 & 3 \\ 0 & 0 & 7 \end{bmatrix} = LU$ [539](#page=539) [540](#page=540). ## 40.5 Theorem 9.1.1 If a square matrix $A$ can be reduced to a row echelon form $U$ by Gaussian elimination without row interchanges, then $A$ can be factored as $A = LU$, where $L$ is a lower triangular matrix [539](#page=539). ## 40.6 An LU-Decomposition EXAMPLE 2 To find an LU-decomposition for the matrix: $$ A = \begin{bmatrix} 1 & 3 & 1 \\ 0 & 1 & 3 \\ 4 & -9 & 2 \end{bmatrix} $$ We perform Gaussian elimination to obtain an upper triangular matrix $U$, while simultaneously constructing the lower triangular matrix $L$. The process involves tracking the row operations and their corresponding elementary matrices. The row operations are: 1. $(-4 \times \text{row } 1) + \text{row } 3$ 2. $(3 \times \text{row } 2) + \text{row } 3$ The resulting LU-decomposition is: $$ A = \begin{bmatrix} 1 & 3 & 1 \\ 0 & 1 & 3 \\ 4 & -9 & 2 \end{bmatrix} = \begin{bmatrix} 1 & 0 & 0 \\ 0 & 1 & 0 \\ 4 & -3 & 1 \end{bmatrix} \begin{bmatrix} 1 & 3 & 1 \\ 0 & 1 & 3 \\ 0 & 0 & 7 \end{bmatrix} = LU $$ [539](#page=539) [540](#page=540). ## 40.7 Bookkeeping for LU-Decomposition A more efficient method for constructing an LU-decomposition avoids explicitly calculating the inverses of elementary matrices. This "bookkeeping" method involves reducing $A$ to row echelon form $U$ and directly constructing $L$. * The diagonal entries of $L$ are the reciprocals of the multipliers used to create the leading 1s in $U$. * The entries below the main diagonal of $L$ are the negatives of the multipliers used to create zeros below the leading 1s in $U$ [541](#page=541). ## 40.8 Constructing an LU-Decomposition EXAMPLE 3 To find an LU-decomposition for the matrix: $$ A = \begin{bmatrix} 9 & -1 & 8 \\ -2 & 8 & -1 \\ 7 & -1 & 9 \end{bmatrix} $$ We apply Gaussian elimination without row interchanges, keeping track of multipliers. 1. Operation: $(-2/9 \times \text{row } 1) + \text{row } 2$. Multiplier for $L_{21}$ is $-2/9$. 2. Operation: $(7/9 \times \text{row } 1) + \text{row } 3$. Multiplier for $L_{31}$ is $7/9$. 3. Operation: $(72/11 \times \text{row } 2) + \text{row } 3$. Multiplier for $L_{32}$ is $72/11$. The resulting LU-decomposition is: $$ A = \begin{bmatrix} 9 & -1 & 8 \\ -2 & 8 & -1 \\ 7 & -1 & 9 \end{bmatrix} = \begin{bmatrix} 9 & 0 & 0 \\ -2 & 72/11 & 0 \\ 7 & -8 & 1 \end{bmatrix} \begin{bmatrix} 1 & -1/9 & 8/9 \\ 0 & 1 & -9/11 \\ 0 & 0 & 1 \end{bmatrix} = LU $$ [541](#page=541) [542](#page=542). > 📝 For the matrix $A = \begin{bmatrix} 9 & -1 & 8 \\ -2 & 8 & -1 \\ 7 & -1 & 9 \end{bmatrix}$, the LU-decomposition is $A = \begin{bmatrix} 9 & 0 & 0 \\ -2 & 72/11 & 0 \\ 7 & -8 & 1 \end{bmatrix} \begin{bmatrix} 1 & -1/9 & 8/9 \\ 0 & 1 & -9/11 \\ 0 & 0 & 1 \end{bmatrix} = LU$ [541](#page=541) [542](#page=542). ## 40.9 LU-Decompositions are Not Unique LU-decompositions are not always unique. If $A = LU$ is an LU-decomposition with nonzero diagonal entries in $L$, it can be rewritten as $A = L'U'$ by shifting diagonal entries from $L$ to $U$ [542](#page=542). ## 40.10 LDU-Decompositions An LDU-decomposition factors a matrix $A$ into $A = LDU$, where $L$ is a lower triangular matrix with 1s on the main diagonal, $D$ is a diagonal matrix, and $U$ is an upper triangular matrix with 1s on the main diagonal. This decomposition is unique if $A$ is invertible and can be reduced to row echelon form without row interchanges [543](#page=543). ## 40.11 PLU-Decompositions When row interchanges are necessary during Gaussian elimination, an LU-decomposition may not exist. To handle this, a PLU-decomposition is used, where $A = PLU$. Here, $P$ is a permutation matrix that accounts for the row interchanges. The system $Ax = b$ is transformed into $PAx = Pb$, which becomes $LUx = Pb$. This system can then be solved using LU-decomposition [543](#page=543). | Matrix Type | Diagonal Entries | Factorization | | --- | --- | --- | | LU-decomposition | L may not have 1s on diagonal | A = LU | | LDU-decomposition | L and U have 1s on diagonal | A = LDU | | PLU-decomposition | P is permutation matrix | A = PLU | # 41. The Power Method The Power Method ## 41.1 Dominant eigenvalues A dominant eigenvalue of a matrix is the eigenvalue with the largest absolute value. If multiple eigenvalues share the largest absolute value, then no single dominant eigenvalue exists. A corresponding eigenvector is called a dominant eigenvector [546](#page=546). | Eigenvalues | Dominant Eigenvalue | | --- | --- | | l1 = -4, l2 = -2, l3 = 1, l4 = 3 | l1 = -4 ( | l1 | = 4) | | l1 = 7, l2 = -7, l3 = -2, l4 = 5 | None ( | l1 | = | l2 | = 7) | ## 41.2 Theorem 9.2.1: Power method with Euclidean scaling For a symmetric $n \times n$ matrix $A$ with a positive dominant eigenvalue $l$, if $x_0$ is a unit vector not orthogonal to the eigenspace of $l$, then the normalized power sequence $x_k = A^k x_0 / \|A^k x_0\|$ converges to a unit dominant eigenvector, and the sequence of Rayleigh quotients $A x_k \cdot x_k$ converges to the dominant eigenvalue $l$ [546](#page=546). * The sequence $x_k$ approximates a dominant eigenvector. * The sequence $A x_k \cdot x_k$ approximates the dominant eigenvalue [546](#page=546). ## 41.3 Geometric interpretation Multiplying a vector by matrix $A$ scales its components along different eigenspaces by the corresponding eigenvalues. If one eigenvalue is dominant, repeated multiplication and normalization will pull the vector towards the eigenspace of the dominant eigenvalue [547](#page=547). ## 41.4 Algorithm: Power method with Euclidean scaling 1. **Initialization**: Choose a nonzero vector $x_0$ and normalize it to a unit vector. 2. **Iteration**: For $k = 0, 1, 2, \dots$: * Compute $A x_k$. * Normalize the result to get $x_{k+1} = A x_k / \|A x_k\|$. * Compute the Rayleigh quotient $A x_{k+1} \cdot x_{k+1}$ as the approximation to the dominant eigenvalue [547](#page=547). ## 41.5 Example 2: Application of Euclidean scaling Applying the power method with Euclidean scaling to a specific matrix yields approximations for the dominant eigenvalue and eigenvector. After five iterations, the eigenvalue approximation reached five decimal places of accuracy, and the eigenvector approximation reached three decimal places [548](#page=548) [549](#page=549). > 📝 For the matrix $A = \begin{bmatrix} 2 & 1 \\ 3 & 0 \end{bmatrix}$, starting with $x_0$, the Euclidean scaling method produces the following approximations: > * $x_1 \approx \begin{bmatrix} 0.83205 \\ 0.55470 \end{bmatrix}$, $\lambda^{(1)} \approx 3.60555$ > * $x_2 \approx \begin{bmatrix} 0.73480 \\ 0.67828 \end{bmatrix}$, $\lambda^{(2)} \approx 4.90682$ > * $x_3 \approx \begin{bmatrix} 0.71274 \\ 0.70143 \end{bmatrix}$, $\lambda^{(3)} \approx 4.99616$ > * $x_4 \approx \begin{bmatrix} 0.70824 \\ 0.70597 \end{bmatrix}$, $\lambda^{(4)} \approx 4.99985$ > * $x_5 \approx \begin{bmatrix} 0.70733 \\ 0.70688 \end{bmatrix}$, $\lambda^{(5)} \approx 4.99999$ > The exact dominant eigenvalue is 5, and a corresponding unit eigenvector is approximately $\begin{bmatrix} 0.707106781187 \\ 0.707106781187 \end{bmatrix}$ [548](#page=548) [549](#page=549). ## 41.6 The Power Method with Maximum Entry Scaling This variation of the power method scales the iterates so that the maximum absolute value of any entry is 1 [549](#page=549). ## 41.7 Theorem 9.2.2: Power method with maximum entry scaling For a symmetric $n \times n$ matrix $A$ with a positive dominant eigenvalue $l$, if $x_0$ is a nonzero vector not orthogonal to the eigenspace of $l$, then the sequence $x_k$ scaled such that $\max(x_k) = 1$ converges to an eigenvector corresponding to $l$, and the sequence of Rayleigh quotients $A x_k \cdot x_k / x_k \cdot x_k$ converges to $l$ [549](#page=549) [550](#page=550). * The sequence $x_k$ approximates an eigenvector whose largest component is 1 [549](#page=549). * The sequence of Rayleigh quotients approximates the dominant eigenvalue [550](#page=550). ## 41.8 Algorithm: Power method with maximum entry scaling 1. **Initialization**: Choose an arbitrary nonzero vector $x_0$. 2. **Iteration**: For $k = 0, 1, 2, \dots$: * Compute $A x_k$. * Scale the result by $1/\max(A x_k)$ to obtain $x_{k+1}$. * Compute the Rayleigh quotient $A x_{k+1} \cdot x_{k+1} / x_{k+1} \cdot x_{k+1}$ as the approximation to the dominant eigenvalue [550](#page=550). ## 41.9 Example 3: Application of maximum entry scaling Applying the power method with maximum entry scaling to the same matrix as in Example 2 shows that the eigenvalue approximation reaches five decimal places of accuracy after five iterations, and the eigenvector approximation closely matches the scaled dominant eigenvector [551](#page=551). > 📝 For the matrix $A = \begin{bmatrix} 2 & 1 \\ 3 & 0 \end{bmatrix}$, starting with $x_0$, the maximum entry scaling method produces the following approximations: > * $x_1 \approx \begin{bmatrix} 1.00000 \\ 0.66667 \end{bmatrix}$, $\lambda^{(1)} \approx 4.33333$ > * $x_2 \approx \begin{bmatrix} 1.00000 \\ 0.92308 \end{bmatrix}$, $\lambda^{(2)} \approx 4.84615$ > * $x_3 \approx \begin{bmatrix} 1.00000 \\ 0.98413 \end{bmatrix}$, $\lambda^{(3)} \approx 4.96825$ > * $x_4 \approx \begin{bmatrix} 1.00000 \\ 0.99681 \end{bmatrix}$, $\lambda^{(4)} \approx 4.99361$ > * $x_5 \approx \begin{bmatrix} 1.00000 \\ 0.99936 \end{bmatrix}$, $\lambda^{(5)} \approx 4.99974$ > The exact dominant eigenvalue is 5, and a corresponding eigenvector (scaled by maximum entry) is approximately $\begin{bmatrix} 1.00000 \\ 1.00000 \end{bmatrix}$ [551](#page=551). ## 41.10 Rate of Convergence The rate at which the power method converges to the dominant eigenvalue depends on the ratio of the absolute values of the two largest eigenvalues, $|l_1|/|l_2|$. A larger ratio indicates faster convergence [552](#page=552). ## 41.11 Stopping Procedures To determine when to stop an iterative process, stopping procedures are used. For the power method, these are typically based on the estimated relative error in the eigenvalue approximation [552](#page=552). * **Relative error**: The ratio of the difference between the exact and approximate eigenvalue to the exact eigenvalue, expressed as a percentage. * **Estimated relative error**: Used when the exact eigenvalue is unknown. It is calculated using the current and previous eigenvalue approximations [552](#page=552). ## 41.12 Example 4: Estimated relative error The estimated percentage error is calculated for each iteration of the power method. The process stops when this error falls below a specified tolerance (e.g., 0.1%) [552](#page=552). > 📝 For the approximations in Example 3, the estimated percentage errors are: > * $\lambda^{(1)}$ vs $\lambda^{(2)}$: 2.953% > * $\lambda^{(2)}$ vs $\lambda^{(3)}$: 0.123% > * $\lambda^{(3)}$ vs $\lambda^{(4)}$: 0.005% > * $\lambda^{(4)}$ vs $\lambda^{(5)}$: 0% > The approximation $\lambda^{(4)} = 4.99999$ is the first one with an estimated percentage error less than 0.1% [552](#page=552). # 42. Comparison of Procedures for Solving Linear Systems Flops and the Cost of Solving a Linear System ## 42.1 Flops and the Cost of Solving a Linear System [555](#page=555) [556](#page=556) In computer science, a **flop** (floating-point operation) is a single arithmetic operation (+, -, *, /) on two real numbers. The total number of flops required to solve a problem is known as its **cost**, providing a metric for comparing algorithms. This cost can be converted into time or money if the computer's processing speed and operational costs are known. For instance, modern high-performance computers can perform over 17 petaflops per second (1 petaflop = $10^{15}$ flops), while personal computers can reach over 80 gigaflops per second (1 gigaflop = $10^9$ flops) [554](#page=554). To calculate the flop cost for solving a linear system of $n$ equations in $n$ unknowns using Gauss-Jordan elimination, specific formulas for sums are used: * Sum of the first $n$ positive integers: $\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$. * Sum of the squares of the first $n$ positive integers: $\sum_{i=1}^{n} i^2 = \frac{n(n+1)(2n+1)}{6}$ [554](#page=554). The process of Gauss-Jordan elimination involves a forward phase to create leading ones and zeros below them, and a backward phase to create zeros above the leading ones. | Phase | Operations | Flops | | --- | --- | --- | | Forward Phase: Introduce leading 1 in row 1 | Multiplications | n | | Forward Phase: Introduce zeros below leading 1 | Multiplications and Additions | 2n(n-1) | | Forward Phase: Total for column 1 | — | $2n^2 - n$ | | Forward Phase: Total for all n columns | — | $2\sum_{i=1}^{n} i^2 - \sum_{i=1}^{n} i = \frac{n(n+1)(2n+1)}{3} - \frac{n(n+1)}{2} = \frac{n(n+1)(4n-1)}{6} \approx \frac{2n^3}{3}$ | The backward phase involves introducing zeros above the leading ones. | Phase | Operations | Flops | | --- | --- | --- | | Backward Phase: Introduce zeros above leading 1 in column n | Multiplications and Additions | 2(n-1) | | Backward Phase: Introduce zeros above leading 1 in column n-1 | Multiplications and Additions | 2(n-2) | | Backward Phase: Total for n-1 columns | — | $2\sum_{i=1}^{n-1} i = 2\frac{(n-1)n}{2} = n^2 - n$ | | Backward Phase: Total for all n columns | — | $n^2 - n$ | The total cost for Gauss-Jordan elimination is the sum of the forward and backward phases: * Total flops for Gauss-Jordan elimination: $\frac{2n^3}{3} + n^2 - n$ [556](#page=556). ## 42.2 Cost Estimates for Solving Large Linear Systems [557](#page=557) For large linear systems ($n$ is large), the term with the highest power dominates the cost. Therefore, the approximate costs are: * Forward phase cost: $\approx \frac{2n^3}{3}$ flops. * Backward phase cost: $\approx n^2$ flops [556](#page=556). This indicates that the forward phase is significantly more costly than the backward phase for large systems. | Algorithm | Approximate Cost in Flops (Large n) | | --- | --- | | Gauss–Jordan elimination (forward phase) | $\approx \frac{2n^3}{3}$ | | Gauss–Jordan elimination (backward phase) | $\approx n^2$ | | LU-decomposition of A | $\approx \frac{2n^3}{3}$ | | Forward substitution to solve Ly = b | $\approx n^2$ | | Backward substitution to solve Ux = y | $\approx n^2$ | | Compute A^{-1} by reducing [A | I to [I | A^{-1}] | $\approx 2n^3$ | | Compute A^{-1}b | $\approx 2n^3$ | ## 42.3 Considerations in Choosing an Algorithm for Solving a Linear System For solving a single linear system $Ax = b$, LU-decomposition and Gauss-Jordan elimination have the same flop count. However, LU-decomposition offers several advantages: * **Flexibility with Right-Hand Sides:** LU-decomposition uses only matrix $A$, allowing it to be reused with multiple right-hand sides ($b$) once the decomposition is computed. Gauss-Jordan elimination requires the augmented matrix $[A|b]$ and thus $b$ must be known upfront. * **Computation of Inverse:** The LU-decomposition can be efficiently used to compute the inverse matrix $A^{-1}$ with minimal additional work. * **Memory Efficiency:** For large systems where memory is limited, LU-decomposition allows for the omission of storing the known ones and zeros in the resulting matrices, saving space [557](#page=557). > 📝 Approximate the time to execute the forward and backward phases of Gauss-Jordan elimination for a system of one million equations ($n=10^6$) on a computer capable of 10 petaflops/s. > > Solution: > For the forward phase: $\approx \frac{2 \times (10^6)^3}{3} \approx \frac{2 \times 10^{18}}{3}$ flops. > Time = $\frac{\text{Flops}}{\text{Speed}} = \frac{2 \times 10^{18} / 3 \text{ flops}}{10 \times 10^{15} \text{ flops/s}} \approx 66.67$ seconds. > > For the backward phase: $\approx (10^6)^2 = 10^{12}$ flops. > Time = $\frac{10^{12} \text{ flops}}{10 \times 10^{15} \text{ flops/s}} = 0.0001$ seconds [557](#page=557). # 43. Cost estimates for Solving Large Linear Systems ## 43.1 Cost of Gauss-Jordan Elimination [558](#page=558) Gauss-Jordan elimination is a method for solving systems of linear equations by transforming the augmented matrix into reduced row echelon form. For a system of $n$ equations in $n$ unknowns, the computational cost is dominated by the forward phase, which involves approximately $n^3/2$ floating-point operations (flops). The backward phase, which involves approximately $n^3/2$ flops, is also significant [558](#page=558). * **Forward phase**: This part of the algorithm transforms the matrix into row echelon form. It requires approximately $n^3/2$ flops. * **Backward phase**: This part transforms the row echelon form into reduced row echelon form. It also requires approximately $n^3/2$ flops [558](#page=558). The total number of flops for Gauss-Jordan elimination on an $n \times n$ system is approximately $n^3$ [558](#page=558). | Operation | Approximate Flops | | --- | --- | | Forward phase of Gauss-Jordan elimination | $n^3/2$ | | Backward phase of Gauss-Jordan elimination | $n^3/2$ | | Total for Gauss-Jordan elimination | $n^3$ | ## 43.2 LU-Decomposition for Large Sparse Systems [558](#page=558) LU-decomposition is an alternative method for solving linear systems, particularly advantageous for large, sparse matrices. It decomposes a matrix $A$ into a lower triangular matrix $L$ and an upper triangular matrix $U$ such that $A = LU$. This decomposition is more efficient than Gauss-Jordan elimination for systems where $A$ is sparse or when solving multiple systems with the same coefficient matrix [558](#page=558). * **LU-decomposition**: This process factors a matrix $A$ into $L$ and $U$. The cost is approximately $n^3/3$ flops. * **Solving $Ax=b$ with LU**: Once $A=LU$ is computed, solving $Ly=b$ and then $Ux=y$ requires approximately $2n^2$ flops. This is significantly faster than re-computing the decomposition for each new $b$. * **Advantage for sparse matrices**: If $A$ is a large matrix with many zero entries, LU-decomposition techniques can exploit this sparsity to reduce computational cost and memory requirements [558](#page=558). | Operation | Approximate Flops | | --- | --- | | LU-decomposition of A | $n^3/3$ | | Solving $Ly=b$ | $n^2$ | | Solving $Ux=y$ | $n^2$ | | Total for solving $Ax=b$ with LU | $n^3/3 + 2n^2$ | > 📝 For a system of $n$ equations, LU-decomposition costs approximately $n^3/3$ flops, and solving $Ax=b$ with the decomposition costs an additional $2n^2$ flops. ## 43.3 Exercises on Computational Costs The following exercises explore the time required to solve linear systems using Gauss-Jordan elimination and LU-decomposition on computers with varying speeds. They also examine the flop counts for basic matrix operations [558](#page=558). * **Exercise 1**: Estimate the time to solve systems of varying sizes using Gauss-Jordan elimination on a computer with 100 gigaflops/second capability. * **Exercise 2**: Estimate the time to solve systems of varying sizes using Gauss-Jordan elimination on a computer with 10 gigaflops/second capability. * **Exercise 3**: Estimate the time for forward and backward phases of Gauss-Jordan elimination, LU-decomposition, and finding the inverse of a 10,000x10,000 matrix on a 70 gigaflops/second computer. * **Exercise 4**: Estimate the time for forward and backward phases of Gauss-Jordan elimination, LU-decomposition, and finding the inverse of a 100,000x100,000 matrix on an IBM Sequoia computer (16 petaflops/second). * **Exercise 5**: Approximate the time for the forward and backward phases of Gauss-Jordan elimination for a 100,000x100,000 system on a 1 gigaflop/second computer. Determine the required speed for LU-decomposition of a 10,000x10,000 matrix in under 0.5 seconds. * **Exercise 6**: Determine the required teraflops/second for a computer to find the inverse of a 100,000x100,000 matrix in less than 0.5 seconds. * **Exercise 7**: Calculate the number of flops required to compute $cA$, where $A$ is an $n \times n$ matrix and $c$ is a scalar. * **Exercise 8**: Calculate the number of flops required to compute $A + B$, where $A$ and $B$ are $n \times n$ matrices. * **Exercise 9**: Calculate the number of flops required to compute $AB$, where $A$ and $B$ are $n \times n$ matrices. * **Exercise 10**: If $A$ is a diagonal matrix and $k$ is a positive integer, calculate the number of flops required to compute $A^k$ [558](#page=558). ## 43.4 Singular Value Decomposition Singular Value Decomposition (SVD) is a factorization of a general $m \times n$ matrix $A$ into the form $A = U\Sigma V^T$. This decomposition is fundamental in numerical linear algebra and has wide-ranging applications, including data compression, noise reduction, and solving linear systems. SVD provides a way to understand the structure of a matrix by breaking it down into orthogonal transformations and scaling factors. [559](#page=559) [561](#page=561) [562](#page=562). ## 43.5 Singular Values The singular values of an $m \times n$ matrix $A$ are the square roots of the eigenvalues of the matrix $A^T A$. These eigenvalues are always nonnegative real numbers. If $A$ has rank $k$, then $A^T A$ has $k$ nonzero eigenvalues, and consequently, $A$ has $k$ nonzero singular values. These singular values are typically ordered in nonincreasing magnitude. [560](#page=560) [561](#page=561). * **Relationship to $A^T A$**: The matrix $A^T A$ is symmetric and thus orthogonally diagonalizable. Its eigenvalues are nonnegative. * **Definition**: If $\lambda_1, \lambda_2, \dots, \lambda_n$ are the eigenvalues of $A^T A$ ordered such that $\lambda_1 \ge \lambda_2 \ge \dots \ge \lambda_n \ge 0$, then the singular values of $A$ are $\sigma_i = \sqrt{\lambda_i}$ for $i=1, \dots, n$ [560](#page=560). ## 43.6 Example 1: Singular values of a matrix To find the singular values of the matrix $A = \begin{bmatrix} 1 & 3 \\ 0 & 2 \end{bmatrix}$, we first compute $A^T A$: $A^T A = \begin{bmatrix} 1 & 0 \\ 3 & 2 \end{bmatrix} \begin{bmatrix} 1 & 3 \\ 0 & 2 \end{bmatrix} = \begin{bmatrix} 1 & 3 \\ 3 & 13 \end{bmatrix}$. The characteristic polynomial of $A^T A$ is $\det(A^T A - \lambda I) = (1-\lambda)(13-\lambda) - 9 = \lambda^2 - 14\lambda + 4$. Using the quadratic formula, the eigenvalues are $\lambda = \frac{14 \pm \sqrt{196 - 16}}{2} = \frac{14 \pm \sqrt{180}}{2} = 7 \pm \sqrt{45} = 7 \pm 3\sqrt{5}$. Thus, $\lambda_1 = 7 + 3\sqrt{5}$ and $\lambda_2 = 7 - 3\sqrt{5}$. The singular values are $\sigma_1 = \sqrt{7 + 3\sqrt{5}}$ and $\sigma_2 = \sqrt{7 - 3\sqrt{5}}$. [560](#page=560) [561](#page=561). ## 43.7 Singular Value Decomposition (SVD) The Singular Value Decomposition (SVD) of an $m \times n$ matrix $A$ of rank $k$ factors $A$ into $A = U\Sigma V^T$. Here, $U$ is an $m \times m$ orthogonal matrix, $\Sigma$ is an $m \times n$ matrix with the singular values of $A$ on its main diagonal (and zeros elsewhere), and $V$ is an $n \times n$ orthogonal matrix. [561](#page=561) [562](#page=562). * **Brief Form**: $A = U\Sigma V^T$, where $\Sigma$ has dimensions $m \times n$. The top-left $k \times k$ submatrix of $\Sigma$ is a diagonal matrix $D$ containing the $k$ nonzero singular values in nonincreasing order. $U$ is $m \times m$ orthogonal, and $V$ is $n \times n$ orthogonal [561](#page=561). * **Expanded Form**: $A = U\Sigma V^T$, where $U$ is $m \times m$, $\Sigma$ is $m \times n$, and $V$ is $n \times n$. * $V = [v_1 v_2 \dots v_n]$ orthogonally diagonalizes $A^T A$. * The nonzero diagonal entries of $\Sigma$ are $\sigma_1, \sigma_2, \dots, \sigma_k$, where $\sigma_i = \sqrt{\lambda_i}$ and $\lambda_i$ are the nonzero eigenvalues of $A^T A$. * The column vectors of $V$ are ordered such that $\sigma_1 \ge \sigma_2 \ge \dots \ge \sigma_k > 0$. * The left singular vectors $u_i$ are defined by $u_i = \frac{1}{\sigma_i} Av_i$ for $i=1, \dots, k$. * $\{u_1, u_2, \dots, u_k\}$ forms an orthonormal basis for the column space of $A$. * $\{u_1, u_2, \dots, u_k, u_{k+1}, \dots, u_m\}$ is an extension to an orthonormal basis for $\mathbb{R}^m$ [562](#page=562). ## 43.8 Example 2: Singular Value Decomposition of a matrix To find a singular value decomposition of $A = \begin{bmatrix} 1 & 3 \\ 0 & 2 \end{bmatrix}$, we use the singular values $\sigma_1 = \sqrt{7 + 3\sqrt{5}}$ and $\sigma_2 = \sqrt{7 - 3\sqrt{5}}$ found previously. We need to find the corresponding eigenvectors for $A^T A = \begin{bmatrix} 1 & 3 \\ 3 & 13 \end{bmatrix}$. For $\lambda_1 = 7 + 3\sqrt{5}$: $(A^T A - \lambda_1 I)v_1 = 0$. Solving this system yields $v_1 = \begin{bmatrix} 3 \\ 7 + 3\sqrt{5} \end{bmatrix}$. For $\lambda_2 = 7 - 3\sqrt{5}$: $(A^T A - \lambda_2 I)v_2 = 0$. Solving this system yields $v_2 = \begin{bmatrix} 3 \\ 7 - 3\sqrt{5} \end{bmatrix}$. Normalizing these vectors gives $v_1$ and $v_2$. The left singular vectors $u_1$ and $u_2$ are found using $u_i = \frac{1}{\sigma_i} Av_i$. The SVD is then $A = U\Sigma V^T$. [562](#page=562) [563](#page=563). ## 43.9 Historical Note on SVD The theory of singular value decomposition has roots in the work of mathematicians like Eugenio Beltrami, Camille Jordan, James Sylvester, Erhard Schmidt, and Herman Weyl. More recently, Gene Golub developed stable and efficient algorithms for computing SVD. Beltrami and Jordan first proved the result for real, invertible matrices, with Jordan refining the theory. Sylvester independently rediscovered it. Schmidt demonstrated its use for approximating matrices with lower rank, transforming it into a practical tool, and Weyl showed how to perform these approximations in the presence of error [565](#page=565). ## 43.10 Exercises on Singular Value Decomposition These exercises focus on finding the singular values and the complete singular value decomposition for given matrices [565](#page=565). * **Exercises 1–4**: Find the distinct singular values of the given matrices. * **Exercises 5–12**: Find a singular value decomposition for the given matrices [565](#page=565). # 44. Chapter 9 Supplementary Exercises ## 44.1 Data compression using singular value decomposition Singular value decomposition (SVD) is a powerful technique used for data compression, enabling more efficient storage and transmission of digital information. By representing visual data as a matrix, SVD allows for the creation of approximations that significantly reduce storage requirements while maintaining acceptable image quality [566](#page=566) [568](#page=568). ## 44.2 Reduced singular value decomposition A reduced singular value decomposition (SVD) simplifies the standard SVD by eliminating superfluous zero rows and columns from the $\Sigma$ matrix. This results in smaller matrices $U_1$, $\Sigma_1$, and $V_1^T$, where $\Sigma_1$ is an invertible diagonal matrix. This reduced form expresses a matrix of rank $k$ as a linear combination of $k$ rank-1 matrices [567](#page=567). * The reduced SVD is represented as $A = U_1 \Sigma_1 V_1^T$. * The dimensions of the matrices in the reduced SVD are: * $U_1$ has size $m \times k$. * $\Sigma_1$ has size $k \times k$. * $V_1^T$ has size $k \times n$ [567](#page=567). > 📝 The reduced SVD of a matrix $A$ of rank $k$ is $A = U_1 \Sigma_1 V_1^T$, where $U_1$ is $m \times k$, $\Sigma_1$ is $k \times k$, and $V_1^T$ is $k \times n$ [567](#page=567). ## 44.3 Reduced singular value expansion A reduced singular value expansion of a matrix $A$ expresses it as a sum of rank-1 matrices, derived from its reduced SVD. This expansion is particularly useful for data compression, as dropping terms corresponding to small singular values can yield an acceptable approximation of the original matrix and its represented image [567](#page=567) [568](#page=568). * The reduced singular value expansion is given by: $A \approx \sigma_1 u_1 v_1^T + \sigma_2 u_2 v_2^T + \dots + \sigma_r u_r v_r^T$ [568](#page=568). * This approximation, known as the rank $r$ approximation of $A$, requires storage for $r(m + n + 1)$ numbers, significantly less than the $mn$ entries of the original matrix $A$ [569](#page=569). ## 44.4 Example 1: Reduced singular value decomposition and expansion To find a reduced singular value decomposition and expansion, we first determine the rank of the matrix. For a matrix $A$ with rank $k$, the reduced SVD uses matrices of dimensions $m \times k$, $k \times k$, and $k \times n$. The reduced expansion then sums the first $r$ terms of the SVD, where $r$ is chosen to achieve a desired level of compression [567](#page=567) [568](#page=568). ## 44.5 Exercise 5: Reduced singular value expansion This exercise requires finding a reduced singular value expansion for a given matrix $A$. This involves computing its singular value decomposition and then selecting a subset of terms to form an approximation [569](#page=569). ## 44.6 Exercise 9: Storing numbers for matrix approximation This problem quantifies the storage savings achieved through data compression using SVD. It asks to compare the number of entries in a large matrix with the number of entries required to store its rank $r$ approximation [569](#page=569). > 📝 A rank 100 approximation of a $1000 \times 1000$ matrix $A$ requires storage for $100(1000 + 1000 + 1) = 200,100$ numbers, compared to $1,000,000$ for the full matrix [569](#page=569). ## 44.7 True-false exercises on reduced SVD These true-false questions assess understanding of the properties and dimensions of matrices involved in a reduced singular value decomposition [569](#page=569). * **a.** $U_1$ has size $m \times k$. * **b.** $\Sigma_1$ has size $k \times k$. * **c.** $V_1^T$ has size $k \times n$ [569](#page=569). ## 44.8 True-False Exercises on ATA properties These exercises explore the characteristics of the matrix product $A^TA$, where $A$ is an $m \times n$ matrix. They cover its dimensions, symmetry, eigenvalues, and diagonalizability [566](#page=566). * **a.** If $A$ is an $m \times n$ matrix, then $A^TA$ is an $m \times m$ matrix. * **b.** If $A$ is an $m \times n$ matrix, then $A^TA$ is a symmetric matrix. * **c.** If $A$ is an $m \times n$ matrix, then the eigenvalues of $A^TA$ are positive real numbers. * **d.** If $A$ is an $n \times n$ matrix, then $A$ is orthogonally diagonalizable. * **e.** If $A$ is an $m \times n$ matrix, then $A^TA$ is orthogonally diagonalizable. * **f.** The eigenvalues of $A^TA$ are the singular values of $A$. * **g.** Every $m \times n$ matrix has a singular value decomposition [566](#page=566). ## 44.9 Chapter 9 Supplementary Exercises This section presents a variety of exercises covering key numerical methods discussed in Chapter 9, including LU-decomposition, the power method, singular value decomposition, and related theoretical proofs [570](#page=570). ## 44.10 LU-decomposition and LDU-decomposition These exercises focus on finding the LU-decomposition and LDU-decomposition of given matrices. LU-decomposition factors a matrix into a lower triangular matrix ($L$) and an upper triangular matrix ($U$), while LDU-decomposition further factors $L$ into a diagonal matrix ($D$) and a unit lower triangular matrix [570](#page=570). * **Exercise 1:** Find an LU-decomposition of a given matrix. * **Exercise 2:** Find the LDU-decomposition of the matrix from Exercise 1. * **Exercise 3:** Find an LU-decomposition of another given matrix. * **Exercise 4:** Find the LDU-decomposition of the matrix from Exercise 3 [570](#page=570). ## 44.11 Power method applications These exercises apply the power method to find dominant eigenvalues and eigenvectors of matrices, with a focus on its use in computational finance and risk management. The exercises explore different scaling techniques and compare results with theoretical values [570](#page=570). * **Exercise 5:** * Identify the dominant eigenvalue and corresponding unit eigenvector of a given matrix $A$. * Apply the power method with Euclidean scaling to approximate the dominant eigenvector. * Apply the power method with maximum entry scaling to approximate the dominant eigenvector. * **Exercise 6:** Discuss the behavior of the power sequence for a symmetric matrix with Euclidean scaling, analyzing the cause of the observed behavior. * **Exercise 7:** Analyze the convergence of Rayleigh quotients for a symmetric matrix with distinct eigenvalues [570](#page=570). ## 44.12 Singular value decomposition (SVD) exercises These exercises involve finding the SVD and reduced SVD of matrices, and exploring theoretical properties related to SVD [570](#page=570). * **Exercise 8:** Find a singular value decomposition of a given matrix. * **Exercise 9:** Find a singular value decomposition of another given matrix. * **Exercise 10:** Find the reduced singular value decomposition and expansion for the matrix from Exercise 9. * **Exercise 11:** Find the reduced singular value decomposition of a matrix given its SVD. * **Exercise 12:** Determine if orthogonally similar matrices have the same singular values and justify the answer. * **Exercise 13:** Discuss the singular values of a projection matrix $P$ [570](#page=570). ## 44.13 Theoretical proofs related to matrix properties These exercises require proving fundamental theorems and properties related to matrices, including rank, matrix powers, and SVD [570](#page=570). * **Exercise 14:** Prove that if a matrix $A$ has rank 1, then $A^2 = kA$ for some scalar $k$ [570](#page=570). # 45. Data Compression Using Singular Value Decomposition reduced Singular Value Decomposition ## 45.1 Constructing curves and surfaces through specified points This section demonstrates how determinants can be used to find the equations of lines, circles, conic sections, planes, and spheres that pass through a given set of points. The underlying principle is that a homogeneous linear system has a nontrivial solution if and only if the determinant of its coefficient matrix is zero. * A homogeneous linear system with an equal number of equations and unknowns has a nontrivial solution if and only if the determinant of the coefficient matrix is zero [572](#page=572). ## 45.2 A line through two points A unique line of the form $c_1x + c_2y + c_3 = 0$ passes through two distinct points $(x_1, y_1)$ and $(x_2, y_2)$. Substituting these points into the equation yields a system of equations for the coefficients $c_1, c_2, c_3$. For a nontrivial solution to exist (meaning the coefficients are not all zero), the determinant of the coefficient matrix of the system must be zero. This determinant equation defines the line. * The determinant equation for a line passing through $(x_1, y_1)$ and $(x_2, y_2)$ is: x y 1 x1 y1 1 x2 y2 1 [572](#page=572). > 📝 The equation of the line passing through $(2, 1)$ and $(3, 7)$ is $-6x + y + 11 = 0$ [572](#page=572). ## 45.3 Equation of a line example Find the equation of the line passing through $(2, 1)$ and $(3, 7)$. Substituting the coordinates into the determinant form yields: x y 1 2 1 1 3 7 1 Expanding this determinant along the first row results in $-6x + y + 11 = 0$ [572](#page=572). ## 45.4 A circle through three points Three non-collinear points $(x_1, y_1)$, $(x_2, y_2)$, and $(x_3, y_3)$ uniquely determine a circle. The general equation of a circle can be written as $c_1(x^2 + y^2) + c_2x + c_3y + c_4 = 0$. Substituting the three points into this equation creates a homogeneous linear system for the coefficients $c_1, c_2, c_3, c_4$. The condition for a nontrivial solution leads to a determinant equation for the circle. * The determinant equation for a circle passing through $(x_1, y_1)$, $(x_2, y_2)$, and $(x_3, y_3)$ is: x^2+y^2 x y 1 x1^2+y1^2 x1 y1 1 x2^2+y2^2 x2 y2 1 x3^2+y3^2 x3 y3 1 [573](#page=573). ## 45.5 Equation of a circle example Find the equation of the circle passing through $(1, 7)$, $(6, 2)$, and $(4, 6)$. Substituting these points into the determinant form and simplifying leads to the equation $10(x^2 + y^2) - 20x - 40y - 200 = 0$. In standard form, this is $(x - 1)^2 + (y - 2)^2 = 52$, indicating a center at $(1, 2)$ and a radius of 5 [573](#page=573). > 📝 The equation of the circle passing through $(1, 7)$, $(6, 2)$, and $(4, 6)$ is $10(x^2 + y^2) - 20x - 40y - 200 = 0$, which simplifies to $(x - 1)^2 + (y - 2)^2 = 52$ [573](#page=573). ## 45.6 A general conic section through five points A general conic section (parabola, hyperbola, ellipse, or degenerate forms) is defined by the equation $c_1x^2 + c_2xy + c_3y^2 + c_4x + c_5y + c_6 = 0$. If one coefficient is non-zero, it can be normalized, leaving five coefficients to be determined. Therefore, five distinct points in the plane are sufficient to define the equation of a conic section. * The determinant equation for a conic section passing through five points $(x_i, y_i)$ for $i=1, \dots, 5$ is: x^2 xy y^2 x y 1 x1^2 x1y1 y1^2 x1 y1 1 x2^2 x2y2 y2^2 x2 y2 1 x3^2 x3y3 y3^2 x3 y3 1 x4^2 x4y4 y4^2 x4 y4 1 x5^2 x5y5 y5^2 x5 y5 1 [574](#page=574). ## 45.7 Equation of an orbit example An astronomer observing an asteroid's orbit needs to find the equation of the ellipse passing through five observed points: $(8.025, 8.310)$, $(10.170, 6.355)$, $(11.202, 3.212)$, $(10.736, 0.375)$, and $(9.092, -2.267)$. Substituting these points into the determinant form and expanding yields the equation $386.802x^2 - 102.895xy + 446.029y^2 - 2476.443x - 1427.998y - 17109.375 = 0$ [575](#page=575). ## 45.8 A plane through three points A plane in 3-space with the equation $c_1x + c_2y + c_3z + c_4 = 0$ can be determined by three non-collinear points $(x_1, y_1, z_1)$, $(x_2, y_2, z_2)$, and $(x_3, y_3, z_3)$. Similar to the 2D case, substituting these points into the plane equation creates a homogeneous linear system. The determinant of the coefficient matrix must be zero for a nontrivial solution. * The determinant equation for a plane passing through $(x_1, y_1, z_1)$, $(x_2, y_2, z_2)$, and $(x_3, y_3, z_3)$ is: x y z 1 x1 y1 z1 1 x2 y2 z2 1 x3 y3 z3 1 [575](#page=575). ## 45.9 Equation of a plane example Find the equation of the plane passing through $(1, 1, 0)$, $(2, 0, -1)$, and $(2, 9, 2)$. The determinant equation is: x y z 1 1 1 0 1 2 0 -1 1 2 9 2 1 This reduces to $2x - y + 3z - 1 = 0$ [575](#page=575). ## 45.10 A sphere through four points A sphere in 3-space with the equation $c_1(x^2 + y^2 + z^2) + c_2x + c_3y + c_4z + c_5 = 0$ can be determined by four non-coplanar points $(x_1, y_1, z_1)$, $(x_2, y_2, z_2)$, $(x_3, y_3, z_3)$, and $(x_4, y_4, z_4)$. Substituting these points into the sphere equation yields a homogeneous linear system for the coefficients. * The determinant equation for a sphere passing through $(x_i, y_i, z_i)$ for $i=1, \dots, 4$ is: x^2+y^2+z^2 x y z 1 x1^2+y1^2+z1^2 x1 y1 z1 1 x2^2+y2^2+z2^2 x2 y2 z2 1 x3^2+y3^2+z3^2 x3 y3 z3 1 x4^2+y4^2+z4^2 x4 y4 z4 1 [576](#page=576). ## 45.11 Equation of a sphere example Find the equation of the sphere passing through $(0, 3, 2)$, $(1, -1, 1)$, $(2, 1, 0)$, and $(5, 1, 3)$. Substituting these points into the determinant form and simplifying leads to $x^2 + y^2 + z^2 - 4x - 2y - 6z + 5 = 0$. In standard form, this is $(x - 2)^2 + (y - 1)^2 + (z - 3)^2 = 9$ [576](#page=576). ## 45.12 The earliest applications of linear algebra Linear systems have been used to solve practical problems across various ancient cultures for millennia, predating the formal development of algebra. These applications often involved resource distribution, land measurement, and financial calculations, leading to linear equations that were solved using methods like false position or array manipulation. ## 45.13 Egypt (about 1650 b.c.) The Ahmes Papyrus, dating from around 1650 b.c., contains problems solved using the method of false position. This technique involves assuming a value for an unknown, solving the problem with that assumption, and then adjusting the guess based on the discrepancy between the assumed and actual results. * **Problem 40 of the Ahmes Papyrus:** Divide 100 hekats of barley among five men in arithmetic progression such that the sum of the two smallest amounts is one-seventh the sum of the three largest. * Let $a$ be the smallest amount and $d$ be the common difference. The amounts are $a, a+d, a+2d, a+3d, a+4d$. * The conditions lead to the system: 5a + 10d = 100 11a - 2d = 0. * Using the method of false position, an initial guess of $a=1$ yields $d=11/2$. Substituting these into the first equation gives 60, not 100. Multiplying the initial guess by $100/60$ leads to the correct $a=5/3$ and $d=55/6$. * The amounts of barley received are $10/6, 65/6, 120/6, 175/6, 230/6$ hekats [578](#page=578). ## 45.14 Babylonia (1900–1600 b.c.) Babylonian clay tablets reveal problems solved using linear systems, often involving geometric figures. The method involved setting up equations based on given areas and dimensions and then solving them, sometimes through direct manipulation of the equations. * **Trapezoid Area Problem:** A trapezoid with an area of 320 square units is cut from a right triangle by a line parallel to one of its sides. The other side is 50 units, and the trapezoid's height is 20 units. Find the upper and lower widths. * Let $x$ be the lower width and $y$ be the upper width. * The area is given by $20 \times \frac{x+y}{2} = 320$, simplifying to $x+y = 32$. * Using similar triangles, $\frac{50}{30} = \frac{y}{x}$, which simplifies to $5x - 3y = 0$. * The system is: x + y = 32 5x - 3y = 0 [579](#page=579). * Solving this system yields $x = 20$ and $y = 12$. ## 45.15 China (a.d. 263) The Chinese treatise "The Nine Chapters of the Mathematical Art" (circa a.d. 263) presented problems leading to linear systems solved using an array method, which is remarkably similar to modern Gaussian elimination. Coefficients were represented by rods, and operations were performed on these arrays to transform the system into a triangular form solvable by back substitution. * **Corn Distribution Problem:** Three classes of corn bundles yield different measures based on combinations. * Let $x, y, z$ be the measures of the first, second, and third classes of corn. * The system of equations is: 3x + 2y + z = 39 2x + 3y + z = 34 x + 2y + 3z = 26 [580](#page=580). * The array method involves manipulating rows to achieve a triangular form: 3 2 1 | 39 2 3 1 | 34 1 2 3 | 26 After several operations, the system becomes: 3x + 2y + z = 39 5y + z = 24 36z = 99 * Back substitution yields $x = 37/4$, $y = 17/4$, and $z = 11/4$. ## 45.16 Greece (third century b.c.) Archimedes' "Cattle Problem" is a famous example of a complex system of linear equations, specifically a system of homogeneous equations with more unknowns than equations, leading to infinitely many solutions. The problem involves relationships between the numbers of bulls and cows of different colors. * **Archimedes' Cattle Problem:** Determine the number of bulls and cows of four colors (white, black, yellow, dappled) based on proportional relationships. * Let $W, B, Y, D$ be the number of bulls of each color, and $w, b, y, d$ be the number of cows. * The problem translates into seven homogeneous linear equations in eight unknowns. * The system has infinitely many solutions of the form: W = 10,366,482k B = 7,460,514k Y = 4,149,387k D = 7,358,060k w = 7,206,360k b = 4,893,246k y = 5,439,213k d = 3,515,820k where $k$ is any real number The smallest positive integer solution occurs when $k=1$ [581](#page=581) [582](#page=582). ## 45.17 India (fourth century a.d.) The Bakhshali Manuscript, dating to around the fourth century a.d., contains "equalization problems" that lead to systems of linear equations. These problems often involve finding the value of different items based on exchanges between merchants. * **Merchant Animal Value Problem:** Three merchants have different animals (asava horses, haya horses, camels). They are equally well-off if each gives two animals to each of the others. Find the price of each animal and the total value. * Let $x$ be the price of an asava horse, $y$ a haya horse, $z$ a camel, and $K$ the total value for each merchant. * The conditions lead to the system: 5x + y + z = K x + 7y + z = K x + y + 8z = K [582](#page=582). * Subtracting $(x+y+z)$ from both sides gives $4x = 6y = 7z = K - (x+y+z)$. * If $K - (x+y+z) = 168$ (the least common multiple of 4, 6, and 7), then $x=42$, $y=28$, $z=24$, and $K=262$. ## 45.18 Cubic spline interpolation Cubic spline interpolation is a method used to fit a smooth curve through a set of given points, often encountered in data analysis and design, such as in computer fonts. This technique models the interpolating curve as a thin beam that bends to pass through the points, with the mathematical properties of the curve derived from the physics of beams. ## 45.19 Curve fitting Fitting a curve through specified points is crucial for analyzing experimental data, understanding variable relationships, and in design work. Computer and printer fonts, like PostScript™ and TrueType™, are common applications where curves interpolate a set of points. An interpolating curve passes through all given points, and the curve itself is called an interpolating curve. ## 45.20 Statement of the problem Given $n$ points $(x_1, y_1), (x_2, y_2), \dots, (x_n, y_n)$ in the xy-plane, the goal is to find a "well-behaved" curve $y = S(x)$ that interpolates these points. For simplicity, the points are often assumed to be equally spaced in the x-direction, with a constant distance $h$ between consecutive x-coordinates ($x_{i+1} - x_i = h$). * The interpolating curve $y = S(x)$ is treated as the displacement of a drafting spline, a thin flexible strip bent to pass through the points. * From linear beam theory, the fourth derivative of the displacement of a beam with no external forces is zero along intervals between forces. Thus, $S^{(iv)}(x) = 0$ for $x$ in the open intervals $(x_i, x_{i+1})$ for $i=1, \dots, n-1$. * Additionally, for a beam acted upon only by external forces, the displacement must have two continuous derivatives. This means $S(x)$, $S'(x)$, and $S''(x)$ must be continuous for $x_1 \le x \le x_n$. * The continuity of $S''(x)$ ensures continuous curvature, which is visually pleasing and characteristic of a drafting spline's smooth curve [585](#page=585). ## 45.21 Derivation of the Formula of a Cubic Spline [588](#page=588) A cubic spline is a piecewise cubic polynomial function that interpolates a set of points. The function $S(x)$ is defined by cubic polynomials $S_i(x)$ in each interval $[x_i, x_{i+1}]$. The continuity of $S(x)$, $S'(x)$, and $S''(x)$ at the interpolation points ensures a smooth curve. The coefficients of these cubic polynomials are determined by the coordinates of the given points and additional conditions [586](#page=586) [587](#page=587). The general form of a cubic polynomial in an interval $[x_i, x_{i+1}]$ is $S_i(x) = a_i(x - x_i)^3 + b_i(x - x_i)^2 + c_i(x - x_i) + d_i$. The conditions for a cubic spline are: - **Interpolation:** $S(x_i) = y_i$ for all points $(x_i, y_i)$. This implies $d_i = y_i$. - **Continuity of S(x):** $S_{i-1}(x_i) = S_i(x_i)$ for $i = 2, \dots, n-1$. - **Continuity of S'(x):** $S'_{i-1}(x_i) = S'_i(x_i)$ for $i = 2, \dots, n-1$. - **Continuity of S''(x):** $S''_{i-1}(x_i) = S''_i(x_i)$ for $i = 2, \dots, n-1$ [587](#page=587). These conditions lead to a system of linear equations for the coefficients. By expressing the coefficients in terms of $M_i = S''(x_i)$, the following formulas are derived: | Coefficient | Formula | | --- | --- | | $a_i$ | $(M_{i+1} - M_i)/6h$ | | $b_i$ | $M_i/2$ | | $c_i$ | $(y_{i+1} - y_i)/h - [(M_{i+1} + 2M_i)h/6]$ | | $d_i$ | $y_i$ | The values $M_1, M_2, \dots, M_n$ uniquely determine the cubic spline. These values are found by solving a system of linear equations derived from the continuity conditions of the second derivative [588](#page=588). ## 45.22 Theorem 10.3.1 The system of equations for $M_i$ is: $M_1 + 4M_2 + M_3 = 6(y_1 - 2y_2 + y_3)/h^2$ $M_2 + 4M_3 + M_4 = 6(y_2 - 2y_3 + y_4)/h^2$ ... $M_{n-2} + 4M_{n-1} + M_n = 6(y_{n-2} - 2y_{n-1} + y_n)/h^2$ [588](#page=588). This system has $n-2$ equations for $n$ unknowns ($M_1, \dots, M_n$), requiring two additional conditions for a unique solution [589](#page=589). ## 45.23 Natural Spline The natural spline imposes the conditions $M_1 = 0$ and $M_n = 0$. This corresponds to the ends of the spline extending freely, resulting in zero second derivatives at the endpoints [589](#page=589). ## 45.24 Parabolic Runout Spline This spline imposes the conditions $M_1 = M_2$ and $M_n = M_{n-1}$. This means the cubic terms vanish in the first and last intervals, reducing the spline to a parabolic curve in these intervals [590](#page=590). ## 45.25 Cubic Runout Spline [589](#page=589) This spline imposes the conditions $M_1 = 2M_2 - M_3$ and $M_n = 2M_{n-1} - M_{n-2}$. This ensures that the third derivative is constant over the first two and last two intervals, meaning the spline is a single cubic curve over these extended intervals [590](#page=590). | Spline Type | Additional Conditions | Matrix Form of System for M_i | | --- | --- | --- | | Natural Spline | M1 = 0, Mn = 0 | System for M2,..., Mn-1 with M1=0, Mn=0 | | Parabolic Runout Spline | M1 = M2, Mn = Mn-1 | System for M2,..., Mn-1 with M1=M2, Mn=Mn-1 | | Cubic Runout Spline | M1 = 2M2 - M3, Mn = 2Mn-1 - Mn-2 | System for M2,..., Mn-1 with M1=2M2-M3, Mn=2Mn-1-Mn-2 | ## 45.26 Using a Parabolic Runout Spline EXAMPLE 1 [591](#page=591) [592](#page=592) This example demonstrates interpolating water density data using a parabolic runout spline to find the maximum density. The data points are: | Temperature (°C) | Density (g/cm3) | | --- | --- | | -10 | 0.99815 | | 0 | 0.99987 | | 10 | 0.99973 | | 20 | 0.99823 | | 30 | 0.99567 | The system of equations for the parabolic runout spline is solved for $M_2, M_3, M_4$. The coefficients for the spline are then calculated. The maximum density is found by setting the derivative of the spline in the relevant interval to zero. The interpolated maximum density is 1.00001 g/cm³ at 3.99°C [591](#page=591) [592](#page=592). > 📝 The interpolated maximum density of water is estimated to be 1.00001 g/cm³ at 3.99°C, which closely matches experimental values [592](#page=592). ## 45.27 Closing Remarks Cubic splines and their generalizations are valuable for numerical integration, differentiation, solving differential and integral equations, and in optimization theory [592](#page=592). ## 45.28 EXERCISE SET 10.3 This exercise set includes problems on deriving spline coefficients, interpolating data points with different spline types, analyzing spline behavior, and exploring periodic and clamped splines. It also features computational exercises using technology for solving systems related to natural cubic splines [592](#page=592) [593](#page=593). ## 45.29 Markov Chains A Markov chain is a process where the probability of transitioning to a future state depends only on the current state, not on the sequence of events that preceded it [594](#page=594). ## 45.30 A Markov Process A Markov process involves a system with a finite number of states. The transition probability $p_{ij}$ represents the probability of moving from state $j$ to state $i$. The collection of these probabilities forms the transition matrix $P = [p_{ij}]$ [594](#page=594). A key property of the transition matrix is that the sum of probabilities in each column must be 1, meaning that from any given state, there is a certainty of transitioning to one of the possible states. Matrices with this property are called stochastic matrices [595](#page=595). The state of the system at any observation time is represented by a state vector, which is a column vector where each component is the probability of being in a particular state. The sum of the entries in a state vector must also be 1 [595](#page=595). ## 45.31 Theorem 10.4.1 If $x(n)$ is the state vector at the $n$-th observation and $P$ is the transition matrix, then the state vector at the next observation, $x(n+1)$, is given by $x(n+1) = Px(n)$. Consequently, $x(n) = P^n x(0)$, where $x(0)$ is the initial state vector [596](#page=596). ## 45.32 Transition Matrix of the Markov Chain EXAMPLE 1 This example involves a car rental agency with three locations. The transition matrix shows the probabilities of returning a car to a specific location based on where it was rented [594](#page=594) [595](#page=595). ## 45.33 Transition Matrix of the Markov Chain EXAMPLE 2 This example models alumni donations. State 1 is donating, and State 2 is not donating. The transition matrix reflects the probabilities of an alumnus donating or not donating in consecutive years [595](#page=595). ## 45.34 Example 2 Revisited EXAMPLE 3 This example uses the alumni donation transition matrix to predict the probability of a new graduate donating over several years. The initial state vector represents a graduate not donating in the first year. The state vectors converge to a fixed vector over time, indicating a long-term probability of donation [596](#page=596). ## 45.35 Example 1 Revisited EXAMPLE 4 This example revisits the car rental agency scenario, showing how the state vectors evolve over time when a car is initially rented from a specific location. The state vectors approach a fixed vector, indicating a stable distribution of car returns across locations [597](#page=597). ## 45.36 Using Theorem 10.4.1 EXAMPLE 5 This example models a traffic officer's movement between eight intersections. The transition matrix defines the probabilities of moving to adjacent or the same intersection. The state vectors show the officer's probable location hour by hour, converging to a steady-state distribution [597](#page=597) [598](#page=598). ## 45.37 System Oscillates Between Two State Vectors EXAMPLE 6 This example illustrates a Markov chain where the state vectors do not converge to a single fixed vector but oscillate between two distinct state vectors. This occurs when the transition matrix $P$ satisfies $P^2 = I$ but $P \neq I$ [598](#page=598). ## 45.38 Limiting Behavior of the State Vectors For many Markov chains, the state vectors $x(n)$ approach a fixed vector as $n$ increases. This fixed vector represents the long-term probabilities of being in each state. However, not all Markov chains exhibit this behavior; some may oscillate [598](#page=598). ## 45.39 Regular Transition Matrix A transition matrix $P$ is called **regular** if there exists a positive integer $m$ such that all entries of $P^m$ are positive. Regular transition matrices guarantee that the state vectors will converge to a unique steady-state vector [598](#page=598). ## 45.40 Theorem 10.4.2 If $P$ is a regular transition matrix, then as $n \to \infty$, $P^n$ approaches a matrix where each column is the same positive probability vector $q$ [599](#page=599). ## 45.41 Theorem 10.4.3 If $P$ is a regular transition matrix and $x$ is any probability vector, then as $n \to \infty$, $P^n x$ approaches a fixed probability vector $q$, independent of $x$. This vector $q$ is called the steady-state vector [599](#page=599). ## 45.42 Theorem 10.4.4 The steady-state vector $q$ of a regular transition matrix $P$ is the unique probability vector that satisfies the equation $Pq = q$. This can also be expressed as solving the homogeneous linear system $(I - P)q = 0$ with the constraint that the entries of $q$ sum to 1 [600](#page=600). ## 45.43 Example 2 Revisited EXAMPLE 7 This example demonstrates finding the steady-state vector for the alumni donation Markov chain. The equation $(I - P)q = 0$ is solved, leading to a relationship between the components of the steady-state vector $q$ [600](#page=600). ## 45.44 Markov Chains and Steady-State Vectors A regular Markov chain is one where every state can eventually be reached from every other state, and it is possible to return to the starting state. For such chains, a unique steady-state vector exists. This vector represents the long-term probabilities of being in each state. The steady-state vector $q$ for a regular Markov chain with transition matrix $P$ is found by solving the linear system $(I - P)q = 0$, where $I$ is the identity matrix, and $q$ is a probability vector (its entries sum to 1). - **Steady-state vector calculation**: The steady-state vector $q$ is the unique probability vector solution to $(I - P)q = 0$. - **Interpretation**: The entries of $q$ represent the long-run probabilities of being in each state [601](#page=601). ## 45.45 Example 1 Revisited The steady-state vector for a given transition matrix $P$ was calculated by solving $(I - P)q = 0$. The resulting vector $q$ indicated the long-run probabilities of a car being returned to locations 1, 2, or 3. For a fleet of 1000 cars, this suggested the required number of spaces at each location [601](#page=601). ## 45.46 Exercise Set 10.4 This exercise set focuses on calculating state vectors for given $n$, identifying regular transition matrices, finding steady-state vectors, and analyzing properties of non-regular transition matrices. It also includes word problems involving probabilities of states over time [602](#page=602). ## 45.47 Graph Theory and Directed Graphs Graph theory provides a framework for modeling relationships between members of a set using directed graphs. A directed graph consists of vertices (elements) and directed edges (ordered pairs representing a relation). - **Vertices**: Elements of a set. - **Directed edges**: Ordered pairs $(P_i, P_j)$ indicating a relation from $P_i$ to $P_j$. - **Notation**: $P_i \to P_j$ means $P_i$ is connected to $P_j$ [604](#page=604). ## 45.48 Vertex Matrix An $n \times n$ matrix $M = [m_{ij}]$ associated with a directed graph with $n$ vertices, where $m_{ij} = 1$ if $P_i \to P_j$ and $m_{ij} = 0$ otherwise. - **Properties**: - All entries are 0 or 1. - All diagonal entries are 0 [604](#page=604). ## 45.49 Example 1: Influences Within a Family The influence pattern within a family was modeled using a directed graph, with family members as vertices and influence as directed edges. The corresponding vertex matrix was constructed [605](#page=605). ## 45.50 Example 2: Vertex Matrix: Moves on a Chessboard A knight's moves on a restricted set of nine squares were represented by a directed graph. The vertex matrix for this graph illustrated all possible knight moves between these squares [605](#page=605). ## 45.51 Connections in Directed Graphs Connections between vertices can be categorized by the number of steps. An $r$-step connection from $P_i$ to $P_j$ is a sequence of $r$ directed edges starting at $P_i$ and ending at $P_j$. ## 45.52 Theorem 10.5.1 Let $M$ be the vertex matrix of a directed graph. The $(i, j)$-th element of $M^r$, denoted $m^{(r)}_{ij}$, equals the number of $r$-step connections from vertex $P_i$ to vertex $P_j$ [606](#page=606). ## 45.53 Example 3: Using Theorem 10.5.1 The number of 1-, 2-, and 3-step connections between cities served by an airline was calculated using powers of the airline's route map's vertex matrix. The connections were verified by listing them [606](#page=606). ## 45.54 Cliques in Directed Graphs A clique is a maximal subset of at least three vertices where every pair of vertices is mutually connected (i.e., $P_i \leftrightarrow P_j$). - **Conditions for a clique**: - Contains at least three vertices. - For any $P_i, P_j$ in the subset, $P_i \to P_j$ and $P_j \to P_i$. - The subset is maximal [607](#page=607). A matrix $S$ is defined where $s_{ij} = 1$ if $m_{ij} = m_{ji} = 1$, and $0$ otherwise. This matrix represents connections where edges are two-way. ## 45.55 Theorem 10.5.2 A vertex $P_i$ belongs to some clique if and only if the $(i, i)$-th element of $S^3$, denoted $s^{(3)}_{ii}$, is non-zero [607](#page=607). ## 45.56 Example 4: A Directed Graph with Two Cliques A directed graph representing an airline route map was analyzed, and two cliques, $\{P_1, P_2, P_3, P_4\}$ and $\{P_3, P_4, P_6\}$, were identified [607](#page=607). ## 45.57 Example 5: Using Theorem 10.5.2 Given a vertex matrix $M$, the matrix $S$ was computed. Since all diagonal entries of $S^3$ were zero, the corresponding directed graph had no cliques [608](#page=608). ## 45.58 Example 6: Using Theorem 10.5.2 For a given vertex matrix $M$, $S$ was computed. The non-zero diagonal entries of $S^3$ indicated that $P_1, P_2,$ and $P_4$ belonged to cliques, forming the single clique $\{P_1, P_2, P_4\}$ [608](#page=608). ## 45.59 Dominance-Directed Graphs A dominance-directed graph is a directed graph where for any two distinct vertices $P_i$ and $P_j$, either $P_i \to P_j$ or $P_j \to P_i$, but not both. This models situations like sports tournaments where there are no ties [609](#page=609). ## 45.60 Theorem 10.5.3 In any dominance-directed graph, there is at least one vertex from which there is a 1-step or 2-step connection to any other vertex [609](#page=609). The proof involves choosing a vertex with the largest total number of 1-step and 2-step connections. This can be found by examining the row sums of the matrix $A = M + M^2$, where $M$ is the vertex matrix. ## 45.61 Example 7: Using Theorem 10.5.3 The vertex matrix $M$ for a baseball league was given. $M^2$ was computed, and then $A = M + M^2$. The row sums of $A$ identified the vertex $P_2$ as having a connection to all other vertices [610](#page=610). ## 45.62 Definition 3: Power of a Vertex The power of a vertex $P_i$ in a dominance-directed graph is the total number of 1-step and 2-step connections from $P_i$ to other vertices. This is equal to the sum of the entries in the $i$-th row of the matrix $A = M + M^2$ [610](#page=610). ## 45.63 Example 8: Example 7 Revisited The powers of the five baseball teams were calculated based on the row sums of $A = M + M^2$, and the teams were ranked accordingly [610](#page=610). ## 45.64 Exercise Set 10.5 This exercise set covers constructing vertex matrices from directed graphs, drawing directed graphs from vertex matrices, using Theorem 10.5.1 to find $r$-step connections, interpreting matrix products like $M^T M$, locating cliques using Theorem 10.5.2, and finding the power of vertices in dominance-directed graphs [611](#page=611). ## 45.65 Games of Strategy Games of strategy involve two players with opposing objectives, where each player chooses a strategy to maximize their own outcome, assuming the other player also plays optimally. These games can be analyzed using matrix techniques. ## 45.66 Two-Person Zero-Sum Matrix Games A two-person zero-sum game is one where the gain of one player equals the loss of the other, summing to zero. The outcomes and payoffs are represented in a matrix. - **Players**: Player R (row player) and Player C (column player) [613](#page=613). - **Moves**: Each player has a finite number of possible moves. - **Payoff Matrix**: An $m \times n$ matrix $A = [a_{ij}]$, where $a_{ij}$ is the payoff from Player C to Player R when Player R makes move $i$ and Player C makes move $j$. Negative values indicate a payoff from Player R to Player C [614](#page=614). ## 45.67 Strategies and Expected Payoff Players choose strategies probabilistically. - **Strategy**: A probability vector representing the likelihood of each move. - Player R's strategy: $p = [p_1, p_2, \dots, p_m]$. - Player C's strategy: $q = [q_1, q_2, \dots, q_n]^T$ [614](#page=614). - **Expected Payoff**: The weighted average of all possible payoffs, where weights are the probabilities of each outcome. It is denoted by $E(p, q)$ and calculated as $E(p, q) = pAq$ [615](#page=615). ## 45.68 Example 1: Expected Payoff to Player R For a carnival game, the strategies $p$ and $q$ were determined from sector areas. The expected payoff $E(p, q)$ was calculated, indicating the average amount Player R could expect to receive per play [615](#page=615). ## 45.69 Optimal Strategies for Zero-Sum Games [617](#page=617) This section defines optimal strategies and the value of a game in the context of zero-sum games. It establishes the fundamental theorem of zero-sum games and introduces the concept of saddle points for strictly determined games. * **Optimal strategies** for players R and C are strategies p* and q* such that the expected payoff E(p*, q) is always greater than or equal to E(p*, q*), and E(p, q*) is always less than or equal to E(p*, q*). * The **value of the game**, v, is the expected payoff E(p*, q*) when both players use their optimal strategies. * The **Fundamental Theorem of Zero-Sum Games** states that there exist strategies p* and q* such that E(p*, q) ≥ E(p*, q*) ≥ E(p, q*) for all strategies p and q [616](#page=616). * **Pure strategies** involve always making a single, specific move. * **Mixed strategies** involve making multiple moves with certain probabilities. * A **saddle point** in a payoff matrix is an entry that is the smallest in its row and the largest in its column. * A game with a saddle point is called **strictly determined**. * If a payoff matrix has a saddle point at `a_rs`, then the optimal strategy for player R is to always make the r-th move, and for player C is to always make the s-th move. * The value of a strictly determined game is the numerical value of its saddle point [617](#page=617). | Condition | Definition | | --- | --- | | Entry $a_{rs}$ is smallest in its row | Minimum of row $r$ | | Entry $a_{rs}$ is largest in its column | Maximum of column $s$ | ## 45.70 2x2 Matrix Games [619](#page=619) This section focuses on finding optimal strategies for 2x2 games that are not strictly determined. It provides formulas for calculating these strategies and the value of the game. * For a 2x2 game that is not strictly determined, optimal strategies can be found using specific formulas derived from the payoff matrix [618](#page=618). * The formulas for the optimal strategy p* for player R are: * $p_1^\ast = \frac{a_{22} - a_{21}}{a_{11} + a_{22} - a_{12} - a_{21}}$ * $p_2^\ast = \frac{a_{11} - a_{12}}{a_{11} + a_{22} - a_{12} - a_{21}}$. * The formulas for the optimal strategy q* for player C are: * $q_1^\ast = \frac{a_{22} - a_{12}}{a_{11} + a_{22} - a_{12} - a_{21}}$ * $q_2^\ast = \frac{a_{11} - a_{21}}{a_{11} + a_{22} - a_{12} - a_{21}}$. * The value of the game for a 2x2 matrix game is given by: $v = \frac{a_{11}a_{22} - a_{12}a_{21}}{a_{11} + a_{22} - a_{12} - a_{21}}$. * In a 2x2 game, if either player chooses their optimal strategy, they can force the expected payoff to be the game's value, regardless of the other player's strategy [619](#page=619). | Player | Optimal Strategy | | --- | --- | | Player R | p* = [$\frac{a_{22}-a_{21}}{a_{11}+a_{22}-a_{12}-a_{21}}$, $\frac{a_{11}-a_{12}}{a_{11}+a_{22}-a_{12}-a_{21}}$ | | Player C | q* = [$\frac{a_{22}-a_{12}}{a_{11}+a_{22}-a_{12}-a_{21}}$, $\frac{a_{11}-a_{21}}{a_{11}+a_{22}-a_{12}-a_{21}}$ | | Game | Value | | --- | --- | | 2x2 Matrix Game (not strictly determined) | $v = \frac{a_{11}a_{22} - a_{12}a_{21}}{a_{11}+a_{22}-a_{12}-a_{21}}$ | > 📝 A government needs to inoculate citizens against a flu virus with two strains using two vaccines. Vaccine 1 is 85% effective against strain 1 and 70% against strain 2. Vaccine 2 is 60% effective against strain 1 and 90% against strain 2. The payoff matrix is: > > ``` >.85.70 >.60.90 > ``$ > > This game is not strictly determined. The optimal strategy for the government (player R) is to inoculate 2/3 of citizens with vaccine 1 and 1/3 with vaccine 2. This guarantees about 76.7% resistance. The optimal strategy for the virus (player C) is to have a distribution of 4/9 strain 1 and 5/9 strain 2, also resulting in 76.7% resistance [620](#page=620). ## 45.71 Forest Management Model [622](#page=622) [623](#page=623) [624](#page=624) This section introduces a mathematical model for managing a forest to achieve optimal sustainable yield. It defines height classes, growth parameters, and harvest vectors to model forest dynamics and economic value. * The forest management model aims to find a sustainable harvesting policy that maximizes the total economic value of harvested trees [605](#page=605). * Trees are classified into $n` height classes, each with a specific economic value `p_i`. * The **nonharvest vector** `x` represents the number of trees in each height class that remain after each harvest. * The total number of trees `s` is fixed, so $x_1 + x_2 + \dots + x_n = s$ [622](#page=622). * **Growth parameters** `g_i$ represent the fraction of trees in class $i` that grow into class `i+1` during a growth period. * The **growth matrix** `G` describes how trees transition between height classes. * The **harvest vector** `y` represents the number of trees removed from each class during a harvest. * The **replacement matrix** `R` accounts for planting new seedlings [623](#page=623). * A **sustainable harvesting condition** is defined by the matrix equation $Gx - y + Ry = x$, or $(I - R)y = (G - I)x$. * It is assumed that no seedlings (`y_1`) are harvested, as they have no economic value [624](#page=624). * The condition for sustainable harvesting requires that $g_1x_1 \ge g_2x_2 \ge \dots \ge g_{n-1}x_{n-1} \ge 0$ [625](#page=625). | Parameter | Description | | --- | --- | | $x_i$ | Number of trees in height class $i$ remaining after harvest | | $s$ | Total number of trees in the forest | | $g_i$ | Fraction of trees in class $i$ growing into class $i+1$ | | $p_i$ | Economic value of a tree in class $i$ | | $y_i$ | Number of trees removed from class $i$ during harvest | ## 45.72 Optimal Sustainable Yield This section details how to find the optimal sustainable yield by harvesting all trees from a single height class. It provides a theorem and an example for determining which class to harvest. * The **total yield** `Yld` is calculated as the sum of the values of harvested trees: $Yld = p_2y_2 + p_3y_3 + \dots + p_ny_n$. * Substituting the harvest vector `y` into the yield equation, the yield can be expressed in terms of the nonharvest vector `x`: $Yld = p_2g_1x_1 + (p_3 - p_2)g_2x_2 + \dots + (p_n - p_{n-1})g_{n-1}x_{n-1}$. * **Theorem 10.7.1** states that the optimal sustainable yield is achieved by harvesting all trees from one particular height class and none from any other [625](#page=625). * To find the optimal yield, one calculates the yield `Yld_k` for harvesting only class `k` and compares these values. * The formula for the yield when harvesting only class `k$ is: $Yld_k = \frac{p_k s}{g_1^{-1} + g_2^{-1} + \dots + g_k^{-1}}$. * **Theorem 10.7.2** provides the method to find the optimal sustainable yield: calculate $Yld_k` for each `k` from 2 to `n` and select the largest value. The corresponding `k` indicates the class to be completely harvested. * The nonharvest vector `x$ for the optimal sustainable yield is given by: $x = \frac{s}{g_1^{-1} + g_2^{-1} + \dots + g_k^{-1}} [g_1^{-1}, g_2^{-1}, \dots, g_k^{-1}, 0, \dots, 0]^T$ [626](#page=626). > 📝 For a Scots pine forest with given growth parameters and prices for trees in five height classes (p2 to p6), the yields for harvesting each class individually are calculated. Yld2 = 14.0s, Yld3 = 14.7s, Yld4 = 13.9s, Yld5 = 13.2s, Yld6 = 14.0s. The largest yield is 14.7s, achieved by harvesting class 3. Thus, class 3 should be completely harvested every six years for the optimal sustainable yield of $14.7s [627](#page=627). ## 45.73 Computer Graphics: Transformations [630](#page=630) This section introduces how matrix algebra is used in computer graphics to transform 3D objects for display. It covers scaling and translation of points and objects. * Computer graphics uses matrix algebra to display 3D objects by transforming their views through scaling, translation, and rotation [612](#page=612). * A 3D object can be represented by a set of points, each defined by (x, y, z) coordinates [628](#page=628). * The **coordinate matrix** $P` of a view is a 3xn matrix where columns are the coordinates of the object's points [629](#page=629). * **Scaling** transforms a point (x, y, z) to (ax, by, γz) using a diagonal scaling matrix `S`. * The transformation for scaling all points in a coordinate matrix `P` to a new matrix `P'` is $P' = SP$. * **Translation** displaces a point (x, y, z) to (x + x0, y + y0, z + z0) [630](#page=630). | Transformation | Matrix Operation | | --- | --- | | Scaling by factors a, b, γ | $P' = SP$, where $S = \begin{pmatrix} a & 0 & 0 \\ 0 & b & 0 \\ 0 & 0 & \gamma \end{pmatrix}$ | | Translation by (x0, y0, z0) | Requires homogeneous coordinates or separate addition for each point. | ## 45.74 Equilibrium temperature distributions The equilibrium temperature distribution within a plate is determined by the temperatures along its edges. This distribution aims to distribute thermal energy as evenly as possible while respecting boundary conditions [636](#page=636). ## 45.75 Boundary data The temperatures along the edges of a thin trapezoidal plate are given. These boundary conditions completely determine the interior equilibrium temperature after a period of time [636](#page=636). > 📝 The temperatures along the edges of a thin trapezoidal plate are given as 0°, 0°, 1°, and 2°. After a period of time, the interior temperature stabilizes and is completely determined by these boundary conditions [636](#page=636). ## 45.76 The mean-value property The mean-value property states that for a plate in thermal equilibrium, the temperature at any interior point is the average of the temperatures on any circle centered at that point, provided the circle is entirely within the plate [637](#page=637). ## 45.77 Discrete formulation of the problem To find the equilibrium temperature distribution, the trapezoidal plate can be overlaid with a mesh of intersecting lines. The points of intersection are called mesh points, classified as either boundary or interior mesh points. The temperature is known at boundary mesh points and needs to be determined at interior mesh points [637](#page=637). ## 45.78 Discrete mean-value property At each interior mesh point, the temperature is approximated by the average of the temperatures at its four neighboring mesh points. This approximation improves as the mesh spacing decreases [638](#page=638). > 📝 For a coarse net with a single interior mesh point, the temperature $t_0$ is calculated as the average of the boundary temperatures: $t_0 = \frac{4(0) + 0 + 0 + 0}{4} = 0.75$ [638](#page=638). ## 45.79 Case (a): One interior mesh point For a coarse net with a single interior mesh point, the temperature $t_0$ is directly calculated as the average of the boundary temperatures. $t_0 = \frac{4(0) + 0 + 0 + 0}{4} = 0.75$ [638](#page=638). ## 45.80 Case (b): Nine interior mesh points [639](#page=639) With nine interior mesh points, a system of nine linear equations in nine unknowns is formed by applying the discrete mean-value property to each point. This system can be represented in matrix form as $t = Mt + b$, where $t$ is the vector of unknown temperatures, $M$ is a matrix derived from the mesh connections, and $b$ is a vector representing boundary temperatures. The solution is $t = (I - M)^{-1}b$ [638](#page=638). The calculated temperatures for the nine interior mesh points are: | Mesh Point | Temperature | | --- | --- | | t1 | 0.7846 | | t2 | 1.1383 | | t3 | 0.4719 | | t4 | 1.2967 | | t5 | 0.7491 | | t6 | 0.3265 | | t7 | 1.2995 | | t8 | 0.9014 | | t9 | 0.5570 | ## 45.81 Case (c): 49 interior mesh points For a finer net with 49 interior mesh points, a system of 49 linear equations in 49 unknowns is generated. This system is also solved using the matrix equation $t = Mt + b$, yielding $t = (I - M)^{-1}b$ [639](#page=639). The temperatures at the 49 mesh points are displayed, with nine of these points overlapping with those from case (b) [639](#page=639). ## 45.82 Comparison of temperatures at common mesh points Table 1 compares the temperatures at the nine common mesh points for the three different mesh spacings (cases a, b, and c). The temperatures from case (c) are closer to the exact values than those from case (b), illustrating the convergence as mesh spacing decreases [640](#page=640). | Mesh Point | Case (a) | Case (b) | Case (c) | | --- | --- | --- | --- | | t1 | - | 0.7846 | 0.8048 | | t2 | - | 1.1383 | 1.1533 | | t3 | - | 0.4719 | 0.4778 | | t4 | - | 1.2967 | 1.3078 | | t5 | 0.7500 | 0.7491 | 0.7513 | | t6 | - | 0.3265 | 0.3157 | | t7 | - | 1.2995 | 1.3042 | | t8 | - | 0.9014 | 0.9032 | | t9 | - | 0.5570 | 0.5554 | ## 45.83 A numerical technique For large systems of equations arising from finer meshes, exact solutions are impractical. A numerical technique, Jacobi iteration, is used to generate successive approximations to the solution vector $t$ [641](#page=641). ## 45.84 Jacobi iteration The Jacobi iteration scheme starts with an initial approximation $t^{(0)}$ (often $t^{(0)} = 0$) and generates a sequence of approximations $t^{(1)}, t^{(2)}, \dots, t^{(n)}$ using the formula $t^{(n)} = Mt^{(n-1)} + b$. This sequence converges to the exact solution for the temperature distribution problem [641](#page=641). Applying Jacobi iteration to case (b) with $t^{(0)} = 0$: - $t^{(1)} = Mt^{(0)} + b$. - $t^{(2)} = Mt^{(1)} + b$ [641](#page=641). Additional iterates show convergence: - $t^{(3)}$ [641](#page=641). - $t^{(10)}$. - $t^{(20)}$. - $t^{(30)}$ [642](#page=642). The iterates $t^{(n)}$ converge to the exact solution $t$ to four decimal places by the thirtieth iteration. For the 49-unknown system (case c), convergence to four decimal places occurs after 119 iterations [642](#page=642). > 📝 Applying Jacobi iteration to case (b) with $t^{(0)} = 0$, the first iterate is $t^{(1)} = Mt^{(0)} + b$, and the second is $t^{(2)} = Mt^{(1)} + b$ [641](#page=641). ## 45.85 A Monte Carlo technique A Monte Carlo technique, using discrete random walks, can compute the temperature at a single interior mesh point without solving the entire system. A random walk moves along the net lines, with each step's direction chosen randomly and with equal probability [642](#page=642). ## 45.86 Random walk property [643](#page=643) The average of the boundary temperatures first encountered along a large number of random walks starting from a specified interior mesh point approaches the temperature at that interior mesh point as the number of walks increases indefinitely [642](#page=642). Table 2 shows the results of computer-generated random walks for approximating temperature $t_5$ in case (b). After 1000 random walks, the approximation $t_5 \approx 0.7550$ is obtained, which compares to the exact value of $t_5 = 0.7491$. The convergence is not rapid [643](#page=643). | n | *nt | * * * ( )/ n t t n L | | --- | --- | --- | | 1 | 1.0000 | 1.0000 | | 2 | 1.5000 | 1.2500 | | 3 | 1.3333 | 1.2222 | | 4 | 1.0000 | 1.1500 | | 5 | 1.2000 | 1.1600 | | 6 | 1.0000 | 1.1333 | | 7 | 1.1429 | 1.1429 | | 8 | 1.0000 | 1.1250 | | 9 | 1.1111 | 1.1111 | | 10 | 1.0000 | 1.1000 | | 20 | 0.9500 | 0.9500 | | 30 | 0.8000 | 0.8000 | | 40 | 0.8250 | 0.8250 | | 50 | 0.8400 | 0.8400 | | 100 | 0.8300 | 0.8300 | | 150 | 0.8000 | 0.8000 | | 200 | 0.8050 | 0.8050 | | 250 | 0.8240 | 0.8240 | | 500 | 0.7860 | 0.7860 | | 1000 | 0.7550 | 0.7550 | ## 45.87 Exercise Set 10.9 1. A circular disk plate with boundary temperatures of 0° on the left and 1° on the right half is considered. A net with four interior mesh points is overlaid. a. Write the 4x4 linear system $t = Mt + b$ using the discrete mean-value property. b. Solve the linear system. c. Use Jacobi iteration with $t^{(0)} = 0$ to find $t^{(1)}, t^{(2)}, t^{(3)}, t^{(4)}, t^{(5)}$ and the error vector $t^{(5)} - t$. d. Calculate the percentage errors for the solution found in (b) compared to the exact temperatures $t_1 = t_3 = 0.2871$ and $t_2 = t_4 = 0.7129$. 2. Use Theorem 10.9.1 (Mean-Value Property) to find the exact equilibrium temperature at the center of the disk in Exercise 1. 3. Calculate the first two iterates $t^{(1)}$ and $t^{(2)}$ for case (b) of Figure 10.9.3 with nine interior mesh points, using the initial iterate $t^{(0)} = [1\ 1\ 1\ 1\ 1\ 1\ 1\ 1\ 1]^T$. 4. Use a provided array of 100 computer-generated arrows to simulate random walks and approximate the temperature $t_5$ as in Table 2. This involves using parts of a telephone number to select a starting arrow and then following a sequence of arrows through the array to reach a boundary mesh point, repeating this for 10 random walks and averaging the boundary temperatures [643](#page=643). ## 45.88 Derivation of equations The process of reconstructing a cross-section from X-ray measurements involves setting up a system of linear equations. Each X-ray beam's path through the body can be represented as a line, and the absorption of X-rays by each pixel along that path contributes to the total measured beam density. - The X-ray density of the $j$th pixel, $x_j$, is defined by the natural logarithm of the ratio of photons entering to photons leaving the pixel: $\ln(\frac{\text{photons entering}}{\text{photons leaving}})$. - This can also be expressed as $-\ln(\text{fraction of photons passing through without absorption})$ [646](#page=646). - For a row of $n$ pixels, the total X-ray density is the sum of individual pixel densities: $x_1 + x_2 + \dots + x_n$. - The beam density of the $i$th beam, $b_i$, is the natural logarithm of the ratio of photons entering the detector without the cross-section to those entering with the cross-section. - This $b_i$ value is known from calibration and clinical scans. - For a beam passing through a row of $n$ pixels, the equation is $x_1 + x_2 + \dots + x_n = b_i$. - More generally, if the $i$th beam passes through pixels $j_1, j_2, \dots, j_l$, the equation is $x_{j_1} + x_{j_2} + \dots + x_{j_l} = b_i$ [647](#page=647). - This can be written in the general form of a linear system: $a_{i1}x_1 + a_{i2}x_2 + \dots + a_{iN}x_N = b_i$, where $a_{ij}$ represents the contribution of pixel $j$ to beam $i$. - The coefficients $a_{ij}$ can be defined using different methods: center-of-pixel, center line, or area method, with the area method being the most exact. - A complete scan results in a system of $M$ beam equations with $N$ unknown pixel densities, typically an overdetermined system ($M > N$) [648](#page=648). ## 45.89 Algebraic Reconstruction Techniques (ART) Algebraic Reconstruction Techniques (ART) are iterative methods used to find approximate solutions to the overdetermined and often inconsistent linear systems arising in computed tomography. - ART methods are based on iterative orthogonal projections onto hyperplanes defined by the beam equations. - The process starts with an arbitrary initial point and repeatedly projects it onto each hyperplane in sequence [649](#page=649). - For a system of $M$ equations in $N$ unknowns, represented as $a_i^T x = b_i$ for $i=1, \dots, M$, the orthogonal projection of a point $x^\ast$ onto the hyperplane $a_i^T x = b_i$ is given by $x_p = x^\ast - \frac{a_i^T x^\ast - b_i}{a_i^T a_i} a_i$ [650](#page=650). - Algorithm 1 illustrates this for a 2D system with three lines, showing how successive projections generate a limit cycle [649-650] - Algorithm 2 generalizes this to $N$-dimensional space for $M$ hyperplanes, where the iterates $x^{(p)}_k$ are projections onto successive hyperplanes [651](#page=651). - The iterates $x^{(p)}_M$ converge to a limit point $x^\ast$ which serves as an approximate solution. - For the center-of-pixel method, the iteration distributes excess beam density among pixels the beam passes through [652](#page=652). > 📝 In Example 1, an iterative process with six cycles starting from $x_0 = (1, 3)$ is shown to approximate the limit cycle for a system of three equations in two unknowns. The numerical results demonstrate the convergence of the iterates towards the limit cycle points [650](#page=650). > 📝 Example 2 uses Algorithm 2 to find pixel densities for a 3x3 array using 12 beams. The center-of-pixel method is applied, and the table shows the first cycle of iterates and subsequent iterates for $x^{(p)}_{12}$, indicating convergence around $p=45$ [652-653] ## 45.90 Fractals in the Euclidean Plane Fractals are complex sets in Euclidean space that reveal regularity in phenomena previously considered random. They are characterized by self-similarity and often have non-integer dimensions. - Fractals are sets in Euclidean space that exhibit intricate patterns at all scales. - They are important for understanding physical and biological phenomena like clouds, mountains, and coastlines. - Key concepts include **bounded sets** (enclosed by a circle) and **closed sets** (containing boundary points). - **Congruent sets** can be made to coincide through translation and rotation [655](#page=655). - A **similitude** is a mapping involving scaling, rotation, and translation. - A **contraction** is a similitude with a scale factor $s$ where $0 < s < 1$ [660](#page=660). ## 45.91 Self-similar sets A self-similar set is a closed and bounded subset of $\mathbb{R}^2$ that can be decomposed into a finite number of nonoverlapping congruent subsets, each scaled by the same factor $s$ ($0 < s < 1$). - A self-similar set $S$ can be expressed as the union of $k$ nonoverlapping congruent sets $S_1, \dots, S_k$, where each $S_i$ is $S$ scaled by a factor $s$. - This decomposition implies that $S = \bigcup_{i=1}^k T_i(S)$, where $T_i$ are contraction mappings [656](#page=656). ## 45.92 Examples of self-similar sets - **Line segment:** A line segment is self-similar with $k=2$ and $s=1/2$, decomposable into two smaller congruent segments. - **Square:** A square is self-similar with $k=4$ and $s=1/2$, decomposable into four smaller congruent squares. - **Sierpinski carpet:** This set is self-similar with $k=8$ and $s=1/3$, formed by removing the central square from a grid of nine squares [657](#page=657). - **Sierpinski triangle:** This set is self-similar with $k=3$ and $s=1/2$, formed by repeatedly removing the central inverted triangle from an equilateral triangle [658](#page=658). ## 45.93 Topological dimension The topological dimension ($d_T(S)$) of a set $S$ is an integer representing its intuitive dimension (e.g., point=0, curve=1, region=2) [658](#page=658). - For a set in $\mathbb{R}^n$, the topological dimension is between 0 and $n$. - The topological dimension of the Sierpinski carpet and triangle is 1, despite their appearance as 2D regions, due to their "web-like" structure with many holes [658](#page=658). | Set S | dT(S) | | --- | --- | | Line segment | 0 | | Square | 2 | | Sierpinski carpet | 1 | | Sierpinski triangle | 1 | ## 45.94 Hausdorff dimension The Hausdorff dimension ($d_H(S)$) is an alternative definition of dimension, which for self-similar sets is calculated using the number of scaled copies ($k$) and the scaling factor ($s$) [659](#page=659). - For a self-similar set $S$ formed by $k$ copies scaled by $s$, the Hausdorff dimension is $d_H(S) = \frac{\ln(k)}{\ln(1/s)}$. - This formula can also be written as $k s^{d_H(S)} = 1$. - The Hausdorff dimension can be non-integer. - The topological dimension is always less than or equal to the Hausdorff dimension ($d_T(S) \le d_H(S)$) [659](#page=659). | Set S | s | k | dH(S) | | --- | --- | --- | --- | | Line segment | 1/2 | 2 | 1 | | Square | 1/2 | 4 | 2 | | Sierpinski carpet | 1/3 | 8 | 1.892… | | Sierpinski triangle | 1/2 | 3 | 1.584… | ## 45.95 Definition of a fractal A fractal is defined as a subset of Euclidean space whose Hausdorff dimension and topological dimension are not equal [660](#page=660). - Sets where $d_H(S) \ne d_T(S)$ are considered fractals. - Fractals often have non-integer Hausdorff dimensions, but can also have integer Hausdorff dimensions. - According to this definition, the Sierpinski carpet and triangle are fractals, while line segments and squares are not [660](#page=660). ## 45.96 Self-Similar Sets and Similitudes A self-similar set in $\mathbb{R}^2$ is a closed and bounded set $S$ that can be expressed as the union of $k$ nonoverlapping sets, $S_1, S_2, \dots, S_k$, each congruent to $S$ scaled by a factor $s$ ($0 < s < 1$). Similitudes are transformations that scale and possibly rotate or translate a set. If $T: \mathbb{R}^2 \to \mathbb{R}^2$ is a similitude with scale factor $s$, then $T(S)$ is congruent to $S$ scaled by $s$ [661](#page=661). * **Line segment decomposition**: The unit line segment $S$ from (0, 0) to (1, 0) can be decomposed into two smaller, nonoverlapping segments, each scaled by $s = 1/2$. These segments are generated by two similitudes: * $T_1(x, y) = (\frac{1}{2}x, \frac{1}{2}y)$ * $T_2(x, y) = (\frac{1}{2}x + \frac{1}{2}, \frac{1}{2}y)$ This decomposition satisfies $S = T_1(S) \cup T_2(S)$ [661](#page=661). * **Square decomposition**: The unit square $U$ can be decomposed into four smaller squares, each scaled by $s = 1/2$. These are generated by four similitudes: * $T_3(x, y) = (\frac{1}{2}x, \frac{1}{2}y + \frac{1}{2})$ * $T_4(x, y) = (\frac{1}{2}x + \frac{1}{2}, \frac{1}{2}y + \frac{1}{2})$ This decomposition satisfies $U = T_1(U) \cup T_2(U) \cup T_3(U) \cup T_4(U)$ [661](#page=661). * **Sierpinski carpet construction**: This fractal is formed by decomposing the unit square into nine smaller squares and removing the central one, then repeating this process on the remaining eight squares. It uses eight similitudes with a scale factor of $s = 1/3$. The decomposition satisfies $S = T_1(S) \cup T_2(S) \cup \dots \cup T_8(S)$ [662](#page=662). * **Sierpinski triangle construction**: This fractal is constructed by taking the unit square, applying three similitudes with a scale factor of $s = 1/2$, resulting in three smaller triangles that form the Sierpinski triangle. The decomposition satisfies $S = T_1(S) \cup T_2(S) \cup T_3(S)$ [662](#page=662). ## 45.97 Theorem on Self-Similar Sets Theorem 10.11.1 states that if $T_1, T_2, \dots, T_k$ are contracting similitudes with the same scale factor, there exists a unique non-empty closed and bounded set $S$ such that $S = T_1(S) \cup T_2(S) \cup \dots \cup T_k(S)$. If the sets $T_i(S)$ are nonoverlapping, then $S$ is self-similar [663](#page=663). > 📝 The unit line segment $S$ from (0, 0) to (1, 0) can be decomposed into two smaller, nonoverlapping segments, $T_1(S)$ and $T_2(S)$, each scaled by $s = 1/2$. These segments are generated by the similitudes $T_1(x, y) = (\frac{1}{2}x, \frac{1}{2}y)$ and $T_2(x, y) = (\frac{1}{2}x + \frac{1}{2}, \frac{1}{2}y)$, satisfying $S = T_1(S) \cup T_2(S)$ [661](#page=661). ## 45.98 Iterative Procedures for Generating Fractals Fractals can be generated using iterative procedures. The set-mapping approach involves repeatedly applying a collection of similitudes to an initial set. A more computationally efficient method is the Random Iteration Algorithm, which uses probability to generate points that fill out the fractal [665](#page=665) [666](#page=666). * **Set-mapping algorithm**: * Define $\mathfrak{J}(Q) = T_1(Q) \cup T_2(Q) \cup \dots \cup T_k(Q)$ for a set $Q$. * Step 0: Choose an arbitrary non-empty closed and bounded set $S_0$. * Step $n$: Compute $S_n = \mathfrak{J}(S_{n-1})$. * The sequence $S_0, S_1, S_2, \dots$ converges to the fractal set $S$ [665](#page=665). * **Random Iteration Algorithm**: This algorithm generates a sequence of points that collectively converge to the fractal set $S$. * Step 0: Choose an arbitrary point $y_0$ in $S$. * Step $n$: Choose one of the $k$ similitudes $T_i$ at random and compute $y_n = T_i(y_{n-1})$ [667](#page=667). ## 45.99 Generalizations and Applications The concepts of self-similar sets can be extended to more general transformations called contracting affine transformations. These transformations, while not necessarily preserving shape, still lead to unique fractal sets. This framework has significant applications in data compression and transmission, as complex images can be encoded using a finite set of affine transformations [667](#page=667) [668](#page=668). * **Affine transformation**: A mapping $T: \mathbb{R}^2 \to \mathbb{R}^2$ of the form: $$ T\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} a & b \\ c & d \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} + \begin{pmatrix} e \\ f \end{pmatrix} $$ where $a, b, c, d, e, f$ are scalars [667](#page=667). * **Contracting affine transformation**: An affine transformation that strictly decreases the Euclidean distance between any two points after mapping [668](#page=668). * **Data compression**: A picture represented by a pixel map can be described by a finite number of affine transformations, requiring significantly less memory than a pixel-by-pixel description [668](#page=668) [669](#page=669). ## 45.100 Exercises The exercises cover various aspects of fractals, including finding similitudes, calculating Hausdorff dimensions, identifying fractals, and exploring generalizations to higher dimensions [669](#page=669) [670](#page=670) [671](#page=671). * **Exercise 1**: Find similitudes and Hausdorff dimension for a given self-similar set. Determine if it is a fractal. * **Exercise 2**: Estimate scale factor and rotation angles for a self-similar set and find its Hausdorff dimension. * **Exercise 3**: Determine rotation angles for self-similar sets with a scale factor of $1/2$ and express them as triplets [669](#page=669). * **Exercise 4**: For given self-similar sets, find scale factor, rotation angles, and Hausdorff dimension. Identify which are fractals and why. * **Exercise 5**: Show that $T_2$ in Figure 10.11.22 is a similitude and determine its scale factor and rotation angle. * **Exercise 6**: Find the coordinates of the tip of the fern in Figure 10.11.22, using the property that $T_2$ maps it to itself. * **Exercise 7**: Verify that the Hausdorff dimension of a unit square remains 2 when decomposed into 16 nonoverlapping squares. * **Exercise 8**: Show that four overlapping squares do not yield the correct Hausdorff dimension for the unit square, highlighting the necessity of the nonoverlapping condition. * **Exercise 9**: Compute the Hausdorff dimension of the unit cube in $\mathbb{R}^3$ and determine if it is a fractal. * **Exercise 10**: Determine $k$ and $s$ for the Menger sponge and find its Hausdorff dimension, assessing if it is a fractal [670](#page=670). * **Exercise 11**: Sketch the first four sets generated by Algorithm 1 for the Cantor set and find its Hausdorff dimension. * **Exercise 12**: Compute the areas of the sets $S_0, S_1, S_2, S_3, S_4$ in Figure 10.11.15 [671](#page=671). ## 45.101 Chaos and Arnold's Cat Map Chaos describes mathematical mappings and physical phenomena that appear random but have underlying order. Arnold's cat map is a chaotic mapping that transforms the unit square onto itself using modular arithmetic. Repeated applications of this map can lead to complex patterns and eventual return to the original configuration [671](#page=671) [672](#page=672). * **Modular arithmetic**: For a real number $x$, $x \pmod{1}$ is the unique number in $[0, 1)$ that differs from $x$ by an integer. For an ordered pair $(x, y)$, $(x, y) \pmod{1} = (x \pmod{1}, y \pmod{1})$ [672](#page=672). * **Arnold's cat map**: A transformation $\Gamma: \mathbb{R}^2 \to \mathbb{R}^2$ defined by: $$ \Gamma: (x, y) \to (x + y, x + 2y) \pmod{1} $$ In matrix notation: $$ \Gamma\begin{pmatrix} x \\ y \end{pmatrix} = \begin{pmatrix} 1 & 1 \\ 1 & 2 \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} \pmod{1} $$ This map transforms all points in $\mathbb{R}^2$ into the unit square $S = \{(x, y) | 0 \le x < 1, 0 \le y < 1\}$ [672](#page=672). * **Geometric effect**: The map involves two shear transformations followed by reassembly using modulo 1 arithmetic, which breaks up and rearranges the parallelogram into the unit square [673](#page=673). > 📝 Arnold's cat map is defined by $\Gamma: (x, y) \to (x + y, x + 2y) \pmod{1}$. For $p=76$, the point $(27/76, 58/76)$ has a period of 9, meaning it returns to its initial position after 9 applications of the map [675](#page=675). ## 45.102 Repeated Mappings and Periodic Points Chaotic mappings are often studied through repeated applications (iterations). Arnold's cat map, when applied repeatedly to an image within the unit square, can decompose the image into streaks and eventually return it to its original form. This behavior is explained by the concept of periodic points [673](#page=673). * **Pixel map**: A discrete representation of an image on a computer screen, divided into pixels. For a grid with $p$ pixels per side, pixel points have coordinates $(m/p, n/p)$, where $m, n$ are integers from 0 to $p-1$ [674](#page=674). * **Transformation of pixel points**: Arnold's cat map transforms every pixel point $(m/p, n/p)$ into another pixel point $(m'/p, n'/p)$, where $m'$ and $n'$ are the remainders of $(m+n)$ and $(m+2n)$ divided by $p$, respectively [675](#page=675). * **Period of a point**: A point has period $n$ if it returns to its initial position after $n$ applications of the map, but not fewer. The set of $n$ distinct iterates is called an $n$-cycle [675](#page=675). * **Period of a pixel map**: $\Pi(p)$ is the least common multiple of the periods of all pixel points in a map with $p^2$ pixels. The pixel map returns to its initial configuration in $\Pi(p)$ iterations [675](#page=675). * **Example 1**: For $p=76$, the point $(27/76, 58/76)$ has a period of 9, forming a 9-cycle [675](#page=675). ## 45.103 The Tiled Plane Arnold's cat map can be viewed as a linear transformation on a tiled plane, where the unit square containing the image is repeated infinitely. This tiling approach avoids the mod 1 arithmetic used in the original definition, resulting in a linear transformation. While both tiling and mod 1 arithmetic produce periodicity, they do so differently: mod 1 arithmetic means points return to their exact original positions, whereas tiling means points are replaced by points of the same color at their original positions [677](#page=677). ## 45.104 Properties of Arnold’s Cat Map [678](#page=678) When viewed as a linear transformation on a tiled plane, Arnold's cat map is represented by a symmetric matrix with a determinant of 1. The determinant of 1 signifies that the transformation preserves areas. The matrix's symmetry implies real eigenvalues and orthogonal eigenvectors. The eigenvalues dictate the stretching and compression factors along the directions of their corresponding eigenvectors. Specifically, one eigenvalue causes stretching, and the other causes compression [678](#page=678). | Eigenvalue | Factor | Direction | | --- | --- | --- | | λ1 ≈ 2.6180 | Stretching by 2.6180 | Eigenvector v1 | | λ2 ≈ 0.3819 | Compression by 0.3819 | Eigenvector v2 | The streaks observed in Arnold's cat map are a result of points flowing away from their initial positions along the direction of the stretching eigenvector (v1), while other points with the same color flow towards these initial positions along the direction of the compressing eigenvector (v2) [678](#page=678). ## 45.105 Nonperiodic Points Points in Arnold's cat map can be classified as rational or irrational. Rational points, whose coordinates are both rational numbers, are always periodic. This is because any rational point can be expressed as a pixel point for a suitable choice of $p$. Conversely, every periodic point must be a rational point. Irrational points, where at least one coordinate is irrational, are nonperiodic, meaning their successive iterates are all distinct points within the unit square [679](#page=679). A set D is dense in S if every circle within S, regardless of its radius, contains points from D [680](#page=680). ## 45.106 Definition of Chaos A mapping $T$ of the unit square $S$ onto itself is considered chaotic if it satisfies two conditions: * $S$ contains a dense set of periodic points under the mapping $T$. * There exists at least one point in $S$ whose iterates under $T$ are dense in $S$. Arnold's cat map fulfills this definition, exhibiting both order (periodic points) and disorder (points with dense iterates). This blend of order and disorder is characteristic of chaotic mappings [680](#page=680). ## 45.107 Dynamical Systems Chaotic mappings are fundamental to the study of dynamical systems, which describe systems that change their state over time. In discrete-time dynamical systems, states evolve at distinct time intervals, with each state resulting from a chaotic mapping of the preceding state. Predicting future states in such systems is challenging due to sensitivity to initial conditions; even minor errors in initial measurements or computations can be magnified exponentially, preventing accurate long-term predictions [680](#page=680) [681](#page=681). > 📝 If an initial error in a point's position is small, after several iterations, the projected distance in the direction of the stretching eigenvector can increase significantly. For Arnold's cat map, an initial error of 1/100,000 in the direction of v1 can grow to a substantial fraction of the unit square's width after just 12 iterations, leading to a complete loss of track of the true iterates within S [681](#page=681). ## 45.108 Ciphers Cryptography is the study of encoding and decoding secret messages. Simple substitution ciphers replace each letter with another, but they are vulnerable to statistical analysis due to preserving letter frequencies [684](#page=684). ## 45.109 Hill Ciphers Hill ciphers are a type of polygraphic system that overcomes the limitations of substitution ciphers by enciphering groups of letters rather than individual ones. In a Hill $n$-cipher, plaintext is divided into sets of $n$ letters, which are then transformed into $n$ ciphertext letters using an $n \times n$ matrix with integer entries [684](#page=684) [685](#page=685). To encipher a message using a Hill 2-cipher: * Assign numerical values to letters (A=1,..., Z=0). * Group plaintext letters into pairs, adding a dummy letter if necessary. * Convert each pair into a column vector. * Multiply the vector by a chosen 2x2 encoding matrix with integer entries. * If any resulting number exceeds 25, replace it with its remainder when divided by 26 (modular arithmetic). * Convert the resulting ciphertext vectors back to their alphabetic equivalents [685](#page=685). ## 45.110 Modular Arithmetic [687](#page=687) Modular arithmetic involves working with remainders after division by a specific number, called the modulus ($m$). Two integers $a$ and $b$ are considered equivalent modulo $m$ (written as $a \equiv b \pmod{m}$) if their difference ($a-b$) is an integer multiple of $m$ [686](#page=686). | Integer a | Modulus m | Residue r | | --- | --- | --- | | 87 | 26 | 9 | | -38 | 26 | 14 | | -26 | 26 | 0 | The set of residues modulo $m$, denoted $Z_m$, consists of the integers $\{0, 1, 2, \dots, m-1\}$. For any integer $a$, its residue modulo $m$ is the unique integer $r$ in $Z_m$ such that $a \equiv r \pmod{m}$. If $a$ is non-negative, its residue is the remainder when $a$ is divided by $m$ [687](#page=687). ## 45.111 Reciprocals Modulo m In modular arithmetic, a reciprocal (or multiplicative inverse) of an integer $a$ modulo $m$ is an integer $a^{-1}$ such that $a \cdot a^{-1} \equiv 1 \pmod{m}$. An integer $a$ has a reciprocal modulo $m$ if and only if $a$ and $m$ have no common prime factors [687](#page=687) [688](#page=688). For example, the number 3 has a reciprocal modulo 26 because 3 and 26 share no common prime factors. The reciprocal of 3 modulo 26 is 9, since $3 \cdot 9 = 27 \equiv 1 \pmod{26}$. However, 4 does not have a reciprocal modulo 26 because 4 and 26 share the prime factor 2 [688](#page=688). ## 45.112 Deciphering Hill Ciphers Deciphering a Hill cipher involves using the inverse of the enciphering matrix modulo 26. A matrix $A$ with entries in $Z_m$ is invertible modulo $m$ if there exists a matrix $B$ such that $AB \equiv BA \equiv I \pmod{m}$. For a Hill $n$-cipher, the plaintext vector $p$ can be recovered from the ciphertext vector $c$ using $p \equiv A^{-1}c \pmod{m}$ [688](#page=688). A square matrix $A$ with entries in $Z_m$ is invertible modulo $m$ if and only if the residue of $\det(A)$ modulo $m$ has a reciprocal modulo $m$. This is equivalent to $m$ and the residue of $\det(A)$ modulo $m$ having no common prime factors. For $Z_{26}$, a matrix $A$ is invertible if and only if the residue of $\det(A)$ modulo 26 is not divisible by 2 or 13 [689](#page=689). The inverse of a matrix $A$ modulo 26 can be calculated using the formula: $$A^{-1} \equiv (\det(A))^{-1} \begin{pmatrix} d & -b \\ -c & a \end{pmatrix} \pmod{26}$$ where $(\det(A))^{-1}$ is the reciprocal of the residue of $\det(A)$ modulo 26 [689](#page=689). To decode a Hill cipher, multiply each ciphertext vector by the inverse of the enciphering matrix modulo 26 [690](#page=690). ## 45.113 Determining the deciphering matrix The process of deciphering a Hill cipher involves finding the inverse of the enciphering matrix. Theorem 10.13.5 states that if $p_1, p_2, \dots, p_n$ are linearly independent plaintext vectors and $c_1, c_2, \dots, c_n$ are their corresponding ciphertext vectors, forming matrices $P$ and $C$ respectively, then the elementary row operations that reduce $C$ to the identity matrix $I$ will transform $P$ into $(A^{-1})^T$, the transpose of the deciphering matrix. This allows for the determination of the deciphering matrix by applying the same row operations used to reduce the ciphertext matrix $C$ to $I$ on the plaintext matrix $P$ [691](#page=691). ## 45.114 Example 8: Deciphering a Hill 2-cipher This example demonstrates the application of Theorem 10.13.5 to decipher a Hill 2-cipher. Given a portion of the ciphertext and the starting plaintext "DEAR", the corresponding numerical plaintext and ciphertext vectors are identified. By forming the augmented matrix $[C | P]$ and applying elementary row operations to reduce $C$ to $I$, the matrix $(A^{-1})^T$ is obtained. This matrix is then transposed to find the deciphering matrix $A^{-1}$. The deciphering matrix is then used to decode the rest of the ciphertext by multiplying successive ciphertext vectors by $A^{-1}$ [691](#page=691) [692](#page=692) [693](#page=693). The numerical equivalents and calculations for Example 8 are as follows: * Known plaintext: DE AR (4, 5; 1, 18) * Corresponding ciphertext: IO SB (9, 15; 19, 2) * Plaintext vectors: $p_1 = \begin{bmatrix} 4 \\ 1 \end{bmatrix}$, $p_2 = \begin{bmatrix} 5 \\ 18 \end{bmatrix}$ * Ciphertext vectors: $c_1 = \begin{bmatrix} 9 \\ 19 \end{bmatrix}$, $c_2 = \begin{bmatrix} 15 \\ 2 \end{bmatrix}$ * Matrix $P = \begin{bmatrix} 4 & 5 \\ 1 & 18 \end{bmatrix}$ * Matrix $C = \begin{bmatrix} 9 & 15 \\ 19 & 2 \end{bmatrix}$ Applying row operations to $[C | P]$: $$ \left[ \begin{array}{cc|cc} 9 & 15 & 4 & 5 \\ 19 & 2 & 1 & 18 \end{array} \right] \xrightarrow{\text{R1} \leftarrow 3 \cdot \text{R1}} \left[ \begin{array}{cc|cc} 19 & 12 & 12 & 15 \\ 19 & 2 & 1 & 18 \end{array} \right] \xrightarrow{\text{R2} \leftarrow \text{R2} - \text{R1}} \left[ \begin{array}{cc|cc} 19 & 12 & 12 & 15 \\ 0 & 14 & 20 & 3 \end{array} \right] $$ $$ \xrightarrow{\text{R2} \leftarrow 21 \cdot \text{R2}} \left[ \begin{array}{cc|cc} 19 & 12 & 12 & 15 \\ 0 & 17 & 14 & 21 \end{array} \right] \xrightarrow{\text{R1} \leftarrow \text{R1} - 19 \cdot \text{R2}} \left[ \begin{array}{cc|cc} 17 & 9 & 17 & 9 \\ 0 & 17 & 14 & 21 \end{array} \right] $$ Thus, $(A^{-1})^T = \begin{bmatrix} 17 & 9 \\ 14 & 21 \end{bmatrix}$, which means $A^{-1} = \begin{bmatrix} 17 & 14 \\ 9 & 21 \end{bmatrix}$ [692](#page=692). The deciphered message is "DEAR IKE SEND TANKS" [693](#page=693). > 📝 Given ciphertext "IO SB" corresponding to plaintext "DE AR", we form matrices $P = \begin{bmatrix} 4 & 5 \\ 1 & 18 \end{bmatrix}$ and $C = \begin{bmatrix} 9 & 15 \\ 19 & 2 \end{bmatrix}$. Applying row operations to $[C | P]$ reduces $C$ to $I$ and transforms $P$ into $(A^{-1})^T = \begin{bmatrix} 17 & 9 \\ 14 & 21 \end{bmatrix}$, yielding the deciphering matrix $A^{-1} = \begin{bmatrix} 17 & 14 \\ 9 & 21 \end{bmatrix}$ [692](#page=692). ## 45.115 Exercise Set 10.13 This exercise set covers various aspects of Hill ciphers, including encryption, decryption, finding inverse matrices modulo 26, and generalizing to binary messages [693](#page=693) [694](#page=694). * **Exercise 1:** Encrypt the message "DARK NIGHT" using given enciphering matrices. * **Exercise 2:** Determine if given matrices are invertible modulo 26 and find their inverses. * **Exercise 3:** Decode a Hill 2-cipher message with a known enciphering matrix. * **Exercise 4:** Find the deciphering and enciphering matrices for a Hill 2-cipher given the start of the ciphertext and plaintext. * **Exercise 5:** Decode a Hill 2-cipher given the last four plaintext letters. * **Exercise 6:** Decode a Hill 3-cipher given the first nine plaintext letters. * **Exercise 7:** Encrypt and decrypt a binary message using modular arithmetic modulo 2. * **Exercise 8:** Determine the conditions for invertibility of a matrix modulo 29. * **Exercise 9:** Show that the modular equation $4x = 1 \pmod{26}$ has no solution. * **Exercise 10:** Prove Theorem 10.13.5 and use an alternative method to find the deciphering matrix for Example 8. * **Technology Exercises T1-T2:** These exercises involve using computational tools to explore number theory concepts related to modular arithmetic and matrices, such as relative primality, Euler's phi function, and matrix determinants. ## 45.116 Genetics This section explores the application of linear algebra, specifically matrix diagonalization and powers, to model the propagation of inherited traits in populations. It covers autosomal inheritance, X-linked inheritance, and their implications for genotype distributions across generations [695](#page=695). ## 45.117 Inheritance Traits Inherited traits are governed by genes. Autosomal inheritance involves individuals having two genes (e.g., AA, Aa, aa), determining their genotype and phenotype. X-linked inheritance differs, with males having one gene and females having two [695](#page=695). ## 45.118 Autosomal Inheritance In autosomal inheritance, an offspring inherits one gene from each parent. The probability of inheriting specific genes determines the offspring's genotype. Table 1 outlines the probabilities of offspring genotypes for all parent genotype combinations [695](#page=695) [696](#page=696). ## 45.119 Distribution of Genotypes in a Population Example 1 This example models the distribution of genotypes (AA, Aa, aa) in a plant population over generations, where each plant is fertilized with a genotype AA plant. The fractions of each genotype at generation $n$, denoted by $a_n, b_n, c_n$, can be expressed as a matrix equation $x(n) = Mx(n-1)$, where $x(n) = \begin{bmatrix} a_n \\ b_n \\ c_n \end{bmatrix}$ and $M$ is the transition matrix derived from Table 1 [696](#page=696). The transition matrix $M$ is: $$ M = \begin{bmatrix} 1 & 1/2 & 0 \\ 0 & 0 & 1 \\ 0 & 1/2 & 0 \end{bmatrix} $$ By diagonalizing $M$ into $M = PDP^{-1}$, where $D$ is a diagonal matrix of eigenvalues and $P$ contains eigenvectors, the $n$-th power of $M$ can be computed as $M^n = PD^nP^{-1}$. This allows for an explicit formula for $x(n) = M^n x(0)$ [697](#page=697). The eigenvalues of $M$ are $1, 1/2, -1/2$, with corresponding eigenvectors $v_1 = \begin{bmatrix} 1 \\ 0 \\ 0 \end{bmatrix}$, $v_2 = \begin{bmatrix} 1 \\ 1 \\ -1 \end{bmatrix}$, and $v_3 = \begin{bmatrix} 1 \\ -1 \\ 1 \end{bmatrix}$ [697](#page=697). The formulas for the genotype fractions in the $n$-th generation are: $$ a_n = 1 - \frac{1}{2^n} $$ $$ b_n = \frac{1}{2^n} $$ $$ c_n = 0 $$ As $n \to \infty$, $a_n \to 1$, $b_n \to 0$, and $c_n = 0$, meaning the population will eventually consist only of genotype AA [697](#page=697). > 📝 In a plant population where each plant is fertilized with genotype AA, the fractions of genotypes AA, Aa, and aa in generation $n$ are given by $a_n = 1 - \frac{1}{2^n}$, $b_n = \frac{1}{2^n}$, and $c_n = 0$. As $n \to \infty$, the population converges to 100% genotype AA [697](#page=697). ## 45.120 Modifying Example 1 Example 2 This example modifies the breeding program so that each plant is fertilized with a plant of its own genotype. The transition matrix $M$ changes, and its eigenvalues are $1, 1, 0$. The resulting formulas for genotype fractions show that in the limit, the population contains only genotypes AA and aa [698](#page=698). The modified transition matrix $M$ is: $$ M = \begin{bmatrix} 1 & 1/2 & 0 \\ 0 & 0 & 0 \\ 0 & 1/2 & 1 \end{bmatrix} $$ The limiting genotype distribution is $a_n \to 1/2$, $b_n \to 0$, and $c_n \to 1/2$ [698](#page=698). ## 45.121 Autosomal Recessive Diseases Autosomal recessive diseases involve a normal gene (A) dominating an abnormal gene (a). Genotype AA is normal, Aa is a carrier, and aa is afflicted. If individuals with genotype aa do not survive, a controlled mating program with normal males (genotype AA) can prevent the disease from appearing in future generations, though carriers may persist [699](#page=699). The transition of genotype distributions is governed by $x(n) = Mx(n-1)$, where $x(n) = \begin{bmatrix} a_n \\ b_n \end{bmatrix}$ represents the fractions of AA and Aa genotypes. The matrix $M$ is: $$ M = \begin{bmatrix} 1 & 1/2 \\ 0 & 1/2 \end{bmatrix} $$ The fraction of carriers in the $n$-th generation is given by $b_n = \frac{1}{2^n} b_0$. This means the fraction of carriers is halved each generation [699](#page=699). Comparing controlled mating with random mating, controlled mating reduces carriers more effectively. For instance, if $b_0 = 0.10$, controlled mating yields $b_1 = 0.05$, while random mating yields $b_1 = 0.095$ [700](#page=700). > 📝 For autosomal recessive diseases, if the fraction of carriers in generation $n$ is $b_n$, then $b_n = \frac{1}{2^n} b_0$. If the initial carrier percentage is 10% ($b_0 = 0.10$), after one generation of controlled mating, the carrier percentage is 5% ($b_1 = 0.05$) [700](#page=700). ## 45.122 X-Linked Inheritance In X-linked inheritance, males have one gene (A or a) and females have two (AA, Aa, or aa). Offspring inherit genes based on the parents' sex chromosomes. Table 2 shows genotype probabilities for offspring based on parent genotypes [700](#page=700). A program of inbreeding involves mating selected offspring from successive generations. The probabilities of different sibling pair types are described by a transition matrix $M$, where $x(n)$ is a vector representing these probabilities [701](#page=701). The eigenvalues of $M$ are $1, 1, \frac{1}{2}, \frac{1}{2}, \frac{1}{2}, \frac{1}{2}$ [701](#page=701). As $n \to \infty$, the probabilities converge, meaning that in the limit, all sibling pairs will be either type (A, AA) or type (a, aa). For example, if the initial parents are type (A, Aa), the limiting probabilities are $2/3$ for (A, AA) and $1/3$ for (a, aa) [702](#page=702) [703](#page=703). ## 45.123 Exercise Set 10.14 This exercise set focuses on genetics models, including verifying matrix properties, analyzing population dynamics under different mating scenarios, and exploring X-linked inheritance [703](#page=703) [704](#page=704). * **Exercise 1:** Show that if $M = PDP^{-1}$, then $M^n = PD^nP^{-1}$. * **Exercise 2:** In Example 1, derive formulas for genotype fractions when plants are fertilized with genotype Aa, and find the limiting distribution. * **Exercise 3:** Derive formulas for genotype fractions when fertilization alternates between AA and Aa. * **Exercise 4:** Find the eigenvalues and eigenvectors of the matrix $M$ for autosomal recessive diseases and verify Equation [7](#page=7). * **Exercise 5:** Calculate the number of generations for carrier percentage to fall from 25% to 10% under random mating and controlled mating. * **Exercise 6:** Calculate $x(n)$ and its limit for X-linked inheritance with equally likely initial parent types. * **Exercise 7:** Show that the limiting probability of (A, AA) sibling pairs equals the initial proportion of A genes. * **Exercise 8:** Find the transition matrix for X-linked inheritance where females of genotype Aa do not survive. * **Exercise 9:** Derive the transition matrix $M$ in Equation from Table 2 [10](#page=10). * **Technology Exercises T1-T2:** These exercises involve using computational tools to verify eigenvalues and eigenvectors, solve systems of linear equations related to population models, and analyze the convergence of matrix powers. ## 45.124 Age-Specific Population Growth This section introduces the Leslie matrix model for analyzing the growth of a female population divided into age classes. It determines the limiting age distribution and growth rate [704](#page=704) [705](#page=705). ## 45.125 Leslie Matrix Model The Leslie model divides a population into $n$ age classes, each of duration $L/n$. The initial age distribution is represented by a vector $x(0)$. The changes in population within each age class over discrete time intervals are due to birth, death, and aging [704](#page=704) [705](#page=705). Demographic parameters include: * $a_i$: The average number of daughters born to each female in the $i$-th age class. * $b_i$: The fraction of females in the $i$-th age class that survive to the $(i+1)$-st age class. The age distribution vector $x(k)$ at time $t_k$ is related to the previous time step by $x(k) = Mx(k-1)$, where $M$ is the Leslie matrix [705](#page=705). The Leslie matrix $M$ has the following structure: $$ M = \begin{bmatrix} a_1 & a_2 & a_3 & \dots & a_n \\ b_1 & 0 & 0 & \dots & 0 \\ 0 & b_2 & 0 & \dots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & \dots & b_{n-1} & 0 \end{bmatrix} $$ The model uses eigenvalues and eigenvectors to project the population's age distribution over time and determine its limiting behavior [704](#page=704) [705](#page=705). ## 45.126 Limiting behavior of Leslie matrices The long-term behavior of a population's age distribution is determined by the eigenvalues and eigenvectors of its Leslie matrix. The characteristic equation for a Leslie matrix $L$ is given by $p(\lambda) = |\lambda I - L| = 0$. This can be rewritten using the function $q(\lambda) = \lambda^n - a_1\lambda^{n-1} - a_2b_1\lambda^{n-2} - \dots - a_nb_1b_2\dots b_{n-1} = 0$ as $q(\lambda) = 1$ for $\lambda \neq 0$. Since $q(\lambda)$ is monotonically decreasing for $\lambda > 0$, there is a unique positive eigenvalue, $\lambda_1$. This eigenvalue is simple (multiplicity 1) and has a corresponding eigenvector $x_1$ with all positive entries [707](#page=707) [708](#page=708). Theorem 10.15.1 states that a Leslie matrix has a unique positive eigenvalue $\lambda_1$, which has multiplicity 1 and a corresponding eigenvector with all positive entries. Theorem 10.15.2 indicates that for any other eigenvalue $\lambda_k$, its absolute value satisfies $|\lambda_k| \leq \lambda_1$. For the population dynamics to stabilize, $\lambda_1$ must be a dominant eigenvalue, meaning $|\lambda_k| < \lambda_1$ for all other eigenvalues [708](#page=708). Theorem 10.15.3 provides a sufficient condition for $\lambda_1$ to be dominant: if two successive entries $a_i$ and $a_{i+1}$ in the first row of the Leslie matrix $L$ are nonzero, then $\lambda_1$ is dominant. If $L$ is diagonalizable, it has $n$ eigenvalues $\lambda_1, \dots, \lambda_n$ and $n$ linearly independent eigenvectors $x_1, \dots, x_n$. The relationship $x(k) = L^k x(0)$ can be expressed using diagonalization as $x(k) = P D^k P^{-1} x(0)$. For large $k$, the age distribution vector $x(k)$ approaches a multiple of the dominant eigenvector $x_1$, specifically $x(k) \simeq c \lambda_1^k x_1$, where $c$ is a positive constant. This implies that the proportion of females in each age class becomes constant over time [709](#page=709) [710](#page=710). ## 45.127 Example 1 revisited: Female age distribution for animals For the Leslie matrix $L = \begin{pmatrix} 0 & 3 & 7 \\ 0.5 & 0 & 0 \\ 0 & 0.25 & 0 \end{pmatrix}$, the positive eigenvalue is $\lambda_1 = 1.5$. The corresponding eigenvector is $x_1 = \begin{pmatrix} 18 \\ 9 \\ 2.25 \end{pmatrix}$. For large $k$, the age distribution vector $x(k)$ is approximately $c (1.5)^k \begin{pmatrix} 18 \\ 9 \\ 2.25 \end{pmatrix}$. This means the population increases by approximately 50% every time period. The limiting proportions of females in the age classes are 18:9:2.25, which simplifies to 8:4:1, or approximately 72% in the first class, 24% in the second, and 4% in the third [710](#page=710) [711](#page=711). > 📝 For the Leslie matrix $L = \begin{pmatrix} 0 & 3 & 7 \\ 0.5 & 0 & 0 \\ 0 & 0.25 & 0 \end{pmatrix}$, the limiting age distribution is approximately proportional to $\begin{pmatrix} 18 \\ 9 \\ 2.25 \end{pmatrix}$, which simplifies to the ratio 8:4:1 [710](#page=710). ## 45.128 Example 4: Female age distribution for humans For Canadian females in 1965, using 5-year age classes, numerical techniques yielded a positive eigenvalue $\lambda_1 \approx 1.07622$. The corresponding eigenvector $x_1$ was approximated as $\begin{pmatrix} 1.00000 \\ 0.92594 \\ 0.85881 \\ \vdots \end{pmatrix}$. This indicates that the female population would eventually increase by approximately 7.622% every 5 years. The limiting age distribution shows that for every 100,000 females in the 0-5 year age class, there would be approximately 92,594 in the 5-10 year class, and so on [711](#page=711). > 📝 For Canadian females in 1965, the dominant eigenvalue was $\lambda_1 \approx 1.07622$, indicating a population increase of approximately 7.622% every 5 years, with a limiting age distribution where for every 100,000 females in the 0-5 year age class, there are approximately 92,594 in the 5-10 year class [711](#page=711). ## 45.129 Population growth classification based on $\lambda_1$ [712](#page=712) The long-term population trend depends on the value of the dominant positive eigenvalue $\lambda_1$: | Eigenvalue ($\lambda_1$) | Population Trend | | --- | --- | | $\lambda_1 > 1$ | Eventually increasing | | $\lambda_1 < 1$ | Eventually decreasing | | $\lambda_1 = 1$ | Eventually stabilizes (zero growth) | A population has zero growth if its net reproduction rate $R$ equals 1. The net reproduction rate is defined as $R = a_1 + a_2b_1 + a_3b_1b_2 + \dots + a_nb_1b_2\dots b_{n-1}$ [712](#page=712). ## 45.130 Harvesting of animal populations Sustainable harvesting policies aim to remove a constant yield from a population without depleting it, maintaining the same age distribution after each harvest. The harvesting model involves a growth period governed by the Leslie matrix $L$, followed by a harvest. The age distribution vector $x$ at the beginning of the growth period must satisfy $Lx - HLx = x$, where $H$ is the harvesting matrix. This simplifies to $(I - H)Lx = x$, meaning $x$ is an eigenvector of $(I - H)L$ with eigenvalue 1 [714](#page=714) [715](#page=715). The harvesting matrix $H$ is a diagonal matrix where $h_i$ represents the fraction of the $i$-th age class harvested ($0 \leq h_i \leq 1$). For a sustainable yield, the harvesting fractions must satisfy a condition related to the net reproduction rate: $(1 - h_1)[a_1 + a_2b_1(1 - h_2) + \dots + a_nb_1b_2\dots b_{n-1}(1 - h_2)\dots(1 - h_n)] = 1$. If this condition is met, the matrix $(I - H)L$ has eigenvalue 1 with multiplicity 1, and the resulting age distribution after harvest is proportional to a specific eigenvector $x_1$ [715](#page=715) [716](#page=716). ## 45.131 Uniform harvesting In uniform harvesting, the same fraction $h$ is harvested from each age class ($h_1 = h_2 = \dots = h_n = h$). The condition for sustainability becomes $1/(1 - h) = \lambda_1$, where $\lambda_1$ is the dominant eigenvalue of the Leslie matrix $L$. This yields the harvesting fraction $h = 1 - (1/\lambda_1)$. A sustainable harvest is possible only if $\lambda_1 > 1$. The age distribution vector after harvest is the same as the eigenvector of $L$ corresponding to $\lambda_1$ [716](#page=716). ## 45.132 Example 1: Harvesting sheep For a New Zealand sheep population, the Leslie matrix $L$ yielded a dominant eigenvalue $\lambda_1 = 1.176$. Using uniform harvesting, the fraction harvested is $h = 1 - (1/1.176) \approx 0.150$, or 15.0%. The age distribution vector after harvest is proportional to the eigenvector of $L$ for $\lambda_1$, showing proportions like 1.000 for the youngest class, 0.719 for the next, and so on [717](#page=717). > 📝 For a New Zealand sheep population with $\lambda_1 = 1.176$, uniform harvesting removes $h = 1 - (1/1.176) \approx 0.150$, or 15.0%, of each age class annually [717](#page=717). ## 45.133 Harvesting only the youngest age class If only the youngest age class is harvested ($h_1 = h$, and $h_i = 0$ for $i > 1$), the sustainability condition becomes $(1 - h)R = 1$, where $R$ is the net reproduction rate of the population. The harvesting fraction is $h = 1 - (1/R)$, requiring $R > 1$ for sustainability. The age distribution vector after harvest is proportional to a specific vector derived from the Leslie matrix parameters and harvesting fractions [718](#page=718). ## 45.134 Example 2: Sustainable harvesting policy For the sheep population with a net reproduction rate $R = 2.514$, harvesting only the youngest age class yields a harvesting fraction $h = 1 - (1/2.514) \approx 0.602$, or 60.2%. The age distribution vector after harvest is proportional to the vector $\begin{pmatrix} 1.000 \\ 0.845 \\ 0.824 \\ \vdots \end{pmatrix}$. This policy results in a yield of 17.8% of the total population, compared to 15.0% for uniform harvesting [718](#page=718) [719](#page=719). ## 45.135 Optimal sustainable yield An optimal sustainable harvesting policy maximizes the yield. This often involves harvesting either one or two age classes. If two age classes are harvested, the older one is completely harvested. Theorem 10.16.1 states that the optimal sustainable yield is achieved by harvesting at most two age classes, with the older class being fully harvested if two are chosen [719](#page=719) [720](#page=720). ## 45.136 Optimal sustainable yield for sheep For the sheep population, an optimal sustainable yield is achieved by harvesting 52.2% of the youngest age class ($h_1 = 0.522$) and 100% of the sheep between 8 and 9 years of age ($h_9 = 1.000$), with all other $h_i = 0$. This policy results in an optimal sustainable yield of 19.9% of the population [720](#page=720). ## 45.137 A Least Squares Model for Human Hearing The human ear's perception of sound can be modeled using least squares approximation, where the ear is treated as a linear system. Complex sound waves are decomposed into sinusoidal components, and the perceived sound is determined by minimizing the acoustic energy of the difference between the original and approximated sound waves. This principle is analogous to approximating functions in vector spaces [721](#page=721) [722](#page=722). * **Sound waves:** Variations in air pressure over time. * **Sinusoidal sound wave:** A basic sound wave described by $q(t) = A_0 + A \sin(\omega t - \delta)$, where $A_0$ is normal atmospheric pressure, $A$ is maximum pressure deviation, $\omega/2\pi$ is frequency, and $\delta$ is phase angle. * **Human hearing range:** Frequencies from approximately 20 to 20,000 cycles per second (cps). Frequencies outside this range are not perceived as sound. * **Linear system:** The ear responds to a sum of sinusoidal waves by stimulating the same neural pathways as each individual component. * **Periodic sound wave:** A wave $p(t)$ with period $T$ that may not be a finite sum of sinusoids. The ear's response to $p(t)$ is the same as to a sum of sinusoids $q(t)$ with the same period [722](#page=722). * **Sinusoidal component frequencies:** For a periodic wave $p(t)$ with period $T$, the frequencies of its sinusoidal components $q(t)$ must be integer multiples of the basic frequency $1/T$, i.e., $\omega_k = 2\pi k/T$. * **Perceived sound approximation:** The function $q(t)$ that produces the same auditory response as a periodic sound wave $p(t)$ is a least squares approximation of $p(t)$ in the vector space $C[0, T]$. * **Least squares criterion:** The amplitudes and phase angles of $q(t)$ are chosen to minimize the integral of the squared error, $e(t) = p(t) - q(t)$, over one period $T$. This integral is proportional to the acoustic energy of the error wave [723](#page=723). ## 45.138 Applications of Least Squares Approximation Least squares approximation is a general method used in various scientific and engineering fields to find the best fit for a function or model [723](#page=723). * **Axial strain distribution:** Minimizing the strain energy of the difference between an actual strain distribution $S(x)$ and an approximation $q(x)$ over a rod. * **Electrical circuit voltage:** Minimizing the energy of the difference voltage between an actual voltage $E(t)$ and an approximation $q(t)$ over one period $T$ [723](#page=723). * **String displacement:** Minimizing the elastic potential energy of the difference between the actual displacement $y(x)$ and an approximation $q(x)$ of a flexible string. * **General approximation problems:** When no other error criterion is apparent, the least squares criterion is often chosen due to its mathematical simplicity for approximating various curves like business cycles or population growth [724](#page=724). > 📝 For a saw-tooth wave $p(t) = \frac{A}{T}t$ with $T=0.0002$ s and frequency 5000 cps, the least squares approximation $q(t)$ up to $k=4$ is $q(t) = \frac{8A}{\pi^2} \left( \frac{\pi}{4} \sum_{k=1}^4 \frac{1}{k^2} \sin\left(\frac{2\pi kt}{T}\right) \right)$. [725](#page=725) ## 45.139 Theorems on Minimizing Mean Square Error [724](#page=724) [725](#page=725) These theorems provide the formulas for calculating the coefficients of the trigonometric function that minimizes the mean square error. | Theorem | Function Form | Minimizing Function | Coefficients | | --- | --- | --- | --- | | 10.17.1 | Trigonometric function $g(t)$ of the form $\frac{a_0}{2} + \sum_{k=1}^n (a_k \cos(kt) + b_k \sin(kt))$ | $g(t)$ | $a_k = \frac{1}{\pi} \int_0^{2\pi} f(t) \cos(kt) dt$ for $k=0,1, 2, \dots, n$ <br> $b_k = \frac{1}{\pi} \int_0^{2\pi} f(t) \sin(kt) dt$ for $k=1, 2, \dots, n$ | | 10.17.2 | Trigonometric function $g(t)$ of the form $\frac{a_0}{2} + \sum_{k=1}^n (a_k \cos(\frac{2\pi kt}{T}) + b_k \sin(\frac{2\pi kt}{T}))$ | $g(t)$ | $a_k = \frac{2}{T} \int_0^T f(t) \cos(\frac{2\pi kt}{T}) dt$ for $k=0,1, 2, \dots, n$ <br> $b_k = \frac{2}{T} \int_0^T f(t) \sin(\frac{2\pi kt}{T}) dt$ for $k=1, 2, \dots, n$ | * **Fourier series:** As the number of terms $n$ in the approximating trigonometric polynomial increases, the least squares approximation converges to the original function $f(t)$, denoted by $f(t) \sim \frac{a_0}{2} + \sum_{k=1}^\infty (a_k \cos(kt) + b_k \sin(kt))$. For most continuous functions, the Fourier series converges to the function itself [726](#page=726). - **Least Squares Approximation to a Sound Wave**: For a saw-tooth wave $p(t) = \frac{A}{T}t$ with $T=0.0002$ s and frequency 5000 cps, the least squares approximation $q(t)$ up to $k=4$ is $q(t) = \frac{8A}{\pi^2} \left( \frac{\pi}{4} \sum_{k=1}^4 \frac{1}{k^2} \sin\left(\frac{2\pi kt}{T}\right) \right)$. Although $q(t)$ may not be a point-by-point match to $p(t)$, the human ear perceives them as the same sound [725](#page=725). ## 45.140 Warps and Morphs Warps and morphs are image manipulation techniques in computer graphics that use linear transformations to distort and blend images. Warping distorts a single image, while morphing distorts and blends two images to create a smooth transition between them. These techniques have applications in special effects, scientific visualization, and medical imaging [727](#page=727) [728](#page=728). > 📝 A time-varying warp at five values of $t$ generated from $t=0$ to $t=1$ shows a picture continuously deforming from its initial state to its final warped state, with intermediate frames illustrating the gradual transformation. [731](#page=731) ## 45.141 Warps A warp transforms a region by mapping its points to new locations, preserving the underlying structure. This is achieved by defining transformations on triangular regions within the image [728](#page=728). * **Begin-triangle:** A triangle defined by three noncollinear points $v_1, v_2, v_3$. Any point $v$ within this triangle can be expressed as a convex combination $v = c_1v_1 + c_2v_2 + c_3v_3$, where $c_1, c_2, c_3 \ge 0$ and $c_1 + c_2 + c_3 = 1$. * **End-triangle:** A triangle defined by three noncollinear points $w_1, w_2, w_3$. * **Affine transformation:** A unique transformation that maps $v_1 \to w_1$, $v_2 \to w_2$, and $v_3 \to w_3$. It is defined by a $2 \times 2$ invertible matrix $M$ and a vector $b$ such that $w_i = Mv_i + b$. * **Warped image:** The gray level at a point $w$ in the end-triangle is determined by the gray level of the corresponding point $v$ in the begin-triangle that maps to $w$. If $v = c_1v_1 + c_2v_2 + c_3v_3$, then the warped image density $r_1(w)$ is $r_0(v)$ [728](#page=728). * **Triangulation:** A rectangular region containing a picture can be divided into triangles by connecting specified vertex points. This process ensures that the union of triangles forms the rectangle and that triangles do not intersect. * **Number of triangles:** For $n$ vertex points and $k$ points on the boundary, the number of triangles $m$ in a triangulation is $m = 2n - 2 - k$. * **Warp specification:** Vertex points $v_i$ are moved to new locations $w_i$. Corner points and points on the boundary must remain fixed or move along the boundary. Triangles must not overlap after displacement [729](#page=729). ## 45.142 Time-Varying Warps A time-varying warp creates animation by continuously transforming an image from an initial state to a final warped state [730](#page=730). * **Vertex point movement:** The position of the $i$-th vertex point $u_i(t)$ at time $t$ (where $0 \le t \le 1$) is given by $u_i(t) = (1 - t)v_i + tw_i$, representing linear movement from its initial position $v_i$ to its final position $w_i$ [730](#page=730). * **Animation:** At each time $t$, a warp is performed between the begin-picture and the triangulation defined by the displaced vertex points $u_i(t)$ [731](#page=731). - **Time-Varying Warp**: A time-varying warp at five values of $t$ generated from $t=0$ to $t=1$ shows a picture continuously deforming from its initial state to its final warped state, with intermediate frames illustrating the gradual transformation [731](#page=731). ## 45.143 Morphs A morph creates a smooth transition between two images by blending two time-varying warps. It involves warping both images towards each other and then averaging their pixel values [731](#page=731) [732](#page=732). * **Morph procedure:** 1. Define vertex points $v_i$ in the begin-picture and corresponding points $w_i$ in the end-picture [732](#page=732). 2. Triangulate both pictures similarly. 3. For any time $t$, find vertex points $u_i(t) = (1 - t)v_i + tw_i$ in the morph picture. 4. Triangulate the morph picture at time $t$. 5. For any point $u$ in the morph picture, express it as a convex combination of its triangle's vertices: $u = c_Iu_I(t) + c_Ju_J(t) + c_Ku_K(t)$. 6. Determine the corresponding points $v$ and $w$ in the begin- and end-pictures using the same convex combination coefficients: $v = c_Iv_I + c_Jv_J + c_Kv_K$ and $w = c_Iw_I + c_Jw_J + c_Kw_K$. 7. Calculate the morph-picture density $r_t(u)$ by taking a weighted average of the begin- and end-picture densities: $r_t(u) = (1 - t)r_0(v) + tr_1(w)$. * **Key step:** Equation averages gray levels, blending the two images based on the time parameter $t$. As $t$ progresses, both the shape and the pixel values transition from the begin-picture to the end-picture [14](#page=14) [733](#page=733). * **Generalizations:** Warping and morphing can be extended to color images, more complex vertex paths, variable speeds, multiple images, 3D surfaces, and solids, making them active areas in computer graphics [734](#page=734) [735](#page=735). ## 45.144 Internet Search Engines The importance of web pages can be ranked using linear algebra concepts, specifically by modeling the web as a directed graph. Alice's strategy involves simulating web surfing by randomly clicking links and tracking page visits to determine importance. Bob's strategy refines this by incorporating a damping factor to handle issues like disconnected page clusters and dangling pages, ensuring a more robust ranking system. - **Webgraph**: A diagram representing links between web pages, where a directed path from page i to page j signifies that page i links to page j. - **Alice's web surfing strategy**: Involves randomly selecting an outgoing link from the current page and moving to the linked page, repeating this process to determine page importance based on visit frequency [736](#page=736). - **Page rank**: The limiting value of the fraction of visits to each page, representing its relative importance [737](#page=737). ## 45.145 Alice's Strategy: Simulation and Observation Alice simulates web surfing by repeatedly clicking links and recording the number of visits to each page. By analyzing the fraction of visits over many clicks, she observes that these fractions stabilize, suggesting a convergence to a stable page rank. - **Data collection**: Alice tracks page visits after 10, 100, 1,000, 10,000, and 20,000 mouse clicks, creating tables of visit counts and their corresponding fractions [736](#page=736). - **Observation of convergence**: The fractions of visits to each page stabilize as the number of mouse clicks increases, indicating a limiting value for each page's rank [737](#page=737). ## 45.146 Markov Matrix Approach The web surfing simulation can be modeled using Markov chains. The adjacency matrix represents links between pages, and the probability transition matrix, derived from the adjacency matrix, captures the probabilities of moving between pages. The stable state vector, representing the long-term probabilities of being on each page, is an eigenvector of the transition matrix corresponding to the eigenvalue 1. - **Adjacency matrix (A)**: An $n \times n$ matrix where $a_{ij} = 1$ if page $j$ links to page $i$, and 0 otherwise. The sum of entries in a column represents the number of outgoing links from that page. - **State vector (x(k))**: An $n \times 1$ column vector where the $i$-th entry is the probability of being on page $i$ after $k$ mouse clicks [737](#page=737). - **Probability transition matrix (B)**: Derived from the adjacency matrix $A$ by dividing each entry $a_{ij}$ by the sum of entries in column $j$. This ensures that column sums are 1, representing probabilities [738](#page=738). - **Iterative scheme**: The state vector evolves as $x(k) = Bx(k-1)$, where $x(k)$ represents the probabilities after $k$ clicks. - **Eigenvector of transition matrix**: The limiting state vector $x$ satisfies $x = Bx$, meaning $x$ is an eigenvector of $B$ with eigenvalue 1. When normalized to sum to 1, its entries represent the page ranks [739](#page=739). | Matrix | Description | | --- | --- | | Adjacency Matrix (A) | Represents links between pages; column sums indicate outgoing links. | | Probability Transition Matrix (B) | Derived from A; entries represent probabilities of moving between pages; column sums are 1. | > 📝 The probability transition matrix $B$ is derived from the adjacency matrix $A$ by dividing each entry $a_{ij}$ by the sum of entries in column $j$, ensuring column sums are 1. For example, if page $j$ links to pages $i_1, i_2, i_3$, then $b_{i_1j} = b_{i_2j} = b_{i_3j} = 1/3$ [738](#page=738). ## 45.147 Bob's Strategy: Damping Factor Bob's strategy addresses limitations in Alice's approach, such as disconnected components or "dangling" pages (pages with no outgoing links). He introduces a damping factor $d$, which represents the probability of randomly choosing any page in the network versus following a link. This modification ensures that the transition matrix is regular, guaranteeing convergence to a unique eigenvector with positive entries. - **Problem with disconnected components**: If a webgraph has unlinked clusters, a surfer might become trapped in one cluster, leading to zero page ranks for pages in other clusters. - **Damping factor (d)**: A probability (0 ≤ d < 1) that a surfer randomly chooses any page in the network for the next step, with probability $1-d$. - **Modified transition matrix (M)**: Incorporates the damping factor, defined as $M = dB + \frac{1-d}{n}J$, where $J$ is a matrix of all ones. This ensures that all entries of $M$ are nonnegative and column sums are 1. - **Revised iterative scheme**: $x(k) = Mx(k-1)$, which converges to a unique eigenvector of $M$ corresponding to eigenvalue 1 [740](#page=740). - **Benefit of damping**: Ensures that the matrix $M$ is regular, guaranteeing convergence to an eigenvector with positive entries, thus assigning non-zero ranks to all pages [741](#page=741). | Strategy | Issue Addressed | Method | | --- | --- | --- | | Alice's Strategy | Disconnected components, dangling pages | Random link following | | Bob's Strategy | Disconnected components, dangling pages | Random link following with damping factor (d) | ## 45.148 Facial Recognition Using Principal Component Analysis Principal Component Analysis (PCA) is an algorithm used for facial recognition by identifying distinguishing features in images. It involves representing faces as vectors, calculating a mean face, and then finding orthogonal basis vectors (eigenfaces) that capture the most variance in the data. These eigenfaces can then be used to reconstruct faces and identify individuals by comparing their feature vectors. - **Grayscale values**: Pixel intensity values ranging from 0 (black) to 1 (white), used to represent images numerically. - **Face vector (p)**: A column vector in $\mathbb{R}^N$ (where $N$ is the number of pixels) representing a facial image. - **Training set**: A subset of facial images used to derive the principal components or eigenfaces [743](#page=743). - **Mean face vector (m)**: The average of all face vectors in the training set, representing the "average" face. - **Caricature vector (q)**: The difference between a face vector and the mean face vector ($q = p - m$), highlighting deviations from the average [744](#page=744). - **Subspace S**: The vector space spanned by the caricature vectors of the training set. - **Principal component analysis (PCA)**: A method to find an orthogonal basis that maximizes the variance of the data [745](#page=745). ## 45.149 Constructing Caricatures and Eigenfaces PCA begins by representing each face as a vector and calculating the mean face vector. The difference between each face vector and the mean vector forms a caricature vector. These caricature vectors span a subspace, and PCA finds an orthogonal basis for this subspace, known as eigenfaces, which represent the principal directions of variation among the faces. - **Caricature vector calculation**: $q = p - m$, where $p$ is a face vector and $m$ is the mean face vector [744](#page=744). - **Subspace spanned by caricature vectors**: The set of all linear combinations of caricature vectors $q_1, \dots, q_{10}$ [745](#page=745). - **Maximizing sum of squared projections**: PCA seeks a unit vector $v_1$ that maximizes $\sum_{j=1}^{10} (q_j^T v_1)^2$, which is the largest eigenvalue of the correlation matrix $C = Q Q^T$. - **Eigenfaces ($e_i$)**: Orthogonal basis vectors for the subspace $S$, derived from the eigenvectors of the correlation matrix $C$ or a related smaller matrix $A = Q^T Q$. - **Relationship between eigenfaces and caricature vectors**: Eigenfaces are linear combinations of the caricature vectors ($e_i = Q u_i$) [746](#page=746). | Concept | Mathematical Representation | | --- | --- | | Face vector | $p$ | | Mean face vector | $m = \frac{1}{10} \sum_{i=1}^{10} p_i$ | | Caricature vector | $q = p - m$ | | Matrix of caricature vectors | $Q = [q_1 q_2 \dots q_{10}]$ | | Correlation matrix | $C = Q Q^T$ | | Matrix for eigenvalue calculation | $A = Q^T Q$ | ## 45.150 Features of a Face and Dimension Reduction Once eigenfaces are determined, any face can be represented as a linear combination of these eigenfaces, with the coefficients being the "features" of the face. This representation allows for dimension reduction, as a face can be accurately reconstructed using only a subset of the most significant eigenfaces, significantly reducing computational and storage requirements. - **Features of a caricature vector (q)**: Coefficients $f_i$ obtained by projecting $q$ onto the eigenfaces $e_i$, where $f_i = e_i^T q$. - **Features vector (f)**: A row vector $[f_1, f_2, \dots, f_9]$ containing the features of a caricature vector. - **Reconstruction of a face vector (p)**: $p = m + f_1e_1 + f_2e_2 + \dots + f_9e_9$ [747](#page=747). - **Dimension reduction**: Representing a face using a reduced number of features (eigenfaces) while maintaining accurate identification. - **Applications of dimension reduction**: Crucial for handling large datasets, reducing computation, storage, and cost [748](#page=748). ## 45.151 Identifying Faces To identify a face, its caricature vector's features are computed and compared to the feature vectors of known faces in a database. If the difference between the feature vectors is below a certain threshold ($\epsilon$), the face is identified with the corresponding individual in the database. - **Matching criterion**: A given face vector $p$ is identified with a database face $p_k$ if $||f - f_k|| < \epsilon$, where $f$ and $f_k$ are their respective feature vectors [748](#page=748). - **Norm used for matching**: Either the Euclidean norm or the max norm (maximum absolute difference of components). - **Database requirement**: The features of all faces in the population database must be stored for matching [749](#page=749). | Step | Action | | --- | --- | | 1. Construct vectors | Create n-dimensional column vectors from facial photographs. | | 2. Form training set | Select m vectors from the database. | | 3. Compute caricature vectors | Subtract the mean vector from each database vector. | | 4. Form matrix Q | Create an n x m matrix with caricature vectors as columns. | | 5. Form matrix A | Compute A = Q^T Q (m x m matrix). | | 6. Find eigenvalues/eigenvectors of A | Determine the 100 largest eigenvalues and corresponding eigenvectors. | | 7. Form eigenfaces | Calculate eigenfaces e_i = Q u_i. | | 8. Compute feature vectors | Calculate features f_ij = e_ij^T q_j for database vectors. | ## 45.152 Linear algebra in bioinformatics, climate science, and global health modeling Linear algebra is a fundamental mathematical discipline with broad applications across various scientific fields. It is essential for analyzing and interpreting complex data, leading to progress in areas like bioinformatics, climate science, and global health modeling [751](#page=751). > 📝 In facial recognition, a caricature vector $q_i$ can be approximated by $f_{i1}e_1$, where $e_1$ is the eigenface corresponding to the largest eigenvalue [751](#page=751). ## 45.153 Bioinformatics applications In bioinformatics, linear algebra is vital for analyzing genetic data and protein structures. - **Singular Value Decomposition (SVD)** and **Principal Component Analysis (PCA)** are used to reduce the dimensionality of genomic datasets. - These techniques help uncover patterns and relationships in biological processes, enabling the identification of genetic markers linked to diseases. - This facilitates the development of personalized medicine and targeted therapies. - Linear algebra also aids in modeling protein folding and interactions, contributing to drug discovery [751](#page=751). ## 45.154 Climate science applications Climate science utilizes linear algebra for modeling and predicting environmental changes. - Linear transformations and matrix operations are employed to analyze large-scale climate data, such as temperature and precipitation patterns. - This analysis helps understand the dynamics of climate systems and develop climate models for simulating future scenarios. - Such models guide policy decisions and mitigation strategies. - Linear algebra is also used in remote sensing to process satellite imagery for monitoring environmental changes and assessing human impacts [751](#page=751). ## 45.155 Global health modeling applications Global health modeling leverages linear algebra to analyze and predict the spread of infectious diseases. - **Markov chains** and other matrix-based models simulate disease transmission dynamics. - These models allow public health officials to evaluate intervention strategies and allocate resources effectively. - By understanding relationships between population groups and health outcomes, linear algebra supports the development of robust models for global health policies and disease management [751](#page=751). # 46. Appendix A: Working with Proofs ## 46.1 What is a proof? A proof is a convincing argument that establishes the truth of a mathematical statement. Mathematicians adhere to specific standards for acceptable proofs, which involve logical steps and justifications [753](#page=753). ## 46.2 Formality Formal proofs, like those seen in high school geometry with left-right column listings, are not typically required in linear algebra. Instead, a proof should be a coherent argument written in complete sentences, progressing logically from one step to the next. Each step must be justified by a self-evident statement or a previously proven theorem [753](#page=753). ## 46.3 How to read theorems Theorems are commonly stated in the form "If H is true, then C is true," where H is the hypothesis and C is the conclusion. This is formally written as $H \Rightarrow C$, meaning "H implies C." A theorem is true if C is always true whenever H is true. It is false if there's at least one instance where H is true and C is false [753](#page=753) [754](#page=754). ## 46.4 Contrapositive form A theorem can be equivalently rephrased in its contrapositive form: "If C is false, then H is false," denoted as $\sim C \Rightarrow \sim H$. A statement and its contrapositive are logically equivalent; if one is true, the other is also true [754](#page=754). ## 46.5 Converse The converse of a theorem $H \Rightarrow C$ is the statement $C \Rightarrow H$, where the hypothesis and conclusion are interchanged. Unlike the contrapositive, the converse of a true statement may be true or false [754](#page=754). ## 46.6 Equivalent statements When both a statement $H \Rightarrow C$ and its converse $C \Rightarrow H$ are true, H and C are considered equivalent statements. This is denoted as $H \Leftrightarrow C$, read as "H if and only if C." Proving an "if and only if" statement requires proving both implications [754](#page=754). ## 46.7 Transitivity of implications If two true statements are linked, such that $H \Rightarrow C$ and $C \Rightarrow D$, then a third true statement $H \Rightarrow D$ follows. This principle of transitivity extends to longer chains of implications [754](#page=754) [755](#page=755). ## 46.8 Reductio ad absurdum (Proof by contradiction) This proof method relies on the principle that a statement cannot be both true and false. It involves assuming the conclusion of a statement is false and demonstrating that this assumption leads to a logical contradiction. The underlying logic is that if $H \Rightarrow C$ is true, then $(H \text{ and } \sim C) \Rightarrow C$ must be false [755](#page=755). ## 46.9 Sets Proofs in linear algebra often involve sets, which are collections of objects called elements. In this context, elements are typically scalars, matrices, or vectors. Sets are denoted by capital letters, and their elements by lowercase letters [755](#page=755). ## 46.10 Describing sets[756](#page=756) Sets can be described by listing their elements within braces, e.g., $S = \{1, 3, 5\}$. Elements within a set must be distinct, and their order does not matter. Notation for membership includes $a \in S$ (a belongs to S) and $a \notin S$ (a does not belong to S) [755](#page=755). Sets with infinitely many elements can be denoted by listing initial elements with dots (e.g., $S = \{1, 2, 3, \dots\}$) or by using set-builder notation, such as $S = \{x: x \text{ is a positive integer}\}$. Common sets include the real numbers ($\mathbb{R}$), points in the plane ($\mathbb{R}^2$), and points in three-dimensional space ($\mathbb{R}^3$) [756](#page=756). | Set Notation | Description | | --- | --- | | $S = \{1, 3, 5\}$ | Listing elements | | $S = \{1, 2, 3, \dots\}$ | Pattern with dots | | $S = \{x: x \text{ is a positive integer}\}$ | Set-builder notation | ## 46.11 Operations on sets The **union** of two sets A and B ($A \cup B$) is the set of elements belonging to A, B, or both. The **intersection** ($A \cap B$) is the set of elements belonging to both A and B. If $A \cap B = \emptyset$ (the empty set), the sets are called disjoint [756](#page=756). A set A is a **subset** of set B ($A \subset B$) if every element of A is also in B. If $A \subset B$ and $B \subset A$, then A and B are equal ($A = B$) [756](#page=756). | Operation | Symbol | Description | | --- | --- | --- | | Union | $A \cup B$ | Elements in A or B or both | | Intersection | $A \cap B$ | Elements in both A and B | | Disjoint Sets | $A \cap B = \emptyset$ | No common elements | | Subset | $A \subset B$ | All elements of A are in B | ## 46.12 Ordered sets Ordered sets are collections where the sequence of elements is significant, unlike standard sets where order is irrelevant. Duplicate elements are not allowed in ordered sets [756](#page=756). ## 46.13 How to do proofs * Begin by clearly stating the given hypothesis (H) and the conclusion to be proved (C) in complete sentences. * Decide on the proof strategy: direct proof, proof by contrapositive, or proof by contradiction (reductio ad absurdum). Restating the theorem in these different forms can help identify the most promising approach. * Review relevant earlier theorems that might be applicable to your proof. * Developing a proof often requires experience and intuition. Observing techniques used in existing proofs and practicing them can build your repertoire. * Additional guidance on proof techniques can be found in specialized resources [757](#page=757). > 📝 Consider proving the statement: "If a number $x$ is even, then $x^2$ is even." > > 1. **Given (Hypothesis H):** $x$ is an even number. > 2. **To Prove (Conclusion C):** $x^2$ is an even number. > > **Strategy: Direct Proof** > * Since $x$ is even, by definition, $x = 2k$ for some integer $k$. > * Now, consider $x^2$: $x^2 = (2k)^2 = 4k^2 = 2(2k^2)$. > * Let $m = 2k^2$. Since $k$ is an integer, $m$ is also an integer. > * Therefore, $x^2 = 2m$, which means $x^2$ is an even number. > > This demonstrates that if the hypothesis is true, the conclusion is also true [753](#page=753) [757](#page=757). # 47. Appendix B: Complex Numbers ## 47.1 Introduction to Complex Numbers Complex numbers were developed to solve equations that have no real solutions, such as $x^2 = -1$. The imaginary unit, $i$, is defined as $i = \sqrt{-1}$, with the property $i^2 = -1$. A complex number is generally expressed in the form $a + bi$, where $a$ and $b$ are real numbers. - **Real part**: The real number $a$ in the complex number $a + bi$, denoted as $\text{Re}(z)$. - **Imaginary part**: The real number $b$ in the complex number $a + bi$, denoted as $\text{Im}(z)$. - **Pure imaginary number**: A complex number of the form $bi$, where the real part is zero. - **Equality of complex numbers**: Two complex numbers $a + bi$ and $c + di$ are equal if and only if their real parts are equal ($a = c$) and their imaginary parts are equal ($b = d$) [759](#page=759). ## 47.2 Arithmetic Operations with Complex Numbers Complex numbers follow standard algebraic rules, with the key property $i^2 = -1$. - **Addition**: $(a + bi) + (c + di) = (a + c) + (b + d)i$ - **Subtraction**: $(a + bi) - (c + di) = (a - c) + (b - d)i$ - **Multiplication**: $(a + bi)(c + di) = (ac - bd) + (ad + bc)i$ When multiplying a complex number by a real number ($b=0$), the formula simplifies to $a(c + di) = ac + adi$ [759](#page=759). > 📝 $(3 - 2i)(4 + 5i) = 12 + 15i - 8i - 10i^2 = (12 + 10) + 7i = 22 + 7i$ [760](#page=760) ## 47.3 The Complex Plane A complex number $z = a + bi$ can be represented geometrically as a point $(a, b)$ or a vector in a two-dimensional plane, known as the **complex plane**. - The **real axis** corresponds to the x-axis, where points have an imaginary part of zero. - The **imaginary axis** corresponds to the y-axis, where points have a real part of zero (pure imaginary numbers). Geometric operations like addition and subtraction of complex numbers correspond to vector addition and subtraction in the complex plane [760](#page=760). ## 47.4 Complex Conjugate The **complex conjugate** of a complex number $z = a + bi$, denoted as $\bar{z}$, is obtained by changing the sign of the imaginary part: $\bar{z} = a - bi$. - Geometrically, the conjugate is a reflection of the complex number's vector across the real axis. - A complex number is equal to its conjugate if and only if it is a real number ($z = \bar{z} \iff z \in \mathbb{R}$). - The product of a complex number and its conjugate is always a nonnegative real number: $z\bar{z} = (a + bi)(a - bi) = a^2 + b^2$. [760](#page=760) [761](#page=761). ## 47.5 Modulus of a Complex Number The **modulus** (or absolute value) of a complex number $z = a + bi$, denoted by $|z|$, is the length of the vector representing $z$ in the complex plane. It is calculated as: $|z| = \sqrt{z\bar{z}} = \sqrt{a^2 + b^2}$ - The modulus of a real number is its absolute value [761](#page=761). ## 47.6 Reciprocals and Division of Complex Numbers The reciprocal (or multiplicative inverse) of a nonzero complex number $z$ is $1/z$, defined such that $z \cdot (1/z) = 1$. It can be calculated as: $\frac{1}{z} = \frac{\bar{z}}{|z|^2}$ Division of two complex numbers $z_1/z_2$ (where $z_2 \neq 0$) is performed by multiplying the numerator and denominator by the conjugate of the denominator: $\frac{z_1}{z_2} = \frac{z_1 \bar{z_2}}{|z_2|^2}$ [761](#page=761) [762](#page=762). > 📝 To express $z_1/z_2$ in the form $a+bi$, multiply the numerator and denominator by the conjugate of the denominator: $\frac{3+4i}{1-2i} = \frac{(3+4i)(1+2i)}{(1-2i)(1+2i)} = \frac{3+6i+4i+8i^2}{1^2+2^2} = \frac{-5+10i}{5} = -1+2i$ [762](#page=762) ## 47.7 Properties of Modulus and Conjugate [762](#page=762) The following properties hold for any complex numbers $z, z_1, z_2$: | Property | Formula | | --- | --- | | Modulus of product | $\vert z_1 z_2\vert = \vert z_1\vert \vert z_2\vert $ | | Modulus of quotient | $\vert z_1 / z_2\vert = \vert z_1\vert / \vert z_2\vert $ (for $z_2 \neq 0$) | | Modulus of sum | $\vert z_1 + z_2\vert \leq \vert z_1\vert + \vert z_2\vert $ (Triangle Inequality) | | Conjugate of sum | $\overline{z_1 + z_2} = \bar{z_1} + \bar{z_2}$ | | Conjugate of difference | $\overline{z_1 - z_2} = \bar{z_1} - \bar{z_2}$ | | Conjugate of product | $\overline{z_1 z_2} = \bar{z_1} \bar{z_2}$ | | Conjugate of quotient | $\overline{z_1 / z_2} = \bar{z_1} / \bar{z_2}$ (for $z_2 \neq 0$) | ## 47.8 Polar Form of a Complex Number A nonzero complex number $z = a + bi$ can be expressed in **polar form** using its modulus $|z|$ and an argument $f$ (the angle from the positive real axis to the vector $z$): $z = |z|(\cos f + i \sin f)$ - The angle $f$ is called an **argument** of $z$. It is not unique, as adding or subtracting multiples of $2\pi$ yields another valid argument. - The **principal argument** is the unique argument whose radian measure is in the interval $(-\pi, \pi]$ [763](#page=763). ## 47.9 Geometric Interpretation of Multiplication and Division Polar forms provide a geometric understanding of multiplication and division: - **Multiplication**: To multiply two complex numbers $z_1$ and $z_2$, multiply their moduli and add their arguments: $z_1 z_2 = |z_1||z_2|(\cos(f_1 + f_2) + i \sin(f_1 + f_2))$ - **Division**: To divide $z_1$ by $z_2$ (where $z_2 \neq 0$), divide their moduli and subtract their arguments: $\frac{z_1}{z_2} = \frac{|z_1|}{|z_2|}(\cos(f_1 - f_2) + i \sin(f_1 - f_2))$ Multiplying by $i$ geometrically rotates a complex number's vector counterclockwise by $90^\circ$ ($\pi/2$ radians). [763](#page=763) [764](#page=764). > 📝 Multiplying $z_1 = |z_1|(\cos f_1 + i \sin f_1)$ and $z_2 = |z_2|(\cos f_2 + i \sin f_2)$ yields $z_1z_2 = |z_1||z_2|(\cos(f_1 + f_2) + i \sin(f_1 + f_2))$. For example, $z_1 = 2(\cos(\pi/3) + i \sin(\pi/3))$ and $z_2 = 2(\cos(\pi/6) + i \sin(\pi/6))$ multiply to $z_1z_2 = 4(\cos(\pi/2) + i \sin(\pi/2))$ [764](#page=764). ## 47.10 DeMoivre's Formula DeMoivre's formula relates powers of complex numbers in polar form to trigonometric functions. For a positive integer $n$ and a complex number $z = |z|(\cos f + i \sin f)$: $z^n = |z|^n (\cos(nf) + i \sin(nf))$ If $|z| = 1$, the formula simplifies to: $(\cos f + i \sin f)^n = \cos(nf) + i \sin(nf)$ [764](#page=764) [765](#page=765). ## 47.11 Euler's Formula Euler's formula defines the complex exponential function $e^{iq}$ for a real number $q$: $e^{iq} = \cos q + i \sin q$ This formula connects exponential and trigonometric functions. For any complex number $z = a + bi$, the complex exponential is defined as: $e^z = e^{a+bi} = e^a e^{ib} = e^a(\cos b + i \sin b)$ Complex exponentials follow standard exponent laws, such as $e^{z_1} e^{z_2} = e^{z_1+z_2}$ [765](#page=765). # 48. Chapter 10 Supplementary Exercises ## 48.1 Chapter 1 Supplementary Exercises This section provides answers to supplementary exercises from Chapter 1, covering topics such as systems of linear equations, traffic flow, and chemical equation balancing [774](#page=774). ## 48.2 Chapter 2 Supplementary Exercises This section contains answers to supplementary exercises from Chapter 2, focusing on determinants of matrices, including calculations and properties [776](#page=776). > 📝 The determinant of a matrix can be calculated using cofactor expansion. For example, the determinant of a 3x3 matrix can be found by expanding along any row or column, using the formula $det(A) = \sum_{j=1}^{n} (-1)^{i+j} a_{ij} M_{ij}$ for expansion along row $i$, where $a_{ij}$ are the elements of the matrix and $M_{ij}$ are the minors [775](#page=775). ## 48.3 Chapter 3 Supplementary Exercises This section presents solutions to supplementary exercises from Chapter 3, which deals with vectors in $\mathbb{R}^n$, including vector operations, dot products, cross products, and geometric interpretations [777](#page=777). ## 48.4 Chapter 4 Supplementary Exercises This section provides answers to supplementary exercises from Chapter 4, covering vector spaces, subspaces, spanning sets, linear independence, bases, dimension, and rank [778](#page=778) [779](#page=779) [780](#page=780) [781](#page=781) [782](#page=782). > 📝 A set of vectors spans a vector space if every vector in the space can be written as a linear combination of the set. For instance, the vectors (1, 0, 1) and (0, 1, 0) span a subspace of $\mathbb{R}^3$ [778](#page=778). ## 48.5 Chapter 5 Supplementary Exercises This section offers solutions to supplementary exercises from Chapter 5, focusing on eigenvalues, eigenvectors, diagonalization, and applications in differential equations and Markov chains [783](#page=783) [784](#page=784) [785](#page=785). ## 48.6 Chapter 6 Supplementary Exercises This section contains answers to supplementary exercises from Chapter 6, covering inner product spaces, orthogonality, orthonormal bases, and Gram-Schmidt process [785](#page=785) [786](#page=786). ## 48.7 Chapter 7 Supplementary Exercises This section presents solutions to supplementary exercises from Chapter 7, focusing on linear transformations, orthogonal matrices, and their properties [787](#page=787) [788](#page=788). ## 48.8 Exercise set 10.1 This section presents exercises related to geometric applications of linear algebra, including finding equations of lines and planes, and analyzing collinear and coplanar points [796](#page=796). - **Line equation:** The equation of a line in 2D can be represented in various forms, such as $y = 2x - 3$ or $y = -2x + 1$. - **Parabola equation:** A quadratic equation involving $x$ and $y$ can represent a parabola, for example, $x^2 + 2xy + y^2 - 2x + y = 0$. - **Plane equation:** A plane in 3D can be defined by two linear equations representing its normal vectors, such as $x + 2y + z = 0$ and $-x + y - 2z = 0$. - **Collinear points:** Three points are collinear if they lie on the same straight line, and their equation can be determined. - **Coplanar points:** Four points are coplanar if they lie on the same plane, and the equation of this plane can be found [796](#page=796). ## 48.9 Exercise set 10.2 This set of exercises explores applications of linear systems in various contexts, including resource allocation, historical problems, and economic scenarios [796](#page=796). - **Resource allocation:** Linear systems can model scenarios where resources are distributed among different entities, such as allocating gold, brass, tin, and iron based on their value in different applications. - **Historical problems:** Exercises include problems from ancient texts, like dividing an inheritance among sons based on their legitimacy and the value of different assets. - **Economic scenarios:** Linear systems can represent economic models, such as determining the fair distribution of wealth or the value of goods in different markets [796](#page=796). > 📝 A legitimate son receives 7/9 of a certain amount, totaling 577 staters, while an illegitimate son receives 5/9 of the same amount, totaling 422 staters [796](#page=796). ## 48.10 Exercise 7 This exercise involves a historical problem of dividing an inheritance, requiring the solution of a linear system to determine the fair distribution [796](#page=796). - **Legitimate son's share:** A legitimate son receives 7/9 of a certain amount, totaling 577 staters. - **Illegitimate son's share:** An illegitimate son receives 5/9 of the same amount, totaling 422 staters. - **Value of materials:** The exercise also quantifies the value of gold (30 minae), brass (9 minae), tin (14 minae), and iron (5 minae). - **Distribution among three people:** A further part of the exercise involves distributing an amount among three individuals, with specific ratios for their shares [796](#page=796). ## 48.11 Exercise set 10.3 This section focuses on cubic spline interpolation, a method for constructing smooth curves through a set of data points [797](#page=797). - **Cubic spline definition:** A cubic spline is a piecewise polynomial function where each piece is a cubic polynomial, and the function is continuous, along with its first and second derivatives, at the points where the pieces join. - **Cubic runout spline:** This specific type of spline is used when the second derivative at the endpoints is not specified. - **Spline function example:** An example is provided for a cubic spline $S(x) = 3x^3 - 2x^2 + 5x + 1$. - **Spline interpolation matrix:** The exercise involves constructing a matrix related to the coefficients of the spline segments and the second derivatives at the interior points. - **Maximum value of a spline:** The maximum value of a given spline function $S(x)$ is found to be approximately 1.00001 at $x = 4.00$ [797](#page=797). > 📝 For a transition matrix $P$, the steady-state distribution is $q = [11/31, 16/31, 4/31]$ [797](#page=797). ## 48.12 Exercise set 10.4 This exercise set deals with Markov chains, which are mathematical systems that transition from one state to another based on probabilities [797](#page=797). - **Regular Markov chains:** A Markov chain is regular if all entries of some power of its transition matrix are positive. - **Steady-state distribution:** For a regular Markov chain, there exists a unique steady-state distribution vector $q$ such that $qP = q$, where $P$ is the transition matrix. - **Calculating steady-state:** Exercises involve calculating the steady-state distribution for given transition matrices. For example, for a matrix $P$, the steady-state distribution is $q = [11/31, 16/31, 4/31]$. - **Probability calculations:** The exercises also involve calculating probabilities of transitioning between states after a certain number of steps [797](#page=797). ## 48.13 Exercise set 10.5 This section explores graph theory concepts, focusing on paths and connectivity within graphs [797](#page=797). - **Graph representation:** Graphs are represented by nodes (points) and edges (lines connecting nodes), often labeled as $P_1, P_2$, etc. - **Paths in a graph:** Exercises involve determining the number of steps required to move between nodes, such as finding 1-step, 2-step, and 3-step paths between $P_1$ and $P_2$. - **Connectivity:** The exercises examine which nodes can reach other nodes within a given number of steps. For instance, identifying sets of nodes that can reach each other. - **Reachability:** Determining if a path exists between any two nodes in the graph [797](#page=797). ## 48.14 Exercise set 10.6 This set of exercises focuses on game theory, specifically analyzing zero-sum games and finding optimal strategies [797](#page=797). - **Zero-sum games:** These are games where the total gains of the players equal their total losses. - **Optimal strategies:** Exercises involve finding the optimal mixed strategies for players, denoted by $p^\ast$ and $q^\ast$, and the value of the game, $v$. - **Finding optimal strategies:** For a given payoff matrix, the optimal strategies are determined by solving systems of linear equations. - **Example payoff matrix:** An example involves a payoff matrix where the optimal strategy for player 1 is $p^\ast = [0, 1, 0]$ and the value of the game is $v = 3$ [797](#page=797). ## 48.15 Exercise set 10.7 This section presents problems involving economic models and ratios, likely requiring the setup and solution of linear systems [797](#page=797). - **Economic scenarios:** Exercises involve scenarios with different classes of goods or services and their associated values or costs. - **Ratio problems:** One exercise involves determining a ratio between different quantities, such as 1: 1.90: 3.02: 4.24: 5.00 [797](#page=797). > 📝 A rotation by 45 degrees is represented by the matrix $M = \begin{bmatrix} \cos 45^\circ & -\sin 45^\circ \\ \sin 45^\circ & \cos 45^\circ \end{bmatrix}$ [798](#page=798). ## 48.16 Exercise set 10.8 This set of exercises focuses on transformations in computer graphics, including rotations and warps [798](#page=798). - **Geometric transformations:** Exercises involve applying sequences of transformations like rotations and reflections to points or shapes. - **Rotation matrices:** Rotations in 2D are represented by matrices involving sine and cosine functions of the rotation angle. For example, a rotation by 45 degrees is represented by $M = \begin{bmatrix} \cos 45^\circ & -\sin 45^\circ \\ \sin 45^\circ & \cos 45^\circ \end{bmatrix}$. - **Combining transformations:** Sequences of transformations are applied by multiplying their corresponding matrices. For example, $P' = M_7(M_5M_4(M_2M_1P + M_3) + M_6)$. - **Warps:** Affine transformations with warps are also considered, affecting the shape of graphical images [798](#page=798). ## 48.17 Exercise set 10.9 This section deals with the application of linear algebra to image processing and transformations, likely involving matrices and vectors [798](#page=798). - **Image transformations:** Exercises involve applying matrix transformations to image data, represented as vectors. - **Matrix representation:** Transformations are defined by matrices, and applying a transformation involves matrix-vector multiplication. - **Percentage changes:** Calculations involve determining percentage changes in image components after transformations [798](#page=798). ## 48.18 Exercise set 10.10 This exercise set focuses on optimization problems, likely involving linear programming or related techniques [799](#page=799). - **Optimization problems:** Exercises involve finding optimal values for variables subject to certain constraints. - **Linear programming:** The problems may involve maximizing or minimizing a linear objective function subject to linear inequality constraints. - **System of equations:** The constraints often form a system of linear equations or inequalities that need to be solved [799](#page=799). ## 48.19 Exercise set 10.11 This section explores concepts related to fractals and dimension, using linear algebra to analyze geometric structures [799](#page=799). - **Fractal dimension:** The exercises involve calculating the fractal dimension ($d_H$) of sets, which quantifies their complexity. - **Calculating fractal dimension:** The formula $d_H(S) = \ln(\text{number of self-similar pieces}) / \ln(\text{scaling factor})$ is used. - **Examples of fractals:** Examples include the Cantor set and other geometric constructions. - **Self-similarity:** The concept of self-similarity, where a part of the fractal resembles the whole, is central to calculating the dimension [799](#page=799). ## 48.20 Exercise set 10.12 This set of exercises deals with network flow problems and graph algorithms [800](#page=800). - **Network flow:** Problems involve calculating flow through networks, such as traffic flow or data transmission. - **Flow calculations:** The notation $\Pi(x)$ likely represents a flow or capacity related to a value $x$. - **Graph algorithms:** Exercises may involve pathfinding or analyzing connectivity in graphs. - **Regions in a plane:** The exercises describe transformations of regions in a plane, possibly related to image processing or computer graphics [800](#page=800). ## 48.21 Exercise set 10.13 This section focuses on cryptography, specifically the use of linear algebra in encoding and decoding messages [800](#page=800). - **Cryptography:** Exercises involve applying matrix transformations to encrypt and decrypt messages. - **Encoding messages:** Messages are converted into numerical sequences and then transformed using matrices. - **Decoding messages:** The inverse transformation is used to recover the original message from the ciphertext [800](#page=800). ## 48.22 Exercise set 10.14 This set of exercises likely involves applications of linear algebra in areas such as genetics or population dynamics [800](#page=800). - **Genetics:** Problems may involve modeling inheritance patterns using matrices and vectors. - **Population dynamics:** Exercises could relate to age-structured populations or other growth models [800](#page=800). ## 48.23 Exercise set 10.15 This section focuses on applications of linear algebra in population modeling, specifically age-specific population growth [800](#page=800). - **Age-specific population growth:** The exercises involve modeling how populations change over time based on age structure. - **Leslie matrices:** These matrices are used to model population growth, where rows represent survival and fertility rates for different age classes. - **Population projection:** Exercises involve projecting population sizes for future time steps using the Leslie matrix. - **Eigenvalues and eigenvectors:** The dominant eigenvalue and its corresponding eigenvector often represent the long-term growth rate and stable age distribution of the population [800](#page=800). ## 48.24 Exercise set 10.16 This section deals with the harvesting of animal populations, applying linear algebra to determine sustainable yields [800](#page=800). - **Harvesting models:** Exercises involve mathematical models for harvesting animal populations, considering factors like population size and age structure. - **Sustainable yield:** The goal is often to find harvesting strategies that allow the population to persist over time. - **Optimal harvesting:** Exercises may involve finding the harvest level that maximizes the yield while ensuring population sustainability [800](#page=800). ## 48.25 Applications and Historical Topics This section highlights various applications of linear algebra across different fields and mentions key historical figures. ## 48.26 Aeronautical Engineering * Linear algebra is applied in aeronautical engineering for concepts like lifting force, solar-powered aircraft, supersonic aircraft flutter, and the analysis of yaw, pitch, and roll [815](#page=815). ## 48.27 Astrophysics * Applications include Kepler's laws and the measurement of temperature on Venus [815](#page=815). ## 48.28 Biology and Ecology * Linear algebra is used in predicting air quality, forest management, genetics, harvesting animal populations, population dynamics, and wildlife migration [815](#page=815). ## 48.29 Business and Economics * Key applications include game theory, Leontief input-output models, market share analysis, sales and cost analysis, sales projections using least squares, and modeling population dynamics [815](#page=815). ## 48.30 Calculus * Applications include approximate integration, derivatives of matrices, integral inner products, and partial fractions [815](#page=815). ## 48.31 Chemistry * Linear algebra is used for balancing chemical equations [815](#page=815). ## 48.32 Civil Engineering * Applications include the equilibrium of rigid bodies and traffic flow analysis [815](#page=815). ## 48.33 Computer Science * Linear algebra is fundamental in computer science for color models in digital displays, computer graphics, facial recognition, fractals, Google site ranking, and warps and morphs [815](#page=815). ## 48.34 Cryptography * Hill ciphers are an application of linear algebra in cryptography [815](#page=815). ## 48.35 Differential Equations * Linear algebra is used for first-order linear systems [815](#page=815). ## 48.36 Electrical Engineering * Applications include circuit analysis, digitizing signals, and LRC circuits [815](#page=815). ## 48.37 Geometry in Euclidean Space * Linear algebra provides tools for calculating angles between diagonals and edges of cubes, direction angles and cosines, and applying the generalized theorem of Pythagoras. It is also used for the parallelogram law, projection on a line, reflection about a line, rotation about a line, and rotation of coordinate axes [815](#page=815). ## 48.38 Library Science * ISBN numbers utilize linear algebra principles [815](#page=815). ## 48.39 Mathematical Modeling * Linear algebra is applied in modeling chaos, cubic splines, curve fitting, exponential models, graph theory, least squares approximations, linear, quadratic, and cubic models, logarithmic models, Markov chains, population growth, and power function models [816](#page=816). ## 48.40 Mathematics * Key mathematical concepts that utilize linear algebra include the Cauchy–Schwarz inequality, constrained extrema, Fibonacci sequences, Fourier series, Hermite polynomials, Laguerre polynomials, Legendre polynomials, quadratic forms, and Sylvester’s inequality [816](#page=816). ## 48.41 Medicine and Health * Applications include computed tomography, genetics, and modeling human hearing [816](#page=816). ## 48.42 Numerical Linear Algebra * This field uses linear algebra for analyzing the cost of algorithms in floating-point operations (flops), data compression, facial recognition, FBI fingerprint storage, fitting curves to data, Householder reflections, LU-decomposition, polynomial interpolation, the power method, QR-decomposition, roundoff error analysis, Schur decomposition, singular value decomposition, and spectral decomposition [816](#page=816). ## 48.43 Operations Research * Linear algebra is applied in resource assignment, linear programming, and storage and warehousing problems [816](#page=816). ## 48.44 Physics * Applications include displacement and work, analysis of experimental data, mass-spring systems, mechanical systems, modeling falling bodies using least squares, quantum mechanics, resultant forces, scalar moments of force, spring constants, static equilibrium, temperature distribution, and torque [816](#page=816). ## 48.45 Probability and Statistics * Linear algebra is used in calculating arithmetic averages and sample means and variances [816](#page=816). ## 48.46 Psychology * Linear algebra is applied in the study of behavior [816](#page=816). ## 48.47 Linear Algebra Historical Figures * The text lists numerous mathematicians and scientists who contributed to linear algebra, including Harry Bateman, Eugene Beltrami, Maxime Bôcher, Viktor Bunyakovsky, Lewis Carroll, Augustin Cauchy, Arthur Cayley, Gabriel Cramer, Leonard Dickson, Albert Einstein, Gotthold Eisenstein, Leonhard Euler, Leonardo Fibonacci, Jean Fourier, Carl Friedrich Gauss, Josiah Gibbs, Gene Golub, Jorgen Pederson Gram, Hermann Grassman, Jacques Hadamard, Charles Hermite, Ludwig Hesse, Karl Hessenberg, George Hill, Alton Householder, Camille Jordan, Wilhelm Jordan, Gustav Kirchhoff, Joseph Lagrange, Wassily Leontief, Andrei Markov, Abraham de Moivre, John Rayleigh, Erhardt Schmidt, Issai Schur, Hermann Schwarz, James Sylvester, Olga Todd, Alan Turing, John Venn, Herman Weyl, and Józef Wronski [815](#page=815) [816](#page=816).

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also