Loading…

Line Integral Preview

Math Calculus • Differential Equations

View all topics

Compute scalar line integrals \(\int_C f\,ds\) and vector line integrals \(\int_C \mathbf F\cdot d\mathbf r\). Enter a parametric path, choose scalar or vector mode, and inspect the path, direction, field arrows, tangent vector, and animated moving point.

Scalar line integral \(\displaystyle \int_C f\,ds=\int_a^b f(\mathbf r(t))\|\mathbf r'(t)\|\,dt\) Vector line integral \(\displaystyle \int_C\mathbf F\cdot d\mathbf r=\int_a^b \mathbf F(\mathbf r(t))\cdot\mathbf r'(t)\,dt\) Work interpretation \(\displaystyle W=\int_C\mathbf F\cdot d\mathbf r\) Sample \(\displaystyle \mathbf F=\langle y,-x\rangle,\quad \mathbf r(t)=\langle\cos t,\sin t\rangle\)

Line integral setup

Simpson rule uses an even number of panels.
Live preview

Quick examples

Ready
Enter a field and a parametric path, then click “Compute line integral”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is a scalar line integral?

A scalar line integral accumulates a scalar field along a curve. In parametric form it is integral_a^b f(r(t))||r'(t)|| dt.

What is a vector line integral?

A vector line integral accumulates the tangential component of a vector field along a curve. In parametric form it is integral_a^b F(r(t)) dot r'(t) dt.

Why is the vector line integral interpreted as work?

If F is a force field, then F dot dr measures force in the direction of motion, so the integral gives total work along the path.

Does reversing the path change the answer?

For vector line integrals, reversing the orientation changes the sign. For scalar line integrals, reversing the path does not change the value.

Why is ||r'(t)|| used in scalar mode?

The factor ||r'(t)|| converts dt into arc length ds along the curve.

Why does F dot r'(t) appear in vector mode?

The dot product selects the component of the vector field in the direction of motion along the curve.

What numerical method should I use?

Composite Simpson rule is usually a good default for smooth functions. Trapezoid and midpoint rules are also available for comparison.