line integral example

Line Integral Example: Step-by-Step Guide with Solved Problems

By Kevin Wilson
AD

A line integral example is one of the fastest ways to see how calculus handles motion, force, and density along a curved path rather than on a flat interval. Instead of slicing an x-axis into tiny pieces, you slice a curve into tiny arc elements and add up a function or a vector field along that curve. This idea appears in physics, engineering, and advanced mathematics, from calculating the mass of a wire to finding the work done by a variable force.

The key to almost every line integral is parameterization. You describe the curve C by a vector function r(t), then rewrite the integrand in terms of t. Scalar line integrals use ds, the tiny arc length; vector line integrals use dr, the tiny displacement vector. Once the curve is parameterized, the problem becomes a single-variable integral from t=a to t=b.

Scalar Line Integrals: A Concrete Line Integral Example

A scalar line integral has the form ∫_C f(x,y) ds. It adds up the values of f along the curve, weighted by arc length. If f is a density, the integral gives total mass; if f is constantly 1, the integral gives the arc length of C. The ds factor is what makes the integral sensitive to the geometry of the path.

AD
Calculus 3: Line Integrals (1 of 44) What is a Line Integral?
Calculus 3: Line Integrals (1 of 44) What is a Line Integral?
a graph that shows the slope at different heights
a graph that shows the slope at different heights
the slope is shown with an x and y on it, as well as two other axes
the slope is shown with an x and y on it, as well as two other axes

To evaluate one, parameterize C as r(t)=x(t)i+y(t)j for a≤t≤b. Then ds = ||r'(t)|| dt. Substitute x=x(t) and y=y(t) into f, and integrate f(r(t)) ||r'(t)|| from a to b. Orientation does not change a scalar line integral, because ds is always positive.

Example: Mass of a Wire Along a Line Segment

Let C be the straight line segment from (0,0) to (2,1), and let the density of a wire be f(x,y)=x+y. A natural parameterization is r(t)=(2t,t), where 0≤t≤1. Then r'(t)=(2,1), so ||r'(t)||=√(2^2+1^2)=√5. Along the curve, f(x,y)=2t+t=3t.

List of Calculus and Analysis Symbols | Math Vault
List of Calculus and Analysis Symbols | Math Vault
「数学の概念」を視覚的かつ美しく表現したグラフィックいろいろ
「数学の概念」を視覚的かつ美しく表現したグラフィックいろいろ
interpterion of integral
interpterion of integral

The scalar line integral is ∫_0^1 3t√5 dt = 3√5 ∫_0^1 t dt = 3√5/2. If the density were constant 1, the same setup would give √5, which is exactly the length of the segment from (0,0) to (2,1). Reversing the orientation, say from (2,1) to (0,0), would still produce 3√5/2 for this scalar integral.

Example: Scalar Line Integral Around a Circle

Consider the unit circle C in the first quadrant, parameterized by r(t)=(cos t, sin t) for 0≤t≤π/2. Let f(x,y)=x^2+y^2. Since the curve lies on the unit circle, x^2+y^2=1 at every point. Also, r'(t)=(-sin t, cos t), so ||r'(t)||=√(sin^2 t+cos^2 t)=1.

AD

The integral becomes ∫_0^{π/2} 1 dt = π/2. For a full unit circle, the same integrand would give 2π. If f(x,y)=x^2 over the full circle, then the integral is ∫_0^{2π} cos^2 t dt = π, using the identity cos^2 t=(1+cos 2t)/2. This example shows how trigonometric parameterizations simplify circular line integrals.

an electric field is shown with the number 1 and 2 at one end, as well as
an electric field is shown with the number 1 and 2 at one end, as well as
a graph with the slope and y intercept on it
a graph with the slope and y intercept on it
How is the derivative geometrically inverse of integral?
How is the derivative geometrically inverse of integral?
a diagram showing the function of an inequarator and its functions, including
a diagram showing the function of an inequarator and its functions, including
2.7K reactions · 353 shares | A creative solution to the integral of ln(x) from 0 to 1. #math #calculus #integration #integral #mathematics #graphs | ElectricalMath
2.7K reactions · 353 shares | A creative solution to the integral of ln(x) from 0 to 1. #math #calculus #integration #integral #mathematics #graphs | ElectricalMath
an image of some type of function
an image of some type of function

Vector Line Integrals: Work and Circulation Examples

A vector line integral has the form ∫_C F·dr, where F is a vector field and dr is the differential displacement along the curve. In physics, this integral computes the work done by a force F as an object moves along C. Unlike scalar line integrals, reversing the direction of C changes the sign of the result.

With r(t)=x(t)i+y(t)j, dr = r'(t) dt. Therefore ∫_C F·dr = ∫_a^b F(r(t))·r'(t) dt. The dot product picks out the component of F that points along the curve, which is why a force perpendicular to the path does no work.

AD

Example: Work Done by a Conservative Field

Let F(x,y)=x i + y j, and let C be the straight line from (0,0) to (1,1). Parameterize C by r(t)=(t,t), 0≤t≤1. Then r'(t)=(1,1), and F(r(t))=(t,t). The dot product is F·r'=t+t=2t, so the work is ∫_0^1 2t dt=1.

Granica funkcji
Granica funkcji
Solve the Integral.
Solve the Integral.
several types of integnals are shown in this graphic above the words, how many do you recognize?
several types of integnals are shown in this graphic above the words, how many do you recognize?
Handwritten Integrals of xⁿ ln(x) Formulas
Handwritten Integrals of xⁿ ln(x) Formulas

Now take the parabolic path r(t)=(t,t^2), also from (0,0) to (1,1). Here r'(t)=(1,2t), F(r(t))=(t,t^2), and F·r'=t+2t^3. The integral is ∫_0^1 (t+2t^3) dt=1/2+1/2=1. The answer is the same because F is conservative: F=∇(1/2(x^2+y^2)). For conservative fields, the line integral depends only on the endpoints.

Example: Circulation Around a Circle

Let F(x,y)=(-y)i + x j, and let C be the unit circle oriented counterclockwise. Use r(t)=(cos t, sin t), 0≤t≤2π. Then F(r(t))=(-sin t, cos t) and r'(t)=(-sin t, cos t). Their dot product is sin^2 t+cos^2 t=1.

AD

The vector line integral is ∫_0^{2π} 1 dt=2π. This value is called the circulation of F around C. Clockwise orientation would give -2π. Green's theorem confirms the result because the curl of F is ∂(x)/∂x - ∂(-y)/∂y = 1+1=2, and the double integral of 2 over the unit disk is 2π.

Working through a line integral example by hand is the best way to internalize the pattern: parameterize the curve, substitute into the integrand, compute the speed or dot product, and integrate over t. Try changing the path in the work example or reversing the circle in the circulation example; watching which answers stay fixed and which flip sign reveals the geometry behind the formulas far better than memorizing another identity.

AD