An indefinite integral represents all functions whose derivative equals the integrand on a given interval. Add a constant \(C\) and differentiate your answer to check.
For \(n\ne-1\), use \(\int x^n\,dx=x^{n+1}/(n+1)+C\). For the reciprocal use \(\int dx/x=\ln\lvert x\rvert+C\) on an interval avoiding zero.
An antiderivative of \(e^{kx}\) is \(e^{kx}/k\) for \(k\ne0\). Cosine integrates to sine, and sine integrates to negative cosine. A constant linear change in the argument introduces the reciprocal of its slope.