Solution:
Concept: When brackets are nested, we remove them one at a time, starting with the innermost. The usual order is: the bar (a line drawn over terms, as in a−b), then ( ), then { }, then [ ]. Each time, a minus sign before a bracket changes the sign of every term inside it, and a plus sign changes nothing. It helps to combine like terms inside a bracket before removing the next one.
Step 1 — Remove the bar.
The bar over x2−q2 has a minus sign before it, so its signs change: x2 becomes −x2 and −q2 becomes +q2.
p2−[x2−{x2−(q2−x2−q2)−2y2}]=p2−[x2−{x2−(q2−x2+q2)−2y2}]=p2−[x2−{x2−(2q2−x2)−2y2}]
Step 2 — Remove the round bracket.
The round bracket has a minus sign before it, so 2q2 becomes −2q2 and −x2 becomes +x2.
=p2−[x2−{x2−2q2+x2−2y2}]=p2−[x2−{2x2−2q2−2y2}]
Step 3 — Remove the curly bracket.
The curly bracket has a minus sign before it, so all three of its signs change.
=p2−[x2−2x2+2q2+2y2]=p2−[−x2+2q2+2y2]
Step 4 — Remove the square bracket.
The square bracket has a minus sign before it, so all three of its signs change.
=p2+x2−2q2−2y2
Watch out: Inside the round bracket q2+q2=2q2; the two q2 terms add, they do not cancel.
Therefore, p2−[x2−{x2−(q2−x2−q2)−2y2}]=p2+x2−2q2−2y2.