Work links the concepts of energy and force. The net force is the sum of all the forces on an object. Similarly, the work done by the net force is the sum of the work done by each of the forces acting.
W = F • Δr = F Δr cos(θ)
Work can be positive or negative, positive when the force (or some component of it) is in the same direction as the displacement and negative when these are in opposite directions. Work is zero when the force is perpendicular to the displacement, and is maximized when the force is parallel to the displacement.
For a constant force:
W = F • Δr = Fx Δx + Fy Δy + Fz Δz
If a force is a conservative force (one that conserves mechanical energy) we can handle it by looking at the work done by the force or by using potential energy. In this case:
W = -ΔU
Friction is a good example of a non-conservative force. Friction acts to oppose motion, and for kinetic friction the force of friction is opposite to the displacement Δr. In that case:
W = -fk Δr