The inverse of a matrix

Similar documents
Essentials for the TI-83+

Cryptography Worksheet

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

Finite Math - J-term Homework. Section Inverse of a Square Matrix

Cryptography: Matrices and Encryption

Matrices. A Matrix (This one has 2 Rows and 3 Columns) To add two matrices: add the numbers in the matching positions:

Cryptography. What is Cryptography?

Teachers Teaching with Technology (Scotland) Teachers Teaching with Technology. Scotland T 3. Matrices. Teachers Teaching with Technology (Scotland)

Alternate Appendix A: Using the TI-92 Calculator

Contents Systems of Linear Equations and Determinants

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

Solve the matrix equation AX B for X by using A.(1-3) Use the Inverse Matrix Calculator Link to check your work

Chapter 2 Systems of Linear Equations and Matrices

Chapter 1 Vectors. 1. Storing Vectors in a Matrix

x = 12 x = 12 1x = 16

To add or subtract, just add or subtract the numbers in the same column and row and place answer accordingly.

4 + 4 = = 1 5 x 2 = 10

SOLVER TI-83 QUICK REFERENCE. The SOLVER feature is used to solve equations. There may be one variable or more than one variable in the equation.

Science & Technology (DCRUST), Sonepat

Using Microsoft Excel

Encryption à la Mod Name

1.What subjects should you know to play the code cracking game?

Cryptography Lesson Plan

Math 25 and Maple 3 + 4;

Basic tasks in Excel 2013

The Hill Cipher. In 1929 Lester Hill, a professor at Hunter College, published an article in the American

AH Matrices.notebook November 28, 2016

A cipher is a type of secret code, where you swap the letters around so that noone can read your message.

Introduction to the TI-83/84 Calculator

Microsoft Excel Basics Ben Johnson

Matlab notes Matlab is a matrix-based, high-performance language for technical computing It integrates computation, visualisation and programming usin

Senior Math Circles Cryptography and Number Theory Week 1

Basic Excel 2010 Workshop 101

hp calculators hp 39g+ & hp 39g/40g Using Matrices How are matrices stored? How do I solve a system of equations? Quick and easy roots of a polynomial

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

TI-84+ GC 3: Order of Operations, Additional Parentheses, Roots and Absolute Value

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

Intermediate Excel 2013

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

Solving Equations with Inverse Operations

Graphing Calculator Graphing with the TI-85

EXCEL BASICS: MICROSOFT OFFICE 2007

Cryptography I ALFE APRTGHAL KAP BQQQ ADCQTPEMY KSANG A KGA-ETAM MFLK FQRUQY

MITOCW ocw f99-lec07_300k

Performing Matrix Operations on the TI-83/84

Introduction to MATLAB

Sending secret messages with cryptography. An activity by the Australian Computing Academy

= 3 + (5*4) + (1/2)*(4/2)^2.

Remedy ITSM Quick Start Guide

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia

TI-89 graphing calculators are loaded with many useful features. With

EXCEL BASICS: MICROSOFT OFFICE 2010

Introduction to Microsoft Excel

ENCRYPTION USING LESTER HILL CIPHER ALGORITHM

Appendix 2 Number Representations

Microsoft Excel Microsoft Excel

Basic Math in Microsoft Excel

S. Erfani, ECE Dept., University of Windsor Network Security. 2.3-Cipher Block Modes of operation

Introduction to Mathcad

Section 26: Associativity and Order of Operations

Graphics Calculators

LAB: Public-Key Encryption

Excel. Spreadsheet functions

Manipulate expressions containing surds and rationalise denominators (A*) Able to simplify surds (A)

Therefore, after becoming familiar with the Matrix Method, you will be able to solve a system of two linear equations in four different ways.

Adjusting the Display Contrast (Making the Screen Lighter or Darker)

Create a Google account. Start creating the google account... 2 Creating a google + identity... 3 Communities... 4

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

Cmpt 101 Lab 1 - Outline

TI-89 Calculator Workshop #1 The Basics

Matrix Inverse 2 ( 2) 1 = 2 1 2

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

Equations and Problem Solving with Fractions. Variable. Expression. Equation. A variable is a letter used to represent a number.

BREAKING THE CODE! (part 1)

Performance improvements to peer-to-peer file transfers using network coding

A nice outline of the RSA algorithm and implementation can be found at:

