Consider the charge profile shown in the figure. The resultant potential distribution is best described by
∇2V=∂2V∂x2=−ρv∈=K
Constant charge density
∂V∂x=−Kx+K′
V=−Kx22+K′x+K′′
Towards positive x or negative side. It is second order parabolic increase. Due to symmetry of + and - charges K′′ = 0 is expected with V = 0 at centre and graph passing through origin.
Beyond x > a or x < b, E = 0 due to capacitive nature of + and - charges.
V=−∫0⋅→dt=Constant
This constant is same at x = a or x =b.