Please see the function given in ex. 3.1
then see the code (part of it describe the function)
(marked in yellow mean 0.25x^2)
according to the following derivative
the code should be
# function f(x)
f = 0.5*x**2+3
f = (x**2)/2+3
f = (x/2)**2+3 which will result in
Is my small penny analysis here is correct?
If so, please correct the notebook.
If not, sorry for the trouble.