Finding the function, given the gradient.

  • Thread starter Thread starter braindead101
  • Start date Start date
  • Tags Tags
    Function Gradient
Click For Summary

Homework Help Overview

The discussion revolves around finding a function given its gradient, specifically focusing on the gradient function |x|^p-2 x and the corresponding function f(x) that is believed to be 1/p |x|^p. The context includes considerations of convexity and the condition p > 1.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the relationship between the gradient and the original function, questioning how to derive f(x) from its gradient. There are discussions about the definitions of gradient and antiderivatives, as well as the implications of convexity on the functions being considered.

Discussion Status

Participants are actively discussing various approaches to integrate the gradient to find the original function. Some have suggested using piecewise definitions to handle the absolute value, while others express confusion about the integration process and the implications of the conditions given.

Contextual Notes

There is a focus on the need for the function to be convex, and participants are grappling with the implications of this requirement on their attempts to find f(x). The discussion also highlights the challenges posed by the piecewise nature of the absolute value function.

braindead101
Messages
158
Reaction score
0
the gradient function is |x|^p-2 x
and i need to find the function, which apparently is 1/p |x|^p but i can't figure out how to show this.
This is for a bigger problem where the function must be convex. and also p>1

I tried, finding the derivative of 1/p |x|^p , but i don't get the gradient function.
At first, I thought about this function: 1/p-1 |x|^p-1 where you can easily get the gradient function by taking the derivative but i was told that this is not a convex function.

any help would be greatly appreciated.
 
Physics news on Phys.org
Just to clarify, you're using the standard definition of the gradient as \nabla = \frac{\partial}{\partial x} \textbf{i} + \frac{\partial}{\partial y} \textbf{j} + \frac{\partial}{\partial z}\textbf{k}?

In other words, \nabla is an operation on a scalar function which returns a vector function. The functions you've given me are both scalar. Is it possible you typed it in wrong?
 
Last edited:
yes, i have the gradient f(x)= |x|^p-2 x, and i need to find f(x), in class, the definition of gradient is just the derivative w.r.t x of f(x)
so i am asking why 1/p |x|^p is the answer because i don't see how you can use this, to find the gradient function |x|^p-2 x. so I thought the function was something else: 1/p-1 |x|^p-1, but i was told this function is not convex.
 
So, if I'm reading this correctly, you're given f'(x)=|x|^p - 2x, and you're asked to find f(x). First of all, have you learned antiderivatives yet? Oh, and I'm pretty sure there's no possible way for f(x)=\frac{|x|^p}{p} for x \neq 0.
 
Last edited:
no the function is this: gradient f(x) = x |x|^(p-2) maybe this is more clear way to write it. and somehow get f(x) = 1/p |x|^p from it.
 
Oh. I see. Try remembering that \frac{d}{dx}(|x|) = \texttt{sign}\ x = \frac{x}{|x|} = \frac{|x|}{x}
 
ok, should i be working from the gradient f(x) -> f(x) or vice versa.
as well , i am getting confused.
is this correct: to work from gradient f(x) -> f(x) we integrate. and f(x)-> gradient f(x) we differentiate.
working from f(x) -> gradient.. i don't see how i can get gradient f(x).
and going from gradient f(x) -> f(x) , i havn't a clue how to integrate that function
 
yes, that's correct. Try working with the piecewise definition of |x|, i.e.

|x| = \left{ \begin{cases} x, & x>0\\ -x, & x<0\end{cases}
 
so which way should i be working?
gradient f(x) -> f(x)?
 
  • #10
can you tell me how to integrate this? or at least start, so i can get 1/p|x|^p , i need this small part for a bigger problem and this is making me stuck.

i have thought about what you said about the piecewise, but that confuses me even more as i have to deal with not one but 2 functions now
 
  • #11
ok, so i can get 1/px^p for the x>0 case.
but for the x<0 case:
i am struggling
i have,
integ( (-x)^(p-2) x dx)
can i write this as:
= integ( (-1)^p (x)^(p-2) x dx )
so,
= (-1)^p integ (x^(p-2) x dx)
which is just
= (-1)^p 1/p x^p
now how can i put the two together... to make x into |x|?
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
2
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
7
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K