This set practises one lesson: non-independent variables. It also uses the total differential of differentials and the chain rule. It follows MIT's Problem Set 6, in our own words.
MIT's set has two parts. Part B holds MIT's two longer problems (8 points), for which OpenCourseWare has no solutions. Both are written out below, with hints and solutions of our own. Part A is a list of short exercises from MIT's own Supplementary Notes, which also hold their solutions. Those are not rewritten here: the last section of this page lists them and links to MIT's exercises and solutions.
MIT labels each problem with the day from which it can be done. Both problems belong to the lecture on non-independent variables. MIT's sheet calls it Lecture 15, because its calendar counts the day of the first exam as a lecture. On this site, and in Prof. Auroux's lecture summaries, it is Lecture 14.
How to answer#
Work each problem on paper first. Then choose or type your result in the answer box and press Check. A formula box takes plain typing, for example 2*x*y + cos(x - y), and accepts every correct way of writing the answer. A number box wants a decimal number, not a fraction. The points of the two problems, and the split of Problem 2 over its parts, are MIT's. The split of Problem 1 into two parts, and of its points, is ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.
A word that both problems use: the formal derivatives of a function are its partial derivatives taken as if all its variables were independent, so is the derivative of with respect to with both and held fixed. In the notation of the lesson, a subscript on a bracket names what is held fixed: is the rate of change of when changes and is held fixed.
Problem 1#
Which derivative makes sense?
Two of the three variables , , are tied to each other by a relation, and is a function of all three:
In words
g(x, y) equals c (c a constant ), w equals f(x, y, z)
MIT asks which of the following three expressions makes sense as the derivative of with respect to :
In words
(i) ( partial w over partial x ) sub x (ii) ( partial w over partial x ) sub y (iii) ( partial w over partial x ) sub z
If an expression makes sense, compute it in terms of the formal derivatives , , , and . If it does not, say why not.
Our addition, so that the answers are definite: assume that neither nor is zero at the points you look at.
(a)2 points
For each of the three expressions, decide whether it makes sense, and why.
Hint
Read each expression aloud in full: "the rate of change of when changes, while ... is held fixed". Then ask whether the point can really move in that way without breaking the relation .
Hint
Take the differential of the relation: . What does it say about when ? And what does it say about ?
Solution
The idea. Count the free variables. There are three variables and one relation, so two of them can be chosen freely and the third follows. A derivative with a subscript makes sense when the variable that changes and the variable in the subscript are such a free pair.
What the relation allows
The relation does not contain , so is always free. It ties and to each other. Its differential, as in the lesson, says how:
In words
d g equals g sub x d x plus g sub y d y equals 0
Because , a small change fixes : once is chosen, follows. So the free pairs are and , or and . The pair and is not free.
(i): x held fixed
This asks for the rate of change of when changes while is held fixed. That is a contradiction: cannot be zero and not zero. It makes no sense, with or without the relation.
(ii): y held fixed
Here should change while is held fixed, so the expression treats and as the free pair. But put in the differential of the relation: , and because this means . With held fixed, the point cannot move in the direction at all without leaving the curve . There is a second problem: nothing says what does, because is not a function of and . So (ii) makes no sense either.
(iii): z held fixed
Here changes and is held fixed: and are a free pair, and does what the relation demands. This one makes sense. It is not the formal derivative , because does not stay fixed. Part (b) computes it.
Check with a picture
In the -plane the relation is a curve, for example a circle. A point that obeys the relation lies on the upright wall above and below that curve. On this wall you can move in two ways: up and down (change ), or along the curve (change , and with it). Moving in the direction at constant leaves the wall, which is what goes wrong in (ii). Moving along the curve at constant height is (iii).
(b)2 points
Compute the expression that makes sense, in terms of the formal derivatives.
Type the formal derivatives as fx, fy, fz, gx and gy.
Hint
Write the total differential of . It has three terms.
Hint
One of the three differentials is zero, because that variable is held fixed. Another one is not free: the differential of the relation gives it as a multiple of . What is left is , and the bracket is the derivative.
Solution
The idea. The method of total differentials from the lesson: write , set the differential of the fixed variable to zero, remove the differential of the dependent variable with the relation, and read off the number in front of .
The total differential of w
In words
d w equals f sub x d x plus f sub y d y plus f sub z d z
Use what is fixed and what is tied
is held fixed, so . The relation gives , so . Put both in:
In words
d w equals f sub x d x plus f sub y (- g sub x over g sub y )d x equals the quantity f sub x minus f sub y g sub x over g sub y, d x
Read off the derivative
In words
( partial w over partial x ) sub z equals f sub x minus f sub y g sub x over g sub y
The first term is the direct effect of on . The second is the effect through , which has to change at the rate to stay on the curve . The derivative does not appear, because does not change.
The same by the chain rule
The lesson's second method gives the same result. Differentiate with respect to at fixed , with a function of :
In words
( partial w over partial x ) sub z equals f sub x plus f sub y ( partial y over partial x ) sub z plus f sub z ( partial z over partial x ) sub z equals f sub x plus f sub y d y over d x, 0 equals g sub x plus g sub y d y over d x
The second equation is the derivative of with respect to . It gives again.
Check the result
Compare with the lecture summary, which does the same for a relation between all three variables, , and the derivative with respect to at fixed :
In words
( partial f over partial z ) sub y equals minus f sub x g sub z over g sub x plus f sub z
(The summary prints for the last term. That is a slip: the term comes from .) Our result has the same shape: a direct term, plus the formal derivative with respect to the dependent variable times minus a ratio of two derivatives of , with the derivative for the dependent variable underneath.
A test with functions of our own choice: and . The formal derivatives are , , and , so the formula gives . Directly: the relation gives , so , and its derivative with respect to at fixed is . The two agree.
Problem 2#
A derivative with x held fixed, and the slope of a curve in space
Two short calculations with total differentials. They are not connected to each other.
(a)2 points
Three variables , , are tied by one relation, and depends on all three:
In words
t equals sine of the quantity x plus y, w equals x cubed y t
Find .
Write your answer with and only: replace any by . Our addition: stay where is not zero.
Hint
With held fixed and changing, the third variable cannot stay fixed. So this is not the formal derivative of with respect to .
Hint
Write the total differential of (three terms) and the total differential of the relation . Then set .
Hint
With the relation gives as a multiple of . Put that into and collect what stands in front of .
Solution
The idea. Three variables and one relation leave two free variables. The subscript says which: changes, is held fixed, and follows from the relation. Use total differentials, as in the lesson.
Two differentials
In words
d w equals 3 x squared y t d x plus x cubed t d y plus x cubed y d t, d t equals cos of the quantity x plus y, the quantity d x plus d y
Hold x fixed
Set . The relation becomes , so
In words
d y equals d t over the quantity cos of the quantity x plus y
This needs . Where the cosine is zero, is at its largest or smallest value and cannot be changed freely.
Put it into dw
In words
d w equals x cubed t d t over the quantity cos of the quantity x plus y, plus x cubed y d t equals the quantity x cubed y plus x cubed t over the quantity cos of the quantity x plus y, d t
The bracket is the derivative. With :
In words
( partial w over partial t ) sub x equals x cubed y plus x cubed t over the quantity cos of the quantity x plus y, equals x cubed y plus x cubed tan of the quantity x plus y
The first term is the formal derivative of with respect to . The second term is there because must change when does.
Check the result
Here the relation can be solved, so substitution (the lesson's "method 0") is a test. For between and the relation gives , so , a function of and only. Its derivative with respect to is
In words
( partial w over partial t ) sub x equals x cubed the quantity arc sine t minus x, all plus x cubed t over the square root of 1 minus t squared, end of root, equals x cubed y plus x cubed tan of the quantity x plus y
because and in that range. As a number: at , both forms give (angles in radians).
(b)2 points
The points that satisfy both of these equations form a curve in space:
In words
x to the power 5 plus y z equals 3, x y squared plus y z squared plus z x squared equals 7
Use the method of total differentials to find along the curve at the point .
Give the answer as a decimal number.
Hint
First check that the point is on the curve. Then take the total differential of each equation. The right-hand sides are constants, so each differential is zero.
Hint
Put in , , . You now have two equations with plain numbers for the three small changes , and .
Hint
You want a relation between and only. Remove from the two equations.
Solution
The idea. Three variables and two equations leave one free variable: a curve. Along it, and are functions of . The differentials of the two equations are two linear relations between , and . Removing leaves as a multiple of .
The point is on the curve
At : and .
Differentials of the two equations
In words
5 x to the power 4 d x plus z d y plus y d z equals 0, the quantity y squared plus 2 x z, d x plus the quantity 2 x y plus z squared, d y plus the quantity 2 y z plus x squared, d z equals 0
In the second one, each variable appears in two terms: for example in and in , which give and .
At the point
With , , the numbers are , , and , , :
In words
5 d x plus 2 d y plus d z equals 0, 5 d x plus 6 d y plus 5 d z equals 0
Remove dz
The first relation gives . Put it into the second: , which is . So
In words
d x equals minus one fifth d y, d x over d y equals minus one fifth equals minus 0.2
Along the curve, near this point, goes down by for each unit that goes up. The same two relations give , so .
Check the result
A test with numbers: take a small step from the point, with and . The new point gives and . Both equations still hold to within , about the square of the step, as they should for a step along the tangent of the curve.
A second test uses the gradient (our addition). Each equation is a level surface, and its gradient is perpendicular to it. At the point the gradients are and : the numbers in the two relations above. The curve lies in both surfaces, so its direction is perpendicular to both gradients. Their cross product is such a direction:
In words
the average of 5, 2, 1 times the average of 5, 6, 5 equals the average of 2 times 5 minus 1 times 6, 1 times 5 minus 5 times 5, 5 times 6 minus 2 times 5 equals the average of 4, minus 20, 20
Its component divided by its component is , and its component divided by its component is .
More practice: MIT's own solved exercises#
Part A of MIT's Problem Set 6 (8 points at MIT, not scored here) is a list of short exercises from the problems section of MIT's "18.02 Supplementary Notes and Problems", which is on MIT OpenCourseWare under the same licence as the rest of the course, with solutions to the exercises that are not marked with a star. They are not rewritten here: open the exercises (section 2, Partial differentiation), try them, then compare with MIT's solutions.
An exercise number such as 2J-3 means section 2, group J, exercise 3; the letters after it are its parts. MIT assigned these, lecture by lecture (with this site's lecture numbers):
| For | Exercises in section 2 of the Notes |
|---|---|
| Lecture 14: non-independent variables | 2J-1, 2J-2, 2J-3a, b, 2J-4a, b, 2J-5a, 2J-6, 2J-7 |
| Lecture 15: partial differential equations and review (no lesson on this site) | 2K-1, 2K-2, 2K-3, 2K-4, 2K-5 |
The exercises of group 2J refer to the examples and numbered equations of MIT's Notes N, "Non-independent variables", which MIT gave as reading for this lecture. The exercises of group 2K go with MIT's Notes P, "Partial differential equations". On MIT's sheet these two lectures are Lectures 15 and 16. Its Lecture 17 was the second exam.