The surface charge on the cylinder is
Here, is the permittivity of free space.
Substitute in the above equation from equations (1) and (2)
Compare both sides to get
Put these back in equations (1) and (2) to get
Also, the potential has to be continuous at the surface, that is,
Compare the two sides and get
Both of these can be chosen to be zero
From equations (3) and (4),
Thus, the potential is
.