How to find the power series of rational functions of type, e.g. $$\frac{1}{1-6x+12x^2},\frac{6x}{1-6x+12x^2}$$
where denominator can't be factorized over the real domain.
Is there a way to use the method of undetermined coefficients (by completing the square), or is it necessary to use complex domain and trigonometry?
Here is an approach based upon the geometric series expansion (see the comment from @YvesDaoust).
It is convenient to use the coefficient of operator $[x^n]$ to extract the coefficient of $x^n$.
Comment:
In (1) we use the linearity of the coefficient of operator and the rule $[x^p]x^qA(x)=[x^{p-q}]A(x)$.
In (2) we select the coefficient of $x^{n-k}$.