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
∫C f(x,y) ds =
Fill in the fields and click Calculate.
Step-by-step (Gauss nodes)
| # | t | x(t) | y(t) | f(x,y) | ds/dt | w·f·ds/dt |
|---|---|---|---|---|---|---|
| Total | ||||||
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
- Enter the integrand f(x,y) — any expression in x and y (e.g. x^2 + y, sqrt(x*y)).
- Enter the parametric equations x(t) and y(t) that define the path.
- Set the parameter interval [a, b] over which the curve is traced.
- The calculator maps 16 Gaussian quadrature nodes from [a, b], evaluates x(t), y(t), dx/dt, and dy/dt at each node.
- It computes ds/dt = sqrt((dx/dt)^2 + (dy/dt)^2) and multiplies by f(x(t), y(t)).
- 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