Showing posts with label directional derivative. Show all posts
Showing posts with label directional derivative. Show all posts

Tuesday, July 2, 2024

Maximum directional derivative

Goal: Find a maximum directional derivative 

To find a maximum directional derivative, we use one of the properties of the gradient. This property states as follows:




Other properties of the gradient

1) 



2) 





Example

Find the direction for which the directional derivative of f(x,y) = 3x² - 4xy + 2y² at (-2, 3) is a maximum, What is the maximum value?

Solution


























Practice

Find the direction for which the directional derivative of f(x,y) = 4x - xy + 2y² is a maximum at (-2,3). What is the maximum value?

Tuesday, June 25, 2024

Directional derivative of a function of two variables (continued)

 Goals:

1. Define directional derivative as an expression of partial ,derivatives

2. Define "gradient"

Directional derivative as expression of partial derivatives

Theorem

Let z = f(x, y) a function of two variables x and y. Let's assume fₓ and fy exist and f is differentiable everywhere. Then the directional derivative of f in the direction of u = cosθi + sinθj is given by:

Dᵤf(x, y) =  fₓ(x,y) cosθ + fy(x,y)sinθ (1)

Example

Let θ = arccos(3/5). Find the directional derivative Dᵤf(x,y) of the function f(x, y) = x² - xy + 3y² in the direction of u = cos(θ)i + sin (θ)j,. What is Df(-1, 2)?

Solution

In order to apply the formula above, we must calculate the partial derivatives:

 



Let's now apply the formula. Let's notice that this example is the same as the example in the previous post where we had cosθ = 3/5 and )sinθ = 4/5.









Let's calculate  Dᵤf(-1, 2)?





Practice

Find the directional derivative Dᵤf(x,y) of 





What is Dᵤf(3,4)?


Gradient

The right hand side of equation (1) can be written as the dot product of two vectors. The first vector can be written as 

(2)


The second vector can be written as: 

 


Then the right hand side of equation (1) can be written as:





The first vector is called gradient of f. The symbol of the inversed delta is called "nabla" 


Definition

Let z = f(x,y) be a function of two variables x and y such that fx and fy exist. 










Example








Solution

a. Let's first calculate the partial derivatives in order to apply the formula of the gradient:






b. Let's do the same:





Practice







Saturday, June 22, 2024

Directional derivatives of a function of 2 variables

 Goal: Determine the directional derivative of a function of two  variables

Considerations:

In a function of two variables, we have so far considered partial derivatives both with respect to x and y. In these partial derivatives, only one variable is changing. In partial derivative with respect to x, this variable is changing while y is constant. In partial derivative with respect to y only y is changing while x is constant.

In directional derivatives, both variables x and y are changing. The changing of  these variables provide a direction. This direction is represented by a vector expressed in function of an angle.

We consider the graph of a surface represented by the function z = f(x, y). We consider a point (a,b) that belongs to the domain of f.  The direction of travel starts from that point and is measured according to an angle θ, directed counterclockwise in the xy plane starting at zero from the positive direction of the x-axis. The distance traveled is h and the direction is given by the vector u = cos(θ)i + sin (θ)j, The z coordinate of the second point on the graph  is given by z  =  f( a + hcosθ, b + hsinθ,).


We start from a point (a, b, f(a,b)) of the surface and arrive at a second point of which the z coordinate is  z  =  f( a + hcosθ, b + hsinθ,). The slope of the secant line joining these two points is found by dividing the difference of the z coordnates by the difference traveled, which is h. We have:


The directional directive of the function f in the direction u is equal to the slope of the tangnt line at the given point. The slope is found by taking the limit of the above expression when h approaches zero,

Definition

Suppose z = f(x.y) is a function of two variables with a domain D. Let (a, b) ϵ D and define u = cos(θ)i + sin (θ)j. Then the directional derivative in the direction of u is given by:


provided that the limit exists.

Example

Let θ = arccos(3/5). Find the directional derivative Dᵤf(x,y) of the function f(x, y) = x² - xy + 3y² in the direction of u = cos(θ)i + sin (θ)j,. What is Df(-1, 2)?

Solution

According to the definition, Dᵤf(x,y) is given by:

Dᵤf(x,y) = lim f(x + hcosθ, y + hsinθ) - f(x,y)/h when h approaches zero. Let's start by calculating 

f(x + hcosθ, y + hsinθ):



Since cos θ = 3/5, sin θ is given by:


Let's substitute sin θ and cos θ :








Let's substitute f(x + hcosθ, y + hsinθ) and f(x, y) in the expression: Dᵤf(x,y) = lim f(x + hcosθ, y + hsinθ) - f(x,y)/h when h approaches zero: We have:

Dᵤf(x,y) 


To fnd Dᵤf(-1, 2)? let's substitute x by -1 and y by 2 in the above expression:


See the following figure:



In the figure above we can see that the plane is tangent to the surface at the point (-1,2,15).