According to my textbook, the reason sinusoids are orthogonal is because the integrated product of them proves to be exactly zero, unless both sinusoids are equal:
My issue is that if you input two different sinusoids into Wolfram Alpha as according to said explanation, it turns out that it isn't zero: $$\int_0^l\sin(ax)\sin(bx)\text{d}x=\frac{b\sin(al)\cos(bl)-a\cos(al)\sin(bl)}{a^2-b^2}.$$ So, am I missing something silly, or is my textbook wrong?