Hamiltonian mechanics
This happens frequently in Hamiltonian mechanics, with "T" being the kinetic energy and "V" the potential energy.