Add a one dimentional cubic funtion to test the analytical Jacobian