The determination of a parabolic equation from initial and final data