Magnetostatic energy

Problem:

A permanent magnet has circular pole pieces of radius a separated by an arbitrary distance.  The magnetic field B is uniform between the pole pieces.  Calculate the force between the pole pieces in terms of B and a.

Solution:

Problem:

A solenoid is designed to store UL = 0.10 J of energy when it carries a current of I = 450 mA. 
The solenoid has a cross-sectional area of A = 5.0 cm2 and a length l = 0.20m. 
How many turns of wire must the solenoid have?

Solution:

Problem:

A spiral spring has N turns and initial length x0.  How does its length changes if a small current I is made to flow through it?  Assume that the spring has a spring constant k for longitudinal deformations, that it can be treated as a perfect ("infinitely long") solenoid, and that its radius R remains fixed.

image

Solution: