If $f(x)=\frac{1}{x^2+x+1}$, how to find $f^{(36)} (0)$?

If $f(x)=\frac{1}{x^2+x+1}$, find $f^{(36)} (0)$.

So far I have tried letting $a=x^2+x+1$ and then finding the first several derivatives to see if some terms would disappear because the third derivative of $a$ is $0$, but the derivatives keep getting longer and longer. Am I on the right track? Thanks!


We can write:

$$1+ x + x^2 = \frac{1-x^3}{1-x}$$

Therefore:

$$f(x) = \frac{1-x}{1-x^3} $$

We can then expand this in powers of $x$:

$$f(x) = (1-x)\sum_{k=0}^{\infty}x^{3 k}$$

which is valid for $\left|x\right|<1$. The coefficient of $x^{36}$ is thus equal to $1$, so the 36th derivative at $x = 0$ is $36!$ .


Let $\omega$ be a complex cube root of $1$. Then Partial Fraction representation of $f(x)$ is given by

$f(x) = \dfrac{1}{x^2+x+1} = \dfrac{1}{(x-\omega)(x-\omega^2)} = \dfrac{1}{\omega - \omega^2}\Big(\dfrac{1}{x-\omega} - \dfrac{1}{x - \omega^2}\Big)$.

Find successive derivatives to show that

$f^{(36)}(x) = \dfrac{1}{\omega - \omega^2}(36! (x-\omega)^{-37} - 36! (x - \omega^2)^{-37})$.

Let $x = 0$ and use $\omega^3 = 1$.


Use $$x^2+x+1=\left(x+\frac{1}{2}+\frac{\sqrt3}{2}i\right)\left(x+\frac{1}{2}-\frac{\sqrt3}{2}i\right)$$

By this hint we obtain: $$\left(\frac{1}{x^2+x+1}\right)^{(36)}_{x=0}=\left(\frac{1}{\left(x+\frac{1}{2}+\frac{\sqrt3}{2}i\right)\left(x+\frac{1}{2}-\frac{\sqrt3}{2}i\right)}\right)^{(36)}_{x=0}=$$ $$=\left(\frac{1}{\sqrt3i}\left(\frac{1}{x+\frac{1}{2}-\frac{\sqrt3}{2}i}-\frac{1}{x+\frac{1}{2}+\frac{\sqrt3}{2}i}\right)\right)^{(36)}_{x=0}=$$ $$=\frac{1}{\sqrt3i}\left(\frac{36!}{\left(x+\frac{1}{2}-\frac{\sqrt3}{2}i\right)^{37}}-\frac{36!}{\left(x+\frac{1}{2}+\frac{\sqrt3}{2}i\right)^{37}}\right)_{x=0}=$$ $$=\frac{1}{\sqrt3i}\left(\frac{36!}{\left(\frac{1}{2}-\frac{\sqrt3}{2}i\right)^{37}}-\frac{36!}{\left(\frac{1}{2}+\frac{\sqrt3}{2}i\right)^{37}}\right)=\frac{1}{\sqrt3i}\left(\frac{36!}{\frac{1}{2}-\frac{\sqrt3}{2}i}-\frac{36!}{\frac{1}{2}+\frac{\sqrt3}{2}i}\right)=36!$$


Hint 1: Can you write your function as a sum of powers of $x$? If so, that's a Maclaurin series, and finding the 36th derivative (at $0$) from that should be pretty easy.

Hint 2: What's a series expression for $\frac{1}{1+y}$ (at least when $y$ is small)?

Hint 3: Have you heard of "completing the square"?