Space orthogonal to a space

Hi,
I was given an integral inner product and was asked to

Find the space othogonal to the space spanned by {x^3, x+1}.

We did an example where we plugged
<x+1, ax+b> into the inner product and got a basis for P2, but I'm kind of stuck for this one.