given $$f(x)=\sqrt{x}, p = (4,2)$$
The formula for the slope is $$\frac{f(x-h)-f(x)}{h}$$
Which gives me $$\frac{\sqrt{4-h}-\sqrt{4}}{h}$$ which gives me $$\frac{\sqrt{4-h}-2}{h}$$
I know m = 1/4 but I'm not sure how to get there from my last step. Once I know the slope the rest is not difficult.
From the slope formula, you should actually have $\displaystyle \frac{\sqrt{4+h}-2}{h}$.
Now, let's make $h$ super small, and this value should approach the slope of the tangent line.
We have $\displaystyle \frac{\sqrt{4+h}-2}{h} = \frac{\sqrt{4+h}-2}{h} \cdot \frac{\sqrt{4+h}+2}{\sqrt{4+h}+2}=\frac{(4+h)-2^2}{h(\sqrt{4+h}+2)}=\frac{h}{h(\sqrt{4+h}+2)}$.
Now, this is equal to $\displaystyle \frac{1}{\sqrt{4+h}+2} $. We see that as $h$ grows small, the slope should approach $\displaystyle \frac{1}{\sqrt{4}+2}=\frac{1}{4}.$