To explain the electrostatic force between the two charges, we assume that the charges create an electric field around them. The magnitude of electric field E set up by the electric charge q at a distance r is given as,
The line charge density is equal to the electric charge per unit length.
We use the formula of the electric field outside the cylinder. Using the line charge density formula, we modify the electric field. And finally putting this value in energy density and integrating it we the required result.
Formulae:
The energy density of a capacitor plate, ...(i)
Here, u is the energy density, is the permittivity of the free space, and E is electric field.
The electric field due to a line charge, ...(ii)
Here, is line charge density, is the distance from the line charge, and is the permittivity of the free space.
The line charge density of a distribution, ...(iii)
Here, is line charge density, is the electric charge, is the length.
The energy stored within the plates, ...(iv)
is the energy stored, u is the energy density,dv is a very small volume.