Evaluate the integral
$\oint_\gamma\frac{z}{z^4 − 1}\mathrm dz$, where $\gamma = \{z : |z − a| = a\}$, $a > 1$.
So without using residue theorem and considering that $z = a + ae^{i*\omega}$ gives usa very hard integral formula (at least idk how to solve it) the proper solution includes partial fractions: $\frac{z}{z^4 − 1} = \frac{1}{4}*(\frac{1}{z+1}+\frac{1}{z-1}-\frac{1}{z+i}-\frac{1}{z-i})$, from here we get that the only point which lies in the circle $|z-a|=a$ is $z=1$. Then by Cauchy-Goursat theorem we get that all the other integrals are equal to zero except for $\frac{1}{z-1}$ which is for some reason equal to $2i\pi$.
The question now is: why the other three ointegrals are 0 and why is the last one equal to $2i\pi$ (without deviding it by 4)
Alternative way, without using residue theorem, but still using Cauchy's integral formula, stating:
$$f(w)=\frac{1}{2\pi i} \int\limits_{\gamma}\frac{f(z)}{z-w}dz$$ we replace $w=1$ (since you proved that only this point is in the circle) and $f(z)=\frac{z}{z^3+z^2+z+1}$ then we have
$$\frac{1}{4}=f(1)=\frac{1}{2\pi i}\int\limits_{|z-a|=a}\frac{f(z)}{z-1}dz=\\ \frac{1}{2\pi i}\int\limits_{|z-a|=a}\frac{z}{(z-1)(z^3+z^2+z+1)}dz=\\ \frac{1}{2\pi i}\int\limits_{|z-a|=a}\frac{z}{z^4-1}dz$$ and the result follows.
You can also use this theorem to show $$1=\frac{1}{2\pi i}\int\limits_{|z-a|=a}\frac{1}{z-1}dz$$