Classroom Tips and Techniques: Stepwise Solutions in Maple - Part 2 - Linear Algebra

Similar documents
Classroom Tips and Techniques: Branch Cuts for a Product of Two Square-Roots

Classroom Tips and Techniques: Nonlinear Curve Fitting. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

Classroom Tips and Techniques: Drawing a Normal and Tangent Plane on a Surface

Integration by Parts in Maple

Classroom Tips and Techniques: Interactive Plotting of Points on a Curve

Introduction. Classroom Tips and Techniques: The Lagrange Multiplier Method

Visualizing Regions of Integration in 2-D Cartesian Coordinates

Classroom Tips and Techniques: The Lagrange Multiplier Method

Classroom Tips and Techniques: Solving Algebraic Equations by the Dragilev Method

Classroom Tips and Techniques: Maple Meets Marden's Theorem. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

Classroom Tips and Techniques: Plotting Curves Defined Parametrically

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Classroom Tips and Techniques: Least-Squares Fits. Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft

3. Replace any row by the sum of that row and a constant multiple of any other row.

A Maple Package for Solving and Displaying

Maths for Signals and Systems Linear Algebra in Engineering. Some problems by Gilbert Strang

10/26/ Solving Systems of Linear Equations Using Matrices. Objectives. Matrices

(Creating Arrays & Matrices) Applied Linear Algebra in Geoscience Using MATLAB

Section 3.1 Gaussian Elimination Method (GEM) Key terms

Curriculum Map: Mathematics

7.3 3-D Notes Honors Precalculus Date: Adapted from 11.1 & 11.4

Classroom Tips and Techniques: Notational Devices for ODEs

NFC ACADEMY MATH 600 COURSE OVERVIEW

Contents. Implementing the QR factorization The algebraic eigenvalue problem. Applied Linear Algebra in Geoscience Using MATLAB

Precalculus Notes: Unit 7 Systems of Equations and Matrices

MATH 2000 Gauss-Jordan Elimination and the TI-83 [Underlined bold terms are defined in the glossary]

Math 355: Linear Algebra: Midterm 1 Colin Carroll June 25, 2011

COMP 558 lecture 19 Nov. 17, 2010

MATH 423 Linear Algebra II Lecture 17: Reduced row echelon form (continued). Determinant of a matrix.

GEOMETRIC TOOLS FOR COMPUTER GRAPHICS

TTUSD Math Essential Standards Matrix 4/16/10 NUMBER SENSE

WEEK 4 REVIEW. Graphing Systems of Linear Inequalities (3.1)

Math 7 Elementary Linear Algebra PLOTS and ROTATIONS

User s Guide Version 4

MAT 003 Brian Killough s Instructor Notes Saint Leo University

Column and row space of a matrix

Maple Quick Start. Introduction. Talking to Maple

2.7 Numerical Linear Algebra Software

Graphics and Interaction Transformation geometry and homogeneous coordinates

TIME 2014 Technology in Mathematics Education July 1 st -5 th 2014, Krems, Austria

Solving Systems Using Row Operations 1 Name

COMP30019 Graphics and Interaction Transformation geometry and homogeneous coordinates

MatLab Project # 1 Due IN TUTORIAL Wednesday October 30

Ahigh school curriculum in Algebra 2 contains both solving systems of linear equations,

6-2 Matrix Multiplication, Inverses and Determinants

The MAPLE BOOK FRANK GARVAN CHAPMAN & HALL/CRC. A CRC Press Company Boca Raton London New York Washington, D.C.

Unit Map: Grade 3 Math

MATLAB Lecture 1. Introduction to MATLAB

Math Geometry FAIM 2015 Form 1-A [ ]

Basic Matrix Manipulation with a TI-89/TI-92/Voyage 200

Spring 2018 Updates. Computing Technology for All. Data Structure Essentials. Digital Design

CHAPTER 5 SYSTEMS OF EQUATIONS. x y

In this first example, we build a question that asks for the derivative of sec(x) and uses Maple to grade the response.

Kinematics of the Stewart Platform (Reality Check 1: page 67)

Math 308 Autumn 2016 MIDTERM /18/2016

Graphing Calculator Tutorial

Mathematics Scope & Sequence Grade 4

ü 12.1 Vectors Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section.

MTH309 Linear Algebra: Maple Guide

2 Second Derivatives. As we have seen, a function f (x, y) of two variables has four different partial derivatives: f xx. f yx. f x y.

x = 12 x = 12 1x = 16

MATH ALGEBRA AND FUNCTIONS 5 Performance Objective Task Analysis Benchmarks/Assessment Students:

