Skip to main content

## Section13.7Tangent Lines, Normal Lines, and Tangent Planes

### Subsection13.7.1Tangent Lines

Derivatives and tangent lines go hand-in-hand. Given $$y=f(x)\text{,}$$ the line tangent to the graph of $$f$$ at $$x=x_0$$ is the line through $$\big(x_0,f(x_0)\big)$$ with slope $$\fp(x_0)\text{;}$$ that is, the slope of the tangent line is the instantaneous rate of change of $$f$$ at $$x_0\text{.}$$

When dealing with functions of two variables, the graph is no longer a curve but a surface. At a given point on the surface, it seems there are many lines that fit our intuition of being “tangent” to the surface.

In Section 13.3.2 we introduced the concept of the tangent plane, which could be thought of as consisting of all possible lines tangent to the surface at a given point. In this section, we explore this idea in more detail.

In Figure 13.7.1 we see lines that are tangent to curves in space. Since each curve lies on a surface, it makes sense to say that the lines are also tangent to the surface. The next definition formally defines what it means to be “tangent to a surface.”

#### Definition13.7.2.Directional Tangent Line.

Let $$z=f(x,y)$$ be differentiable on a set $$S$$ containing $$(x_0,y_0)$$ and let $$\vec u = \la u_1, u_2\ra$$ be a unit vector.

1. The line $$\ell_x$$ through $$\big(x_0,y_0,f(x_0,y_0)\big)$$ parallel to $$\la 1,0,f_x(x_0,y_0)\ra$$ is the tangent line to $$f$$ in the direction of $$x$$ at $$(x_0,y_0)$$.

2. The line $$\ell_y$$ through $$\big(x_0,y_0,f(x_0,y_0)\big)$$ parallel to $$\la 0,1,f_y(x_0,y_0)\ra$$ is the tangent line to $$f$$ in the direction of $$y$$ at $$(x_0,y_0)$$.

3. The line $$\ell_{\vec u}$$ through $$\big(x_0,y_0,f(x_0,y_0)\big)$$ parallel to $$\la u_1,u_2,D_{\vec u\,}f(x_0,y_0)\ra$$ is the tangent line to $$f$$ in the direction of $$\vec u$$ at $$(x_0,y_0)$$.

It is instructive to consider each of three directions given in the definition in terms of “slope.” The direction of $$\ell_x$$ is $$\la 1,0,f_x(x_0,y_0)\ra\text{;}$$ that is, the “run” is one unit in the $$x$$-direction and the “rise” is $$f_x(x_0,y_0)$$ units in the $$z$$-direction. Note how the slope is just the partial derivative with respect to $$x\text{.}$$ A similar statement can be made for $$\ell_y\text{.}$$ The direction of $$\ell_{\vec u}$$ is $$\la u_1,u_2,D_{\vec u\,}f(x_0,y_0)\ra\text{;}$$ the “run” is one unit in the $$\vec u$$ direction (where $$\vec u$$ is a unit vector) and the “rise” is the directional derivative of $$z$$ in that direction.

Definition 13.7.2 leads to the following parametric equations of directional tangent lines:

