You probably applied the exponent 2 to only the last factor inside the parentheses, . You should apply it to every factor inside the parentheses.