Evaluate $$I=\int_\gamma\left(4e^{(y-4x+3)^2}-y\right)dx + \left(-e^{(y-4x+3)^2}+2x\right)dy,$$
where $\gamma$ is the curvepiece along the parabola $y=x^2$ from $(1,1)$ to $(3,9)$.
Setting $x=t$ and $y=t^2$ I get $dx=dt$ and $dy=2tdt$ so
$$I=\int_1^3 \left(4e^{(t^2-4t+3)^2}-t^2\right) + \left(-e^{(t^2-4t+3)^2}+2t\right)2t \ dt = \int_1^3\left((4-2t) e^{(t-1)^2(t-3)^2}+3t^2\right)dt.$$
The sad part is that I can't evaluate the integral by elementary methods. However, using wolframalpha I get the correct answer of $I=26$.
What is the trick to this?
The problem is simple if you are aware of the imaginary error function. $$I=\int\left(4e^{(y-4x+3)^2}-y\right)dx= -\frac{1}{2} \sqrt{\pi } \text{erfi}(y-4 x+3)-x y$$ $$J=\int \left(-e^{(y-4x+3)^2}+2x\right)dy=2 x y-\frac{1}{2} \sqrt{\pi } \text{erfi}(y-4 x+3)$$ $$I+J=x y-\sqrt{\pi } \text{erfi}(y-4 x+3)$$ Now $y=x^2$, use the bounds for $x$ and remember that $x^2-4x+3=(x-1)(x-3)$ which makes the $\text{erfi}(.)$ equal to $0$ at each boundary.