APS Seventh Grade Math District Benchmark Assessment NM Math Standards Alignment

Pure Math 30: Explained!

Solving Systems of Equations Using Matrices With the TI-83 or TI-84

EXAMINATIONS 2017 TRIMESTER 2

7 th GRADE PLANNER Mathematics. Lesson Plan # QTR. 3 QTR. 1 QTR. 2 QTR 4. Objective

HP Prime: The 10-Quicky Introduction Version 1.0. HP Prime: A Breakthrough in Mathematics Education Technology!

Translations. Geometric Image Transformations. Two-Dimensional Geometric Transforms. Groups and Composition

Prentice Hall Mathematics: Course Correlated to: Colorado Model Content Standards and Grade Level Expectations (Grade 6)

Unit Maps: Grade 7 Math

Honors Precalculus: Solving equations and inequalities graphically and algebraically. Page 1

MAINE ASSOCIATION OF MATH LEAGUES RULES GOVERNING QUESTIONS, ANSWERS, AND GRADING

For example, the system. 22 may be represented by the augmented matrix

Numerical Linear Algebra

YEAR 12 Core 1 & 2 Maths Curriculum (A Level Year 1)

Salisbury Township School District Planned Course of Study 6 th Grade Math Salisbury Inspire, Think, Learn, Grow Together!

Functions of Several Variables

Prep 8 Year: Pre-Algebra Textbook: Larson, Boswell, Kanold & Stiff. Pre-Algebra. Common Core Edition Holt McDougal, 2012.

Table of Contents. Introduction.*.. 7. Part /: Getting Started With MATLAB 5. Chapter 1: Introducing MATLAB and Its Many Uses 7

The Course Structure for the MCA Programme

Mathematica CalcCenter

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

Mathematics Scope & Sequence Grade 3

George B. Dantzig Mukund N. Thapa. Linear Programming. 1: Introduction. With 87 Illustrations. Springer

Exercise Set Decide whether each matrix below is an elementary matrix. (a) (b) (c) (d) Answer:

1 2 (3 + x 3) x 2 = 1 3 (3 + x 1 2x 3 ) 1. 3 ( 1 x 2) (3 + x(0) 3 ) = 1 2 (3 + 0) = 3. 2 (3 + x(0) 1 2x (0) ( ) = 1 ( 1 x(0) 2 ) = 1 3 ) = 1 3

Some Linear Algebra Basics in Maple

Mathematical Analysis of Tetrahedron (solid angle subtended by any tetrahedron at its vertex)

8.NS.1 8.NS.2. 8.EE.7.a 8.EE.4 8.EE.5 8.EE.6

Three-Dimensional Coordinate Systems

Course Outlines. Elementary Mathematics (Grades K-5) Kids and Numbers (Recommended for K-1 students)

Choose the file menu, and select Open. Input to be typed at the Maple prompt. Output from Maple. An important tip.

SKILL: What we want students to DO. Students will be able to: (pp. 1 61)

Select the Points You ll Use. Tech Assignment: Find a Quadratic Function for College Costs

Math 9 Final Exam Review and Outline

Mathematical Operations

MATH 3511 Basics of MATLAB

Teaching Manual Math 2131

Middle School Math Course 2

Transcription:

Introduction Classroom Tips and Techniques: Stepwise Solutions in Maple - Part 2 - Linear Algebra Robert J. Lopez Emeritus Professor of Mathematics and Maple Fellow Maplesoft In the preceding article Stepwise Solutions in Maple - Part 1, we detailed the Maple tools for obtaining stepwise solutions of problems in algebra, and calculus of one and several variables. In this sequel, we detail the stepwise tools available in linear algebra. Stepwise solutions in vector calculus will be discussed in our next article. These tools include tutors that implement Gaussian arithmetic for solving linear systems and inverting a square matrix, calculation of eigenvalues and eigenvectors, and task templates that provide simplified interfaces to some of the visualizations tools in the Student LinearAlgebra package. There is also a task template for visualizing the transforming action of a matrix in the plane. But again, we point out that Maple "does" symbolic math, and can therefore be directed to implement the steps of nearly any algorithmic computation. Gaussian Elimination Gaussian elimination combines elementary row operations to transform a matrix into a row-equivalent upper triangular matrix. Table 1 illustrates the stepwise tool for this, the Gaussian Elimination tutor.

