I want to factorize the polynomial $9a^4-a^2+16$. $(3a^2+5a+4)(3a^2-5a+4)$ is the solution according to the book, but it doesn't provide a step-by-step solution. I tried the PhotoMath app, and the first step according to it was to rewrite the expression in the following way:
$9a^4-15a^3+15a^3+12a^2-25a^2+12a^2+20a-20a+16$
The problem is, unlike some other easier expressions, the application of a special product/algebraic formula doesn't seem self-evident to me in this case.
There could be many ways I could rewrite such polynomials, but I don't want to waste time in my exams. I just wanna figure out the correct way to rewrite the expression just by looking at it and applying an algorithm instead of brainstorming infinite ways. What's the algorithm for rewriting a polynomial for factorization in cases like these?