Line Integral Calculator screenshot

Line Integral Calculator

Integrate a scalar field along a parametric plane curve as ∫ f(x(t), y(t)) |r′(t)| dt, with the speed printed.

Privacy First
0 Runs
Updated 2026-11-22
Runs in your browser
No sign-up, no upload
Parameterisation shown

Line Integral Calculator

Integrate a scalar field along a parametric plane curve as ∫ f(x(t), y(t)) |r′(t)| dt, with the speed printed.

How this page computes

A scalar line integral adds up f along a curve, weighting each step by its length. The page takes a path (x(t), y(t)), differentiates it symbolically, and integrates f(x(t), y(t))·|r′(t)| from t0 to t1.

On the quarter unit circle with f = x, the integral is ∫ cos t dt from 0 to π/2, which is 1. The page prints the path, the speed formula and the interval count so the substitution can be checked.

The path must be parameterised by t, and the field by x and y. A name outside those is refused by name, because the substitution would otherwise leave a free variable in the integrand.

The calculation runs entirely in this browser tab; nothing is uploaded.

The page integrates a scalar field along a curve you write as (x(t), y(t)). For f = x along the quarter unit circle the value is 1, because the integral reduces to ∫ cos t dt over [0, π/2].

The speed factor |r′(t)| is what turns a parameter step into an arc-length step. The page differentiates the path symbolically and prints the speed formula, so a path that is not unit speed cannot silently change the answer.

How to use Line Integral Calculator

Type f(x, y), then the two path expressions x(t) and y(t), then the parameter interval.

Press Run. The page differentiates the path, prints |r′(t)|, and integrates the product with adaptive Simpson.

To integrate over a different curve, change x(t) and y(t); the field can stay the same, which makes two paths easy to compare.

How the method works

Along a parameterised curve, a small change dt moves the point by r′(t) dt, whose length is |r′(t)| dt. The integral of f with respect to arc length is therefore the integral of f(x(t), y(t))|r′(t)| with respect to t.

Differentiating the path symbolically avoids a finite-difference speed with an unstated step. The page prints the derivative it used, so the substitution is checkable rather than asserted.

What to Expect

Best for

  • A scalar line integral along a plane curve
  • Checking a parameterisation and its speed
  • Comparing the same field along two paths

Not ideal for

  • A vector field's work integral, which dots with the tangent rather than multiplying by speed
  • A curve that cannot be parameterised in t
  • A field that uses a third variable

What this tool keeps

  • The field and both path expressions exactly as typed

What may need cleanup

  • Nothing: the value is the final answer

Common errors

  • A path using a variable other than t is refused by name
  • A field using z is refused with the reason
  • An interval with equal ends is refused

Example use cases

  • Integrate x along the quarter unit circle
  • Integrate 1 along a segment to get its length
  • Compare a field along a line and an arc

Sample input

f(x, y) = x, path (cos t, sin t), t from 0 to π/2

Sample output

value = 1, with |r′(t)| = sqrt((-sin(t))^2 + (cos(t))^2)

Who this is for

  • Students meeting line integrals
  • Readers checking a parameterisation

Frequently asked questions

What is the speed factor for?

It converts a step in the parameter into a step in arc length. On the unit circle the speed is 1, so the two agree; on a curve traced twice as fast the parameter interval halves but the speed doubles, and the integral is unchanged.

Is this the same as the work done by a force?

No. Work uses the tangential component of a vector field, ∫ P dx + Q dy. This page integrates a scalar field with respect to arc length, which is the mass-of-a-wire or average-value integral.

Can the path be a straight line?

Yes. Set x(t) = t and y(t) = 0 over [0, 1] and the integral becomes an ordinary one in x along the segment.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.