Law of Conservation of Energy in Higher Dimensions