Hi,
Arbeite mit der Ableitung. Die spuckt das direkt aus.
f(x) = x^2-2x+5
f'(x) = 2x-2
f'(2) = 4-2 = 2 = m
Grüße