Let $0<a_1<a_2< . . . <a_n$ be real numbers .I need to show that the equation $$ \frac{a_1}{a_1-x} + \cdots +\frac{a_n}{a_n-x}=2015 $$ has exactly $n$ real roots.
Please tell me the steps, do I need to simplify the equation? It seems painful to me. Please dont solve the question

The function $$f(x)=\sum_{i=1}^n{a_i\over a_i-x}$$ is continuous except at the points $a_1,a_2,\dots,a_n.$ When $x$ is close to $a_i$ but smaller than $a_i, \ f(x)$ is very large ("goes to $\infty.$") When $x$ is close to $a_i$ but larger than $a_i$ then $f(x)$ goes to $-\infty.$ Now you need to examine the behavior of $f(x)$ when $x$ is greater than all the $a_i$ and when $x$ is smaller than all the $a_i$ and you can sketch the graph. Then just count the number of times it crosses the line $y=2015.$
If you have difficulty seeing how to do this for a general $n$, start by doing it for $n=3$ say.