Solve path integrals with clear inputs and outputs. Supports segments, circles, and custom parameterizations too. Download CSV or PDF to keep your work organized.
A line integral depends on both a field and a path. The calculator supports two common forms:
For 2D, set z = 0 and the calculator uses only (x,y).
| Case | Field | Path | Interval | Expected value (approx.) |
|---|---|---|---|---|
| Scalar | f(x,y)=x+y | Segment (0,0)→(1,1) | t: 0→1 | sqrt(2) ≈ 1.41421356 |
| Vector | F=(y, x) | Segment (0,0)→(1,1) | t: 0→1 | 1.0 |
| Scalar | f(x,y)=1 | Circle center (0,0), r=2 | theta: 0→2*pi | 4*pi ≈ 12.5663706 |
This tool evaluates line integrals for scalar fields (∫C f ds) and vector fields (∫C F·dr). You define a curve and a field, and the calculator returns a single numeric value for the chosen path and interval. For vector fields, it integrates Fx·dx/dt + Fy·dy/dt + Fz·dz/dt along the parameter.
You can enter a custom parametric curve r(t) with x(t), y(t), and optional z(t). For quick setup, choose a straight segment between two points or a 2D circle with center and radius. Circle uses an angle interval in radians, so 0 to 2*pi traces a full revolution.
The integral is approximated with Simpson’s rule, which converges fast for smooth integrands. With step size h, error often decreases on the order of h⁴. The curve derivative r′(t) is estimated numerically using a small dt about h/10, with forward or backward differences near endpoints.
Practical ranges are 200–2000 steps for most classroom examples, and 2000–8000 for sharper behavior. Steps are forced even (a Simpson requirement). Very large steps can slow down evaluation because expressions are computed at many sample points. If you suspect cancellation, compare runs at 400, 800, and 1600 steps and check that digits stabilize.
Expressions may use variables x, y, z, t, constants pi and e, and functions like sin, cos, sqrt, abs, exp, and log. Power can be written as x^2 or x**2. Unknown identifiers are blocked to avoid unsafe evaluation, and multiplication should be explicit, like 2*pi.
The example table helps validate settings. For instance, f=1 around a circle of radius 2 should return circumference 4π ≈ 12.566. For a segment from (0,0) to (1,1) with f=x+y, the result is √2 ≈ 1.414. For a vector field F=(y,x) on the same segment, the value is 1.
After calculation, export a CSV summary for spreadsheets or a simple PDF report for sharing. Exports include integral type, dimension, curve choice, interval, steps, formula form, and the computed result, so you can reproduce and audit your work later. This is useful for notebooks, homework submissions, and comparison between paths.
∫C f ds scales a scalar field by arc length, so speed |r′(t)| matters. ∫C F·dr projects a vector field onto the direction of motion using the dot product with r′(t).
Simpson’s rule works on pairs of subintervals and uses alternating weights (4 and 2). An even step count ensures the interval splits into an even number of subintervals, matching the method’s formula.
Increase steps if your result changes noticeably when recalculating, or if the curve has sharp turns, high frequency trig terms, or steep exponentials. More steps sample the integrand more densely and usually improve stability.
Yes. Select 3D and provide z(t) for the curve. For scalar integrals, z is included in f(x,y,z). For vector integrals, the Fz component and dz/dt contribute to F·r′.
Use theta_min and theta_max in radians. For a full circle, set 0 to 2*pi. For a quarter circle, use 0 to pi/2. These values override the general a and b inputs.
The parser only allows a limited set of variables and math functions. Remove extra letters, unsupported symbols, or custom function names. If you need a constant, use pi or e, and write multiplication explicitly, like 2*pi.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.