Divided into two parts, which can be used as different textbooks, one for an advanced undergraduate course in functions of one variable and one for a graduate course on Sobolev functions. A major change compared to the first edition is the chapter on Besov spaces, which are now treated using interpolation theory.