Question: How to extract symbolic coefficient?

Hi dear Maple masters:

Excuse-me. I have a stupid question to ask: how to extract symbolic coefficient in maple? For example, I would like to get the coefficient before sin(Ωt) and cos(Ωt) in the following equation:

eq := (-Omega^2*a*A[2]-Omega^2*m*B[1]+Omega*A[1]*c[1]+B[1]*k[1])*cos(Omega*t)+(Omega^2*a*B[2]-Omega^2*m*A[1]-Omega*B[1]*c[1]+A[1]*k[1])*sin(Omega*t) = 0;

Thank you in adavance for taking a look, wish you a nice day!

Best regards,

Zihan

Please Wait...