# Evaluate line integral

1. Feb 4, 2012

### sharks

The problem statement, all variables and given/known data

The attempt at a solution

$x=t^2-1$ and $y=t^2+1$

$\frac{dx}{dt}=2t$ and $\frac{dy}{dt}=2t$

The line integral is of the form: $\int P\,.dx+Q\,.dy$

So, i use direct substitution:
$$\int^1_0 4t^3-2t\sin(t^2-1)+2t\cos(t^2+1)\,.dt$$
Is my method correct? I can't integrate any further, as i tried integration by parts for $t\sin(t^2-1)$and got stuck.

2. May 14, 2012

### sharks

I figured it out a while back. The integration gives:
$$\left[ t^4 +\cos (t^2-1)+\sin (t^2+1) \right]^{t=1}_{t=0}$$
And the answer is: 1.528 (correct to 3 d.p.)

However, i am curious to know why the need for parametrization?
I know it's normally used to simply the integration process, for example, the preference of using polar coordinates when integrating over a circular region, rather than Cartesian coordinates. But in this case, i've tried to work it out differently, to see if i could get the answer by omitting $t$ in the integrand.

When t varies from 0→1, x varies from -1→0 and y varies from 1→2
Then, integrating the original integrand directly, i get:
$$\left[xy+\cos x\right]^{x=0}_{x=-1}+\left[ x+ \sin 2 -\sin 1 \right]^{y=2}_{y=1}$$
And the answer that i get: $$1+y-\cos 1+x+\sin 2-\sin 1$$
It's clear that this method doesn't give me a numerical answer, but i can't understand why not, as i used the values of $t$ to derive the limits for both x and y. Is there a way to get the final answer without using $t$ in the integrand? I can't quite understand the concept of parametrization, as i thought it was just a means to make reaching the solution easier/faster, but not the only way to solve/evaluate the integral.

Last edited: May 14, 2012
3. May 14, 2012

### clamtrox

The first integrand is y(x) -sin (x). What is y(x) on the curve?

4. May 14, 2012

### sharks

I'm not sure what you mean.
$$y(t)=t^2+1$$
y varies from 1→2

5. May 14, 2012

### LCKurtz

If you are going to evaluate the integral as written as a dx and dy, you have to have the integrand in terms of the x or y variables accordingly. This means on the dx integral you need to express y in terms of x (which depends on the path) and on the dy integral you need to express x in terms of y, which again depends on the path. Line integrals like this may not be independent of the path you use, but they are independent of the parameterization of the path. You could eliminate the parameter t and get a y-x equation for the path and work the dx and dy integrals as I indicated above. Should get the same answer.

6. May 14, 2012

### sharks

From $x=t^2-1$ and $y=t^2+1$, $y=x+2$
The original line integral becomes:
$$\int_C ((x+2)-\sin x)dx+((y-2)+\cos y)dy=\int^{0}_{-1} (x+2-\sin x)dx+ \int^2_1(y-2+\cos y)dy$$ But the answer is: -2.472 (correct to 3 d.p.), which is different!

7. May 14, 2012

### vela

Staff Emeritus
You made a mistake somewhere evaluating the integrals. Mathematica gives 1.52752.

8. May 14, 2012

### LCKurtz

That integral is set up correctly and evaluates to 1.527524136 just like the other one.

9. May 14, 2012

### sharks

You are right.

Thanks for the help.

10. May 15, 2012

### clamtrox

Notice also that there is nothing stopping you from getting rid of this silly parametrization by choosing t^2 = s, and doing the calculation as usual