Table 1 Gaussian Elimination tutor applied to an augmented matrix If row-reduction were being implemented by hand, the first step would most likely be the addition of row 3 to row 1, thereby creating a 1 in the -position. This was done to start the reduction, and the remaining steps shown in Table 1 are the result of the "All Steps" button. If the "Next Step" button were used to step through the reduction, annotation for each step would appear in the upper right-hand window of the tutor. Since the matrix in Table 1 is augmented, it arose from a linear system. To continue with the solution process, press the "Solve System" button, to obtain the contents of Table 2 where back-substitution is then applied stepwise.

Table 2 Back-substitution completes the calculation started in Table 1 Pressing the "Equations" button writes the equations corresponding to the upper triangular matrix in Table 1. In succession, pressing the "Solve" buttons implements back-substitution. Gauss-Jordan Elimination Using the same elementary row operations as the Gaussian Elimination tutor, the Gauss-Jordan Elimination tutor illustrated in Table 3 row-reduces the augmented matrix in Table 1 to reduced row-echelon form.

Table 3 Reduced row-echelon form by elementary row operations Linear-System Solving The Linear System Solving tutor is simply a portal to either the Gaussian Elimination tutor or the Gauss-Jordan Elimination tutor. The doorway is shown in Table 4. Table 4 The Linear System Solving tutor

Matrix Inversion The inverse of the square matrix can be found by solving for its columns via the equations, where the are the columns of the identity matrix. Writing all these systems at once, and solving by transforming to reduced row-echelon form is a standard textbook method for finding the inverse. This calculation is implemented by the Matrix Inverse tutor, as shown in Table 5. Just the matrix is entered - the tutor augments with the identity. Table 5 Matrix inversion by elementary row operations leading to reduced row-echelon form.

Eigenvalues The Eigenvalues tutor steps through the calculation of the eigenvalues of a square matrix. The four steps implemented are shown on the left in Table 6, with bold font used to indicate the present step. Table 6 First panel of the Eigenvalues tutor The remaining calculations are summarized in Table 7. Calculate Find Solve for roots so the eigenvalues are Table 7 The final three steps in the Eigenvalues tutor

Eigenvectors The Eigenvectors tutor steps through the calculation of the eigenvectors of a square matrix. Table 8 shows the initial panel for this tutor. Table 8 Initial panel for the Eigenvectors tutor If the "Yes" button is selected, the Eigenvalues tutor (see Tables 6 and 7) is launched. If the "No" button is selected, then the panel shown in Table 9 is launched. Note that the default matrix for both the Eigenvalues and Eigenvectors tutors is with eigenvalues.

Table 9 Computing eigenvectors in the Eigenvectors tutor Selecting a "Find Eigenvector" button leads to the three panels summarized in Table 10. Table 10 Stepwise calculation of the eigenvector corresponding to the eigenvalue

Visualizations Nine of the ten visualization task templates for linear algebra are based on visualization commands in the Student Linear Algebra package. The PlanePlot, ProjectionPlot, and VectorSum commands, implemented in four of these visualization task templates, provide a measure of stepwise calculations. The Matrix Action task template is independent of the Student package, but also provides a significant stepwise presence in the subject. Matrix Action 2-D Table 11 shows the functioning of the Matrix Action 2-D task template. Tools Tasks Browse: Linear Algebra Visualization Matrix Action 2-D Matrix Action: 2-D Matrix: K 4 3 K 6 5 K 0.8387 0.5446 4.989 7.755 9.221 9.271 Eigenpairs Start 2. -1. Clear

.4472,.8944.7071.7071 0 60 120 180 240 300 360 = 147 Table 11 Matrix Action 2-D task template After entering the matrix, press the Start button, which then populates all the other fields. The slider at the bottom controls the unit vector x that appears in black in the lower graph. As the slider is moved, the varying components of x and are displayed. The length of is also computed and displayed just above the 2-norm of. The vector is plotted in the upper graph where the dotted curve traces the trajectory that the vector would make as the unit vector x traversed the unit circle. The eigenvalues and eigenvectors (normalized) of are displayed, and in the lower graph, these unit eigenvectors are graphed, one in red and one in green. Since an eigenvector is actually an invariant direction, the negative of each eigenvector is also plotted. If the slider is adjusted so that the length of matches the 2-norm of, the vector in the upper graph should be at its maximum length. Plane Plot The PlanePlot command will draw a plane that is specified by an equation, by a normal vector and a point, and by a pair of (basis) vectors and a point. In addition, there are a number of parameters that control what is added to the plot, such things as the point on the plane nearest to the origin, etc. The Plane Plot task template provides a syntax-free interface for this command, but a number of the parameter settings have necessarily been hard-coded for simplicity. Table 12 shows the task template used to draw the plane determined by the basis vectors and the point