\begin{align*} \ell_x(t) \amp = \left\{\begin{array}{l} x=x_0+t \\ y=y_0\\z=z_0+f_x(x_0,y_0)t \end{array} \right.\\ \ell_y(t) \amp = \left\{\begin{array}{l} x=x_0 \\ y=y_0+t\\z=z_0+f_y(x_0,y_0)t \end{array} \right.\\ \ell_{\vec u}(t) \amp = \left\{\begin{array}{l} x=x_0+u_1t \\ y=y_0+u_2t\\z=z_0+D_{\vec u\,}f(x_0,y_0)t \end{array} \right.\text{.} \end{align*}

#### Example13.7.3.Finding directional tangent lines.

Find the lines tangent to the surface $$z=\sin(x) \cos(y)$$ at $$(\pi/2,\pi/2)$$ in the $$x$$ and $$y$$ directions and also in the direction of $$\vec v = \la -1,1\ra\text{.}$$

Solution.

The partial derivatives with respect to $$x$$ and $$y$$ are:

\begin{align*} f_x(x,y) = \cos(x) \cos(y) \amp \Rightarrow f_x(\pi/2,\pi/2) = 0\\ f_y(x,y) = -\sin(x) \sin(y) \amp \Rightarrow f_y(\pi/2,\pi/2)=-1\text{.} \end{align*}

At $$(\pi/2,\pi/2)\text{,}$$ the $$z$$-value is 0.

Thus the parametric equations of the line tangent to $$f$$ at $$(\pi/2,\pi/2)$$ in the directions of $$x$$ and $$y$$ are:

\begin{equation*} \ell_x(t) = \left\{\begin{array}{l} x=\pi/2 + t\\ y=\pi/2 \\z=0 \end{array} \right. \text{ and } \ell_y(t) = \left\{\begin{array}{l} x=\pi/2 \\ y=\pi/2+t \\z=-t \end{array} \right.\text{.} \end{equation*}

The two lines are shown with the surface in Figure 13.7.4.(a).

To find the equation of the tangent line in the direction of $$\vec v\text{,}$$ we first find the unit vector in the direction of $$\vec v\text{:}$$ $$\vec u = \la -1/\sqrt{2},1/\sqrt{2}\ra\text{.}$$ The directional derivative at $$(\pi/2,\pi,2)$$ in the direction of $$\vec u$$ is

\begin{equation*} D_{\vec u\,}f(\pi/2,\pi,2) = \la 0,-1\ra \cdot \la -1/\sqrt{2},1/\sqrt 2\ra = -1/\sqrt 2\text{.} \end{equation*}

Thus the directional tangent line is

\begin{equation*} \ell_{\vec u}(t) = \left\{\begin{array}{l} x= \pi/2 -t/\sqrt{2}\\ y = \pi/2 + t/\sqrt{2} \\ z= -t/\sqrt{2} \end{array} \right.\text{.} \end{equation*}

The curve through $$(\pi/2,\pi/2,0)$$ in the direction of $$\vec v$$ is shown in Figure 13.7.4.(b) along with $$\ell_{\vec u}(t)\text{.}$$

#### Example13.7.5.Finding directional tangent lines.

Let $$f(x,y) = 4xy-x^4-y^4\text{.}$$ Find the equations of all directional tangent lines to $$f$$ at $$(1,1)\text{.}$$

Solution.

First note that $$f(1,1) = 2\text{.}$$ We need to compute directional derivatives, so we need $$\nabla f\text{.}$$ We begin by computing partial derivatives.

\begin{equation*} f_x = 4y-4x^3 \Rightarrow f_x(1,1) = 0; f_y = 4x-4y^3\Rightarrow f_y(1,1) = 0\text{.} \end{equation*}

Thus $$\nabla f(1,1) = \la 0,0\ra\text{.}$$ Let $$\vec u = \la u_1,u_2\ra$$ be any unit vector. The directional derivative of $$f$$ at $$(1,1)$$ will be $$D_{\vec u\,}f(1,1) = \la 0,0\ra\cdot \la u_1,u_2\ra = 0\text{.}$$ It does not matter what direction we choose; the directional derivative is always 0. Therefore

\begin{equation*} \ell_{\vec u}(t) = \left\{\begin{array}{l} x= 1 +u_1t\\ y = 1+ u_2 t\\ z= 2 \end{array} \right.\text{.} \end{equation*}

Figure 13.7.6 shows a graph of $$f$$ and the point $$(1,1,2)\text{.}$$ Note that this point comes at the top of a “hill,” and therefore every tangent line through this point will have a “slope” of 0.

That is, consider any curve on the surface that goes through this point. Each curve will have a relative maximum at this point, hence its tangent line will have a slope of 0. The following section investigates the points on surfaces where all tangent lines have a slope of 0.

### Subsection13.7.2Normal Lines

When dealing with a function $$y=f(x)$$ of one variable, we stated that a line through $$(c,f(c))$$ was tangent to $$f$$ if the line had a slope of $$\fp(c)$$ and was normal (or, perpendicular, orthogonal) to $$f$$ if it had a slope of $$-1/\fp(c)\text{.}$$ We extend the concept of normal, or orthogonal, to functions of two variables.

Let $$z=f(x,y)$$ be a differentiable function of two variables. By Definition 13.7.2, at $$(x_0,y_0)\text{,}$$ $$\ell_x(t)$$ is a line parallel to the vector $$\vec d_x=\la 1,0,f_x(x_0,y_0)\ra$$ and $$\ell_y(t)$$ is a line parallel to $$\vec d_y=\la 0,1,f_y(x_0,y_0)\ra\text{.}$$ Since lines in these directions through $$\big(x_0,y_0,f(x_0,y_0)\big)$$ are tangent to the surface, a line through this point and orthogonal to these directions would be orthogonal, or normal, to the surface. We can use this direction to create a normal line.

The direction of the normal line is orthogonal to $$\vec d_x$$ and $$\vec d_y\text{,}$$ hence the direction is parallel to $$\vec d_n = \vec d_x\times \vec d_y\text{.}$$ It turns out this cross product has a very simple form:

\begin{equation*} \vec d_x\times \vec d_y = \la 1,0,f_x\ra \times \la 0,1,f_y\ra = \la -f_x,-f_y,1\ra\text{.} \end{equation*}

It is often more convenient to refer to the opposite of this direction, namely $$\la f_x,f_y,-1\ra\text{.}$$ This leads to a definition.

#### Definition13.7.7.Normal Line.

Let $$z=f(x,y)$$ be differentiable on a set $$S$$ containing $$(x_0,y_0)$$ where

\begin{equation*} a = f_x(x_0,y_0) \text{ and } b=f_y(x_0,y_0) \end{equation*}

are defined.

1. A nonzero vector parallel to $$\vec n=\la a,b,-1\ra$$ is orthogonal to $$f$$ at $$P=\big(x_0,y_0,f(x_0,y_0)\big)\text{.}$$

2. The line $$\ell_n$$ through $$P$$ with direction parallel to $$\vec n$$ is the normal line to $$f$$ at $$P\text{.}$$

Thus the parametric equations of the normal line to a surface $$f$$ at $$\big(x_0,y_0,f(x_0,y_0)\big)$$ is:

\begin{equation*} \ell_{n}(t) = \left\{\begin{array}{l} x= x_0+at\\ y = y_0 + bt \\ z = f(x_0,y_0) - t \end{array} \right.\text{.} \end{equation*}

#### Example13.7.8.Finding a normal line.

Find the equation of the normal line to $$z=-x^2-y^2+2$$ at $$(0,1)\text{.}$$

Solution.

We find $$z_x(x,y) = -2x$$ and $$z_y(x,y) = -2y\text{;}$$ at $$(0,1)\text{,}$$ we have $$z_x = 0$$ and $$z_y = -2\text{.}$$ We take the direction of the normal line, following Definition 13.7.7, to be $$\vec n=\la 0,-2,-1\ra\text{.}$$ The line with this direction going through the point $$(0,1,1)$$ is

\begin{equation*} \ell_n(t) = \left\{\begin{array}{l} x=0\\y=-2t+1\\z=-t+1 \end{array} \right. \text{ or } \ell_n(t)=\la 0,-2,-1\ra t+\la 0,1,1\ra\text{.} \end{equation*}

The surface $$z=-x^2-y^2+2\text{,}$$ along with the found normal line, is graphed in Figure 13.7.9.

The direction of the normal line has many uses, one of which is the definition of the tangent plane which we define shortly. Another use is in measuring distances from the surface to a point. Given a point $$Q$$ in space, it is a general geometric concept to define the distance from $$Q$$ to the surface as being the length of the shortest line segment $$\overline{PQ}$$ over all points $$P$$ on the surface. This, in turn, implies that $$\overrightarrow{PQ}$$ will be orthogonal to the surface at $$P\text{.}$$ Therefore we can measure the distance from $$Q$$ to the surface $$f$$ by finding a point $$P$$ on the surface such that $$\overrightarrow{PQ}$$ is parallel to the normal line to $$f$$ at $$P\text{.}$$

#### Example13.7.10.Finding the distance from a point to a surface.

Let $$f(x,y) = 2-x^2-y^2$$ and let $$Q = (2,2,2)\text{.}$$ Find the distance from $$Q$$ to the surface defined by $$f\text{.}$$

Solution.

This surface is used in Example 13.7.5, so we know that at $$(x,y)\text{,}$$ the direction of the normal line will be $$\vec d_n = \la -2x,-2y,-1\ra\text{.}$$ A point $$P$$ on the surface will have coordinates $$(x,y,2-x^2-y^2)\text{,}$$ so $$\overrightarrow{PQ} = \la 2-x,2-y,x^2+y^2\ra\text{.}$$ To find where $$\overrightarrow{PQ}$$ is parallel to $$\vec d_n\text{,}$$ we need to find $$x\text{,}$$ $$y$$ and $$c$$ such that $$c\overrightarrow{PQ} = \vec d_n\text{.}$$

\begin{align*} c\overrightarrow{PQ} \amp = \vec d_n\\ c\la 2-x,2-y,x^2+y^2\ra \amp = \la -2x,-2y,-1\ra.\\ \end{align*}

This implies

\begin{align*} c(2-x) \amp = -2x\\ c(2-y) \amp = -2y\\ c(x^2+y^2) \amp = -1 \end{align*}

In each equation, we can solve for $$c\text{:}$$

\begin{equation*} c = \frac{-2x}{2-x} = \frac{-2y}{2-y} = \frac{-1}{x^2+y^2}\text{.} \end{equation*}

The first two fractions imply $$x=y\text{,}$$ and so the last fraction can be rewritten as $$c=-1/(2x^2)\text{.}$$ Then

\begin{align*} \frac{-2x}{2-x} \amp = \frac{-1}{2x^2}\\ -2x(2x^2) \amp = -1(2-x)\\ 4x^3 \amp = 2-x\\ 4x^3+x-2 \amp =0\text{.} \end{align*}

This last equation is a cubic, which is not difficult to solve with a numeric solver. We find that $$x= 0.689\text{,}$$ hence $$P = (0.689,0.689, 1.051)\text{.}$$ We find the distance from $$Q$$ to the surface of $$f$$ is

\begin{equation*} \norm{\overrightarrow{PQ}} = \sqrt{(2-0.689)^2 +(2-0.689)^2+(2-1.051)^2} = 2.083\text{.} \end{equation*}

We can take the concept of measuring the distance from a point to a surface to find a point $$Q$$ a particular distance from a surface at a given point $$P$$ on the surface.

#### Example13.7.11.Finding a point a set distance from a surface.

Let $$f(x,y) = x-y^2+3\text{.}$$ Let $$P = \big(2,1,f(2,1)\big) = (2,1,4)\text{.}$$ Find points $$Q$$ in space that are 4 units from the surface of $$f$$ at $$P\text{.}$$ That is, find $$Q$$ such that $$\norm{\overrightarrow{PQ}}=4$$ and $$\overrightarrow{PQ}$$ is orthogonal to $$f$$ at $$P\text{.}$$

Solution.

We begin by finding partial derivatives:

\begin{align*} f_x(x,y) =1 \qquad \amp \Rightarrow \qquad f_x(2,1) = 1\\ f_y(x,y) = -2y \qquad \amp \Rightarrow \qquad f_y(2,1) = -2 \end{align*}

The vector $$\vec n=\la 1,-2,-1\ra$$ is orthogonal to $$f$$ at $$P\text{.}$$ For reasons that will become more clear in a moment, we find the unit vector in the direction of $$\vec n\text{:}$$

\begin{equation*} \vec u = \frac{\vec n}{\vnorm n} = \la 1/\sqrt{6},-2/\sqrt{6},-1/\sqrt{6}\ra \approx \la 0.408,-0.816,-0.408\ra\text{.} \end{equation*}

Thus a the normal line to $$f$$ at $$P$$ can be written as

\begin{equation*} \ell_n(t) = \la 2,1,4\ra + t\la 0.408,-0.816,-0.408 \ra\text{.} \end{equation*}

An advantage of this parametrization of the line is that letting $$t=t_0$$ gives a point on the line that is $$\abs{t_0}$$ units from $$P\text{.}$$ (This is because the direction of the line is given in terms of a unit vector.) There are thus two points in space 4 units from $$P\text{:}$$

\begin{align*} Q_1 \amp = \ell_n(4) \amp Q_2 \amp = \ell_n(-4)\\ \amp \approx \la 3.63, -2.27, 2.37\ra \amp \amp \approx\la 0.37, 4.27, 5.63\ra \end{align*}

The surface is graphed along with points $$P\text{,}$$ $$Q_1\text{,}$$ $$Q_2$$ and a portion of the normal line to $$f$$ at $$P\text{.}$$

### Subsection13.7.3Tangent Planes

We can use the direction of the normal line to define a plane. With $$a=f_x(x_0,y_0)\text{,}$$ $$b=f_y(x_0,y_0)$$ and $$P = \big(x_0,y_0,f(x_0,y_0)\big)\text{,}$$ the vector $$\vec n=\la a,b,-1\ra$$ is orthogonal to $$f$$ at $$P\text{.}$$ (See Definition 13.3.10.) The plane through $$P$$ with normal vector $$\vec n$$ is therefore tangent to $$f$$ at $$P\text{.}$$

#### Definition13.7.13.Tangent Plane.

Let $$z=f(x,y)$$ be differentiable on a set $$S$$ containing $$(x_0,y_0)\text{,}$$ where $$a = f_x(x_0,y_0)\text{,}$$ $$b=f_y(x_0,y_0)\text{,}$$ $$\vec n= \la a,b,-1\ra$$ and $$P=\big(x_0,y_0,f(x_0,y_0)\big)\text{.}$$

The plane through $$P$$ with normal vector $$\vec n$$ is the tangent plane to $$f$$ at $$P\text{.}$$ The standard form of this plane is

\begin{equation*} a(x-x_0) + b(y-y_0) - \big(z-f(x_0,y_0)\big) = 0\text{.} \end{equation*}

#### Example13.7.14.Finding tangent planes.

Find the equation of the tangent plane to $$z=-x^2-y^2+2$$ at $$(0,1)\text{.}$$

Solution.

Note that this is the same surface and point used in Example 13.7.8. There we found $$\vec n = \la 0,-2,-1\ra$$ and $$P = (0,1,1)\text{.}$$ Therefore the equation of the tangent plane is

\begin{equation*} -2(y-1)-(z-1)=0\text{.} \end{equation*}

The surface $$z=-x^2-y^2+2$$ and tangent plane are graphed in Figure 13.7.15.

#### Example13.7.16.Using the tangent plane to approximate function values.

The point $$(3,-1,4)$$ lies on the surface of an unknown differentiable function $$f$$ where $$f_x(3,-1) = 2$$ and $$f_y(3,-1) = -1/2\text{.}$$ Find the equation of the tangent plane to $$f$$ at $$P\text{,}$$ and use this to approximate the value of $$f(2.9,-0.8)\text{.}$$

Solution.

Knowing the partial derivatives at $$(3,-1)$$ allows us to form the normal vector to the tangent plane, $$\vec n = \la 2,-1/2,-1\ra\text{.}$$ Thus the equation of the tangent line to $$f$$ at $$P$$ is:

$$2(x-3)-1/2(y+1) - (z-4) = 0 \Rightarrow z = 2(x-3)-1/2(y+1)+4\text{.}\tag{13.7.1}$$

Just as tangent lines provide excellent approximations of curves near their point of intersection, tangent planes provide excellent approximations of surfaces near their point of intersection. So $$f(2.9,-0.8) \approx z(2.9,-0.8) = 3.7\text{.}$$

This is not a new method of approximation. Compare the right hand expression for $$z$$ in Equation (13.7.1) to the total differential:

\begin{equation*} dz = f_xdx + f_ydy \text{ and } z = \underbrace{\underbrace{2}_{f_x}\underbrace{(x-3)}_{dx}+\underbrace{-1/2}_{f_y}\underbrace{(y+1)}_{dy}}_{dz}+4\text{.} \end{equation*}

Thus the “new $$z$$-value” is the sum of the change in $$z$$ (i.e., $$dz$$) and the old $$z$$-value (4). As mentioned when studying the total differential, it is not uncommon to know partial derivative information about a unknown function, and tangent planes are used to give accurate approximations of the function.

### Subsection13.7.4The Gradient and Normal Lines, Tangent Planes

The methods developed in this section so far give a straightforward method of finding equations of normal lines and tangent planes for surfaces with explicit equations of the form $$z=f(x,y)\text{.}$$ However, they do not handle implicit equations well, such as $$x^2+y^2+z^2=1\text{.}$$ There is a technique that allows us to find vectors orthogonal to these surfaces based on the gradient.

#### Definition13.7.17.Gradient.

Let $$w=F(x,y,z)$$ be differentiable on a set $$D$$ that contains the point $$(x_0,y_0,z_0)\text{.}$$

1. The gradient of $$F$$ is $$\nabla F(x,y,z) = \la f_x(x,y,z),f_y(x,y,z),f_z(x,y,z)\ra\text{.}$$

2. The gradient of $$F$$ at $$(x_0,y_0,z_0)$$ is

\begin{equation*} \nabla F(x_0,y_0,z_0) = \la f_x(x_0,y_0,z_0),f_y(x_0,y_0,z_0),f_z(x_0,y_0,z_0)\ra\text{.} \end{equation*}

Recall that when $$z=f(x,y)\text{,}$$ the gradient $$\nabla f = \la f_x,f_y\ra$$ is orthogonal to level curves of $$f\text{.}$$ An analogous statement can be made about the gradient $$\nabla F\text{,}$$ where $$w= F(x,y,z)\text{.}$$ Given a point $$(x_0,y_0,z_0)\text{,}$$ let $$c = F(x_0,y_0,z_0)\text{.}$$ Then $$F(x,y,z) = c$$ is a level surface that contains the point $$(x_0,y_0,z_0)\text{.}$$ The following theorem states that $$\nabla F(x_0,y_0,z_0)$$ is orthogonal to this level surface.

The gradient at a point gives a vector orthogonal to the surface at that point. This direction can be used to find tangent planes and normal lines.

#### Example13.7.19.Using the gradient to find a tangent plane.

Find the equation of the plane tangent to the ellipsoid $$\frac{x^2}{12} +\frac{y^2}{6}+\frac{z^2}{4}=1$$ at $$P = (1,2,1)\text{.}$$

Solution.

We consider the equation of the ellipsoid as a level surface of a function $$F$$ of three variables, where $$F(x,y,z) = \frac{x^2}{12} +\frac{y^2}{6}+\frac{z^2}{4}\text{.}$$ The gradient is:

\begin{align*} \nabla F(x,y,z) \amp = \la F_x, F_y,F_z\ra\\ \amp = \la \frac x6, \frac y3, \frac z2\ra\text{.} \end{align*}

At $$P\text{,}$$ the gradient is $$\nabla F(1,2,1) = \la 1/6, 2/3, 1/2\ra\text{.}$$ Thus the equation of the plane tangent to the ellipsoid at $$P$$ is

\begin{equation*} \frac 16(x-1) + \frac23(y-2) + \frac 12(z-1) = 0\text{.} \end{equation*}

The ellipsoid and tangent plane are graphed in Figure 13.7.20.

To understand why Theorem 13.7.18 is true, recall the method of implicit differentiation given in Subsection 13.5.2. A level surface $$f(x,y,z)=0$$ can be viewed as defining $$z=g(x,y)$$ implicitly. We found that the partial derivatives of $$z$$ with respect to $$x$$ and $$y$$ are then given by

\begin{equation*} \plz{z}{x} = g_x(x,y) = -\frac{f_x(x,y,z)}{f_z(x,y,z)}\quad \plz{z}{y} = g_y(x,y) = -\frac{f_y(x,y,z)}{f_z(x,y,z)}\text{.} \end{equation*}

If we plug these values into the tangent plane equation

\begin{equation*} z = g(a,b)+g_x(a,b)(x-a)+g_y(a,b)(y-b) \end{equation*}

we get, with $$c=g(a,b)\text{,}$$

\begin{equation*} z = c - \frac{f_x(a,b,c)}{f_z(a,b,c)}(x-a)-\frac{f_y(a,b,c)}{f_z(a,b,c)}(y-b)\text{.} \end{equation*}

If we move everything to the left-hand side of the equation and multiply through by $$f_z(a,b,c)\text{,}$$ we get

\begin{equation*} f_x(a,b,c)(x-a)+f_y(a,b,c)(y-b)+f_z(a,b,c)(z-c)=0\text{,} \end{equation*}

which is the equation of a plane with normal vector $$\nabla f(a,b,c)\text{.}$$

#### Example13.7.21.Finding the tangent plane of a level surface.

Determine the equation of the tangent plane to the level surface $$x^2yz^3-\sin(x-3z)+4xy^2-3yz=0$$ at the point $$(3,0,1)\text{.}$$ (Note that this is the same problem as Example 13.5.15.)

Solution.

With $$f(x,y,z)=x^2yz^3-\sin(x-3z)+4xy^2-3yz$$ we have

\begin{align*} f_x(x,y,z) \amp = 2xyz^3-\cos(x-3z)+4y^2 \amp f_x(3,0,1)\amp = -1\\ f_y(x,y,z) \amp = x^2z^3+8xy-3z \amp f_y(3,0,1)\amp = 6\\ f_z(x,y,z) \amp = 3x^2yz^2+3\cos(x-3z)-3y \amp f_z(3,0,1) \amp = 3\text{.} \end{align*}

The equation of the tangent plane is therefore

\begin{equation*} -1(x-3)+6y+3(z-1)=0\text{.} \end{equation*}

Note that solving for $$z$$ gives $$z=1+\frac13(x-3)-2y\text{,}$$ which is the same result as Example 13.5.15.

Tangent lines and planes to surfaces have many uses, including the study of instantaneous rates of changes and making approximations. Normal lines also have many uses. In this section we focused on using them to measure distances from a surface. Another interesting application is in computer graphics, where the effects of light on a surface are determined using normal vectors.

The next section investigates another use of partial derivatives: determining relative extrema. When dealing with functions of the form $$y=f(x)\text{,}$$ we found relative extrema by finding $$x$$ where $$\fp(x) = 0\text{.}$$ We can start finding relative extrema of $$z=f(x,y)$$ by setting $$f_x$$ and $$f_y$$ to 0, but it turns out that there is more to consider.

### Exercises13.7.5Exercises

#### Terms and Concepts

##### 1.

Explain how the vector $$\vec v=\la 1,0,3\ra$$ can be thought of as having a “slope” of 3.

##### 2.

Explain how the vector $$\vec v=\la 0.6,0.8, -2\ra$$ can be thought of as having a “slope” of $$-2\text{.}$$

##### 3.

True or False? Let $$z=f(x,y)$$ be differentiable at $$P\text{.}$$ If $$\vec n$$ is a normal vector to the tangent plane of $$f$$ at $$P\text{,}$$ then $$\vec n$$ is orthogonal to $$\ell_x$$ and $$\ell_y$$ at $$P\text{.}$$

• True

• False

##### 4.

Explain in your own words why we do not refer to the tangent line to a surface at a point, but rather to directional tangent lines to a surface at a point.

#### Problems

##### Exercise Group.

A function $$f(x,y)\text{,}$$ a vector $$\vec v$$ and a point $$P$$ are given. Give the parametric equations of the following directional tangent lines to $$z=f(x,y)$$ at $$P\text{:}$$

1. $$\displaystyle \ell_x(t)$$

2. $$\displaystyle \ell_y(t)$$

3. $$\ell_{\vec u\,}(t)\text{,}$$ where $$\vec u$$ is the unit vector in the direction of $$\vec v\text{.}$$

###### 5.

$$f(x,y) = 2x^2y-4xy^2\text{,}$$ $$\vec v = \la 1,3\ra\text{,}$$ $$P=(2,3)\text{.}$$

###### 6.

$$f(x,y) = 3\cos(x) \sin(y)\text{,}$$ $$\vec v = \la 1,2\ra\text{,}$$ $$P=(\pi/3, \pi/6)$$

###### 7.

$$f(x,y) = 3x-5y\text{,}$$ $$\vec v = \la 1,1\ra\text{,}$$ $$P=(4,2)\text{.}$$

###### 8.

$$f(x,y) = x^2-2x-y^2+4y\text{,}$$ $$\vec v = \la 1,1\ra\text{,}$$ $$P=(1, 2)$$

##### Exercise Group.

A function $$f(x,y)$$ and a point $$P$$ are given. Find the equation of the normal line to $$z=f(x,y)$$ at $$P\text{.}$$ Note: these are the same functions as in Exercises 13.7.5.5Exercise 13.7.5.8.

###### 9.

$$f(x,y) = 2x^2y-4xy^2\text{,}$$ $$P=(2,3)\text{.}$$

###### 10.

$$f(x,y) = 3\cos(x) \sin(y)$$ and $$P=(\pi/3, \pi/6)$$

###### 11.

$$f(x,y) = 3x-5y\text{,}$$ $$P=(4,2)\text{.}$$

###### 12.

$$f(x,y) = x^2-2x-y^2+4y$$ and $$P=(1,2)$$

##### Exercise Group.

A function $$f(x,y)$$ and a point $$P$$ are given. Find the two points that are $$2$$ units from the surface $$z=f(x,y)$$ at $$P\text{.}$$ Note: these are the same functions as in Exercises 13.7.5.5–13.7.5.8.

###### 13.

$$f(x,y) = 2x^2y-4xy^2\text{,}$$ $$P=(2,3)\text{.}$$

###### 14.

$$f(x,y) = 3\cos(x) \sin(y)\text{,}$$ $$P=(\pi/3, \pi/6)\text{.}$$

###### 15.

$$f(x,y) = 3x-5y\text{,}$$ $$P=(4,2)\text{.}$$

###### 16.

$$f(x,y) = x^2-2x-y^2+4y\text{,}$$ $$P=(1,2)\text{.}$$

##### Exercise Group.

A function $$f(x,y)$$ and a point $$P$$ are given. Find an equation of the tangent plane to $$z=f(x,y)$$ at $$P\text{.}$$ Note: these are the same functions as in Exercises 13.7.5.5–13.7.5.8.

###### 17.

$$f(x,y) = 2x^2y-4xy^2\text{,}$$ $$P=(2,3)\text{.}$$

###### 18.

$$f(x,y) = 3\cos(x) \sin(y)\text{,}$$ $$P=(\pi/3, \pi/6)\text{.}$$

###### 19.

$$f(x,y) = 3x-5y\text{,}$$ $$P=(4,2)\text{.}$$

###### 20.

$$f(x,y) = x^2-2x-y^2+4y\text{,}$$ $$P=(1,2)$$

##### Exercise Group.

An implicitly defined function of $$x\text{,}$$ $$y$$ and $$z$$ is given, along with a point $$P$$ that lies on the surface. Use the gradient $$\nabla F$$ to:

1. find the equation of the normal line to the surface at $$P\text{,}$$ and

2. find the equation of the plane tangent to the surface at $$P\text{.}$$

###### 21.

$$\ds \frac{x^2}{8}+\frac{y^2}4+\frac{z^2}{16}=1\text{,}$$ at $$P = (1,\sqrt{2},\sqrt{6})$$

###### 22.

$$z^2-\frac{x^2}{4} - \frac{y^2}9=0\text{,}$$ at $$P = (4,-3,\sqrt{5})$$

###### 23.

$$\ds xy^2-xz^2=0\text{,}$$ at $$P = (2,1,-1)$$

###### 24.

$$\sin(xy)+\cos(yz)=0\text{,}$$ at $$P = (2, \pi/12, 4)$$

You have attempted of activities on this page.