kill(all)$

van=facebook.com/LearningCalculus$

f(p,q,r,x):=p*cos(x)+q*cos(2*x)+r*cos(3*x)+q=0;

f(0,0,0,x);