Given a cylindrical wire of radius r, length L, carrying a current I, find the total energy stored inside the wire.
From griffiths,
uem= εE2/2 +B2/2μ
and the tot energy is
∫uem dV
I have my E and B fields, but my B field is a function of x where x<r, (E is uniform)
B=kx/r2...