In homework I'm supposed to show that this function is monotonic, or if it's monotonic at all:
$$f(x)=x^{2}-2x-1$$
I did it like that but I'm not sure at all if it's the correct way to do, I need confirmation or my teacher is mad I did wrong please:
$$f'(x)=0$$
$$f'(x)=2x-2$$
$$0=2x-2|+2$$
$$2x=2|:2$$
$$x=1$$
Because $1>0$ the function is monotonic increasing?
Please say if it's correct I don't want teacher makes me bad in class and other laugh again... I need present tomorrow in class :(
For monotonicity (increasing at least) we need the derivative positive everywhere. This is not the case. You should test that when $x > 1$ (note the strict inequality here) the derivative is positive. When $x < 1$ the derivative is negative. So, $f$ is monotone on either $(1, \infty)$ or $(-\infty, 1)$.
You did it, just needed a little more. No worries, all shall be well.