Graph the function and then integrate this piecewise defined function
g(t)={(t,0<=t<1),(sin\pi t,1<=t<=2):}