I'm not terribly great with these types of functions... But I got:
I think I recognize the graph as a sawtooth wave... But I don't know how to formulate one...
What you have done is correct. All you must do now is integrate them to find the Fourier coefficients, and since your function is piecewise, you must split the integral into 2 integrals for each interval.