We know that
\begin{equation} X=m_0\int_{\sigma} \frac{f(P)\cos{\alpha}}{r^2} ds, \hspace{1cm} Y=m_0\int_{\sigma} \frac{f(P)\sin{\alpha}}{r^2} ds; \end{equation}
where $r$ is the length of the vector $r=\overline{P_0P}$, and $\alpha$ - the angle that this vector makes with the $x$ axis.
We want to find the attraction of an infinite homogeneous line ($f=1$) of a unit mass ($m_0=1$) located at a distance $h$ from the line.
Let us establish that the $x$ axis is a given line, and we run the $y$ axis through a point located at a distance $h$ from the line.
$$Y=\int\frac{\sin{\alpha}}{r^2} ds = -h\int\limits_{-\infty}^\infty\frac{dx}{(x^2+h^2)^{\frac{3}{2}}}$$.
How to get to the last equality? Where did the minus come from?