Alternatively, you can substitute $t = \cos x$ directly into $\int \frac{\sin x}{\cos^8 x} \, dx$. Since $dt = -\sin x \, dx$, the expression transforms into:
$$\int -t^{-8} \, dt = -\frac{t^{-7}}{-7} + c = \frac{1}{7\cos^7 x} + c = \frac{\sec^7 x}{7} + c$$
Both methods are fast, so pick whichever substitution path your mind spots first!