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



Similar documents
3.2 Matrix Multiplication

Rational Expressions - Complex Fractions

Math Common Core Sampler Test

Math 1050 Khan Academy Extra Credit Algebra Assignment

Matrix Algebra in R A Minimal Introduction

Properties of Real Numbers

Lecture 2 Matrix Operations

Typical Linear Equation Set and Corresponding Matrices

Question 2: How do you solve a matrix equation using the matrix inverse?

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.

Continued Fractions and the Euclidean Algorithm

Elementary Matrices and The LU Factorization

MANCHESTER COLLEGE Department of Education. Length: 25 minutes Grade Intended: Pre-Algebra (7 th )

MATH Fundamental Mathematics IV

13 MATH FACTS a = The elements of a vector have a graphical interpretation, which is particularly easy to see in two or three dimensions.

Introduction to Matrix Algebra

Welcome to Basic Math Skills!

Negative Integer Exponents

Chapter 8 Integers 8.1 Addition and Subtraction

Greatest Common Factor (GCF) Factoring

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

Opposites are all around us. If you move forward two spaces in a board game

3.1. RATIONAL EXPRESSIONS

Addition Methods. Methods Jottings Expanded Compact Examples = 15

Name: Section Registered In:

Mathematics Online Instructional Materials Correlation to the 2009 Algebra I Standards of Learning and Curriculum Framework

MATHEMATICS FOR ENGINEERS BASIC MATRIX THEORY TUTORIAL 2

1.2 Linear Equations and Rational Equations

How To Understand And Solve A Linear Programming Problem

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

RULE 1: Additive Identity Property

Radicals - Rational Exponents

Chapter 7 - Roots, Radicals, and Complex Numbers

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

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Tool 1. Greatest Common Factor (GCF)

When factoring, we look for greatest common factor of each term and reverse the distributive property and take out the GCF.

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

MATH 60 NOTEBOOK CERTIFICATIONS

Solving Rational Equations

Fractions and Linear Equations

Accentuate the Negative: Homework Examples from ACE

CAHSEE on Target UC Davis, School and University Partnerships

Using Patterns of Integer Exponents

