This book provides an introduction to some aspects of the flourishing field of nonsmooth geometric analysis. In particular, a quite detailed account of the first-order structure of general metric measure spaces is presented, and the reader is introduced to the second-order calculus on spaces - known as RCD spaces - satisfying a synthetic lower Ricci curvature bound. Examples of the main topics covered include notions of Sobolev space on abstract...