One example of autograd where second order derivative is computed?

example of using autograd for computing second order derivative, along with what one would have to do if autograd was not used.