Why does A squared not equal A times A when k = Z2?

  • Context: Undergrad 
  • Thread starter Thread starter Karl Karlsson
  • Start date Start date
  • Tags Tags
    Linear algebra Matrices
Click For Summary

Discussion Overview

The discussion centers around the properties of matrix multiplication in the context of the field ##\mathbb{Z}_2##, specifically addressing why the expression ##A^2## does not appear to equal ##A \cdot A## for a given matrix ##A##. Participants explore the implications of arithmetic defined modulo 2 and its effects on matrix operations.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant presents a matrix example and questions why ##A^2## does not equal ##A \cdot A##, suggesting a lack of clarity in their textbook.
  • Another participant asserts that ##A^2 = A \cdot A## and explains that multiplication must follow the rules of the scalar field ##\mathbb{Z}_2##, where ##1 \cdot 1 + 1 \cdot 1 = 0##.
  • Some participants express confusion about the arithmetic in ##\mathbb{Z}_2##, questioning why the sum of ##1 \cdot 1 + 1 \cdot 1## does not equal 2.
  • A participant clarifies that ##\mathbb{Z}_2## consists of the elements ##\{0, 1\}## with operations defined modulo 2, providing examples of addition and multiplication in this field.
  • There are off-topic comments regarding the notation of finite fields and rings, with some participants expressing preferences for different notations.
  • Several participants share insights about the conceptual understanding of ##\mathbb{Z}_2## and ##\mathbb{Z}_{12}##, comparing their properties to practical examples like a light switch and a clock.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the arithmetic in ##\mathbb{Z}_2##, with some agreeing on the definitions while others remain confused. The discussion includes both technical explanations and personal interpretations, indicating that multiple competing views remain without a clear consensus.

Contextual Notes

Some participants reference the equivalence classes in modular arithmetic and the implications of using different notations for finite fields and rings, which may lead to confusion in understanding the topic.

Karl Karlsson
Messages
104
Reaction score
12
TL;DR
Let $$A=\begin{pmatrix}
1 & 1 \\
1 & 0
\end{pmatrix}$$ with ##k=\mathbb{Z}_2## I think k is the set of scalars for a vector that can be multiplied with the matrix A (I could definitely be wrong). Then for some reason ##A^2= \begin{pmatrix} 0 & 1 \\ 1 & 1 \end{pmatrix}## this is not the same as ##A\cdot A##. Why? What has happened?
In my book no explanation for this concept is given and i can't find anything about it when I am searching. One example that was given was:
Let $$A=\begin{pmatrix}
1 & 1 \\
1 & 0
\end{pmatrix}$$ with ##k=\mathbb{Z}_2## I think k is the set of scalars for a vector that can be multiplied with the matrix A (I could definitely be wrong). Then for some reason ##A^2= \begin{pmatrix} 0 & 1 \\ 1 & 1 \end{pmatrix}## this is not the same as ##A\cdot A##. Why? What has happened?
 
Physics news on Phys.org
##A^2=A\cdot A##. You only have to apply the multiplication given by the scalar field ##\mathbb{Z}_2## where ##1\cdot 1+1\cdot 1=0.##
 
fresh_42 said:
##A^2=A\cdot A##. You only have to apply the multiplication given by the scalar field ##\mathbb{Z}_2## where ##1\cdot 1+1\cdot 1=0.##
Hi! What do you mean multiplication given by the scalar field ##\mathbb{Z}_2## where ##1\cdot 1+1\cdot 1=0##? Why is not ##1\cdot 1+1\cdot 1=2## ? I have never seen this before
 
  • Wow
Likes   Reactions: PeroK
Look up ##\mathbb{Z}_2##. This is the two-element field consisting of ##\{0, 1 \}## only, with arithmetic operations defined modulo 2.
 
Karl Karlsson said:
Hi! What do you mean multiplication given by the scalar field ##\mathbb{Z}_2## where ##1\cdot 1+1\cdot 1=0##? Why is not ##1\cdot 1+1\cdot 1=2## ? I have never seen this before
https://en.wikipedia.org/wiki/Finite_field

