Mathematics / Lotka-Volterra Phase Plane
FREE TO EXPLORE
LABORATORY 39 · MATHEMATICS

Lotka-Volterra Phase Plane lab report

A worked lotka-volterra phase plane lab report with iteration data tables, logarithmic graphs, calculations, uncertainty and conclusions.

WORKED EXAMPLE · BENCHMARK OBSERVATIONS

A complete example laboratory report.

Simulated demonstration data.

This report illustrates formal numerical analysis, iteration tracking, and convergence rate extraction. Replace its observations with your own computational telemetry when preparing a practical submission.

Student: __________________Student ID: __________________Course: __________________Date: __________________Partner: __________________Instructor: __________________

1. Title and aim

Lotka-Volterra Predator-Prey Dynamics: Hamiltonian First Integral Invariance. Integrate the non-linear Lotka-Volterra predator-prey system dx/dt = α x - β x y, dy/dt = δ x y - γ y, construct closed phase-plane trajectories, analyze the non-hyperbolic center equilibrium, and quantitatively verify the strict conservation of the first integral Hamiltonian invariant H = 2.000.

2. Abstract

Six computational trials were executed across standardized inputs Step = 1.0 to Step = 6.0 for Lotka-Volterra Predator-Prey Dynamics: Hamiltonian First Integral Invariance. An ordinary least-squares regression yielded an empirical First Integral Invariant (H) of 2.000 invariant constant (difference from theoretical reference = 0.0000%). The empirical telemetry conclusively validates the theoretical model and complexity scaling with R² = 1.000000.

3. Apparatus and fixed settings

4. Theory and graph choice

In mathematical biology and nonlinear dynamical systems, the Lotka-Volterra equations represent the foundational archetype of predator-prey coevolution. Formulated by Alfred Lotka in 1925 to model oscillating chemical reactions and independently by Vito Volterra in 1926 to explain Adriatic fishery population cycles, the non-linear coupled system dx/dt = α x - β x y, dy/dt = δ x y - γ y exhibits rich phase-plane geometry. Rather than converging to an asymptotic attractor, the trajectories form a continuous family of closed, periodic concentric orbits encircling a non-hyperbolic center equilibrium. Underpinning this stability is a hidden conservation law: the system possesses a time-invariant first integral V(x, y) = δ x - γ ln(x) + β y - α ln(y) that remains strictly constant along all physical trajectories. In this computational laboratory, we integrate the nonlinear phase plane, trace periodic orbits, analyze center stability, and verify the Hamiltonian invariant constant H = 2.000.

y = H · k + b

The mathematical regression linearizes the relationship into the form y = mx + b. Here, the independent variable x represents Setting Index k, and the dependent variable y represents Invariant Response y = H · k. The slope m directly extracts First Integral Invariant (H), while the intercept b accounts for residual baseline offsets.

5. Method

  1. Set system parameters α = 1.0, β = 1.0, δ = 1.0, γ = 1.0, identifying the interior equilibrium (x*, y*) = (1.0, 1.0).
  2. Set initial conditions (x_0, y_0) = (1.5, 1.0) corresponding to the benchmark invariant level V_0 = 1.5 - ln(1.5) + 1.0 - 0 ≈ 2.0945.
  3. March the coupled system over full oscillation periods T ≈ 2π using small time step h = 0.005 to minimize artificial numerical drift.
  4. Trace the parametric orbit (x(t), y(t)) in the phase plane, observing clockwise closed orbits encircling the center equilibrium.
  5. Evaluate V(t) = x(t) - ln(x(t)) + y(t) - ln(y(t)) at all points along the orbit, confirming dV/dt = 0 to high precision.
  6. Log the standardized invariant metric across settings k = 1 to 6 and fit linear regression to confirm the target constant H = 2.000.

6. Observations and calculation table

All iterative observations use strictly controlled 64-bit IEEE 754 precision buffers. Residuals are computed relative to the ordinary least-squares regression line.

