59
Computing orthogonal complements on finite tori David Wilding MRSC 2012

Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

  • Upload
    lamngoc

  • View
    218

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Computing orthogonal complements on finite tori

David Wilding

MRSC 2012

Page 2: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Many of us would be able to sketch the row space of a (sufficientlysmall!) real matrix, but what about the row space of a matrix whoseentries are congruence classes of integers? As you’ll see in the talk,it’s possible, and actually quite fun, to draw such spaces and theirorthogonal complements on the surface of a torus. I’ll explain whatan orthogonal complement is in this context, although you mightwell be able to guess, and I’ll describe a nice way to compute suchthings.

Page 3: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 00 0

]

David Wilding 15

Page 4: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 10 0

]

David Wilding 15

Page 5: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 0

]

David Wilding 15

Page 6: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 30 0

]

David Wilding 15

Page 7: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

These first four slides show the row spaces of various matrices inthe real plane R2. The origin is the black dot in the middle and aswe increase the top right entry in the matrix the row space (whichis a line because the matrix only has one non-zero row) increases insteepness.

Page 8: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 00 0

]

David Wilding 14

Page 9: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 10 0

]

David Wilding 14

Page 10: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 0

]

David Wilding 14

Page 11: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 30 0

]

David Wilding 14

Page 12: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 40 0

]

David Wilding 14

Page 13: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

These five slides show the row spaces of the same matrices (plusone more) in the plane Z2

15, which has 152 = 225 points in total.All operations here are carried out modulo 15, so the left and rightedges of the plane should be identified. Similarly the bottom andtop edges should be identified, forming a torus.

Page 14: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 00 0

]

David Wilding 13

Page 15: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 10 0

]

David Wilding 13

Page 16: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 0

]

David Wilding 13

Page 17: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 30 0

]

David Wilding 13

Page 18: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 40 0

]

David Wilding 13

Page 19: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

These five slides show the row spaces of the same matrices again,but this time in the plane Z2

60 drawn as a torus. The first coordinatedirection goes right from the origin (the black dot) round the torus,and the second coordinate direction goes up from the origin over thetorus. All operations here (and for the rest of the talk) are carriedout modulo 60.

Page 20: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Orthogonality [a b

]·[x y

]= ax + by = 0

For example

I[1 0

]and

[0 1

]are orthogonal

I so are[1 2

]and

[56 2

]

David Wilding 12

Page 21: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Orthogonality [a b

]·[x y

]= ax + by = 0

For example

I[1 0

]and

[0 1

]are orthogonal

I so are[1 2

]and

[56 2

]

David Wilding 12

Page 22: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Two vectors are orthogonal if their dot product is zero (modulo 60).This allows more vectors to be orthogonal than we would usuallyexpect. The orthogonal complement of a set X of vectors is the setof vectors y with x · y = 0 for all x ∈ X . The purpose of this talk isto show you how to, given a matrix A, find a matrix B whose rowspace is the orthogonal complement of the row space of A.

Page 23: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 00 0

]

[0 00 1

]

David Wilding 11

Page 24: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 00 0

]

[0 00 1

]

David Wilding 11

Page 25: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

These two slides show a simple row space followed by its orthogonalcomplement. I use a squiggly arrow for the procedure “find a matrixwhose row space is the orthogonal complement” described above.

Page 26: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 0

]

[0 058 1

]

David Wilding 10

Page 27: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 0

]

[0 058 1

]

David Wilding 10

Page 28: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

A more complicated row space has, perhaps unsurprisingly, a morecomplicated orthogonal complement.

Page 29: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 30

]

[0 056 2

]

David Wilding 9

Page 30: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 20 30

]

[0 056 2

]

David Wilding 9

Page 31: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

By giving the matrix another non-zero row I can double the numberof points in the row space. I then get the same kind of orthogonalcomplement, but this time with half as many points. This is ageneral result: the product of the size of a row space and the sizeof its orthogonal complement is the size of the whole space. In thisexample 120 · 30 = 602.

Page 32: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[a 00 b

]

[60/a 00 60/b

]

[a 00 b

]

David Wilding 8

Page 33: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[a 00 b

]

[60/a 00 60/b

]

[a 00 b

]

David Wilding 8

Page 34: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[a 00 b

]

