a² + b² formula