##\mathbb{Z}_p=\mathbb{Z}/p\cdot\mathbb{Z}## which means that all numbers which differ by multiples of ##p## are considered equivalent. Hence we only have the representants of the equivalence classes as elements which are the remainders of the division by ##p\, : \,0,1,2,\ldots,p-1##.

I told you in another thread to consider ##\mathbb{Z}_{12}=\mathbb{Z}/12\cdot\mathbb{Z}## in order to practice quotient building. ##\mathbb{Z}_{12}## isn't a field as ##\mathbb{Z}_{2}## is, but this doesn't matter, since we do not divide anywhere. The reason why I suggested ##\mathbb{Z}_{12}## is, that you have it on the clock!
 
Sorry for the off topic comment, but I couldn't resist. I don't like the notation ##\mathbb Z_p## for the field of ##p## elements, because this is the standard notation for the ring of ##p##-adic integers, and for the field of ##p## elements there are already other good notations.
 
martinbn said:
Sorry for the off topic comment, but I couldn't resist. I don't like the notation ##\mathbb Z_p## for the field of ##p## elements, because this is the standard notation for the ring of ##p##-adic integers, and for the field of ##p## elements there are already other good notations.
How do you notate ##\mathbb{Z}_{12}##? As quotient, in which case I demand you to write ##\mathbb{C}## as ##\mathbb{R}[x]/(x^2+1)##, or do you only oppose the prime field notation ##\mathbb{Z}_p##, in which case you have two notations for the same class of rings: ##\operatorname{GF}(2)## and ##\mathbb{Z}_{12}##? This is way more confusing than p-adic numbers and finite prime fields are, since they are rarely used side by side.
 
fresh_42 said:
How do you notate ##\mathbb{Z}_{12}##? As quotient, in which case I demand you to write ##\mathbb{C}## as ##\mathbb{R}[x]/(x^2+1)##, or do you only oppose the prime field notation ##\mathbb{Z}_p##, in which case you have two notations for the same class of rings: ##\operatorname{GF}(2)## and ##\mathbb{Z}_{12}##? This is way more confusing than p-adic numbers and finite prime fields are, since they are rarely used side by side.
No need to get upset, I only said what I don't like. Everyone else can like or use whatever he wants.
 
Karl Karlsson said:
Hi! What do you mean multiplication given by the scalar field ##\mathbb{Z}_2## where ##1\cdot 1+1\cdot 1=0##? Why is not ##1\cdot 1+1\cdot 1=2## ? I have never seen this before
PeroK said:
Look up ##\mathbb{Z}_2##. This is the two-element field consisting of ##\{0, 1 \}## only, with arithmetic operations defined modulo 2.
To elaborate, here are the arithmetic operations in ##\mathbb Z_2##.
Addition
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 0
Multiplication
0 * 0 = 0
0 * 1 = 0
1 * 0 = 0
1 * 1 = 1

Therefore, 1 * 1 + 1 + 1 = 1 + 1 = 0
 
  • #10
Thanks for the answers! I have since found more info about ##Z_2## even though there were no info about it in my book
 
  • #11
Karl Karlsson said:
Thanks for the answers! I have since found more info about ##Z_2## even though there were no info about it in my book
##\mathbb{Z}_2## is a light switch: on and off. If you switch it twice it's off again. The same principle every computer is based on. ##\mathbb{Z}_{12}## is the clock.
 
  • #12
fresh_42 said:
##\mathbb{Z}_{12}## is the clock.
But not quite. In ##\mathbb{Z}_{12}## there are the equivalence classes {0}, {1}, {2}, {3}, ..., {11}. So 11 + 1 = 0 (mod 12), but on the clock, 11:00 + 1 hour = 12:00.
 
  • #13
##12:00 = 0:00.## We say null o'clock (= midnight). But even if you insist on the usage of twelve o'clock, then simply change the equivalence classes to ##\{1\},\{2\},\{3\},\{4\},\{5\},\{6\},\{7\},\{8\},\{9\},\{10\},\{11\},\{12\}## with ## \{12\}## as neutral element. ##\mathbb{Z}_{12}## is exactly the clock. O.k., the hours on the clock.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 34 ·
2
Replies
34
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K