Notion 5 sur 10· Lois de composition interne

Commutativité et associativité

التبادلية والتجميعية

Objectif : Montrer qu'une loi est commutative ou associative, ou trouver un contre-exemple.

Loi commutative

Définition

∗* est commutative sur EE si : pour tous xx et yy de EE, x∗y=y∗xx * y = y * x.

Pour le montrer, calcule y∗xy * x et compare avec x∗yx * y.

Exemple

x∗y=x+y−xyx * y = x + y - xy. Alors y∗x=y+x−yx=x+y−xyy * x = y + x - yx = x + y - xy.

y∗x=x∗yy * x = x * y : la loi ∗* est commutative.

À toi

  1. Laquelle de ces lois sur R\mathbb{R} est commutative ?

    Aide et correction

    Indice

    Échange xx et yy dans chaque formule. Tu peux aussi tester 1∗01 * 0 et 0∗10 * 1.

    Réponse

    x∗y=x+y+3xyx * y = x + y + 3xy

    Correction détaillée

    y∗x=y+x+3yx=x+y+3xy=x∗yy * x = y + x + 3yx = x + y + 3xy = x * y. Pour les deux autres lois, 1∗0≠0∗11 * 0 \neq 0 * 1.

    Seule x∗y=x+y+3xyx * y = x + y + 3xy est commutative.

Loi associative

Définition

∗* est associative sur EE si : pour tous xx, yy et zz de EE, (x∗y)∗z=x∗(y∗z)(x * y) * z = x * (y * z).

Pour le montrer, développe les deux côtés et compare. Ensuite, tu peux écrire x∗y∗zx * y * z sans parenthèses.

Exemple

x∗y=x+y+xyx * y = x + y + xy.

(x∗y)∗z=(x+y+xy)+z+(x+y+xy)z=x+y+z+xy+xz+yz+xyz(x * y) * z = (x + y + xy) + z + (x + y + xy)z = x + y + z + xy + xz + yz + xyz.

x∗(y∗z)=x+(y+z+yz)+x(y+z+yz)x * (y * z) = x + (y + z + yz) + x(y + z + yz) donne le même résultat.

(x∗y)∗z=x∗(y∗z)(x * y) * z = x * (y * z) : la loi ∗* est associative.

À toi

  1. Avec la même loi x∗y=x+y+xyx * y = x + y + xy, calcule (1∗2)∗3(1 * 2) * 3.

    Aide et correction

    Indice

    Calcule d'abord 1∗21 * 2.

    Réponse

    (1∗2)∗3=23(1 * 2) * 3 = 23

    Correction détaillée

    1∗2=1+2+2=51 * 2 = 1 + 2 + 2 = 5, puis 5∗3=5+3+15=235 * 3 = 5 + 3 + 15 = 23.

    Dans l'autre sens : 2∗3=112 * 3 = 11, puis 1∗11=1+11+11=231 * 11 = 1 + 11 + 11 = 23.

    (1∗2)∗3=1∗(2∗3)=23(1 * 2) * 3 = 1 * (2 * 3) = 23.

Un contre-exemple suffit

Règle

Pour montrer que ∗* n'est pas commutative : trouve aa et bb avec a∗b≠b∗aa * b \neq b * a.

Pour montrer que ∗* n'est pas associative : trouve aa, bb et cc avec (a∗b)∗c≠a∗(b∗c)(a * b) * c \neq a * (b * c).

Exemple

La soustraction sur R\mathbb{R} : 5−7=−25 - 7 = -2 et 7−5=27 - 5 = 2.

(7−5)−1=1(7 - 5) - 1 = 1 et 7−(5−1)=37 - (5 - 1) = 3.

La soustraction n'est ni commutative, ni associative.

À toi

  1. Sur Z\mathbb{Z}, x∗y=xy(x+y)x * y = xy(x + y). On a (1∗(−1))∗2=0(1 * (-1)) * 2 = 0. Calcule 1∗((−1)∗2)1 * ((-1) * 2).

    Aide et correction

    Indice

    Calcule d'abord (−1)∗2=(−1)×2×(−1+2)(-1) * 2 = (-1) \times 2 \times (-1 + 2).

    Réponse

    1∗((−1)∗2)=21 * ((-1) * 2) = 2 : ce n'est pas 00, donc la loi n'est pas associative.

    Correction détaillée

    (−1)∗2=(−2)×1=−2(-1) * 2 = (-2) \times 1 = -2, puis 1∗(−2)=1×(−2)×(1−2)=21 * (-2) = 1 \times (-2) \times (1 - 2) = 2.

    1∗((−1)∗2)=2≠0=(1∗(−1))∗21 * ((-1) * 2) = 2 \neq 0 = (1 * (-1)) * 2 : ∗* n'est pas associative.