In this example we should use the beta function. But I'm a bit lost, because I don't know how to change the limits of the integral to fit the one that is needed when using B-function.
The problem goes like this:
integrate cos^7(x) dx, limits of the integral are from 0 to pi.