I came across this definition for potential energy:
If we let $T$ be the Kinetic energy, we have that:
$$T = \frac{1}{2}mv^2 \implies T = \frac{1}{2}m{x'}^2$$
$$T'= mx'x'' = F(x)x' \implies \\T = \int F(x)x'dt = \int F(x) dx \tag{2.4}$$
Then, the book says that if we define
$$V(x) = -\int_{x_0}^{x}F(x')dx'$$
we can write the equation:
$$T+V = E$$
where $x_0$ is an arbitrary constant, corresponding to the arbitrary additive constant of integration in (2.4)
I understand that potential energy can be thought as everything from total energy $E$, such that this everything is not the Kinect energy. However, I don't understand why the integral $$V(x) = -\int_{x_0}^{x}F(x')dx'$$
Works and can be understood as potential energy. Could someone explain better to me why $T+V = E$, where $E$ is the total energy?
Is there an example for this?