4. (10%) Prove that $\frac{d}{dx}\{x^n\} = nx^{n-1}$ for the case in which $n$ is a positive integer.