Set $S$ be the set of all real number except -1. Define $*$ on $S$ by
$$a*b=a+b+ab$$
a) Show that $*$ gives a binary operation on $S$.
Answer from my lecturer was;
Suppose that $a*b=a+b+ab=-1$. Then we obtain that $a=-1$ or $b=-1$. Therefore, $S$ is closed under *.
I not really clear how $a$ or $b$ be -1 since it is not belong to $S$ and how it be close? I need an explanation. Thanks in advanced.
The essence to prove $*$ a binary operation is to show that $*: S\times S\to S$ a map. In your question since $*$ is defined using multiplication and addition of $\mathbb{R}$ which are binary operations, we have $*:S\times S\to \mathbb{R}$ a map. As $S=\mathbb{R}\setminus \{-1\}$, it suffices to show that the range of $*$ is $S$. Suppose $a*b=-1$ and we see $a=-1$ or $b=-1$, a contradiction.
I guess your lecturer wrote $a*b=-1$ and you just mistook it...