The square of 3B - (the square of a + the square of B) - the square of B, remove the brackets, and merge the similar terms

The square of 3B - (the square of a + the square of B) - the square of B, remove the brackets, and merge the similar terms

Original formula = 3B & sup2; - A & sup2; - B & sup2; - B & sup2;
=-a²+b²