MATRIX MULTIPLICATION



Similar documents
PERMUTATIONS AND COMBINATIONS HOW TO AVOID THEM AT ALL COSTS AND STILL ACTUALLY UNDERSTAND AND DO COUNTING PROBLEMS WITH EASE!

Pigeonhole Principle Solutions

Engage in Successful Flailing

What Is Singapore Math?

3.2 Matrix Multiplication

Solve a Smaller Version of the Same Problem

Row Echelon Form and Reduced Row Echelon Form

INTERSECTION MATH And more! James Tanton

Factorizations: Searching for Factor Strings

Here are some examples of combining elements and the operations used:

Introduction to Matrices

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Solving Rational Equations

Mechanics 1: Vectors

Ummmm! Definitely interested. She took the pen and pad out of my hand and constructed a third one for herself:

Solution to Homework 2

Lecture 2 Matrix Operations

This puzzle is based on the following anecdote concerning a Hungarian sociologist and his observations of circles of friends among children.

Unit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.

2x + y = 3. Since the second equation is precisely the same as the first equation, it is enough to find x and y satisfying the system

A permutation can also be represented by describing its cycles. What do you suppose is meant by this?

How To Understand The Laws Of Algebra

SYSTEMS OF EQUATIONS AND MATRICES WITH THE TI-89. by Joseph Collison

Data Mining: Algorithms and Applications Matrix Math Review

Grade 7 Mathematics. Unit 5. Operations with Fractions. Estimated Time: 24 Hours

Kenken For Teachers. Tom Davis June 27, Abstract

Stupid Divisibility Tricks

Math 4310 Handout - Quotient Vector Spaces

TEACHER S GUIDE TO RUSH HOUR

VISUAL GUIDE to. RX Scripting. for Roulette Xtreme - System Designer 2.0

Unit 7 The Number System: Multiplying and Dividing Integers

S on n elements. A good way to think about permutations is the following. Consider the A = 1,2,3, 4 whose elements we permute with the P =

Acquisition Lesson Planning Form Key Standards addressed in this Lesson: MM2A3d,e Time allotted for this Lesson: 4 Hours

LS.6 Solution Matrices

The Assignment Problem and the Hungarian Method

LAMC Beginners Circle: Parity of a Permutation Problems from Handout by Oleg Gleizer Solutions by James Newton

Decimal Notations for Fractions Number and Operations Fractions /4.NF

Chapter 11 Number Theory

Lecture 2 Mathcad Basics

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Math Quizzes Winter 2009

5 Homogeneous systems

CONTENTS 1. Peter Kahn. Spring 2007

Section 4.1 Rules of Exponents

Mathematics of Sudoku I

Probability and Expected Value

