Published online by Cambridge University Press: 08 February 2010
Aims of the project
Magic squares have been known for centuries. This project explores their properties from the perspective of matrix algebra, that is, using addition and multiplication of matrices. The project is not concerned with the number-theoretic problem of finding magic squares containing consecutive integers. The project is self-contained, but it may be of interest to know that several of the mathematical results come from the article [16]. This article also contains other results on the same subject.
Mathematical ideas used
Matrix multiplication, row reduced echelon form and solution of linear equations are used. Also, for example, 3 × 3 matrices are regarded as lying in nine-dimensional space R9, and subspaces of R9 are considered. (There is no requirement to know the definition of an abstract vector space: all spaces are contained in some Rn.) The ideas of linear independence and basis are used. It is necessary to know that, in a subspace X of dimension r in Rn, a set of r vectors in X which is linearly independent automatically spans X and so forms a basis. It is necessary to know the definitions of eigenvalues and eigenvectors, and to use these in a simple argument involving powers of matrices.
MATLAB techniques used
The project is about matrices, so you will need the techniques described in Chapter 2. At one point there is an M-file with several ‘for’ loops, and ‘if’ statements, so you will need to understand these ideas. See Chapter 3. Note that the project is somewhat ‘open-ended’: students who work quickly might like to go on to the final section, on 5 × 5 magic squares, which could be regarded as optional.
To save this book to your Kindle, first ensure no-reply@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.
Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.
Find out more about the Kindle Personal Document Service.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.
To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.