Line Integral Calculator

Enter f(x,y), parametric equations x(t) and y(t), and the t-interval to compute the line integral numerically with a step-by-step breakdown.

Integral Setup

Operators: + − * / ^  |  sin, cos, tan, sqrt, exp, log, abs, PI

Quick examples

Result

Fill in the fields and click Calculate.
Copied!

Summary

Enter f(x,y), parametric equations x(t) and y(t), and the t-interval to compute the line integral numerically with a step-by-step breakdown.

How it works

  1. Enter the integrand f(x,y) — any expression in x and y (e.g. x^2 + y, sqrt(x*y)).
  2. Enter the parametric equations x(t) and y(t) that define the path.
  3. Set the parameter interval [a, b] over which the curve is traced.
  4. The calculator maps 16 Gaussian quadrature nodes from [a, b], evaluates x(t), y(t), dx/dt, and dy/dt at each node.
  5. It computes ds/dt = sqrt((dx/dt)^2 + (dy/dt)^2) and multiplies by f(x(t), y(t)).
  6. The weighted sum of those products gives the line integral ∫_C f(x,y) ds.

Use cases

  • Calculate the mass of a wire with variable density along a curved path.
  • Find arc length by setting f(x,y) = 1 and checking the result.
  • Verify hand-computed line integrals on homework or exam problems.
  • Explore how the path shape affects the value of a path-dependent integral.
  • Compute work done by a conservative scalar field along a curve.
  • Test parametric curve representations before doing symbolic integration.

Frequently Asked Questions

Last updated: 2026-07-23 · Reviewed by Nham Vu