Hi

Function `plot_f1_and_f2`

seem to produce a wrong plot. The blue `f'(x)`

line supposed to be a little lower and just touch the red line, not cross it.

Hi

Function `plot_f1_and_f2`

seem to produce a wrong plot. The blue `f'(x)`

line supposed to be a little lower and just touch the red line, not cross it.

The blue line is not meant to be a tangent line, but instead be a plot of the derivative of the red plot. More concretely, the blue plot indicates what the slope of the red plot is at the exact moment on the horizontal axis.

For instance, the blue plot passes through (0,0) which means that when x is zero, the slope of the red plot is zero. The blue plot also passes through (1,2) which means that when x is 1, the slope of the red plot is 2.

1 Like