w(z)=Aw1(z)+Bw2(z)+p(z),