Evaluating matrices with negative integers?

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 04-15-2008
Understanding

Join Date: Apr 2004
Location: UK
Posts: 301
geko is an unknown quantity at this point
Evaluating matrices with negative integers?

Im struggling with how to evaluate matrices with negative integers and am looking for help. As far as i can understand the negative integer causes the matrix to be inverted, so does this mean that i multiply the matrix by 1/A and also invert the vectors?

For example, consider a 2x2 matrix (a11, b12, a21, b22) with 3, -2, 4, -5 respectively. Does this become (b22, -b12, -a21, a11), -5, 2, -4, 3?

Also, will the inverse be 1/(ad-bc)? Such that it becomes 1/(3*-5) - (2*-4) leading to a multiple of -0.142857142..

This seems bizarre and i think im doing something wrong, can anyone tell me if im doing it wrong or im on the right track please?

Edit: Nevermind, im on the right track. The multiple can be left as a fraction making it seem less bizarre

Last edited by geko; 04-16-2008 at 05:04 AM. Reason: No longer need help
Reply With Quote
  #2 (permalink)  
Old 04-16-2008
Tormod's Avatar
Hypographer
Hypography Staff Member
Administrator
Senior Editor
Editor
Dev Team Member

Join Date: Feb 2002
Location: Oslo, Norway
Posts: 12,796
Blog Entries: 4
Tormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant futureTormod has a brilliant future
Re: Evaluating matrices with negative integers?

Glad you figured it out!
__________________
Your Friendly Neighborhood Administrator

Want to sponsor Hypography? Buy a print in our Fall 2008 Benefit Sale

Found a problem? Report it in our Bug Tracker

Science is not only compatible with spirituality; it is a profound source of spirituality.
- Carl Sagan
Reply With Quote
  #3 (permalink)  
Old 04-18-2008
Creating
Hypography Staff Member
Administrator
Editor

Join Date: May 2005
Location: Silver Spring, MD, USA
Posts: 4,396
CraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond reputeCraigD has a reputation beyond repute
Post Inverting a matrix

Although geko notes he’s answered his own question, for anyone puzzled by this thread, let me offer my take on the question and its answer.

I believe the question is “how do you get the inverse of a matrix?”

As I’ve heard the term most commonly used, the inverse of a matrix A means a matrix B such that A \cdot B = I, where I is a unit matrix. For the example given in post one, the matrix, its inverse, their 2x2 unit matrix product are:
\begin{bmatrix}3 & -2 \\ 5 & 4\end{bmatrix} \cdot \begin{bmatrix}\frac{4}{22} & \frac{2}{22} \\ \frac{-5}{22} & \frac{3}{22}\end{bmatrix} = \begin{bmatrix}1 & 0 \\ 0 & 1\end{bmatrix}

It’s neater to extract a constant from B and write it
\frac{1}{22} \begin{bmatrix}4 & 2 \\ -5 & 3 \end{bmatrix}

Inverse of this kind are only meaningful for square (same number of columns and rows) matrixes.

Calculating the inverse of a matrix is pretty easy:
Start with a matrix A and a unit matrix B of the same size;
Multiply the rows of A by scalars and add them together as needed to change it into a unit matrix;
For every operation performed on a row of A, perform the same operation on B;
When complete, B is the inverse of A. If it’s impossible to change A into a unit matrix, it has no inverse.

If you do this calculation symbolically (with variables), you’ll find that the inverse of
\begin{bmatrix}a & b \\ c & d\end{bmatrix}
is
\frac{1}{ad - bc} \begin{bmatrix}d & -b \\ -c & a\end{bmatrix}
From this, we can get the quick-and-easy rule “swap the diagonals, negative the other diagonals, and divide by the determinant.
__________________
Moderator: Computers and Technology; Medical Science; Science Projects and Homework; Philosophy of Science; Physics and Mathematics; Environmental Studies
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on matrices emzz Physics and Mathematics 2 09-03-2007
Negative inertia sciman55 Physics and Mathematics 17 05-26-2006
Negative integers tarak Physics and Mathematics 5 02-13-2006
Statisitical View Of Integers Grouped By Number Of Divisors Turtle Physics and Mathematics 25 07-14-2005
Negative Pressure Aki Physics and Mathematics 12 10-16-2004

» Current Poll
Do you read popular science books?
Yes, a few each year - 60.00%
6 Votes
Yes, but very rarely - 10.00%
1 Vote
Yes, most of the time - 20.00%
2 Votes
No - 10.00%
1 Vote
Total Votes: 10
You may not vote on this poll.

All times are GMT -8. The time now is 02:24 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Copyright © 2000-2008 Hypography
Part of the Hypography - Science for Everyone Network