The differential equation obtained by eliminating the arbitrary constants a and b in y=a cos(nx+b) is
yn=n2y
yn+y=0
yn+n2y=0
yn-y=0
y1=−n2 a cos(nx+b)=−n2y