C2W1 Lab 1: wrong plot in the first section

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.

image

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