Matlab and Coordinate Systems

Similar documents
Matlab and Coordinate Systems

Matlab and Vectors. next page. close. exit. Math 45 Linear Algebra. David Arnold.

Matlab and Matrices. Math 45 Linear Algebra. David Arnold

Meeting 1 Introduction to Functions. Part 1 Graphing Points on a Plane (REVIEW) Part 2 What is a function?

Paul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies

The Interpolating Polynomial

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

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

Unlabeled equivalence for matroids representable over finite fields

Let s use a more formal definition. An angle is the union of two rays with a common end point.

Orthogonal complements

Linear Algebra Part I - Linear Spaces

MAT 3271: Selected Solutions to the Assignment 6

Algebra of Sets (Mathematics & Logic A)

MATH 890 HOMEWORK 2 DAVID MEREDITH

MATH 51: MATLAB HOMEWORK 3

Advanced Operations Research Techniques IE316. Quiz 1 Review. Dr. Ted Ralphs

What is a Graphon? Daniel Glasscock, June 2013

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #34. Function with pointer Argument

Introduction to Counting, Some Basic Principles

Michael Greenberg. September 13, 2004

x = 12 x = 12 1x = 16

Math Lab 6: Powerful Fun with Power Series Representations of Functions Due noon Thu. Jan. 11 in class *note new due time, location for winter quarter

On the Relationships between Zero Forcing Numbers and Certain Graph Coverings

Add a multiple of a row to another row, replacing the row which was not multiplied.

definition. An angle is the union of two rays with a common end point.

2. Use elementary row operations to rewrite the augmented matrix in a simpler form (i.e., one whose solutions are easy to find).

A GEOMETRIC INTERPRETATION OF COMPLEX ZEROS OF QUADRATIC FUNCTIONS

The eighth scene in a series of articles on elementary mathematics. written by Eugene Maier designed and illustrated by Tyson Smith. equals me.

COMP260 Spring 2014 Notes: February 4th

Math 2331 Linear Algebra

Lecture 2 - Introduction to Polytopes

As a consequence of the operation, there are new incidences between edges and triangles that did not exist in K; see Figure II.9.

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

Sets. Sets. Examples. 5 2 {2, 3, 5} 2, 3 2 {2, 3, 5} 1 /2 {2, 3, 5}

Lecture 4: 3SAT and Latin Squares. 1 Partial Latin Squares Completable in Polynomial Time

4. Simplicial Complexes and Simplicial Homology

8 Matroid Intersection

Grade 6 Math Circles November 6 & Relations, Functions, and Morphisms

(Refer Slide Time 3:31)

Provide a drawing. Mark any line with three points in blue color.

,!7IA3C1-cjfcei!:t;K;k;K;k ISBN Graphing Calculator Reference Card. Addison-Wesley s. Basics. Created in conjuction with

5 The Theory of the Simplex Method

FreeMat Tutorial. 3x + 4y 2z = 5 2x 5y + z = 8 x x + 3y = -1 xx

CS6015 / LARP ACK : Linear Algebra and Its Applications - Gilbert Strang

arxiv: v1 [math.co] 25 Sep 2015

Technical Arts 101 Prof. Anupam Saxena Department of Mechanical engineering Indian Institute of Technology, Kanpur. Lecture - 7 Think and Analyze

MATH (CRN 13695) Lab 1: Basics for Linear Algebra and Matlab

The Encoding Complexity of Network Coding

Chapter 18 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M. Cargal.

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

DOWNLOAD PDF BIG IDEAS MATH VERTICAL SHRINK OF A PARABOLA

George Hartas, MS. Educational Assistant for Mathematics Remediation. MAT 025 Instructor. Table of Contents

GRAPH THEORY: AN INTRODUCTION

Coefficient Constant Equivalent expressions Equation. 3 A mathematical sentence containing an equal sign

Math 5320, 3/28/18 Worksheet 26: Ruler and compass constructions. 1. Use your ruler and compass to construct a line perpendicular to the line below:

Lecture 3: Linear Classification

Chapter 15 Introduction to Linear Programming

Grade 7/8 Math Circles Graph Theory - Solutions October 13/14, 2015

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6

INTRODUCTION TO THE HOMOLOGY GROUPS OF COMPLEXES

MergeSort, Recurrences, Asymptotic Analysis Scribe: Michael P. Kim Date: April 1, 2015

Hot X: Algebra Exposed

Parallel and perspective projections such as used in representing 3d images.

Math 15 - Spring Homework 2.6 Solutions 1. (2.6 # 20) The following graph has 45 vertices. In Sagemath, we can define it like so:

Lecture 4: examples of topological spaces, coarser and finer topologies, bases and closed sets

Rubber bands. Chapter Rubber band representation

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

Inverse and Implicit functions

2017 SOLUTIONS (PRELIMINARY VERSION)

Surfaces and Partial Derivatives

Introduction to Modular Arithmetic

11.1 Facility Location

1. The Normal Distribution, continued

Structures of Expressions

Reducing Directed Max Flow to Undirected Max Flow and Bipartite Matching

Subtraction Understand Subtraction on a Number Line Using a number line let s demonstrate the subtraction process using the problem 7 5.

Applied Algorithm Design Lecture 3

Mathematics 308 Geometry. Chapter 9. Drawing three dimensional objects

Vector Calculus: Understanding the Cross Product

Column and row space of a matrix

LP-Modelling. dr.ir. C.A.J. Hurkens Technische Universiteit Eindhoven. January 30, 2008

Cardinality of Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Cardinality of Sets Fall / 15

Equations of planes in

Solutions to In Class Problems Week 5, Wed.

AtCoder World Tour Finals 2019

CS446: Machine Learning Spring Problem Set 1

Computer Packet 1 Row Operations + Freemat

Math 2B Linear Algebra Test 2 S13 Name Write all responses on separate paper. Show your work for credit.

CS103 Handout 29 Winter 2018 February 9, 2018 Inductive Proofwriting Checklist

LAB 2: Linear Equations and Matrix Algebra. Preliminaries

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

College Algebra Extra Credit Worksheet

Week 8: The fundamentals of graph theory; Planar Graphs 25 and 27 October, 2017

We will load all available matrix functions at once with the Maple command with(linalg).

MAT 003 Brian Killough s Instructor Notes Saint Leo University

Lesson 14: Graph of a Linear Equation Horizontal and Vertical Lines

Repetition Through Recursion

Skill 1: Multiplying Polynomials

Hot X: Algebra Exposed

Transcription:

Math 45 Linear Algebra David Arnold David-Arnold@Eureka.redwoods.cc.ca.us Abstract In this exercise we will introduce the concept of a coordinate system for a vector space. The map from the vector space to its coordinate space is defined, then graph paper is crafted to accompany the corresponding basis. Moving from one coordinate system to another is explained, the activity uses different kinds of graph paper to help the reader visualize the change of basis technique. Prequisites: Knowledge of a basis for a vector space.

Table of Contents Introduction Working with The Mapping Graph Paper Change of s Matrix Homework

Introduction This is an interactive document designed for online viewing. We ve constructed this onscreen documents because we want to make a conscientious effort to cut down on the amount of paper wasted at the College. Consequently, printing of the onscreen document has been purposefully disabled. However, if you are extremely uncomfortable viewing documents onscreen, we have provided a print version. If you click on the Print Doc button, you will be transferred to the print version of the document, which you can print from your browser or the Acrobat Reader. We respectfully request that you only use this feature when you are at home. Help us to cut down on paper use at the College. Much effort has been put into the design of the onscreen version so that you can comfortably navigate through the document. Most of the navigation tools are evident, but one particular feature warrants a bit of explanation. The section subsection headings in the onscreen uments are interactive. If you click on any section or subsection header in the onscreen document, you will be transferred to an identical location in the print version of the document. If you are in the print version, you can make a return journey to the onscreen document by clicking on any section or subsection header in the ument. Finally, the table of is also interactive. Clicking on an entry in the table of takes you directly to that section or subsection in the document. Working with This document is a working document. It is expected that you are sitting in front of a computer terminal where the software is installed. You are not supposed to read this document as if it were a short story. Rather, each time your are presented with a comm, it is expected that you will enter the comm, then hit the Enter key to execute the comm view the result. Furthermore, it is expected that you will ponder the result. Make sure that you completely underst why you got the result you did before you continue with the reading.

The Mapping Let B = {b, b 2,..., b n } be a basis for a vector space V over the real numbers R. Recall that this means that the vectors b, b 2,..., b n are linearly independent. Definition If the only linear combination of the vectors b, b 2,..., b n equaling the zero vector is the trivial combination, then the vectors are linearly independent. That is, if c b + c 2 b 2 + + c n b n = 0 implies that c = c 2 = c n = 0, then the vectors are linearly independent. Furthermore, recall that the basis vectors span the vector space. That is, each vector in V can be written as a linear combination of the basis vectors b, b 2,..., b n. Thus, if v V, it is possible to find scalars c, c 2,..., c n in R such that v = c b + c 2 b 2 + + c n b n. However, the scalars c, c 2,..., c n, when considered as a vector, [v] B = c c 2. c n,

form a coordinate vector from R n. When we think in this manner, we think of the scalars as the coordinates of the vector v. We will consistently use the notation [v] B to represent the coordinates of v with respect to the basis B. It is natural at this point to define a transformation T : V R n by v [v] B = c c 2.. c n The difficulty lies in the fact that this transformation may not be well defined. That is, what if there is more than one way to express v as a linear combination of the basis vectors? Should we map the vector v to the first set of coordinates we find, or should we map the vector v to a second or third set of coordinates? Fortunately, as we shall see in the following lemma, this is not a possible scenario. Lemma Let V be a vector space with basis B = {b, b 2,..., b n }. For every v V, there is a unique set of scalars such that v = c b + c 2 b 2 + + c n b n. Proof: Suppose that there is more than one way to express v as a linear combination of the basis elements. Then there exists scalars c, c 2,..., c n such that v = c b + c 2 b 2 + + c n b n there exists scalars d, d 2,..., d n such that

v = d b + d 2 b 2 + + d n b n. Subtract the second equation from the first to get 0 = (c d )b + (c 2 d 2 )b 2 + + (c n d n )b n. Because the basis vectors are linearly independent, each of the coefficients in the last expression must equal zero. Therefore, c i = d i for i =, 2,..., n. There is exactly one way that we can express a vector v as a linear combination of the basis vectors. Therefore, the transformation T : v [v] B is well defined. It is beyond the scope of this article, but you can also show that the transformation T is linear, onto, one-to-one. This makes the vector space V isomorphic to the coordinate space R n. The two spaces may look different, but they act in exactly the same manner. This is why it is so important that we learn as much about R n as we possibly can. Let s look at an example. Example Consider the vector space P 3, the space of all polynomials with real coefficients having degree less than 3. Are the vectors linearly independent? p (x) = + x + x 2 p 2 (x) = 2x p 3 (x) = 2 + 3x + 3x 2

This is somewhat tricky to show in the usual manner. However, it is not difficult to show that B = {, x, x 2 } is a basis for P 3. With this basis, the coordinate transformation makes the following assignments: [p (x)] B, [p 2 (x)] B 2, [p 3 (x)] B 0 2 3. Because the space P 3 is isomorphic to R 3, the polynomials will be independent if only if we can say the same thing about their coordinate representations. Can we find scalars, not all zero, such that c 2 + c 2 2 + c 3 3 = 0. 3 0 3 To solve this equation, first setup the augmented matrix in. >> M=[ -2 0; -2 3 0; 0 3 0] M = Row reduce. -2 0-2 3 0 0 3 0 3

>> rref(m) ans = 0 3 0 0-5 0 0 0 0 0 Thus, c = 3c 3, c 2 = 5c 3, c 3 is free. Letting c 3 =, one possible solution is c = 3, c 2 = 5, c 3 =. Thus, the coordinate vectors are dependent because 2 0 3 + 5 2 + 3 = 0. 3 0 Because the space P 3 is isomorphic to R 3, the same dependency will exist amongst the polynomials p (x), p 2 (x), p 3 (x). 3p (x) + 5p 2 (x) + p 3 (x) = 3( + x + x 2 ) + 5( 2x) + ( 2 + 3x + 3x 2 ) Graph Paper = 0 + 0x + 0x 2 The idea of a coordinate transformation might seem new quite abstract. 3 0 However, it is something that you have always dealt with ever since you began your studies in mathematics. Take for example, the Cartesian plane, where every point in the plane is associated with a pair of coordinates, similarly, every pair of coordinates is associated with a point in the plane. This is precisely the transformation v [v] B that we are talking about. Every vector v has a coordinate representation [v] B every set of coordinates represents a vector in the vector space.

The stard basis for the plane is { } 0 E = {e, e 2 } =,. 0 Note that e e 2 are the first second columns of the 2 2 identity matrix, respectively. Every point in the plane can be written as a unique linear combination of these two basis vectors. For example, the point (2, 4) is written 2 0 = 2 + 4, 4 0 = 2e + 4e 2. Indeed, when we speak of the point (2, 4), we are actually presenting the coordinates of the point, not the point itself. That s how confident we are that the plane is isomorphic to R 2. We speak of them as if they were identical. Once we declare a basis for the plane, a corresponding coordinate system is automatically created. We usually superimpose this coordinate system on the plane by means of a grid, as shown in Figure. It is important to underst the role of the basis vectors 0 e = e 2 = 0 when constructing the graph paper. If a point in the plane has coordinates (2, 4), then the position of this point is attained by traveling 2 units in the e direction, followed by 4 units in the e 2 direction. Consequently, the basis vectors e e 2 are fundamental in determining the look feel of the grid. However, as we know, there are many different bases we can use for the plane. Consider, for example, the basis

e 2 x 2 (2, 4) e x Figure The stard coordinate system for the plane. C = {c, c 2 }, { } =,, which, as can be seen in Figure 2, creates an entirely different looking graph paper. Even though our point is located in the same position in the plane, it now has a different set of coordinates. Indeed, the C-coordinates of the point are (3, ), which indicate that we must travel 3 units in the c direction, followed by unit in the c 2 direction. That we have arrived at precisely the same point as we did in Figure is easy to see, as

y 2 (3,) c 2 c y Figure 2 plane. A second coordinate system for the 3c + c 2 = 3 +, 2 =, 4 which are the E-coordinates of the point. But this is even easier to see if we superimpose one coordinate system on another, as shown in Figure 3. Change of s Matrix Again, let

x 2 y y 2 (3,) (2, 4) x Figure 3 plane. Combined coordinates systems for the { } C = {c, c 2 } =, be the basis for the plane shown in Figure 2. How does one go about finding the E-coordinates of the point shown in Figure, given the C-coordinates of the point in Figure 2? Because the point has C-coordinates 3 [x] C =, we may write

2 x = 3c + c = 3 + = 4 Of course, the same task is easily accomplished with matrix multiplication. 3 2 = 4 Note that the columns of the matrix are the C-basis vectors. Let P C represent the matrix that transforms C-coordinates into stard E-coordinates. P C = [c c 2 ] = Thus, if you are given the C-coordinates of the vector x, then you can find the E-coordinates in the stard basis as follows: [x] E = P C [x] C. Now, because the C-basis vectors are independent, the matrix P C is invertible. Consequently, given the stard E-coordinates of a point, one can find the C-coordinates with the following computation. Example 2 Given [x] C =, find [x] E. 3 PC [x] E = [x] C A simple multiplication by the change of coordinates matrix P C does the trick. 2 [x] E = P C [x] C = = 3 4

can be extremely helpful when making coordinate transformations. >> x_c=[-;-3] x_c = - -3 >> P_C=[ -; ] P_C = -» x_e=p_c*x_c x_e = 2-4 Of course, abstract computations can be quite meaningless unless accompanied by some sort of visualization. When you plot the coordinates given by [x] E on E-coordinate graph paper, then plot the coordinates given by [x] C on C-coordinate graph paper, things become clear, especially when you superimpose one coordinate system atop the second. This is shown in Figure 4. Example 3 3 Given [x] E =, find [x] C. Again, the change of coordinates matrix provides the answer. /2 /2 3 [x] C = PC [x] E = = /2 /2 2 eases the computations.

y 2 x 2 y x (, 3) (2, 4) Figure 4 The coordinates of the point in the C- coordinate system are given by [x] C = (, 3). The E-coordinates are [x] E = (2, 4). >> x_e=[-3;] x_e = -3 >> x_c=inv(p_c)*x_e x_c = - 2 Again, this is intractable without visualization. The coordinates [x] E [x] C are plotted in the

appropriate coordinate systems in Figure 5. y 2 x 2 y ( 3, ) (, 2) x Homework Recall the definition of a basis. Figure 5 The coordinates of the point in the C- coordinate system are given by [x] C = (, 2). The E-coordinates are [x] E = ( 3, ).

Definition 2 Let V be a vector space over R. Let B = {v, v 2,..., v n } be a collection of vectors from V. The set B is a basis for V is only if two conditions are satisfied: The vectors v, v 2,..., v n are linearly independent. The vectors v, v 2,..., v n span the space V. That is, any v V can be written as a linear combination of v, v 2,..., v n. Thus, to show that is a basis for R 2, you need to show two things: { } 2 B =, The vectors [2, ] T [, ] T are linearly independent. That is, if 2 0 c + c 2 =, 0 then c = c 2 = 0. The vectors [2, ] T [, ] T span R 2. That is, for any [a, b] T R 2, there exists scalars c c 2 such that c ( 2 ) + c 2 = a. b These ideas will be important as you attempt to complete the following exercises for homework.

. Consider the collection of vectors from R 2, { } 2 B =,. a. Prove that B is a basis for R 2. b. On a sheet of stard graph paper, superimpose a new grid representing the B-coordinate system. c. Plot each of the following coordinates on your B-coordinate graph paper. 3 2 i. [x] B = iii. [x] B = 2 ii. [x] B = iv. [x] B = 2 3 d. Use your graph paper to determine the stard E-coordinates of each point plotted in part (c). e. The change of coordinate matrix is 2 P B =, () where the columns of P B are the basis vectors of B, with [2, ] T appearing first [, ] appearing second (order matters). Use the relation [x] E = P B [x] B to change each B-coordinate in part (c) to stard E-coordinates. Verify that each result agrees with the visual result obtained in part (d).

f. Craft a second sheet of B-coordinate graph paper, superimposing a B-coordinate grid on a stard sheet of E-coordinate graph paper. Plot each of following the stard E-coordinate vectors on your graph paper.

8 i. [x] E = iii. [x] E = 2 2 2 ii. [x] E = iv. [x] E = 4 3 g. Use your graph paper to determine the B-coordinates of each point plotted in part (f). h. Use the relation [x] B = PB [x] E to determine the B-coordinates of the each stard E-coordinate in part (f). Verify that each result agrees with the visual result obtained in part (g). 2. Here is what it means for a function to map a space onto another space. Definition 3 A function T mapping a vector space X into a vector space Y is said to be onto Y if only if for each y Y there exists an x X such that T (x) = y. Let V be a vector space over R with basis B = {v, v 2,..., v n }. Define T : V R n by T (v) = [v] B. Show that the mapping T is onto R n. 3. Here is what it means for a function to be one-to-one.

Definition 4 Let T map the vector space X into the vector space Y. The mapping T is one-to-one if only if different vectors get mapped to different vectors. That is, if x y, then T (x) T (y). Let V be a vector space over R with basis B = {v, v 2,..., v n }. Define T : V R n by T (v) = [v] B. Show that the mapping T is one-to-one.