I found the transfer function for the spring mass damper system to be
$$G(s)=\frac{1}{ms^{2}+bs+k},$$
and now I need to find the gain of this transfer function. I know that the gain is $G=|G(j\omega)|$, but I'm not really sure how to go about finding the gain of a transfer function with a quadratic term in the denominator.

That makes sense because I just read something where if the numerator is unity, like it is, then you just some the squares of the real and imaginary parts of the denominator and square root them. I think it would work
–
Greg HarringtonMar 27 '12 at 5:36

Is there a way to find the phase of this transfer function as well?
–
Greg HarringtonMar 27 '12 at 5:47

@GregHarrington This is a transfer function that transforms one function into another, so I take it you mean the change in phase. Wikipedia calls it "phase shift" and gives $\phi(\omega) = \arg(Y) - \arg(X) = \arg( G(j \omega))$, which isn't surprising. Since we speak of a single frequency input, the transfer function is reduced to a single complex number that transforms $X$ into $Y$ (multiply). This complex number would be simply $G(j\omega)$.
–
Alan RomingerMar 27 '12 at 6:22

2

The phase is the inverse tangent of the imaginary part divided by the real part, or atan2(imaginary part, real part).
–
nibotMar 27 '12 at 11:50

By following the rules of arithmetic for complex numbers, you can evaluate the magnitude and phase of any rational transfer function. For a quick introduction to the arithmetic of complex numbers, the wikipedia article is decent: