Having a hard time figuring out how to estimate the slope of a specific point on a line. Using the graph below, I'm trying to find the derivative of the function f(x) at x = -2, -1, 0, 1, 2, 3, 4, 5

The text book gave me the answers, I just can't seem to figure out how it is estimating the slopes besides pure guessing. These are the answers it gives:
I tried estimating the y-coordinates at the given x-coordinates then estimating another point near that point, but I don't seem to be getting a slope anywhere near what they have.
For example:
(-2, 0) and (-1.5, 1.5)
gives a slope of 3
I'm sure this is really simple, so if someone could please shed some light on this for me I would be much apprieciated.

The text book gave me the answers, I just can't seem to figure out how it is estimating the slopes besides pure guessing. These are the answers it gives:
| x | -2 | -1 | 0 | 1 | 2 | 3 | 4 | 5 |
| Derivative at x | 6 | 2 | -1 | -2 | -2 | -1 | 1 | 4 |
I tried estimating the y-coordinates at the given x-coordinates then estimating another point near that point, but I don't seem to be getting a slope anywhere near what they have.
For example:
(-2, 0) and (-1.5, 1.5)
gives a slope of 3
I'm sure this is really simple, so if someone could please shed some light on this for me I would be much apprieciated.