Have I understood correctly that the slope could be found either by finding the output of the derivative for that specific value or by using the 2 point difference formula?
I just came across a function these days and got different results for the same value.
Say f(x)=x²-4x
Thus f(-1)=5 and f(0)=0 and so on.
the derivative would be f'(x)=2x-4
so between x=0 and x=-1 the slope would be y2 - y1 / x2 - x1
namely 0-5/0-(-1) = -5/1=-5
However using the derivative f'(-1) would return -6
Why do I get different results? Wouldn't it be normal to add the value of the derivative f'(x)=-6 to the value of the function namely f(-1)=5 and get the value that the function returns for the next unit, that is f(0)=0. I mean 5 + (-6) = -1. It's pretty close bot not sharp 0. Why?
I just came across a function these days and got different results for the same value.
Say f(x)=x²-4x
Thus f(-1)=5 and f(0)=0 and so on.
the derivative would be f'(x)=2x-4
so between x=0 and x=-1 the slope would be y2 - y1 / x2 - x1
namely 0-5/0-(-1) = -5/1=-5
However using the derivative f'(-1) would return -6
Why do I get different results? Wouldn't it be normal to add the value of the derivative f'(x)=-6 to the value of the function namely f(-1)=5 and get the value that the function returns for the next unit, that is f(0)=0. I mean 5 + (-6) = -1. It's pretty close bot not sharp 0. Why?