I don't have my book with me right now to check the wording, but if
the ends are said to be insulated then they should be assumed
insulated at all times. (It would be a horribly more complicated
problem if we changed the boundary conditions after some time!)
The function 2x is odd when the domain is all real numbers x, but here
I believe you are given this function only for 0<x<L. So you have the
freedom to extend it to be even on -L<x<L. Hence you need to find the
cosine series of the function 2x.