MITOCW watch?v=zlohv4xq_ti

Troubleshooting Maple Worksheets: Common Problems

1. Math symbols Operation Symbol Example Order

MITOCW watch?v=0jljzrnhwoi

Mailvelope for Encryption

Solution Guide for Chapter 12

rrr Cu 'Vt.-1 cal l-c.-<_ {CL/o,_

Classic Cryptography: From Caesar to the Hot Line

Course contents. Overview: Goodbye, calculator. Lesson 1: Get started. Lesson 2: Use cell references. Lesson 3: Simplify formulas by using functions

Office 2016 Excel Basics 01 Video/Class Project #13 Excel Basics 1: Excel Grid, Formatting, Formulas, Cell References, Page Setup (O16-13)

BEGINNER PHP Table of Contents

MITOCW watch?v=r6-lqbquci0

P2_L6 Symmetric Encryption Page 1

EN 001-4: Introduction to Computational Design. Matrices & vectors. Why do we care about vectors? What is a matrix and a vector?

Introduction to Microsoft Excel

Recap. Definition (Encryption: Caesar Cipher)

Grade 7/8 Math Circles November 1 & 2, The Matrix

Computer Networks. Network Security and Ethics. Week 14. College of Information Science and Engineering Ritsumeikan University

Solution Guide for Chapter 2

Graphics calculator instructions

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Use of Technology. Perform statistical computations on stored data or entered statistics.

MEMORY EFFICIENT WDR (WAVELET DIFFERENCE REDUCTION) using INVERSE OF ECHELON FORM by EQUATION SOLVING

The Excel Project: Excel for Accountants, Business People... from the Beginning Duncan Williamson

Transcription:

The inverse of a matrix A matrix that has an inverse is called invertible. A matrix that does not have an inverse is called singular. Most matrices don't have an inverse. The only kind of matrix that has an inverse is a square matrix, and even most square matrices don't have inverses. For the purposes of this exercise, I'll make sure to give you matrices that are invertible. If you have to come up with an invertible matrix of your own, guess and check. There are a couple of ways to find the inverse. Right now, we'll use the property that any matrix times its inverse equals the identity matrix (a matrix with 1s on it's upper left to bottom right diagonal and 0s everywhere else). Example: If your matrix is, then you know that times its inverse = Since we don't know what the inverse is, let's just fill in a 2x2 matrix with a bunch of variables: Then = But = So = Since corresponding elements of equal matrices are equal, you can make a couple of systems, one for a and c, and one for b and d. and Solving these systems gives us a = -2, b = 1, c = 3/2, and d = -1/2. So our inverse matrix is

Use this method to find the inverse of Use this method to find the inverse of

TI-84 There's got to be a better way!!! Why yes. Now that you can do this by hand, it's time to let your graphing calculator do the drudgery. Before we can operate on a matrix, we must first enter the matrix into the TI83/84 calculator. Enter the following matrix into the calculator as matrix [B]. Press the 2 nd x -1 to get the matrix menu. Right arrow twice to highlight the EDIT menu. Select [B] and then press ENTER. Next we enter the dimension of the matrix which is 2 X 4. Press 2 ENTER. The 2 appears and the cursor advances to the next position. Now press 4 ENTER. The size in now determined. We enter the numbers across the rows beginning with row one. The bottom of the screen lists the entry's position in the matrix. Now press 5 ENTER 14 ENTER 7 ENTER 1 ENTER. This completes the first row. Press 2 ENTER 3 ENTER 10 ENTER 4 ENTER. To exit the matrix editor, press 2 nd MODE [QUIT]. That returns you to the home screen.

Find the inverse of the following matrix. Press the matrix button or combination of buttons to get the matrix menu. Next,enter the matrix using the matrix editor under one of the letters. This time we will use[a]. From the home screen, re-enter the matrix menu. Select1: [A], then press ENTER. Press the x -1 key, and then press ENTER. The inverse matrix is displayed.

TI-89 There's got to be a better way!!! Why yes. Now that you can do this by hand, it's time to let your graphing calculator do the drudgery. Entering Matrices To enter a matrix on the TI-89 choose the Data/Matrix Editor. Indicate that you are entering a New matrix. On the next screen select 2:Matrix for type, enter a name for the matrix and the size of the matrix. This will result in a screen showing a matrix of the appropriate size that is filled with zeros. Fill in the matrix with the values (either numerical or variable). Remember to use the (-) key to the left of the enter key for negative numbers, not the subtraction key. This matrix may also be entered and stored from the entry line of the HOME screen by typing [6, 7, 7; -1, 4, 4; 5, -4, 3] -> m. Note that we are using a numerical example here, but we may also have symbolic entries in the matrix. Matrix Functions The TI-89 has many functions that allow you to manipulate matrices and vectors. Go to the Home Screen. Use the MATH key (2nd, 5) to select 4:Matrix and then choose what operation to perform on your matrix. To find the inverse, m -1, you don't even need the math menu; just use the alpha key to type m^ - 1. (This will find the inverse, rather than 1/m because matrix division doesn't exist.)

