So Newton's Second law states that

You're asked to derive the conservation of energy equation by using Newton's Second law. The conservation of energy states that

right? Here is the kinetic energy, and the potential energy. The total energy is constant.

Here are a few equations that might be useful to you:

and

I would start by differentiating , and using various equations and identities to show that you get zero.