Practise › Questions › Functions of two variables
Functions of two variables questions
A partial derivative differentiates with respect to one variable while holding the other fixed. The gradient gives the linear change and determines the tangent plane at a differentiable point. At a stationary point, use the Hessian test when it is decisive and use a direct or higher-order argument when it is not.
15 original questions · 64 marks · the functions of two variables notes · Further Pure 2
These are original InkMaths questions. Write a complete answer before opening the worked solution and marking guidance.
For f(x, y) = x2y3 + 5x, find fx and fy.
Worked solution and marking guidance
Holding y constant, fx = 2xy3 + 5, since y3 is a constant multiplier and the 5x differentiates to 5. Holding x constant, fy = 3x2y2, and the 5x now differentiates to 0 because it carries no y. M1 for treating the other letter as a constant, A1 for fx, A1 for fy.A surface has equation z = x2 + 3y2. Write down the section along x = 2, and describe the contour at z = 12.
Worked solution and marking guidance
Putting x = 2 gives the section z = 4 + 3y2, a parabola opening upwards with its vertex at height 4. Putting z = 12 gives the contour x2 + 3y2 = 12, or x2/12 + y2/4 = 1, which is an ellipse reaching x = ±2√3 and y = ±2. B1 for the section, M1 for setting z = 12, A1 for naming the ellipse with its intercepts. A section is a curve of z against one variable; a contour is a curve in the x-y plane.For f(x, y) = x3 + 2x2y − y4, find the four second partial derivatives, and verify that the mixed ones agree.
Worked solution and marking guidance
First derivatives: fx = 3x2 + 4xy and fy = 2x2 − 4y3. Differentiating again gives fxx = 6x + 4y, fyy = −12y2, and fxy = 4x from fx by y. Differentiating fy by x gives fyx = 4x as well, so the two agree, as the mixed derivative theorem says they should. M1 for the first derivatives, A1 for fxx, A1 for fyy, A1 for both mixed derivatives with the comparison stated.The surface S has equation z = x2 + y2 − 4. Write S in the implicit form g(x, y, z) = c, and state what the number z measures for a point of S lying above the point (x, y) of the horizontal plane.
Worked solution and marking guidance
Moving z across gives x2 + y2 − z = 4, so g(x, y, z) = x2 + y2 − z and c = 4. B1 for a correct implicit form with its constant. Read as a surface, z is the height above the point (x, y), so the equation z = f(x, y) assigns one height to each point of the plane and S is the graph of that assignment. B1 for the height reading. The two forms describe the same set of points; the implicit one treats all three letters alike, which is what makes it the natural form once a surface is no longer the graph of a function, as for a sphere.Find the stationary point of f(x, y) = x2 + y2 − 4x + 6y + 3 and determine its nature.
Worked solution and marking guidance
fx = 2x − 4 and fy = 2y + 6, so both vanish only at (2, −3), where f = 4 + 9 − 8 − 18 + 3 = −10. Then fxx = 2, fyy = 2 and fxy = 0, so H = 2 × 2 − 02 = 4. Since H > 0 and fxx > 0 this is a local minimum, of value −10. M1 for setting both first derivatives to zero, A1 for the point, M1 for H, A1 for the classification with a reason.Find the four stationary points of f(x, y) = x3 − 3x + y3 − 3y and classify each one.
Worked solution and marking guidance
fx = 3x2 − 3 gives x = ±1 and fy = 3y2 − 3 gives y = ±1, so the stationary points are (1, 1), (1, −1), (−1, 1) and (−1, −1). Here fxx = 6x, fyy = 6y and fxy = 0, so H = 36xy. At (1, 1), H = 36 > 0 with fxx = 6 > 0: a minimum, value −4. At (−1, −1), H = 36 > 0 with fxx = −6 < 0: a maximum, value 4. At (1, −1) and (−1, 1), H = −36 < 0: saddle points, both of value 0. M1 for solving both equations, A1 for the four points, M1 for H = 36xy, A1 A1 A1 for the three kinds of verdict. One surface can carry all three kinds at once.Find the equation of the tangent plane to z = x2y − 3y2 at the point where x = 2 and y = 1.
Worked solution and marking guidance
The height is f(2, 1) = 4 − 3 = 1, so the point is (2, 1, 1). The slopes are fx = 2xy = 4 and fy = x2 − 6y = −2 there. The tangent plane is z = 1 + 4(x − 2) − 2(y − 1), which tidies to z = 4x − 2y − 5. B1 for the height, M1 for both partial derivatives evaluated at the point, M1 for the formula, A1 for the plane. Checking at (2, 1) returns 8 − 2 − 5 = 1, the right height.For f(x, y) = e3x cos y, find fx, fy and fxy, and evaluate fxy at (0, π/2).
Worked solution and marking guidance
fx = 3e3x cos y, with cos y a constant multiplier, and fy = −e3x sin y. Differentiating fx with respect to y gives fxy = −3e3x sin y, and fy differentiated with respect to x gives the same. At (0, π/2) that is −3 × 1 × 1 = −3. M1 A1 for fx, A1 for fy, A1 for the mixed derivative and its value. Exponentials and trigonometric functions obey the same rules as powers do.For f(x, y, z) = x2y + yz3 + 4z, find fx, fy and fz, and evaluate fz at (1, 2, −1).
Worked solution and marking guidance
Each derivative holds the other two letters constant. fx = 2xy, since the last two terms carry no x. fy = x2 + z3, since the first two terms are linear in y and the 4z carries no y. fz = 3yz2 + 4. At (1, 2, −1) that is 3 × 2 × 1 + 4 = 10. M1 for holding the other letters constant, A1 for fx, A1 for fy, A1 for fz with its value. Three variables need no new rule: the number of letters held fixed goes up by one and nothing else changes. Note that z2 is positive at z = −1, so the answer is 10 and not −2.The surface S has equation z = x2 − y2. Describe the section x = 1 and the section y = 0, describe the contour z = 0, and say what shape the surface has near the origin.
Worked solution and marking guidance
Putting x = 1 gives z = 1 − y2, a parabola in the z-y plane opening downwards with its highest point at height 1. Putting y = 0 gives z = x2, a parabola opening upwards with its lowest point at the origin. B1 B1 for the two sections. Putting z = 0 gives x2 = y2, that is the pair of lines y = x and y = −x through the origin. B1 for the contour. Along one section the origin is the bottom of a curve and along the other it is the top, so the surface is a saddle there. B1 for the saddle. A section is a curve of z against one variable, so it lives on the surface; a contour is a curve in the x-y plane, and a contour that is a pair of crossing lines rather than a closed loop is itself the sign of a saddle.For f(x, y) = ln(x2 + y2), find fx and fy, and show that fxx + fyy = 0 wherever f is defined.
Worked solution and marking guidance
By the chain rule fx = 2x/(x2 + y2) and, by symmetry, fy = 2y/(x2 + y2). M1 for the chain rule, A1 for both first derivatives. Differentiating fx with respect to x by the quotient rule gives fxx = [2(x2 + y2) − 2x(2x)]/(x2 + y2)2 = 2(y2 − x2)/(x2 + y2)2, and the same working in the other letter gives fyy = 2(x2 − y2)/(x2 + y2)2. M1 for the quotient rule. The two numerators are negatives of each other, so the sum is 0 everywhere except the origin, where f is undefined. A1 for the sum vanishing with the origin excluded. Writing down fyy from fxx by swapping x and y is legitimate here because the function itself is unchanged by that swap.Find the stationary points of f(x, y) = x4 + y4 − 4xy and classify each one.
Worked solution and marking guidance
fx = 4x3 − 4y = 0 gives y = x3, and fy = 4y3 − 4x = 0 gives x = y3. Substituting, x = x9, so x(x8 − 1) = 0 and x = 0, 1 or −1. The points are (0, 0), (1, 1) and (−1, −1). Now fxx = 12x2, fyy = 12y2 and fxy = −4, so H = 144x2y2 − 16. At the origin H = −16 < 0, a saddle point of value 0. At (1, 1) and at (−1, −1), H = 128 > 0 with fxx = 12 > 0, so both are local minima of value −2. M1 for the pair of equations, M1 for eliminating to x = x9, A1 for the three points, M1 for H, A1 A1 for the classifications. Only real solutions count: x8 = 1 contributes 1 and −1 alone.Show that the Hessian test gives no verdict at the origin for f(x, y) = x4 + y4, and determine the nature of that stationary point by another argument.
Worked solution and marking guidance
fx = 4x3 and fy = 4y3 both vanish at the origin, so it is stationary. The second derivatives are fxx = 12x2, fyy = 12y2 and fxy = 0, all zero at the origin, so H = 0 and the test decides nothing. Directly, though, x4 ≥ 0 and y4 ≥ 0 for real x and y, with equality only at x = y = 0, so f > f(0, 0) = 0 at every other point and the origin is a minimum. B1 for showing the point is stationary, M1 A1 for H = 0, B1 for the direct argument. A vanishing H is a gap in the test, not a verdict of its own: x4 − y4 also has H = 0 at the origin, and it has a saddle there.The temperature at the point (x, y) of a flat plate is modelled by T = 100 − 2x2 − y2 degrees. Find the tangent plane to this surface at the point where x = 3 and y = 2, use it to estimate the temperature at (3.1, 1.9), and compare that estimate with the exact value.
Worked solution and marking guidance
At (3, 2) the temperature is T = 100 − 18 − 4 = 78, so the point is (3, 2, 78). B1 for the height. The slopes are Tx = −4x = −12 and Ty = −2y = −4 there. M1 for both partial derivatives evaluated at the point. The tangent plane is T = 78 − 12(x − 3) − 4(y − 2). A1 for the plane.
Substituting x = 3.1 and y = 1.9 gives 78 − 12(0.1) − 4(−0.1) = 78 − 1.2 + 0.4 = 77.2 degrees. M1 for the substitution, A1 for 77.2. Exactly, T = 100 − 2(9.61) − 3.61 = 77.17, so the estimate is 0.03 too high. B1 for the comparison.
The plane is the best flat model of the surface at that point, and the error it makes grows with the square of the step: doubling both increments to reach (3.2, 1.8) would multiply the gap by about four. Both signs matter in the substitution, since y has gone down while x has gone up.A box with a rectangular base and no lid is to hold 32 cm3. Its base measures x cm by y cm and its height is z cm. Show that the outside surface area is S = xy + 64/x + 64/y square centimetres, and find the dimensions that make S least, justifying that the value is a minimum.
Worked solution and marking guidance
The surface is one base and four sides, so S = xy + 2xz + 2yz. The volume condition xyz = 32 gives z = 32/(xy), and substituting turns 2xz into 64/y and 2yz into 64/x, so S = xy + 64/x + 64/y. B1 for the substitution eliminating z.
Then Sx = y − 64/x2 and Sy = x − 64/y2. Setting both to zero gives y = 64/x2 and x = 64/y2; substituting the first into the second gives x = 64x4/4096 = x4/64, so x4 = 64x and x(x3 − 64) = 0. Since x is a length, x = 4, and then y = 4 and z = 32/16 = 2. M1 for both partial derivatives, M1 for solving them together, A1 for 4 cm by 4 cm by 2 cm, with S = 16 + 16 + 16 = 48 cm2. A1 for the area.
For the nature, Sxx = 128/x3 = 2, Syy = 128/y3 = 2 and Sxy = 1, so H = 2 × 2 − 1 = 3 > 0 with Sxx > 0, a local minimum. B1 for the Hessian test with its verdict.
The root x = 0 is thrown out by the context rather than by the algebra, and a box with no lid is not a cube: the height comes out at half the side of the base, because the missing top means the vertical faces are cheaper than they would otherwise be.
All questions, worked solutions and marking guidance are original InkMaths material. They are not copied from awarding-body papers or mark schemes. The codes show how InkMaths allocates the stated total; an awarding body may credit a valid alternative method differently.
The same practice on paper: the printable workbook for this topic, questions and a worked answer book.
Practise functions of two variables one question at a time
In the player, mark your own response after viewing the worked solution. Your score sets when the question is offered again.