We have the function $f(x)=\frac{(x-2)\ln(x-1)}{1-\cos(x-2)}$ and I'm supposed to check if I can set a value for $f(2)$ such that $f$ is continuous. So I'm trying to calculate the limit of $f$ as $x$ approaches $2$.
What I've done so far is the following $$\begin{align} \frac{(x-2)\ln(x-1)}{1-\cos(x-2)}=&\frac{(x-2)\ln(x-1)(1+\cos(x-2))}{(1-\cos(x-2))(1+\cos(x-2))}\\=&\frac{(x-2)\ln(x-1)(1+\cos(x-2))}{\sin^2(x-2)}\\=&\frac{(x-2)\ln(x-1)(1+\cos(x-2))(x-2)^2}{\sin^2(x-2)(x-2)^2}\\=&\frac{(x-2)\ln\frac{1}{1-x}(1+\cos(x-2))}{(x-2)(2-x)}\frac{2-x}{\sin(2-x)}\frac{2-x}{\sin(2-x)}\end{align}$$
Let $v=x-2$. Then the limit we are trying to find is $$\lim_{v\rightarrow0}\frac{v\ln(1+v)}{1-\cos(v)}$$Multiply by $1+\cos(v)$ top and bottom: $$\lim_{v\rightarrow0}\frac{v\ln(1+v)+v\cos(v)\ln(1+v)}{\sin^2v}$$Because $\cos(v)$ approaches $1$ as $v$ approaches $0$, We could write the limit as $$2\lim_{v\rightarrow0}\frac{v\ln(1+v)}{\sin^2v}=2\lim_{v\rightarrow0}\frac{\ln(1+v)}{\sin v}$$ Substituting the series expansion of $\ln(1+v)$ when $|v|\le1$ and using that $$\lim_{v\rightarrow0}\frac v{\sin v}=1$$for each of the terms gives the answer.
Edit: Thanks to Ryszard Szwarc's comment, we could proceed as follows: $$\lim_{v\rightarrow0}\frac{\ln(1+v)}{\sin v}=\lim_{v\rightarrow0}\frac{\ln(1+v)}v\frac v{\sin v}=\lim_{v\rightarrow0}\frac{\ln(1+v)}v =\lim_{v\rightarrow0}\frac{\ln(1+v)-\ln(1)}v$$By the definition of the derivative: $$\lim_{v\rightarrow0}\frac{\ln(1+v)-\ln(1)}v=\frac d{dx}\ln(1+x)\bigg|_0=1$$