How do you solve 5x^2+1=-2x^2+1?

$5 {x}^{2} + 2 {x}^{2} + 1 - 1 = 0$
$7 {x}^{2} = 0$
$7 \left(x\right) \left(x\right) = 0$
$x = 0$