2. The 8 is simply a constant. Just pull it out: $\int \frac{8}{x^7} \ dx \ = \ 8 \int \frac{1}{x^7} \ dx \ = \ 8 \int x^{-7} \ dx$