What Is the Potential Function U for a Given Gradient?

  • Thread starter Thread starter Amrator
  • Start date Start date
  • Tags Tags
    Gradient
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
59 replies · 5K views
Amrator
Messages
246
Reaction score
83

Homework Statement


##\nabla U = 2 r^4 \vec r## Find U.

Homework Equations


##\vec r = x \hat i + y \hat j + z \hat j##
##r = \sqrt (x^2 + y^2 + z^2)##

The Attempt at a Solution


##\nabla U = 2 (x^2 + y^2 + z^2)^2 (x \hat i + y \hat j + z \hat j)##

I multiplied everything out,

##\nabla U = (2 x^4 + 4 x^2 y^2 + 4 x^2 z^2 + 4 y^2 z^2 + 2 y^4 + 2 z^4)x\hat i + (2 x^4 + 4 x^2 y^2 + 4 x^2 z^2 + 4 y^2 z^2 + 2 y^4 + 2 z^4)y\hat j + (2 x^4 + 4 x^2 y^2 + 4 x^2 z^2 + 4 y^2 z^2 + 2 y^4 + 2 z^4)z\hat k##

Since ##\nabla U = \frac{\partial U}{\partial x} \hat i + \frac{\partial U}{\partial y} \hat j + \frac{\partial U}{\partial z} \hat k##, we really only need one of the partial derivatives.

##\frac{\partial U}{\partial x} = (2 x^5 + 4 x^3 y^2 + 4 x^3 z^2 + 4 x y^2 z^2 + 2 x y^4 + 2 x z^4)##

Then I took the integral of only the x terms,

##\frac{\partial U}{\partial x} = \frac{\partial}{\partial x} (\frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4)##

Therefore,

##U = \frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4##

Am I correct so far? If so, where do I go from here?
 
Last edited:
Physics news on Phys.org
Amrator said:

Homework Statement


##\nabla U = 2 r^2 \vec r## Find U.

Homework Equations


##\vec r = x \hat i + y \hat j + z \hat j##
##r = \sqrt (x^2 + y^2 + z^2)##

The Attempt at a Solution


##\nabla U = 2 (x^2 + y^2 + z^2)^2 (x \hat i + y \hat j + z \hat j)##
I multiplied everything out.
##\frac{\partial U}{\partial x} = (2 x^5 + 4 x^3 y^2 + 4 x^3 z^2 + 4 x y^2 z^2 + 2 x y^4 + 2 x z^4)\hat i##
Then I took the integral of only the x terms,
##\frac{\partial U}{\partial x} = \frac{\partial}{\partial x} (\frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4)\hat i##
Therefore,
##U = \frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4##
Am I correct so far? If so, where do I go from here?

If ##r = \sqrt{x^2 + y^2 + z^2}##, then what is r2?
 
SteamKing said:
If ##r = \sqrt{x^2 + y^2 + z^2}##, then what is r2?
Sorry about that, I screwed up the question. I'll edit right now. It should be r^4.
 
Amrator said:

Homework Statement


##\nabla U = 2 r^4 \vec r## Find U.
...

The Attempt at a Solution

[/B]
...
Then I took the integral of only the x terms,

##\frac{\partial U}{\partial x} = \frac{\partial}{\partial x} (\frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4)##

Therefore,

##\displaystyle U = \frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4##

Am I correct so far? If so, where do I go from here?
You need a "constant" of integration. Of, course it's only constant w.r.t. ##x## . It's potentially a function of ##y## and ##z## .
 
SammyS said:
You need a "constant" of integration. Of, course it's only constant w.r.t. ##x## . It's potentially a function of ##y## and ##z## .
So ##\frac{\partial U}{\partial x} = \frac{\partial}{\partial x} (\frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4 + constant)##?
 
Amrator said:
So ##\frac{\partial U}{\partial x} = \frac{\partial}{\partial x} (\frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4 + constant)##?
I would put it more like:
##\displaystyle U = \frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4 + f(y,z) ##​

Now, take the partial derivative w.r.t. y or z.
 
SammyS said:
I would put it more like:
##\displaystyle U = \frac {x^6}{3} + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4 + f(y,z) ##​

Now, take the partial derivative w.r.t. y or z.
But f(y,z) is a function, not a constant? And why do I need to take the PD w.r.t. y or z? Just trying to understand.
 
Amrator said:
But f(y,z) is a function, not a constant? And why do I need to take the PD w.r.t y or z? Just trying to understand.
##\displaystyle \ \frac{\partial}{\partial x}f(y\,,z)=0\,,\ ## right ?

So ƒ(y, z) plays the same role here as the constant of integration plays for a single variable integral .
 
SammyS said:
##\displaystyle \ \frac{\partial}{\partial x}f(y\,,z)=0\,,\ ## right ?

So ƒ(y, z) plays the same role here as the constant of integration plays for a single variable integral .
Yes.

So taking the PD w.r.t. y yields,

##U = 2 x^4 y + 4 x^2 y z^2 + 4 x^2 y^3 + f(y,z)##
 
Amrator said:
Yes.

So taking the PD w.r.t. y yields,

##U = 2 x^4 y + 4 x^2 y z^2 + 4 x^2 y^3 + f(y,z)##
Why didn't you take the partial derivative of f(y,z)? And that's supposed to be ##\partial U/\partial y## on the LHS, right?
 
  • Like
Likes   Reactions: SammyS
Amrator said:
But f(y,z) is a function, not a constant? And why do I need to take the PD w.r.t. y or z? Just trying to understand.

