wn+2+fnwn+1+gnwn=0,