Okay I though that if the force was conservative, then the gradient could be used, I didn't know that it proves the force is conservative.
A correction in the force equation
F = -kx + ax^3 + bx^4
After integrating a found the potential equation to be
U = (kx^2)/2 - (ax^4)/4 - (bx^5)/5
using F = -dU/dx.
I found the gradient of U to be
grad(U) = (kx - ax^3 - bx^4)i
Is there a reason for the sign difference? I just learned gradients, in my Calc III class that I am taking right now, two weeks ago so I am still not comfortable with all of its properties.
Okay what if I have a force function of the type:
F = -kx^2y +(y^2)(z^2) + xyz ( I made this one up)
So took three integrals, with respect to x, y, and z seperately, to get the potential function in each direction. Then I found the gradient of the potential function to be
grad(U) = (kyx^2 - (y^2)(z^2) - xyz)i + (k(x^2)y - (y^2)(x^2) - xyz)j + (k(x^2)y - (y^2)(z^2) - xyz)k
To find if the gradient equals the force function, do I find the absolute value of grad(U) , to make it a scalar function? I am not sure how to find if these two are equivalent.
Okay I took a guess to convert the force function into a vector function. First I found the partial derivatives of F with respect to x, y, and z. Then I took the integral with respect to x, y, and z. I found
F = -(k(x^2)y - xyz)i - (k(x^2)y + (y^2)(z^2) + xyz)j + ((z^2)(y^2) +xyz)k
When I took the integral with respect to each I didn't add the Integral constant, so maybe that could account for the difference. According to the scalar function F, when x = O, F = (y^2)(z^2), when z = 0, F = -k(x^2)y . .so these could be the missing constants in my vector function F??
Thanks for all your help.