Here, three functions— m, n, and p—make up the composition function r; hence, you have to consider the derivatives m′, n′, and p′ in differentiating r( x). A technique that is sometimes suggested for differentiating composite functions is to work from the “outside to the inside” functions to establish a sequence for each of the derivatives that must be taken.