[60/a 00 60/b

]

[a 00 b

]

David Wilding 8

Page 35: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Finding an orthogonal complement matrix for a diagonal matrix iseasy: just divide 60 by the diagonal entries. Doing this a second timeproduces the original matrix again, which suggests that the doubleorthogonal complement of a row space is (for diagonal matrices atleast) the same as the row space itself. In fact this result is true forarbitrary matrices.

Page 36: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[3 00 30

]

[20 00 2

]

[3 00 30

]

David Wilding 7

Page 37: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[3 00 30

]

[20 00 2

]

[3 00 30

]

David Wilding 7

Page 38: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[3 00 30

]

[20 00 2

]

[3 00 30

]

David Wilding 7

Page 39: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[a 00 b

]

[60/a 00 60/b

]

[a 00 b

]Hang on . . .

David Wilding 6

Page 40: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

The procedure for finding an orthogonal complement matrix for adiagonal matrix is not quite as simple as I suggested because thediagonal entries might not divide 60.

Page 41: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[a 00 b

]and

[gcd(a, 60) 0

0 gcd(b, 60)

]are equivalent

David Wilding 5

Page 42: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Replacing the diagonal entries by their greatest common divisorswith 60 produces (without changing the row space) a matrix whosediagonal entries do divide 60. These new entries can then be dividedinto 60 to produce an orthogonal complement matrix.

Page 43: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[53 00 25

]

[0 00 12

]

[1 00 5

]

David Wilding 4

Page 44: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[53 00 25

]

[0 00 12

]

[1 00 5

]

David Wilding 4

Page 45: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[53 00 25

]

[0 00 12

]

[1 00 5

]

David Wilding 4

Page 46: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

The greatest common divisor of 53 and 60 is 1, so 53 is replacedby 60/1, which is zero (modulo 60). Similarly the greatest commondivisor of 25 and 60 is 5, so 25 is replaced by 60/5 = 12. Applyingthis procedure again does not give the original matrix, but at leastit gives one with the original row space.

Page 47: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Arbitrary A

BNt

Diagonal MAN B

David Wilding 3

Page 48: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Arbitrary A

BNt

Diagonal MAN

B

David Wilding 3

Page 49: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Arbitrary A

BNt

Diagonal MAN B

David Wilding 3

Page 50: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

Arbitrary A BNt

Diagonal MAN B

David Wilding 3

Page 51: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

To find an orthogonal complement matrix for an arbitrary matrix A,first make it diagonal by multiplying it on the left and on the right byinvertible matrices M and N (this can always be done), then find anorthogonal complement matrix B for this diagonal matrix. Finallymultiply B on the right by the transpose of the invertible matrix N.

Page 52: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

To get M

I permute rows

I negate rows

I add multiples of rows

To get N

I permute columns

I negate columns

I add multiples of columns

David Wilding 2

Page 53: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

To get M

I permute rows

I negate rows

I add multiples of rows

To get N

I permute columns

I negate columns

I add multiples of columns

David Wilding 2

Page 54: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

The matrices M and N can be found using row operations andcolumn operations, and they will be invertible because the allowedoperations are invertible. For example, adding a multiple of a rowto a different row can be undone by subtracting off that multipleagain.

Page 55: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 410 5

]

[1 5258 17

]=

[53 00 5

]

[0 00 12

]

David Wilding 1

Page 56: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 410 5

] [1 5258 17

]=

[53 00 5

]

[0 00 12

]

David Wilding 1

Page 57: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 410 5

] [1 5258 17

]=

[53 00 5

]

[0 00 12

]

David Wilding 1

Page 58: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

[1 410 5

]

[0 00 12

] [1 5852 17

]=

[0 024 24

]

David Wilding 0

Page 59: Computing orthogonal complements on finite toriepsassets.manchester.ac.uk/.../_dwilding/discrete-mathematics/2012/wilding-tori.pdfThese rst four slides show the row spaces of various

These final four slides illustrate the full procedure for finding anorthogonal complement matrix for an arbitrary matrix. The rowspace is first untwisted by multiplying the matrix on the right byan invertible matrix (in this example no matrix M is needed). Theorthogonal complement of this untwisted row space is then foundand, finally, twisted using the transpose of the invertible matrix.