Fixed problem with differentiation.

Right hand boundary needed opposite values, they were not.