Good morning everyone, I am a new user here and I have the following problem that I am dealing with since yesterday but I cannot find the correct answer. Here is the problem
Calculate $$\oint_C (x^2-2xy)dx+(x^2y+3)dy$$ where $C$ is the closed curve of the region bounded by $y^2=8x$ and $x=2$.
Okay, using Green’s theorem, I got $$\oint_C (x^2-2xy)dx+(x^2y+3)dy=\int_{-4}^4\int_{y^2/8}^{2}(2xy+2x)dxdy=\frac{128}{5}$$ but without using the theorem, I got
The the region bounded by $y^2=8x$ and $x=2$ intersect at $(2,-4)$ and $(2,4)$, hence
The line integral along $x=2$ equals $$\int_{x=2}^{2}(x^2-2xy)dx+(x^2y+3)dy=0\tag{*}$$ and the line integral along $y^2=8x$ equals $$\begin{align}\int_{y=4}^{-4}\left(\left(\frac{y^2}{8}\right)^2-2\left(\frac{y^2}{8}\right)y\right)d\left(\frac{y^2}{8}\right)+\left(\left(\frac{y^2}{8}\right)^2y+3\right)dy&=\int_{y=4}^{-4}\left(\frac{5y^5}{256}-\frac{y^4}{16}+3\right)dy\\&=\frac{8}{5}\end{align}$$ So, where is my mistake? Could someone here help me out? Thanks for your comments and answers, appreciate it.
The miscalculation is marked by (*). To calculate the integral on the segment $x=2$ you need to parameterize the segment, for example, as $r(t)=(x(t),y(t))=(2,t)$, $t\colon -4\to 4$, so $dx=0$, $dy=dt$ and the line integral becomes $$ \int_{-4}^4(4t+3)\,dt=24. $$ It is only the "projection on $x$"-part of the integral is zero.
P.S. Do not forget to mention (to think of) the orientation when dealing with line/surface integrals.