Application to Cryptography Cryptography, to most people, is concerned with keeping communications private. Indeed, the protection of sensitive communications has been the emphasis of cryptography throughout much of its history. Encryption is the transformation of data into some unreadable form. Its purpose is to ensure privacy by keeping the information hidden from anyone for whom it is not intended, even those who can see the encrypted data. Decryption is the reverse of encryption; it is the transformation of encrypted data back into some intelligible form. Encryption and decryption require the use of some secret information, usually referred to as a key. Depending on the encryption mechanism used, the same key might be used for both encryption and decryption, while for other mechanisms, the keys used for encryption and decryption might be different. Today governments use sophisticated methods of coding and decoding messages. One type of code, which is extremely difficult to break, makes use of a large matrix to encode a message. The receiver of the message decodes it using the inverse of the matrix. This first matrix is called the encoding matrix and its inverse is called the decoding matrix. Example Let the message be and the encoding matrix be PREPARE TO NEGOTIATE We assign a number for each letter of the alphabet. For simplicity, let us associate each letter with its position in the alphabet: A is 1, B is 2, and so on. Also, we assign the number 27 (remember we have only 26 letters in the alphabet) to a space between two words. Thus the message becomes: Since we are using a 3 by 3 matrix, we break the enumerated message above into a sequence of 3 by 1 vectors:

Note that it was necessary to add a space at the end of the message to complete the last vector. We now encode the message by multiplying each of the above vectors by the encoding matrix. This can be done by writing the above vectors as columns of a matrix and perform the matrix multiplication of that matrix with the encoding matrix as follows: which gives the matrix The columns of this matrix give the encoded message. The message is transmitted in the following linear form To decode the message, the receiver writes this string as a sequence of 3 by 1 column matrices and repeats the technique using the inverse of the encoding matrix. The inverse of this encoding matrix, the decoding matrix, is: Thus, to decode the message, perform the matrix multiplication and get the matrix The columns of this matrix, written in linear form, give the original message:

Encoding Worksheet Name: Use the following table to compose a secret message to your friend. Write the letters of your message on the top line and the corresponding numbers below each letter. Use 27 for any spaces. a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 (more space, if you need it) Now take the numbers and, starting in the upper left corner and moving down the column and then to the next column, fill in the 3 x whatever grid with your numerical message. You don't have to use all the columns, but every column you use needs to be full. Add a 27 to any empty blocks (max 2) to finish up the column. Now choose your encrypting matrix. To encode a 3 x whatever matrix, your matrix needs to be 3 x 3. Check to be sure the matrix you picked is invertible, or no one will be able to decode your note! Encoding Matrix: (pick any matrix, as long as it's invertible) Decoding Inverse: (checking invertibility - don't give this to your friend!) Use your calculator to multiply your encoding matrix and your message matrix. Encoded message: Now starting in the upper left corner and working down, copy the numbers into a long strip. This is what you will give your partner, along with the encoding matrix (make them find the decoding matrix for themselves!) (more space, if you need it)

Decoding Worksheet Name: Encoded Message: (more space, if you need it) Encoding Matrix: (Your friend should give this to you) Decoding Inverse: (You need to figure this out for yourself!) Take the numbers in your friend's secret message and, starting in the upper left corner and moving down the column and then to the next column, fill in the 3 x whatever grid with your numerical message. Use your calculator to multiply the inverse decoding matrix times the coded message matrix to get your decoded message matrix. Write it here: Starting in the upper left corner and moving down the column and then to the next column, take the numbers from the secret message and write them along the top row of the grid. Below them, write the letter equivalents so you can read the secret message! a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27