Find the slope of the tangent line at $x=3$ for $|2x-6|$
The alternative definition of derivative is $$f(c)=\lim_{x\to c}\frac{f(x)-f(c)}{x-c}$$
If I want to find the derivative at $3$. I would plug $3$ into $c$.
This results in: $$\lim_{x\to3}\frac{|2x-6|-0}{x-3}$$
This answer results in $0/0$ because it is a sharp turn.
I want to find the tangent slope of points around it to prove it is a sharp turn. I am going to find the tangent slope at $2.9$ and $3.1$. How come it works if I plug in $2.9$ and $3.1$ into $x$?
$$\frac{|2(2.9)-6|-0}{2.9-3}=-2$$ $$\frac{|2(3.1)-6|-0}{3.1-3}=2$$
I check desmos and both of the slope is correct. My question is why? The formula of the derivative is $$f(c)=\lim_{x\to c}\frac{f(x)-f(c)}{x-c}$$ To find the tangent slope, I should do $$f(2.9)=\lim_{x\to 2.9}\frac{f(x)-f(2.9)}{x-2.9}$$
$$f(2.9)=-.2$$ $$f(2.9)=\lim_{x\to 2.9}\frac{|2(x)-6|-.2}{x-2.9}$$ $$f(2.9)=\lim_{x\to 2.9}\frac{|2(2.9)-6|-.2}{2.9-2.9}=0$$
Why does the first way work, but not the second? Why does the second method answer indicate a sharp turn.
I was watching the youtube video. https://www.youtube.com/watch?v=rowIURKDnag&index=5&list=PLRWGJgOxXM4T2ZOuFMxtdKqiKra2_BLKY. I do not understand how she did the problem at time stamp 12:08.
Yes by the definition the derivative at that point is given by the limit
$$\lim_{x\to3}\frac{|2x-6|-0}{x-3}$$
but
$$\lim_{x\to3^+}\frac{|2x-6|-0}{x-3}=\lim_{x\to3^+}\frac{2(x-3)}{x-3}=2\neq \lim_{x\to3^-}\frac{|2x-6|-0}{x-3}=\lim_{x\to3^-}\frac{-2(x-3)}{x-3}=-2$$
and therefore the function is not differentiable at $x=3$ since the given limit doesn't exist at that point.