Table 1. Six simulated observations; x and y represent transformed mathematical metrics.
No.Observation Setting (k) (step)Hamiltonian Invariant Reading (reading)Setting Index kInvariant Response y = H · kFitted yResidual
11.02.01.00002.00002.00000.0000
22.04.02.00004.00004.00000.0000
33.06.03.00006.00006.00000.0000
44.08.04.00008.00008.00000.0000
55.010.05.000010.000010.00000.0000
66.012.06.000012.000012.00000.0000

Download the sample observations (CSV) ↓

7. Worked calculation for one observation

For step k = 1.0: Current coordinate x = 1.0000. Mathematical model response y = 2.0000. Output reading: 2.0000.

8. Graph, gradient and final calculation

0.500.403.751.957.003.5010.255.0513.506.60Setting Index kInvariant Response y = H · k

Circular markers represent empirical computational observations. The solid line represents the ordinary least-squares linear fit.

x̄ = 3.50000; ȳ = 7.00000
Σ(x − x̄)² = 17.50000
Σ(x − x̄)(y − ȳ) = 35.00000
m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² = 2.00000000
b = ȳ − mx̄ = 0.00000000
y = 2.0000 · k + 0.0000 ⟹ Target = 2.000 (theoretical = 2.0)

9. Uncertainty and comparison

Percentage difference = |estimate − theoretical value| / |theoretical value| × 100 = 0.0000%.

For n = 6 observations, Σresidual² = 0.00000; s² = Σresidual²/(n − 2). Gradient standard error = √[s²/Σ(x − x̄)²] = 0.00000. Intercept standard error = √[s²(1/n + x̄²/Σ(x − x̄)²)] = 0.00000.

Propagating the fit parameters yields a fit standard error of 1.0000e-04 invariant constant, with an ideal coefficient of determination R² = 1.000000.

In computational mathematics and numerical analysis, errors arise from algorithmic discretization, finite precision IEEE 754 floating-point arithmetic (machine epsilon ε_mach ≈ 2.22 × 10⁻¹⁶ for 64-bit double precision), and condition number propagation. The ordinary least-squares fit across n = 6 standardized observations provides standard errors for the gradient and intercept. Because the mathematical recurrence is evaluated with high numerical precision, the residual sum of squares is vanishingly small, yielding a coefficient of determination R² ≥ 0.999999 and confirming the theoretical mathematical model.

10. Result and discussion

First Integral Invariant (H) = 2.000 invariant constant
Theoretical reference value: 2.000 invariant constant

The empirical benchmark observations provide rigorous quantitative verification of Lotka-Volterra Predator-Prey Dynamics: Hamiltonian First Integral Invariance. In numerical analysis, scientific computing, and computational mathematics, algorithms are characterized by their asymptotic operational scaling, stability, and convergence rates. Across all six observations, the empirical slope m = 2.0000 confirms the theoretical model with near-zero residual variance. Furthermore, comparison with alternative algorithmic paradigms underscores critical trade-offs between memory footprint, condition number sensitivity, and operational throughput. The algorithm's behavior confirms the mathematical predictions established by numerical analysis literature.

11. Precautions and limitations

The classic Lotka-Volterra model is structurally unstable: any small modification (such as adding logistic prey saturation) converts the center into a stable spiral or limit cycle. The simulation integrates the Lotka-Volterra predator-prey system across standardized observation settings k = 1 to 6. The standardized Hamiltonian invariant metric scales linearly with step index k, confirming the theoretical first integral constant H = 2.000 with R² = 1.000000.

12. Conclusion

This computational laboratory investigation quantitatively verified the mathematical formulation and asymptotic scaling of Lotka-Volterra Predator-Prey Dynamics: Hamiltonian First Integral Invariance. Through rigorous tracking across six observation points, we confirmed an empirical First Integral Invariant (H) of 2.000 invariant constant matching the theoretical reference 2.000 invariant constant within 0.0000% error. The investigation demonstrates why this method serves as an indispensable tool in modern computational science.