am(x,1)=gd(x).