The equation expressing conservation of energy is: KEi+PEi=KEf+PEf. If you know the potential energy for only some of the forces, then the conservation of energy law in its most general form must be used: KEi+PEi+Wnc+OEi=KEf+PEf+OEf, where OE stands for all other energies.