How do you factor a quadratic using the perfect squares method?

like x^2 + 81 or 9x^2 + 6x + 1