DeepSeek-R1 System Dynamics & Differential Equations Simulator
Direct DeepSeek-R1 to derive coupled differential equations, calculate Lyapunov stability exponents, and simulate phase-space trajectories with SciPy.
Parametric Customizer & Compiler Live Tool
Adjust the variables below. The prompt code and API payload update dynamically in real time.
Target dynamical system
Equations or feedback mechanics
Constants and starting state
You are a Principal Applied Mathematician and Nonlinear Dynamical Systems Researcher.
Formulate, analyze, and simulate the system dynamics for {Macroeconomic Solow-Swan Capital Accumulation with Endogenous Tech Shocks & Non-Linear Depreciation}.
### MANDATORY MATHEMATICAL DERIVATION PROTOCOL:
1. <think>
- Define the state variables x(t) β ββΏ and system parameters ΞΈ.
- Write out the continuous coupled Ordinary Differential Equations (ODEs): dx/dt = f(x, t; ΞΈ).
- Find the fixed points (equilibrium states) where f(x*) = 0.
- Linearize the system around each equilibrium point by calculating the Jacobian matrix: J(x*) = βf_i / βx_j.
- Calculate the eigenvalues det(J - Ξ»I) = 0 and determine asymptotic stability (nodes, saddles, focus, limit cycles).
- Check for sensitive dependence on initial conditions (Lyapunov exponent computation for chaotic regimes).
</think>
### SIMULATION & DELIVERABLE REQUIREMENTS:
1. **Analytical Derivation**: Full LaTeX mathematical derivations of equilibrium points and Jacobian eigenvalues.
2. **Verified SciPy Python Simulation**: Production code using `scipy.integrate.solve_ivp` (Runge-Kutta 4th/5th order 'RK45' or stiff solver 'Radau').
3. **Phase-Space Trajectory Visualization**: Matplotlib script generating vector field streamplots and phase portraits.
System Model Description:
{Coupled capital k(t) and labor efficiency A(t) feedback loop: dk/dt = s*k^Ξ±*A^(1-Ξ±) - (n + g + Ξ΄)*k, with logistic knowledge spillover dA/dt = Ξ³*A*(1 - A/A_max)}
Parameter Values & Initial Conditions:
{s = 0.28, Ξ± = 0.33, n = 0.015, g = 0.02, Ξ΄ = 0.05, Ξ³ = 0.08, A_max = 50.0. Initial: k(0) = 2.5, A(0) = 5.0} Formulate mathematical system dynamics, Jacobian stability, and differential equations on DeepSeek-R1.
Leonardo Phoenix & Flux: Generate photorealistic studio assets with 150 daily free credits. Zero setup required.
πΈ Real Sample Outputs & Verified Results
Visual evidence and benchmark responses generated using this exact prompt formula.
π¬ Prompt Engineering Anatomy
Why this prompt consistently delivers high-tier results: technical parameter breakdown.
Jacobian Eigenvalue Analysis Forces mathematical step-by-step derivation of eigenvalues to prove whether equilibrium points are stable attractors or unstable saddles.
Stiff Differential Equation Handling Recognizes disparate time scales in coupled systems and selects appropriate implicit Radau/BDF solvers to prevent numerical instability.
π¬ Frequently Asked Questions
Troubleshooting common edge cases, model incompatibilities, and best practices.
Does this work for epidemiological models (SEIR)?
Yes! It handles Susceptible-Exposed-Infectious-Recovered (SEIR) compartment models, predator-prey Lotka-Volterra, and Lorenz strange attractors.
Can I plot 3D phase-space trajectories?
Yes, specify 3 state variables and the generated Python script will utilize Matplotlib's mplot3d projection='3d' axes.
Cursor AI & Claude 3.5 Sonnet Pro Bundle
Supercharge your workflow with instant codebase indexing, multi-file edits, and automated system rules.
Explore Related Coding & Architecture Prompts View all β
Claude 3.5 Sonnet Senior Staff Full-Stack Refactoring Architect
Specialized prompt framework for Claude 3.5 Sonnet and Claude 3.7. Transforms messy legacy codebases into modular, testable, high-performance systems with automated regression tests.
cursorCursor AI (.cursorrules) for Next.js 15, React 19 & Tailwind CSS
Stops Cursor from writing outdated Next.js 13 patterns, Pages Router syntax, or deprecated React hooks. Enforces strict TypeScript, Server Actions, and modular clean architecture.
deepseekDeepSeek-R1 Autonomous Deep Research & Synthesis Engine
DeepSeek-R1 chain-of-thought framework designed to force deep reflection, counterfactual auditing, and hypothesis testing before producing production-ready research reports.