Integrate $f(x,y) = x+y$ along the triangle with the vertices $(0,0),(1,0),(0,1)$
I have set $\gamma_{trinagle}=\gamma_1+\gamma_2+\gamma_3$ where:
$$\gamma_1(t)=(t,0), t\in[0,1]$$ $$\gamma_2(t)=(1-t,t), t\in[0,1]$$ $$\gamma_3(t)=(0,t), t\in[1,0]$$
so $$\int_{\gamma}f(x,y)ds=\int_{\gamma_1}f(x,y)ds+\int_{\gamma_2}f(x,y)ds+\int_{\gamma_3}f(x,y)ds=$$
$$=\int_{0}^{1}tdt+\int_{0}^{1}(1-t+t)\sqrt{2}dt-\int_{0}^{1}tdt=\frac{1}{2}+\sqrt{2}-\frac{1}{2}=\sqrt{2}$$
But the answer in the book is $\sqrt{2}+1$ where did I get it wrong?
$\gamma_3$ goes from $(0,0)$ to $(0,1)$, you need one from $(0,1)$ to $(0,0)$.