We show that conformal invariance of gauge fields is naturally broken in in
flation, having as a consequence amplification of gauge fields. The resulti
ng spectrum of the field strength is approximately B-l alpha l(-1), where l
is the relevant coherence scale. One realisation of our scenario is scalar
electrodynamics with a scalar whose mass is large enough to evade observat
ional constraints - the obvious candidates being supersymmetric partners of
the standard-model fermions. Our mechanism also leads naturally to amplifi
cation of the standard-model Z-boson field due to its coupling to the elect
roweak Higgs field. At preheating, the spectrum of the Z field is transferr
ed to the hypercharge field, which remains frozen in the plasma and is conv
erted into a magnetic field at the electroweak phase transition. With a rea
sonable model of field evolution one obtains a magnetic field strength of t
he order of 10(-29) Gauss on a scale of 100 pc, the size of the largest tur
bulent eddy in a virialised galaxy. Resonant amplification in preheating ca
n lead to primordial fields as large as 10(-24) Gauss, consistent with the
seed field required for the galactic dynamo mechanism. (C) 2001 Published b
y Elsevier Science B.V.