Chapter 7. Matrices. Definition. An m n matrix is an array of numbers set out in m rows and n columns. Examples. (

Equations, Lenses and Fractions

5544 = = = Now we have to find a divisor of 693. We can try 3, and 693 = 3 231,and we keep dividing by 3 to get: 1

Sudoku puzzles and how to solve them

Session 7 Fractions and Decimals

Summation Algebra. x i

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

GRADE 2 SUPPLEMENT. Set A7 Number & Operations: Numbers to 1,000 on a Line or Grid. Includes. Skills & Concepts

Math Content by Strand 1

Operations with positive and negative numbers - see first chapter below. Rules related to working with fractions - see second chapter below

Section 1.5 Exponents, Square Roots, and the Order of Operations

6. LECTURE 6. Objectives

Creating Formulas II. Multiplication/Division Percentages Order of Operations Relative and Absolute Reference

Contents. Sample worksheet from

Click on the links below to jump directly to the relevant section

Tips for Solving Mathematical Problems

Permutation Groups. Tom Davis April 2, 2003

Linear Algebra Notes for Marsden and Tromba Vector Calculus

Relative and Absolute Change Percentages

Notes on Determinant

Exponential Notation and the Order of Operations

% ! 3 40% % Percent Cards. This problem gives you the chance to: relate fractions, decimals and percents

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Vieta s Formulas and the Identity Theorem

Unit 2 Module 3: Generating Examples and Nonexamples

Fundamentals of Probability

GUIDE TO EVERYTHING FRACTIONS

Introduction to Matrix Algebra

IB Math Research Problem

Field Observation Reflection Paper. Kelli Jordan. Manchester College. EDUC 111: Introduction to Teaching

4. Binomial Expansions

1.6 The Order of Operations

Colored Hats and Logic Puzzles

Part I. Getting Started COPYRIGHTED MATERIAL

4.3 TABLE 3 TABLE five

Grade 4 - Module 5: Fraction Equivalence, Ordering, and Operations

YOU MUST BE ABLE TO DO THE FOLLOWING PROBLEMS WITHOUT A CALCULATOR!

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

NF5-12 Flexibility with Equivalent Fractions and Pages

DERIVATIVES AS MATRICES; CHAIN RULE

8 Square matrices continued: Determinants

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Using games to support. Win-Win Math Games. by Marilyn Burns

Math 115A HW4 Solutions University of California, Los Angeles. 5 2i 6 + 4i. (5 2i)7i (6 + 4i)( 3 + i) = 35i + 14 ( 22 6i) = i.

Song Writing. Main Goal: Learn how to define and call functions. OVERVIEW: PREPARATION: VOCABULARY: OBJECTIVE: MATERIALS: LESSON NAME:

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

Linear Programming Notes VII Sensitivity Analysis

9.2 Summation Notation

Section 6.1 Discrete Random variables Probability Distribution

Systems of Linear Equations

Similarity and Diagonalization. Similar Matrices

Differentiated Instruction

Lecture L3 - Vectors, Matrices and Coordinate Transformations

Ideal Gas Law Introduction Lesson Plan Keith Newman Chemistry 511 Final Project 2006/2007

Transcription:

CURRICULUM INSPIRATIONS: www.maa.org/ci INNOVATIVE CURRICULUM ONLINE EXPERIENCES: www.gdaymath.com TANTON TIDBITS: www.jamestanton.com MATH FOR AMERICA_DC: www.mathforamerica.org/dc TANTON S TAKE ON MATRIX MULTIPLICATION FEBRUARY 014 This content is taken from http://www.jamestanton.com/?p=145 See the chapter (and videos) there for full details on this work. Let me be upfront about my bias: I personally believe that introduction of matrices to the high-school curriculum is forced and unnecessary and, as usually done in the current textbook approach, is damaging to the joyful learning process. I firmly believe that students really must possess a true sense of ownership of ideas. But the introduction of matrices into the curriculum very much challenges this. Learning and discovery is organic, messy, and non-linear. Matrices are the end result of the learning process, not the beginning. Mathematicians spent decades, if not a century, exploring disparate ideas and struggling with notation for those ideas. It was a joyous epiphany, a real breakthrough, to find those disparate ideas could be brilliantly united by a clever notational approach, and then to realize that this notational structure has a life of its own! We ruin that joy, and we strip all sense of context for them, by introducing matrices early into the mathematics learning experience. Nonetheless, working with matrices is dictated as part of the high-school curriculum. In the notes mentioned above I give a detailed account of how I might introduce the full mathematics of matrix work into the high-school classroom. In this essay, I want to just focus on one small part of that discussion: the act matrix multiplication. Multiplying rows by columns in that funny way is strange and mysterious. Why not rows by rows? Or Columns by rows? (Why do we even

multiply two lists of numbers as a sum of term-by-term products? That, in and of itself, is strange too.) Matrix multiplication, as we are taught to do it, does naturally arise in one particularly accessible context: networks. NETWORKS Here s a puzzle from a beginning unit on permutations and combinations: There are three major highways from city 1 to city, and four major highways from city to city. Now there are now 4 + 1 = 14 routes from city 1 to city. But I ve made all the connectors one way from left to right. What if the routes can go either direction, and there are even more connections, and maybe even some loops, and so on? How many different routes can one take to travel from city 1 to city? This puzzle introduces students to the Multiplication Principle for Counting: If there are a ways to complete a first task and b ways to complete a second, then (assuming no choices made for any one task affect choices made in the other) there are a b ways to complete the two tasks together. So there are 4 routes from city 1 to city in the diagram above. But if the network diagram were more complicated, the counting becomes more complicated. For example, suppose there is a fourth city: Here I ve changed some of the directions of the routes. Maybe this diagram now represents a flight network for an airline company. (For example, maybe each day the company has two flights from city to city, and two flights from city to city.) The loop from city 1 to itself represents a joy flight you can take! So counting routes between cities is now quite complicated. An Exercise Not to Do: How many ways are there to fly from city 1 to city 4 if I wish to fly on a cheap ticket that insists I have two layovers. (City 1 can be a layover after a joy ride!) For a very large network number of cities and flights the network diagram would be visually complicated,

