Since derivatives lower the degree of polynomials, if you want the second derivative to be zero you have to choose first-degree polynomials.
So, you have

Two polynomials are linearly independent if they are not multiples of each other. So, for example, you might choose
and
to find two linearly independent solutions.
As for

we want a second-degree polynomial with leading coefficient 1/2 so that we will get 1 when deriving it twice:

If we impose the conditions

we have

So, our solution will be in this form:

To fix
, we use the second condition:

So, we have fixed
and the solutions is