Tools Tasks Browse: Linear Algebra Visualizations Plane Plot Graph of a Plane Specify a plane in one of the following ways: Equation Normal vector and a point Two vectors in the plane (basis) and a point Obtain plot of plane and Variables: Equation Normal & Point, y, z Normal vector Equation of the plane Two vectors in the plane The point on the plane closest to the origin Basis & Point, P The number of digits in the returned data is controlled by the slider. Digits = 4 6 8 10 12 14 16 = 5 Clear and Reset Click the icon below to execute the PlanePlot command. normal vector: <.53452, -1.8708, 1.0690> equation of plane: <.53452*x-1.8708*y+1.0690*z = 7.21605353130000005> point on plane nearest origin: <.78261, -2.7391, 1.5652> basis vectors: <1., 2., 3.>, <-2., 0., 1.>

Table 12 Plane Plot visualization task template The slider at the bottom of the template controls the number of digits used in reporting most of the data at the bottom of the table. The graph itself (shown below) shows the plane, the normal vector (in orange) drawn at the point, a vector (in black) from the origin to the point on the plane nearest the origin, a vector (in red) from the origin to the point, and the basis vectors (in blue). Projection onto a 1-D Subspace The ProjectionPlot command in the Student Linear Algebra package will project a vector onto a one- or two-dimensional subspace. This dual functionality has been distributed across two different task templates. The task template "Projection Plot onto 1-D" projects a vector onto a one-dimensional subspace. A vector in the plane can be projected onto another vector, or onto a line through the origin. The projection and the orthogonal component are computed; a graph is drawn for vectors that are completely numeric. Table 13 contains an example of the projection of one planar vector onto another. Tools Tasks Browse: Linear Algebra Visualizations Projection Plot onto 1-D Projection onto 1-D Subspace Vector to be projected 2, 3 Graph Clear All

Project onto Vector Line thru origin 1,K 1 Coordinates = [x,y] Other = Projection Float K 1 2 1 2 Orthogonal Component Float 5 2 5 2 Table 13 Projection of one planar vector onto another Projection onto a 2-D Subspace The ProjectionPlot command in the Student Linear Algebra package will project a vector onto a one- or two-dimensional subspace. This dual functionality has been distributed across two different task templates. The task template "Projection Plot onto 2-D" projects a vector onto a two-dimensional subspace, defined either by its basis, or by the equation of a plane through the origin. The projection and the orthogonal component are computed; a graph is drawn for vectors that are completely numeric. Table 14 contains an example of the projection of a vector onto the plane spanned by a given basis of two other vectors.

Tools Tasks Browse: Linear Algebra Visualizations Projection Plot onto 2-D Project Vector onto Plane in Vector to be projected: 1, 2, 3 Graph Clear All Project onto plane: Basis for plane Plane thru origin 1,K 2, 3, K 1, 1, 0 Coordinates = [x,y,z] Other = Projection Float Orthogonal Component Float K 17/ 19 2/19 45/19 36/19 36/19 12/19 Table 14 Projection of a vector onto the plane spanned by a given basis The vector being projected is drawn in black; its component in the plane, in green; and its component orthogonal to the plane, in red. The basis vectors spanning the plane of projection are drawn in blue. Vector Sum The VectorSumPlot command in the Student LinearAlgebra package will graph vectors and

their sum, or show the parallelogram(s) of addition. The resultant vector is always drawn in black. The Vector Sum Plot task template provides a simplified interface to this command. After a list of either 2- or 3-dimensional vectors are entered, moving the slider that selects the number of vectors to add will cause both the resultant and the graph of the vectors to appear. Table 15 shows the task template applied to three vectors in. The vector sum is given analytically as the resultant; and graphically (in black), as the sum of the cyan, purple, and red vectors. We elected not to display the overlapping parallelograms of addition. Tools Tasks Browse: Linear Algebra Visualizations Vector Sum Plot Vectors (2 or more): 1, 2, 3, K 1, 1, 2, 4,0,1 Plot the Sum of Vectors Sum first 2 4 6 8 10 12 14 16 = 3 Resultant = 4 3 6 Show parallelograms Clear All Table 15 The VectorSumPlot command accessed through the Vector Sum Plot task template Legal Notice: Maplesoft, a division of Waterloo Maple Inc. 2010. Maplesoft and Maple are trademarks of Waterloo Maple Inc. This application may contain errors and Maplesoft is not liable for any damages resulting from the use of this material. This application is intended for non-commercial, non-profit use only. Contact Maplesoft for permission if you wish to use this application in for-profit activities.