overwhelming, and hard to analyze. And in counting routes we d obviously want to program a computer to do all the work for us. But we can t enter a picture into a computer. But we can encapsulate all the information of a network diagram into a table. Here s a table for all counts of all the direct routes from city i to city j, for all possible values of i and j. I ll call this table P, where P stands for paths, and I ll use the notion P for the entry in the i-th row and j-th column of the table, just as people usually do. So: P =, because there are three direct paths from city 1 to city. P =, because there is one direct 4 1 route from city to city 4 P = because there are no routes 0 from city to itself. and so on. Mathematicians might even be tempted to just write: (Notice that I didn t say that they do!) TERMINOLOGY: Scientists use the term matrix for the matter that holds objects of interest in place. For example, a geologist might find a rock sample with garnets in it. She ll speak of the matrix (the background matter) that is holding the garnets. A table is also an object that holds pieces of interest in place. For this reason, mathematicians call a table of numbers like this a matrix. And just so it doesn t look free floating, they put big parentheses around the values and actually write: 1 0 0 0 0 1 P= 0 0 1 1 0 1 0 Here i, j th entry of P (row i, column j), which, in our example, represents the number of direct routes from city i to cityj. P is the ( ) Given that it is understood that the rows and columns represent cities, we don t really need to write down the borders of the table. We could just write: Okay.. so good...but so what?

Exercise: How many ways can I travel from city 1 to city 4 with exactly one layover? Answer: There are four cases to consider: Layover in city 1: To do this I need to travel from city 1 to city 1, there are P 11 ways to do this, and then travel from city 1 to city 4, and there are P 14 ways to do this. By the multiplication principle there are P11 P14 = 1 0= 0 ways to do this. Layover in city : To do this I need to travel from city 1 to city, there are P ways to do this, and then travel from city to city 4, and there are P 4 ways to do this. By the multiplication principle there are P P4 = 1= ways to do this. Layover in city : There are P1 P4 = 0 1= 0 ways to do this. Layover in city 4: There are P14 P44 = 0 0= 0 ways to do this. The total number of routes is: P11 P14 + P P4 + P1 P4 + P14 P44 = 0+ + 0+ 0= ways to do this. This example illustrates, in general, that the number of routes from city i to city j with one layover is: P P + P P + P P + P P. i1 1j i j i j i 4 4j Suppose there are two airlines Air is Us and Jet Blasters - which we ll call airline A and airline B. They each have their own flight networks A is shown in black, and B in red: We have path matrices: 1 1 0 1 A= 1 0 0 and B= 1 1 1 1 0 0 1 1 1 Exercise 1: a) If airline Air is Us doubled all the counts of daily flights it currently offers between cities, how would its path matrix change? Mathematicians would call this matrix A. Do you agree that this is appropriate in some sense? What do you think is the matrix 10A? What does it mean in terms of the flight network? b) Ignore the colors in the above network diagram (so pretend the two airlines united and became one company). What would be the combined path matrix be? Why do mathematicians deem it appropriate to denote this matrix as A+ B? c) Interpret A+ B. What path matrix is it? For what flight network? d) Cheap as Chips airlines went bankrupt and currently offers no flights anywhere at all. What does its path matrix look like? PUSHING THE IDEA FURTHER:

Question: How many routes are there between city 1 and city with exactly one layover. Moreover, I insist on flying with Air is Us first and then with Jet Blasters second. Answer: Can you see that the answer is A B + A B + A B? 11 1 Look at the numbers in this answer: We ve used A 11 = 1, A = 1 and A 1 =, the entries of the first row of A, and the numbers B =, B = 1and B = 1, the entries of the second column of B, multiplied these together in turn, and summed: A11B + AB + A1B = 1 + 1 1+ 1= 5. In general: The number of paths from city i to city j, by first flying with airline A and then with airline B, is the ith row of A producted and summed with the jth column of B. Definition: This construct of producting and summing the rows of one matrix A with the columns of a second matrix B occurs often in mathematics. Doing this for each row i of A and each column j of Bproduces its own table of values: ( AB) A1B1 A B A B = + + +L i j i j i j The new table of values is itself a matrix, called the matrix product of Aand B. It is denoted asab. Exercise : a) For each value of i and j (each either 1,, or ) find the number of one layover routes from city i to city jflying first with Air is Us first and then with Jet Blasters Verify that you get the answers shown in the matrix product AB shown here: 5 4 AB= 0 1. 0 1 b) Find the matrix product BA. What is the meaning of its entries? Exercise : Let P by the path matrix for the puzzle discussed on page. Compute P (that is, compute the product PP). What is P? What is this number the entry ( ) counting? Also compute 1 P and P. What is ( ) 14 P, the matrix product of P and what is its interpretation? (Did you do the exercise not to do on page?) Exercise 4: Draw an example of a network with path matrix given by the following: 1 1 0 0 1 1 0 1 0 0 4 0 1 0 0 1 1 0 0 0 0 0 0 1 0 1 5 1 4 1 0 5 0 014 James Tanton tanton.math@gmail.com