Defining Gradient for f(x)= ||x-a||

  • Thread starter Thread starter Black Orpheus
  • Start date Start date
  • Tags Tags
    Gradient
Click For Summary

Homework Help Overview

The discussion revolves around defining the gradient of the function f(x) = ||x - a||, where f maps from Euclidean n-space to real numbers. Participants are exploring the mathematical representation of the gradient in this context.

Discussion Character

  • Mathematical reasoning

Approaches and Questions Raised

  • Participants are attempting to express the gradient in terms of partial derivatives and are discussing the implications of the function's definition. There are questions about how to properly formulate the gradient symbolically, particularly for points where x is not equal to a.

Discussion Status

Several participants have contributed to the discussion, with some providing detailed expressions for the gradient. There appears to be a productive exploration of the mathematical definitions involved, though no consensus has been reached on a singular approach.

Contextual Notes

There is an emphasis on defining the gradient for all x not equal to a, which may influence the interpretation of the function's behavior in different regions of its domain.

Black Orpheus
Messages
23
Reaction score
0
One last question for tonight... If you let f: R^n ---> R (Euclidean n-space to real numbers) and f(x) = ||x-a|| for some fixed a, how would you define the gradient in terms of symbols and numbers (not words)?
 
Physics news on Phys.org
Start by writing out the definition for ||x - a||
 
forgot to add that it's for all x not equal to a
 
||x-a|| = sqrt[(xsub1 - a)^2 +...+ (xsubn - a)^2]

so gradient = (partial derivative of sqrt[(xsub1 - a)^2] , ... , partial derivative of sqrt[(xsubn - a)^2])?
 
For f(x)=\| x-a\| = \sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2}

we have

\nabla f(x) = \left< \frac{\partial }{\partial x_1},\ldots , \frac{\partial }{\partial x_n}\right>\cdot \sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2}
\left< \frac{\partial }{\partial x_1}\sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2},\ldots , \frac{\partial }{\partial x_n}\sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2}\right>
= \left< \frac{x_1-a_1 }{\sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2}},\ldots , \frac{x_n-a_n }{\sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2}}\right>
= \frac{1}{\sqrt{(x_1-a_1)^2+\cdots +(x_n-a_n)^2}}\left< x_1-a_1 ,\ldots , x_n-a_n \right>
= \frac{x-a}{\| x-a\| }

which is a unit vector in the direction of x-a.
 
Last edited:

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 13 ·
Replies
13
Views
2K
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
9
Views
2K