As Nasser mentioned, you can use Expand
to fully expand your algebraic expression. If you want to know specifically the coefficients of powers of s
then you can use CoefficientList
as in the following:
In[1]:= CoefficientList[(4 + 2 s + s^2) (10 + 9 s + s^4), s]
Out[1]= {40, 56, 28, 9, 4, 2, 1}
If you just want the coefficient of a particular power of s
then use Coefficient
as in this:
In[2]:= Coefficient[(4 + 2 s + s^2) (10 + 9 s + s^4), s, 3]
Out[2]= 9
All of this assumes that you are working with polynomials rather than more complicated expressions...