How do I know when to introduce parenthesis in algebra? I quite often fail to come up with the right answer because I don't know the rules for parenthesis. Let's say I would like to expand(?) the first equation. What I did was use the quadratic identities and I got equation 2, which is wrong. The right way is equation 3. Is there a rule that I can learn so that I wouldn't make this mistake again? Are there maybe several rules? Any advice is much appreciated!
$$
\frac{(a+1)^2-(a-1)^2}{(b+1)^2-(b-1)^2} \tag{1}
$$
$$
\frac{a^2+2a+1-a^2-2a+1}{b^2+2b+1-b^2-2b+1} \tag{2}
$$
$$
\frac{a^2+2a+1-(a^2-2a+1)}{b^2+2b+1-(b^2-2b+1)} \tag{3}
$$

We use parenthesis to group terms where a particular operation will take place, or to clarify things. For example, let's say we have $$10 - (1 + 2).$$ This means that $1 + 2$ is a single term equal to $3$ and hence, $$10 - (1 + 2) = 10 - 3.$$ However, let's say we don't know this. Because $10 - (1 + 2)$ is the same as $10 + (-1)(1 + 2)$, then we can use the distributive property to get $10 + (-1 - 2)$. Addition is associative, hence, $10 + (-1 - 2) = 10 - 1 - 2$.

However, it's on us when to use grouping symbols. Let's use the expression $3x + 2yz + z^2$. If we really care about parsing the expression correctly, we can use $$\left(\Big(\left((3)(x)\right) + ((2)(y)(z))\Big) + (z)^{(2)}\right)$$ which seems overkill, but is still valid.
