forward euler and backward euler implemented for an specific problem.