If a force which acts on an object is a function of position only, it is called a conservative force.
It can be represented by a potential energy function which for a one-dimensional case satisfies the following condition
or in integral form as
#x_0#is the reference point
Inserting given function we get
From (1) we get