keep two versions of exp/log
debug
not working yet
fix
half-way through
plot both trajectories after optimization ends