Because you have not yet matched ##\partial U/ \partial y## and ##\partial U/ \partial z## to the given forms that you started with. Notice that if you did not have the ##f(y,z)## term, the ##y## and ##z## partials would come out wrong. Try it and see! Don't agonize about it; just do it.
 
##{\partial U}/{\partial y} = 2 x^4 y + 4 x^2 y z^2 + 4 x^2 y^3##

##{\partial U}/{\partial z} = 4 x^2 y^2 z##
 
Last edited:
Chestermiller said:
Are you not allowed to solve this in spherical coordinates? dU/dr = 2 r5?
I don't see why not. The book doesn't say I can't. Although, I am trying to get used to partial derivatives and the del operator.
 
Amrator said:
##{\partial U}/{\partial y} = 2 x^4 y + 4 x^2 y z^2 + 4 x^2 y^3##

##{\partial U}/{\partial z} = 4 x^2 y^2 z##
You're missing a bunch of terms in ##{\partial U}/{\partial z}##.

Amrator said:
##\nabla U = (2 x^4 + 4 x^2 y^2 + 4 x^2 z^2 + 4 y^2 z^2 + 2 y^4 + 2 z^4)x\hat i + (2 x^4 + 4 x^2 y^2 + 4 x^2 z^2 + 4 y^2 z^2 + 2 y^4 + 2 z^4)y\hat j + (2 x^4 + 4 x^2 y^2 + 4 x^2 z^2 + 4 y^2 z^2 + 2 y^4 + 2 z^4)z\hat k##

##\nabla U = \frac{\partial U}{\partial x} \hat i + \frac{\partial U}{\partial y} \hat j + \frac{\partial U}{\partial z} \hat k##
Note that the result you got for ##{\partial U}/{\partial y}## by neglecting f(y,z) only has the first three terms of ##\hat{j}## component of ##\nabla U##. The missing terms only depend on y and z. That's why the f(y,z) has to be there.
 
vela said:
You're missing a bunch of terms in ##{\partial U}/{\partial z}##.Note that the result you got for ##{\partial U}/{\partial y}## by neglecting f(y,z) only has the first three terms of ##\hat{j}## component of ##\nabla U##. The missing terms only depend on y and z. That's why the f(y,z) has to be there.

I see, and f(y,z) contains only y and z terms, correct?
So ##U = x^6 / 3 + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4 + f(y,z)##
##f(y,z) = \int {4 y^3 z^2 + 2 y^5 +2 y z^4} dy##
Something doesn't seem right with that above equation though. I have not learned multiple integrals yet. That's after this section.
 
Amrator said:
##{\partial U}/{\partial y} = 2 x^4 y + 4 x^2 y z^2 + 4 x^2 y^3##

##{\partial U}/{\partial z} = 4 x^2 y^2 z##
What you have for ## \displaystyle {\partial U}/{\partial y}\ ## is missing ## \displaystyle \frac{\partial }{\partial y}f(y,\,z)\ ##.
 
SammyS said:
What you have for ## \displaystyle {\partial U}/{\partial y}\ ## is missing ## \displaystyle \frac{\partial }{\partial y}f(y,\,z)\ ##.
But I don't know what f(y, z) is. Don't I have to find it first?

Perhaps I should start over? I'm getting very confused.
 
Last edited:
fresh_42 said:
You can get ##f(y,z)## by comparison of ##δU / δx## with the ##î ## coordinate you computed in the beginning.
What? What is ##δU / δx##?
 
Amrator said:
What? What is ##δU / δx##?
Sorry I took what I got. I haven't found the correct delta. You have ##U = ... + f(y,z)## on one hand, which allows you to differentiate along ##y##. This result can be compared to your ##j##-coordinate in the beginning. That gives you the partial differentiation of ##f(y,z)## along ##y## which you could integrate to something like ##f(y,z) = ... + g(z)## and so on.
 
fresh_42 said:
Sorry I took what I got. I haven't found the correct delta. You have ##U = ... + f(y,z)## on one hand, which allows you to differentiate along ##y##. This result can be compared to your ##j##-coordinate in the beginning. That gives you the partial differentiation of ##f(y,z)## along ##y## which you could integrate to something like ##f(y,z) = ... + g(z)## and so on.
So you want me to take PD of U = ... + f(y, z) w.r.t. y, and set it equal to the ##\hat j## component?
Isn't that what I did in one of my last posts on the previous page?
 
Amrator said:
I see, and f(y,z) contains only y and z terms, correct?
So ##U = x^6 / 3 + x^4 y^2 + x^4 z^2 + 2 x^2 y^2 z^2 + x^2 y^4 + x^2 z^4 + f(y,z)##
##f(y,z) = \int {4 y^3 z^2 + 2 y^5 +2 y z^4} dy##
Something doesn't seem right with that above equation though. I have not learned multiple integrals yet. That's after this section.
Which equation seems wrong? You're not doing a multiple integral. You're integrating with respect to y, treating z as a constant. You're just reversing the partial differentiation. You'll end up with another "constant" of integration, which is a function of z.
 
  • Like
Likes   Reactions: Amrator
vela said:
Which equation seems wrong? You're not doing a multiple integral. You're integrating with respect to y, treating z as a constant. You're just reversing the partial differentiation. You'll end up with another "constant" of integration, which is a function of z.
So ##f(y,z) = y^4 z^2 + y^6 / 3 + y^2 z^4 + g(z)##?
And then do the same thing with z?