\(P=\left(a^2+4a+12\right)+\left(\dfrac{36a+81}{a^2}+3\right)\)
\(=\left(a+1\right)\left(a+3\right)+\dfrac{3\left(a+9\right)\left(a+3\right)}{a^2}+9\)
\(=\left(a+3\right)\left(\left(a+1\right)+\dfrac{3\left(a+9\right)}{a^2}\right)+9\)
\(=\left(a+3\right)^2\left(a^2-2a+9\right)+9\ge9\)
\("="\Leftrightarrow a=-3\)