0% found this document useful (0 votes)
113 views2 pages

Directional Slope

The document discusses directional slope of linear functions. There are two ways to think about slope in a given direction: 1) Use a variable like s for distance in the direction and calculate slope as the change in f over change in s. 2) Use a unit vector u pointing in the direction and calculate slope as the dot product of the gradient vector g and the direction vector u, where g has components that are the slopes in each standard direction. The slope in a direction provides the foundation for defining the directional derivative in multivariable calculus, which represents the slope of a surface. Exercises are provided to calculate slopes in given directions using both definitions.

Uploaded by

ArvinAL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views2 pages

Directional Slope

The document discusses directional slope of linear functions. There are two ways to think about slope in a given direction: 1) Use a variable like s for distance in the direction and calculate slope as the change in f over change in s. 2) Use a unit vector u pointing in the direction and calculate slope as the dot product of the gradient vector g and the direction vector u, where g has components that are the slopes in each standard direction. The slope in a direction provides the foundation for defining the directional derivative in multivariable calculus, which represents the slope of a surface. Exercises are provided to calculate slopes in given directions using both definitions.

Uploaded by

ArvinAL
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Directional Slope

The equation of a linear function f (x, y) can be written as

f (x, y) = c + mx + ny,

where c, m, and n are constants.

Significance of m and n Consider two points, (x, y) and (x + ∆x, y + ∆y). Let ∆f = f (x + ∆x, y +
∆y) − f (x, y). We may then calculate the change in f as

∆f = [c + m(x + ∆x) + n(y + ∆y)] − [c + mx + ny] = m∆x + n∆y.

This formula shows us the significance of the parameters m and n. Suppose we consider two points
having the same y coordinate. Then ∆y = 0. We can rearrange the last formula to get
∆f
m= .
∆x
Thus, m is the slope of the function in the x-direction. Similarly, n is the slope of the functionin the
y-direction. Another way to state this is that m is the slope of the function in the direction given by
the unit vector ~i and n is the slope of the function in the direction given by the unit vector ~j.

Slope in the direction of a unit vector ~u Consider a specific example. We are interested in
knowing the slope at the point (2,1) in the direction of the point (6,4).


>
½
½ (6,4)
½
½
5 ½½
½ 3
½
½
~u ½
>

½

½
(2,1) 4
Note that we have two different labels on the ray that begins at (2,1) and passes through the point
(6,4). There is a coordinate label s and a unit vector label ~u. This is analogous to the standard
coordinate plane, in which the axes can be labeled with the coordinates x and y and also the unit
vectors ~i and ~j.
The slope of f in the horizontal direction can be thought of as the rate of change of f with respect
to x. Similarly, the slope of f along the path from (2,1) to (6,4) can be thought of as the rate of
change of f with respect to s, where s is a coordinate that goes in the given direction. The slope in
the s direction is ∆f /∆s. Here, the change in f is m∆x + n∆y = 4m + 3n. The change in s is the
distance between the points, or 5. So the slope is
∆f 4m + 3n
slope = = = 0.8m + 0.6n.
∆s 5
The slope of f in the horizontal direction can also be thought of as the slope of f in the ~i direction.
Similarly, the slope of f along the path from (2,1) to (6,4) can be thought of as the slope of f in the
~u direction. The unit vector ~u is obtained by dividing the displacement vector 4~i + 3~j by its length 5.
Thus,
~u = 0.8~i + 0.6~j.
Now we define the gradient vector, which we will call g for now, as

~g = m~i + n~j.

The components of the gradient vector are the slopes in the corresponding directions. Is there a way
to calculate the slope of f in the ~u direction using the gradient and direction vectors? Clearly the
answer is that the slope is the dot product of the two vectors:

slope = ~g · ~u.

Summary
There are two ways to think of the slope of a linear function in a given direction.

• We can use a symbol, such as s, to represent distance in the given direction. Then we compute
the slope in the given direction as the change in f divided by the change in s.
∆f
slope = .
∆s

• We can describe the direction using the unit vector ~u that points in the given direction. We
can define the gradient vector to be the vector in which each component is the slope in the
corresponding direction; thus, the ~i component is the slope in the ~i direction and so on. Then
we compute the slope in the given direction as the dot product of the gradient and direction
vectors.
slope = ~g · ~u.

In 1-variable calculus, we use the concept of the slope of a line to define the derivative, which
represents the slope of a curve. Similarly, in multi-variable calculus, we will use the concept of the
slope of a plane to define the directional derivative, which represents the slope of a surface. The
material here on slope of a linear function thus provides the precalculus foundation for the derivative
in multi-dimensional calculus.

Exercises
1. Let f = 2 + 3x + 2y. Use both definitions of the slope to calculate the slope of f in the direction
of the vector 2~i − ~j.

2. Let f = 5 − x + 2y. Use both definitions of the slope to calculate the slope of f in the direction
of the vector ~i + 3~j.

3. Let f = 3 − 2x − 4y. Use both definitions of the slope to calculate the slope of f in the direction
of the vector −2~i − 3~j.

4. Let f be defined by the contour diagram in Figure 11.73. Determine the slope of f in the
direction indicated by the ray from the point (-1,-1) through the point (1,2).

01/23/2002 Glenn Ledder

You might also like