For university, it was my excercise to proof the associativity of the monoid $$H=(\mathbb{Q},\circ)\text{ with } a \circ b := a+b-ab\quad(a,b \in \mathbb{Q})$$
The excercise instructor gave us the following solution: $$ a \circ(b \circ c) = (a \circ b) \circ c $$ Hence $$ (a+b-ab) \circ c = a+c-ac \quad+\quad b+c-bc \quad +\quad-ab-c+abc$$ He also did it for $a\circ(b+c-bc)$ and pointed out that both equations have the same summands. That was the proof for the assoiciativity and I do understand this so far.
What I do not understand is how he determined the third part with $ -ab-c+abc$.
If I rewrite the operation to $\alpha \circ \beta = \alpha + \beta - \alpha\beta$ for not mixing up the variables later, I get:
$\alpha = -ab \\ \beta = c$
And hence in my mind it is not $-ab-c+abc$ but $-ab+c +abc$. But when I keep on calculating with $+c$ instead of $-c$, my proof fails. So why has it to be $-c$?
For every $a,b,c\in \mathbb{Q}$ we have \begin{eqnarray} a\circ(b\circ c)&=&a\circ\underbrace{(b+c-bc)}_{d}=a+d-ad=a+(b+c-bc)-a(b+c-bc)\\ &=&a+b+c-bc-ab-ac+abc=a+b-ab+c-ac-bc+abc\\ &=&\underbrace{(a+b-ab)}_{e}+c-\underbrace{(a+b-ab)}_{e}c=e+c-ec=e\circ c\\ &=&(a\circ b)\circ c. \end{eqnarray}