List the elements of the given set that are natural numbers, integers, rational numbers, and irrational numbers. (Enter your answers as commaseparated

7.4. The Inverse of a Matrix. Introduction. Prerequisites. Learning Style. Learning Outcomes

2.5 Zeros of a Polynomial Functions

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

Common Core Standards for Fantasy Sports Worksheets. Page 1

Use order of operations to simplify. Show all steps in the space provided below each problem. INTEGER OPERATIONS

Factoring Guidelines. Greatest Common Factor Two Terms Three Terms Four Terms Shirley Radai

This is a square root. The number under the radical is 9. (An asterisk * means multiply.)

Radicals - Multiply and Divide Radicals

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

A =

Using Microsoft Excel Built-in Functions and Matrix Operations. EGN 1006 Introduction to the Engineering Profession

A vector is a directed line segment used to represent a vector quantity.

1 Introduction to Matrices

Recall the process used for adding decimal numbers. 1. Place the numbers to be added in vertical format, aligning the decimal points.

Chapter 07: Instruction Level Parallelism VLIW, Vector, Array and Multithreaded Processors. Lesson 05: Array Processors

Rotation Matrices and Homogeneous Transformations

Exponents, Radicals, and Scientific Notation

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.

Factoring. Factoring Monomials Monomials can often be factored in more than one way.

1.3 Polynomials and Factoring

PYTHAGOREAN TRIPLES KEITH CONRAD

Factoring Trinomials of the Form x 2 bx c

Paramedic Program Pre-Admission Mathematics Test Study Guide

Solving Systems of Linear Equations Using Matrices

To Evaluate an Algebraic Expression

Tom wants to find two real numbers, a and b, that have a sum of 10 and have a product of 10. He makes this table.

Introduction to Matrices for Engineers

Mathematical goals. Starting points. Materials required. Time needed

Algebra 2 Chapter 1 Vocabulary. identity - A statement that equates two equivalent expressions.

( ) which must be a vector

Linear Equations ! $ & " % & " 11,750 12,750 13,750% MATHEMATICS LEARNING SERVICE Centre for Learning and Professional Development

Chapter 3. if 2 a i then location: = i. Page 40

Section 4.1 Rules of Exponents

AMATH 352 Lecture 3 MATLAB Tutorial Starting MATLAB Entering Variables

Just the Factors, Ma am

Decimals Adding and Subtracting

Using row reduction to calculate the inverse and the determinant of a square matrix

Radicals - Rationalize Denominators

Multiple regression - Matrices

MOVIES, GAMBLING, SECRET CODES, JUST MATRIX MAGIC

A linear combination is a sum of scalars times quantities. Such expressions arise quite frequently and have the form

CONTENTS. Please note:

Notes on Determinant

ab = c a If the coefficients a,b and c are real then either α and β are real or α and β are complex conjugates

Section 1.1 Linear Equations: Slope and Equations of Lines

Section 8.2 Solving a System of Equations Using Matrices (Guassian Elimination)

Linear Equations and Inequalities

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Solutions to Math 51 First Exam January 29, 2015

Calculate Highest Common Factors(HCFs) & Least Common Multiples(LCMs) NA1

0.8 Rational Expressions and Equations

2.3. Finding polynomial functions. An Introduction:

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

6.1 The Greatest Common Factor; Factoring by Grouping

Transcription:

MATRIX OPERATIONS Summary of article: What is an operation? Addition of two matrices. Multiplication of a Matrix by a scalar. Subtraction of two matrices: two ways to do it. Combinations of Addition, Subtraction, Scalar Multiplication. Matrix Multiplication An operation is a way that we combine two elements. The basic operations are: Addition (+) Subtraction (-) Multiplication ( * ) Division ( ) Here are some examples of combining elements and the operations used: Combining elements that are rational numbers (fractions) using the operation of addition. 1 2 + 3 4 Combining elements that are second degree binomials using the operation of multiplication. 2 2 (2x + 3)(4x 1) Combining elements that are integers using the operation of division. 35 7 This FAQ will review the definitions of addition, scalar multiplication, subtraction, and the multiplication of matrices. Division is undefined for matrices, but there is a separate related concept, Inverse Matrices, that is similar to division and is found among the other FAQ topics listed on the Online Math Center.

ADDITION of TWO MATRICES To add two matrices, their orders (the number of rows and columns in both matrices) must be the same. Add the corresponding row-column elements from each Matrix to produce a new element in the same row-column location. Example 1: Both matrices are order 2 x 2 3 1 2 8 3+ 2 1+ 8 5 9 A B A B 4 6 + 3 1 4+ 3 6+ 1 1 7 Example 2: Both matrices are order 3 x 5 5 2 7 0 1 1 4 2 6 1 A 3 1 10 2 9 B 4 20 1 9 1 8 2 0 1 3 2 2 7 9 5 5+ 1 2+ 4 7+ 2 0+ 6 1+ 1 6 6 5 6 0 A+ B 3+ 4 1+ 20 10+ 1 2+ 9 9+ 1 7 21 9 11 8 8+ 2 2+ 2 0+ 7 1+ 9 3+ 5 6 4 7 10 2 MULTIPLICATION of a MATRIX by a scalar A scalar is simply a number. To multiply a Matrix by a scalar, distribute the scalar to all elements in the Matrix and multiply. Example 1: Multiply Matrix A by the scalar 3: 4 2 1 4 2 1 3* 4 3* 2 3* 1 12 6 3 A 8 1 0 3A 3 8 1 0 3*8 3*1 3* 0 24 3 0 2 9 7 2 9 7 3* 2 3*9 3*7 6 27 21

Example 2: Multiply Matrix B by the scalar 1 4 : 4 20 B 16 8 1 1 *4 *( 20) 1 4 4 1 5 B 4 1 1 4 2 *16 *8 4 4 SUBTRACTION of TWO MATRICES To subtract two matrices, their orders (the number of rows and columns in both matrices) must be the same. The easy way To subtract Matrix A and B, simply subtract corresponding row-column elements. Don t forget to change signs of elements in Matrix B Example 1: Subtract Matrix B from Matrix A. Both are order 2 x 2. 3 1 2 8 3 2 1 8 1 7 A B A B 4 6 3 1 4 3 6 1 7 5 Example 2: Subtract Matrix B from Matrix A. Both are order 1 x 4. [ 2 4 7 10] B [ 1 1 3 9] A [ 2 4 7 10] [ 1 1 3 9] A B [ 2 1 4 1 7 3 10 9] [ 3 5 10 1]

Example 3: Subtract D from C 1 6 7 2 C 12 D 3 9 3 5 15 Matrix C is a 3 x 3 order Matrix. Matrix D is a 3 x 1 order Matrix. Since the order of the two matrices is different, they can NOT be subtracted. Now the mathematics behind the scenes The negative sign in front of the second Matrix is actually the scalar 1. Distribute the scalar 1 to all elements in the second Matrix. Add the corresponding row-column elements from each Matrix to produce a new element in the same row-column location. Example: Subtract B from A 8 3 7 6 A 2 5 B 1 2 9 1 3 0 A B A + 1* B 8 3 7 6 8 3 1*7 1*( 6) 2 5 + 1* 1 2 2 5 + 1*( 1) 1*2 9 1 3 0 9 1 1*3 1*0 8 3 7 6 8+ 7 3+ 6 1 9 2 5 + 1 2 2+ 1 5 2 3 7 + 9 1 3 0 9+ 3 1+ 0 12 1

COMBINATIONS of ADDITION, SUBTRACTION, and Scalar MULTIPLICATION. The order of operations requires multiplication be done before addition or subtraction, so first multiply the elements inside a Matrix by the scalar in front of it. Add and/or subtract afterwards. Example: 3 4 1 7 A B 8 3 Find 3A 5B 3 4 3*3 3* 4 9 12 3A 3 3*2 3*5 6 15 1 7 5*1 5*7 5 35 5B 5 8 3 5*8 5* 3 40 15 3A 5B 9 12 6 15 5 35 40 15 9 5 12 35 4 47 6 40 15 15 34 30 MULTIPLICATION of TWO MATRICES Two matrices A and B can be multiplied if the number of columns in A is the same as the number of rows in B. The new Matrix will have the same number of rows as A and the same number of columns as B. Example, find A* B 7 3 14 9 A B 5 1 9 1 6 5 4 2 3 Matrix A is 2 x 3 (2 rows, 3 columns). Matrix B is a 3 x 3 (3 rows, 3 columns) Matrix. The columns in A equal the rows in B, so we can multiply A*B producing a 2 x 3 Matrix. However, the columns in B do not equal the rows in A, so we can not multiply B*A.

Steps in multiplying two matrices 1. Determine if the two matrices can be multiplied, i.e. the number of columns in A equals the number of rows in B. If the order of A is (m x n) and the order of B is (n x p), the new Matrix will be of order (m x p). 2. Set up the new, blank (m x p) Matrix. 3. Pick a row-column location of an element in the new Matrix, e.g. the element in row 1 column 1 of the new Matrix. 4. Multiply the first element from the identified row in A by the first element in the identified column of B. Multiply the second element from the identified row of A by the second element in the identified column of B. Continue across the row of A and down the column of B. Then add all of the results. Place the answer in the new Matrix at the row-column location identified. 5. Continue until all row-column locations of the new Matrix are filled. Example: 3 4 1 7 A B 8 3 Matrix A has 2 rows and 2 columns; Matrix B has 2 rows and 2 columns. The number of columns in A equals the number of rows in B, so the two matrices can be multiplied. The (2 x 2) times (2 x 2) will produce a new (2 x 2) Matrix. Set up the new, blank 2 x 2 Matrix. A * B? The question mark has been placed in the first row, first column location of the new Matrix. So multiply the first element in row 1 of Matrix A by the first element in column 1 of Matrix B. Then multiply the second element in row 1 of Matrix A by the second element in column 1 of Matrix B. 3 4 1 7 A B 8 3 Multplying row 1 of A by column 1 of B: ( 3)( 1) + ( 4)( 8) We have gone across row 1 in Matrix A and down column 1 in Matrix B, so we can add the results and place the answer in row 1-column 1 of the new Matrix. ( 3)( 1) + ( 4)( 8) 3 32 29 New Matrix: row 1, column 1: 29 _

Now let s find the element for row 1, column 2: 29? 3 4 1 7 A B 8 3 Multplying row 1 of A by column 2 of B: ( 3)( 7 ) + ( 4)( 3) 21+ 12 33 So row 1, column 2 of the new Matrix is the element 33: 29 33?? For row 2, column 1 multiply row 2 of Matrix A and column 1 of Matrix B. For row 2, column 2 multiply row 2 of Matrix A and column 2 of matrix B: 3 4 1 7 A (2)(1) (5)(8) 2 40 42 B 8 3 + + 3 4 1 7 A B (2)( 7) (5)( 3) 14 15 1 + 8 3 Hence: 29 33 A* B 42 1 Example: Find A * B A [ ] 4 1 5 3 B 2 1 A is order (1 x 3) and B is order (3 x 1), so the new matrix will be order (1 x 1): [?] There is only one element in the new matrix: the row 1, column 1 element. Multiply row 1 elements of Matrix A by column 1 elements of Matrix B and add the result. 4 A [ 1 5 3] B 2 (1)(4) + (5)( 2) + ( 3)(1) 4 10+ 3 3 1 A * B [ 3]

5 0 1 0 4 Example: Find A * B A B 1 6 1 2 3 7 2 A is order (2 x 3) and B is order (3 x 2), so the new matrix will be order (2 x 2): row1, column1 row1, column 2 row2, column1 row2, column 2 Row 1, Column 1: (1)(5) + (0)(1) + (4)(7) 5+ 0+ 28 33 Row 1, Column 2: (1)(0) + (0)(6) + (4)( 2) 0+ 0 8 8 Row 2, Column 1: ( 1)(5) + (2)(1) + (3)(7) 5+ 2+ 21 18 Row 2, Column 2: ( 1)(0) + (2)(6) + (3)( 2) 0+ 12 6 6 A * B 33 8 18 6