Test 1 Sol
Test 1 Sol
DEPARTMENT OF MATHEMATICS
1. (Version A) (2 points) Which of the following planes contains the straight line (3, 1, −2) +
(7, −2, −4)t?
(a) 2x + 3y + 2z = 5
(b) −7x + 2y + 4z = −27
(c) 3x + y − 2z = 27
(d) x + 3y + 3z = −11
Since the line contains the point (3, 1, −2) and is parallel to the vector (7, −2, −4), the point
(3, 1, −2) lies on the plane, and the vector (7, −2, −4) is perpendicular to the normal of the
plane. We check that 2(3) + 3(1) + 2(−2) = 5 and (2, 3, 2) ⋅ (7, −2, −4) = 0. So 2x + 3y + 2z = 5 is
a plane containing the given straight line. The other planes do not have the same properties.
(Version B) (2 points) Which of the following planes contains the straight line (4, −3, 5) +
(2, −5, 1)t?
(a) 2x + y + z = 10
(b) −2x + 5y − z = −28
(c) 4x − 3y + 5z = 28
(d) 3x − y − 3z = 8
Since the line contains the point (4, −3, 5) and is parallel to the vector (2, −5, 1), the point
(4, −3, 5) lies on the plane, and the vector (2, −5, 1) is perpendicular to the normal of the
plane. We check that 2(4) + (−3) + (5) = 10 and (2, 1, 1) ⋅ (2, −5, 1) = 0. So 2x + y + z = 10 is a
plane containing the given straight line. The other planes do not have the same properties.
1
2. (Version A) (2 points) Let c be a constant, and let f (x, y) = sin (x + cy). Given that fxy (x, y) =
4f (x, y), find the value of c.
(a) 4
(b) −4
(c) 2
(d) −2
We have fx (x, y) = cos (x + cy) and fxy (x, y) = −c sin (x + cy). It is given that −c sin (x + cy) =
4 sin (x + cy), so c = −4.
(Version B) (2 points) Let c be a constant, and let f (x, y) = cos (x + cy). Given that fxy (x, y) =
6f (x, y), find the value of c.
(a) 6
(b) −6
(c) 3
(d) −3
We have fx (x, y) = − sin (x + cy) and fxy (x, y) = −c cos (x + cy). It is given that −c cos (x + cy) =
6 cos (x + cy), so c = −6.
2
3. (Version A) (2 points) Let f (x, y) be a scalar-valued function whose first-order and second-
order partial derivatives are continuous. Suppose (a, b) is a point of local minimum of f (x, y)
such that fxy (a, b) ≠ 0. Which of the following must be correct?
(Version B) (2 points) Let f (x, y) be a scalar-valued function whose first-order and second-
order partial derivatives are continuous. Suppose (a, b) is a point of local maximum of f (x, y)
such that fxy (a, b) ≠ 0. Which of the following must be correct?
3
√
4. (Version A) (3 points) Let f (x, y) = x(x + y). Find the approximation to f (1.4, 3.5) using
the linearization of f at the point (1, 3). (Correct the answer to 2 decimal places.)
√
(Version B) (3 points) Let f (x, y) = y(x + y). Find the approximation to f (6.7, 2.6) using
the linearization of f at the point (6, 2). (Correct the answer to 2 decimal places.)
4
xa y a+3
5. (Version A) (3 points) Find the smallest positive integer a such that lim = 0.
(x,y)→(0,0) (x2 + y 2 )5
Solution. Answer: 4
Since cosa θ sina+3 θ is bounded, the limit is 0 when a = 4. For a ⩽ 3, the exponent of r is
negative, so the limit does not exist.
xa+3 y a
(Version B) (3 points) Find the smallest positive integer a such that lim = 0.
(x,y)→(0,0) (x2 + y 2 )7
Solution. Answer: 6
Since cosa+3 θ sina θ is bounded, the limit is 0 when a = 6. For a ⩽ 5, the exponent of r is
negative, so the limit does not exist.
5
6. (Version A) (3 points) Suppose w and x are independent variables, y = f (x) is a differentiable
function in x, and z = g(x, y) is a differentiable function in x and y such that x2 z + yez = w.
Given that f (2) = 1, g(2, 1) = 0, gx (2, 1) = 3 and gy (2, 1) = 5, compute f ′ (2).
15
Solution. Answer: −
26
dz dx dy
By the chain rule, we have = gx (x, y) + gy (x, y) = gx (x, y) + f ′ (x)gy (x, y). Putting
dx dx dx
dz
x = 2 and y = 1, we obtain = gx (2, 1) + f ′ (2)gy (2, 1) = 3 + 5f ′ (2) at (x, y, z) = (2, 1, 0). Now,
dx
we differentiate both sides of x2 z + yez = w with respect to x. This gives
dz dy z dz
2xz + x2 + e + yez = 0.
dx dx dx
Putting (x, y, z) = (2, 1, 0), this yields
14
Solution. Answer: −
11
dz dx dy
By the chain rule, we have = gx (x, y) + gy (x, y) = gx (x, y) + f ′ (x)gy (x, y). Putting
dx dx dx
dz
x = 2 and y = 3, we obtain = gx (2, 3) + f ′ (2)gy (2, 3) = 4 + 3f ′ (2) at (x, y, z) = (2, 3, 0). Now,
dx
we differentiate both sides of x2 z + yez = 3w with respect to x. This gives
dz dy z dz
2xz + x2 + e + yez = 0.
dx dx dx
Putting (x, y, z) = (2, 3, 0), this yields
6
7. (Version A) Let k be a constant. Let ℓ1 be the straight line (−2, 4, −3)+(1, 2, 3)t, and let ℓ2 be
the straight line (k, −2, 3) + (−2, −5, k)t. Suppose ℓ1 and ℓ2 are perpendicular to each other.
Solution.
(a) Answer: 4
Since ℓ1 and ℓ2 are perpendicular, we have (1, 2, 3) ⋅ (−2, −5, k) = 0. So −12 + 3k = 0, and
hence k = 4.
(b) As the lines are parallel to the vectors (1, 2, 3) and (−2, −5, 4) respectively, a normal to
the plane is (1, 2, 3) × (−2, −5, 4) = (23, −10, −1). By proposition 1.10, the equation of the
plane is
23(x − 3) − 10(y − 1) − (z − 0) = 0,
i.e. 23x − 10y − z = 59.
(Version B) Let k be a constant. Let ℓ1 be the straight line (3, 1, 4) + (2, 4, 1)t, and let ℓ2 be
the straight line (k, −1, 4) + (−3, 2, k)t. Suppose ℓ1 and ℓ2 are perpendicular to each other.
Solution.
(a) Answer: −2
(b) As the lines are parallel to the vectors (2, 4, 1) and (−3, 2, −2) respectively, a normal to
the plane is (2, 4, 1) × (−3, 2, −2) = (−10, 1, 16). By proposition 1.10, the equation of the
plane is
−10(x − 2) + (y − 3) + 16(z − 0) = 0,
i.e. −10x + y + 16z = −17.
7
8. (Version A) Let S be the graph of a function f (x, y). The equation of S in spherical coordi-
π
nates is ρ2 = 2ρ sin φ sin θ + 3 with 0 ⩽ φ ⩽ .
2
(a) (4 points) Find the equation of S in Cartesian coordinates and describe this surface.
(b) (1 point) Write down a formula for f (x, y). (No explanation is needed.)
√
(c) (4 points) Find the equation of the tangent plane to S at (x, y, z) = (1, 2, 2). (Express
your answer in the form Ax + By + Cz = D.)
Solution.
(a) By proposition 1.13, we have
ρ2 = 2ρ sin φ sin θ + 3
⇔ x2 + y 2 + z 2 = 2y + 3
⇔ x2 + (y − 1)2 + z 2 = 4.
π
The condition 0 ⩽ φ ⩽ means the points lie above the xy-plane. Therefore, S is the set
2
of all points satisfying x2 + (y − 1)2 + z 2 = 4 and z ⩾ 0. It is the upper hemisphere with
centre (0, 1, 0) and radius 2.
√
(b) f (x, y) = 4 − x2 − (y − 1)2
x y−1
(c) We have fx (x, y) = − √ and fy (x, y) = − √ . By definition
4 − x2
− (y − 1)2 4 − x2 − (y − 1)2
2.16, the equation of the tangent plane is
8
(Version B) Let S be the graph of a function f (x, y). The equation of S in spherical coordinates
π
is ρ2 = 2ρ sin φ cos θ + 8 with 0 ⩽ φ ⩽ .
2
(a) (4 points) Find the equation of S in Cartesian coordinates and describe this surface.
(b) (1 point) Write down a formula for f (x, y). (No explanation is needed.)
√
(c) (4 points) Find the equation of the tangent plane to S at (x, y, z) = (2, 1, 7). (Express
your answer in the form Ax + By + Cz = D.)
Solution.
(a) By proposition 1.13, we have
ρ2 = 2ρ sin φ cos θ + 8
⇔ x2 + y 2 + z 2 = 2x + 8
⇔ (x − 1)2 + y 2 + z 2 = 9.
π
The condition 0 ⩽ φ ⩽ means the points lie above the xy-plane. Therefore, S is the set
2
of all points satisfying (x − 1)2 + y 2 + z 2 = 9 and z ⩾ 0. It is the upper hemisphere with
centre (1, 0, 0) and radius 3.
√
(b) f (x, y) = 9 − (x − 1)2 − y 2
x−1 y
(c) We have fx (x, y) = − √ and fy (x, y) = − √ . By definition
9 − (x − 1)2 − y2 9 − (x − 1)2 − y 2
2.16, the equation of the tangent plane is
9
3x2 + 4xy
9. (Version A) Define f (x, y) = for 0 < x2 + y 2 ⩽ 4. It can be shown that fx (x, y) =
x2 + y 2
−2y(x − 2y)(2x + y) 2x(x − 2y)(2x + y)
and fy (x, y) = .
(x2 + y 2 )2 (x2 + y 2 )2
Solution.
3x2 + 4xy
(a) No. It suffices to check lim does not exist. Considering the restriction
(x,y)→(0,0) x2 + y 2
0
of the function to x = 0, the limit becomes lim 2 = 0. Considering the restriction of
y→0 y
3x2
the function to y = 0, the limit becomes lim 2 = 3. Since they do not agree with each
x→0 x
other, the limit does not exist.
(b) For interior points, we solve ∇f (x, y) = (0, 0). This means
For boundary points with g(x, y) = x2 + y 2 = 4, we use the method of Lagrange multiplier
to optimize h(x, y) = 4f (x, y) = 3x2 + 4xy. Note that ∇g(x, y) = (2x, 2y) ≠ (0, 0) since
x = y = 0 is the only solution but 02 + 02 ≠ 4. Thus, we solve ∇h(x, y) = λ∇g(x, y), i.e.
6x + 4y = 2λx,
{
4x = 2λy.
Combining the equations, we obtain 6xy + 4y 2 = 2λxy = 4x2 . This is again the same as
2(x − 2y)(2x + y) = 0, and so the solutions are (2t, t), (t, −2t) (one can solve for t using
x2 + y 2 = 4, but this is not needed).
As f (2t, t) = 4 and f (t, −2t) = −1, we see that the global maximum of f is 4 and the
global minimum is −1.
10
3xy − 4y 2
(Version B) Define f (x, y) = for 0 < x2 + y 2 ⩽ 9. It can be shown that fx (x, y) =
x2 + y 2
−y(x − 3y)(3x + y) x(x − 3y)(3x + y)
and fy (x, y) = .
(x2 + y 2 )2 (x2 + y 2 )2
Solution.
3xy − 4y 2
(a) No. It suffices to check lim does not exist. Considering the restriction
(x,y)→(0,0) x2 + y 2
−4y 2
of the function to x = 0, the limit becomes lim 2 = −4. Considering the restriction of
y→0 y
0
the function to y = 0, the limit becomes lim 2 = 0. Since they do not agree with each
x→0 x
other, the limit does not exist.
(b) For interior points, we solve ∇f (x, y) = (0, 0). This means
For boundary points with g(x, y) = x2 + y 2 = 9, we use the method of Lagrange multiplier
to optimize h(x, y) = 9f (x, y) = 3xy − 4y 2 . Note that ∇g(x, y) = (2x, 2y) ≠ (0, 0) since
x = y = 0 is the only solution but 02 + 02 ≠ 9. Thus, we solve ∇h(x, y) = λ∇g(x, y), i.e.
3y = 2λx,
{
3x − 8y = 2λy.
Combining the equations, we obtain 3y 2 = 2λxy = 3x2 − 8xy. This is again the same as
(x − 3y)(3x + y) = 0, and so the solutions are (3t, t), (t, −3t) (one can solve for t using
x2 + y 2 = 9, but this is not needed).
1 9 1
As f (3t, t) =and f (t, −3t) = − , we see that the global maximum of f is and the
2 2 2
9
global minimum is − .
2
11