I need help to find the limits of these two functions : $$\lim_{x\to a}\frac{x^n-a^n}{x^p-a^p}$$ where $n,p$ are integers.
And : $$\lim_{x\to a}{\frac{x\sin(a)-a\sin(x)}{x-a\log_a(x)}}$$ where $a>0$ and $a\notin{{1,e}}$
I can't use L'Hospital rule, any help would be very appreciated !
The first one simply obtain by L"Hospital rule: $$\lim_{x\to a}\dfrac{x^n-a^n}{x^p-a^p}=\lim_{x\to a}\dfrac{nx^{n-1}}{px^{p-1}}=\dfrac{n}{p}a^{n-p}$$
Edit: By identity $$\lim_{x\to a}\dfrac{x^n-a^n}{x^p-a^p}=\lim_{x\to a}\dfrac{(x-a)(x^{n-1}+ax^{n-2}+a^2x^{n-3}+\cdots+a^{n-2}x+a^{n-1}}{(x-a)(x^{p-1}+ax^{p-2}+a^2x^{p-3}+\cdots+a^{p-2}x+a^{p-1}}=\dfrac{n}{p}a^{n-p}$$