Ripetizioni di AnalisiAnalysis 2UnlockedITSearch

Worked examples · Sheet 1

Computing partial derivatives and the gradient

Theory used: Partial derivativeGradient

Go to: Exercise 1Exercise 2Exercise 3

Exercise 1

Compute the partial derivatives of

and the gradient .

To compute one differentiates with respect to treating as a constant: the term has derivative , the term has derivative , and the term is constant with respect to , so its derivative is zero. For the roles are swapped: gives , gives and gives . The gradient at is obtained by substituting the coordinates of the point into the two derivatives, therefore .

Exercise 2

Compute the gradient of

at the point .

The function is a product, so for each partial derivative one applies the product rule in the variable of differentiation. Differentiating with respect to , the factor has derivative and the factor has derivative , because the exponent has derivative with respect to . Differentiating with respect to , the first factor has derivative and the exponential has derivative . In both cases one factors out to make the result compact. At the point the exponential equals , so the polynomials and remain, and both equal .

Exercise 3

Compute the gradient of

at the point , in the half-plane .

The logarithm is differentiated as a composite function: the derivative is the reciprocal of the argument times the derivative of the argument, so with respect to one obtains and with respect to one obtains . The arctangent is also composite: its derivative is times the derivative of , which is with respect to and with respect to . Multiplying numerator and denominator by , the factor becomes , so the two terms of each derivative have the same denominator and can be added. At the point the denominator equals , therefore the gradient is .

Contents