Ripetizioni di AnalisiMaths for EconomicsUnlockedITSearch

Worked examples · Sheet 3

Partial derivatives and gradient

Theory used: Partial derivativesGradient

Go to: Exercise 1Exercise 2Exercise 3Exercise 4

Exercise 1

Compute the partial derivatives of and the gradient at the point .

In computing the variable is treated as a constant. The term is the constant times , so its derivative is ; the term is the constant times , so its derivative is ; the term has derivative . In computing it is that is treated as a constant. The term has derivative , the term has derivative , and the term , which does not contain , has derivative .

Then one substitutes , taking into account that and . The gradient is the vector of the two partial derivatives, .

Exercise 2

Compute the partial derivatives of and the gradient at the point .

The function is defined where , and the point satisfies the condition, because . With respect to , the term is multiplied by the constant , so its derivative is . The logarithm is differentiated with the rule for composite functions, according to which the derivative of is , and the derivative of with respect to is .

With respect to , the factor is constant and the derivative of is , so the first term gives ; the derivative of with respect to is , so the second gives . At the point we have and , and the gradient is .

Exercise 3

Compute the partial derivatives of and the gradient at the point .

The function is defined outside the origin, where the denominator vanishes. It is a quotient, so one applies the quotient rule, once with respect to and once with respect to . With respect to the derivative of the numerator is and that of the denominator is . Expanding the numerator gives .

With respect to the derivative of the numerator is and that of the denominator is . The numerator becomes . At the point the denominator equals , and one obtains the gradient .

Exercise 4

Compute the partial derivatives of , defined for , and the gradient at the point .

The two partial derivatives require two different formulas, because the variable appears once in the base and once in the exponent. In computing the exponent is a constant, so is a power and its derivative is . In computing the base is a positive constant, so is an exponential with base and its derivative is , according to the table of derivatives of elementary functions.

At the point one obtains and . Swapping the two formulas is a frequent error, and it is avoided by establishing, before differentiating, which of the two letters is held fixed.

Contents