JAX turns differentiation into a function transformation: jax.grad(f) takes a scalar-valued function and returns a new function that computes .
Implement df_dx(x) that returns the derivative of
evaluated at the float x, computed with jax.grad (not by hand-coding ). Return it as a Python float.
Note: jax.grad requires the differentiated input to be a float — passing a Python int raises an error.