Not sure what this is called, but basically trying to derive the actual derivative of the function

I would need to find which I got to as and then plugging it into the slope formula. This is where I'm getting confused.

What I did:

Is that correct? I know the derivative is but I'm a little confused on getting to it on this question. Thanks!