[Physics] Potential energy and the work energy theorem

energyforcesnewtonian-mechanicspotential energywork

So the title's a bit irrelevelant. And I'm having a tough time thinking how to describe my doubt but I'll try my best. Apologies if it is vague, do let me know in the comments.

So I just finished reading the work energy theorem and was moving on to the concept of potential energy (which my book explains poorly, or I'm missing something).

I understand that by the work energy theorem the change in the kinetic energy of a body is the work done by an external force force on the body. ✓Got it, the change in the kinetic energy of a body is equal to the work done by the net force

So I moved on to potential energy, where my book tries to explain stuff by starting off with an example in which we're elevating the book of mass $m$ by doing work $mgh$ on it, where $h$ is the height to which it is raised.
My first doubt is, since the force we applied is $mg$ (equal to the gravitational force of attraction in magnitude yet opposite in direction), the resultant force on the book is 0. Since the resultant force is zero, the work done by the resultant force on the book should be 0, and there should be no change in the kinetic energy.

Secondly, the force done by us (the external agnecy), is along the direction of the displacement, the work done is positive and so the change in kinetic energy should be positive (by the work energy theorem?)

What am I messing up? Mixing the two concepts (potential energy and work energy theorem)? Yet after the work we do, potential energy increases, not the kinetic energy? What am I confusing?

Edit

So the given answers helped me understand where I was going wrong (somewhat). The change in the kinetic energy of a particle is equal to the work done on it by the net external force (if the particle is the system)

Now I'm having trouble interpreting the work energy theorem for a system of particles. A book explains it by considering a system of two charges (one positive and one negative; attracting each other).
It says:

Because of mutual attraction, the particles are accelerated towards each other and the kinetic energy of the system increases

Firstly, how can we consider something which isn't fixed as our system (the charges move…).

Secondly, there is no net force on the system, so how is the kinetic energy even increasing.

PS: I'm still all confused about potential energy. Before my book starts about potential energy it goes on to talk about the work energy theorem for a system of particles, and that's where I'm confused now.

Best Answer

The first thing you must do is define your system.
If the system is the book alone the the external forces on the book are the force that you exert on the book and the gravitational attraction on the book by the Earth.
If the book starts and finishes at rest then there is no change in the kinetic energy.
The work done by you on the book is positive as the direction of the force that you exert on the book is the same as the displacement of the book.
The work done by the gravitational force due to the Earth is negative because the gravitational force is in the opposite direction to the displacement of the book.

If the two external forces are equal in magnitude and opposite in direction then the net work done on the book is zero (equal to the change in kinetic energy).
Of course one could reason that the net external force on the book is zero so the net work done by external forces on the book is zero.

There is no mention of gravitational potential energy because it is the energy associated with the book and the Earth as a system.
So now let's consider this system of the book and the Earth.
The external force is now the force that you apply on the book.
The force that the Earth exerts on the book is an internal force and its Newton third law pair is the force that the book exerts on the Earth.
When you do positive work separating the book and the Earth that work increases the gravitational potential energy of the book-Earth system.

If you released the book the separation between the book and the Earth will decrease and the gravitational potential energy of the system will decrease.
The book (and the Earth) would then have kinetic energy.
Usually only the motion and kinetic energy of the book is considered because the mass of the Earth is so much greater than the book.
This results in the speed and kinetic energy of the Earth being very much smaller that that of the book.