Add a one dimentional linear funtion to test the analytical Jacobian