Calculate $\int_C(x^2+y^2)ds$ where $C$ is the segment $[AB]$, $A(a,a)$, $B(b,b), b > 0$. How could I parametrize this curve and can you also explain your thinking process while doing so?
UPDATE:
I tried using the parametrization $x = t, y =t$, $t\in [a,b]\implies \int_C(x^2+y^2)ds=\int_a^b2t^2dt=\frac 23 (b^3-a^3).$ But I'm not sure if it's correct what i did
It is not correct. We have the parametrisation $c(t)=(t,t)$, hence $c'(t)=(1,1)$, thus $||c'(t)||=\sqrt{2}.$
Therefore $\int_C(x^2+y^2)ds=\int_a^b2 \sqrt{2}t^2dt.$