I have a question about infinite cylidner. I wanted to calculate a gravitational potential that it creates, but I've stumbled across some difficulties.
From Gauss's Law we know, that force on an object with mass m at distance x due to infinte cylinder with density d and radius R equals:
$$F = \frac{2G\pi R^{2}md}{x}$$
So pluging this into equation for work yields:
$$W = \int_{R}^{\infty} F(x)\cdot \text dx= -2G\pi R^{2}md\int_{R}^{\infty}\frac{1}{x}\,\text dx= -2G\pi R^{2}md \Big(\ln(\infty) - \ln(R)\Big) $$
However, $ln(\infty)=\infty$ and that leaves me a little confused. Any help would be appreciated.