# Directional Derivatives, Gradient of f and the Min-Max

Coming up next: Solving Min-Max Problems Using Derivatives

### You're on a roll. Keep up the good work!

Replay
Your next lesson will play in 10 seconds
• 0:03 Higher Dimensional Living
• 0:42 The Directional Derivative
• 1:25 Calculating…
• 3:53 Minimum and Maximum
• 6:05 Lesson Summary

Want to watch this again later?

Timeline
Autoplay
Autoplay
Speed

#### Recommended Courses for You

Lesson Transcript
Instructor: Gerald Lemay

Gerald has taught engineering, math and science and has a doctorate in electrical engineering.

Using partial derivatives and a direction vector, we can find the directional derivative. In this lesson, we clarify the meaning of the directional derivative and relate it to gradients, minimums, and maximums.

## Higher Dimensional Living

Meet my friend, Bugs McFly. He lives happily in a flat two-dimensional space. But what he thinks is two dimensions is actually the surface of a three-dimensional object he can't see. When he moves in any direction, he is forced to stay on the surface of this object so it always feels like two-dimensions. We can do some math with Bugs to help him gain some insight for this third dimension.

In calculus, derivatives give us rates of change, and Bugs is interested in movement in a particular direction. The mathematical concept we will use is called the directional derivative. The sign of the directional derivative tells us whether we are moving up or down.

## The Directional Derivative

Let's walk through an example together:

A point (the green dot) is placed on the surface of a three-dimensional curved object:

Looking down from the z-axis, a new x-y sits on the point.

The vector u tells us which direction we should move the point in, while staying on the surface of the curve.

The curved surface is some function, f(x, y). We calculate the directional derivative of f(x, y) along a direction vector. In this example, the directional derivative is positive, indicating an upwards (positive z) movement.

What if the point started at a different location?

Again, we should begin by locating the x-y on the point.

Do you see how the directional derivative is now pointing down? That means in this case, it is negative!

## Calculating the Directional Derivative

Now for some math fun! The steps for finding the directional derivative:

#### Step 1: Normalize the direction vector

In our example, the direction vector is:

To normalize, we divide the vector by its length. The length of the unit vector is:

The normalized directional vector is indicated by a u with a ''hat'' on top of it:

#### Step 2: Identify the components of the normalized direction vector

Focusing on just the components, we often write the normalized direction vector as:

Thus, in our example, a = 1/âˆš(2) and b = 1/âˆš(2).

#### Step 3: Compute the partial derivatives fx and fy

The function in our example is:

Find fx, by taking the derivative of f(x, y) with respect to x while keeping y constant:

Likewise, finding fy means differentiating with respect to y with x constant:

#### Step 4: Substitute into the equation for the directional derivative

The symbol for the directional derivative is Du.

The equation for the directional derivative of f(x, y) is:

We have all the parts for the right-hand-side. Thus,

#### Step 5: Evaluate the directional derivative at a specific point (x, y)

The first point we looked at resulted in a positive directional derivative. The point was (-2, 0, -2). Thus, x = -2 and y = 0. Substituting, we get:

As expected, we get a positive number.

For the second point on the surface of f(x, y), the directional derivative was pointing down and thus, negative. The second point was (0, 3, -1.5), i.e. , x = 0 and y = 3: Substituting x and y in, we get:

This time, we get a negative number!

Closely related to the directional derivative is the gradient, âˆ‡f(x, y), which also uses partial derivatives:

If we take the dot product of the gradient, âˆ‡f(x, y), with the normalized direction vector we get:

which is our definition of the directional derivative. The relationship between the gradient and the directional derivative is:

To unlock this lesson you must be a Study.com Member.

### Register to view this lesson

Are you a student or a teacher?

#### See for yourself why 30 million people use Study.com

##### Become a Study.com member and start learning now.
Back
What teachers are saying about Study.com

### Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.