Simplify Your Workflow: Search MiniWebtool.
Add Extension
Home Page > Math > Calculus > System of ODEs Solver

System of ODEs Solver

Solve systems of ordinary differential equations x' = Ax symbolically and numerically. Auto-classifies the equilibrium (saddle, node, spiral, center), derives eigenvalues and eigenvectors step by step, writes the closed-form general and particular solution, and draws an interactive phase portrait with animated trajectory — for 2×2, 3×3 linear and nonlinear 2D systems.

System of ODEs Solver
Solve \(\dfrac{d}{dt}\!\begin{pmatrix}x\\y\end{pmatrix} = A \begin{pmatrix}x\\y\end{pmatrix}\) where \(A\) is a 2×2 matrix with real entries.
[
[
Accepts decimals (e.g. 2.5), negatives (-1), and simple fractions (3/4).
Solve \(\dfrac{d}{dt}\!\begin{pmatrix}x_1\\x_2\\x_3\end{pmatrix} = A \begin{pmatrix}x_1\\x_2\\x_3\end{pmatrix}\) — get eigenvalues, eigenvectors, and the closed-form general solution.
[
[
[
The default is the companion matrix of \( s^3 + 6s^2 + 11s + 6 \), giving eigenvalues \(-1, -2, -3\).
Solve a general 2D nonlinear system numerically: \(x' = f(x, y)\), \(y' = g(x, y)\). Use functions like sin, cos, exp, sqrt, and constants pi, e.
No closed-form solution is computed; instead a high-accuracy RK4 integration produces the trajectory and phase portrait.
x(0)
y(0)
time span T

Embed System of ODEs Solver Widget

About System of ODEs Solver

The System of ODEs Solver is an all-in-one differential-equations toolbox for coupled linear and nonlinear systems. Paste a 2×2 or 3×3 coefficient matrix and the tool performs the full eigenvalue / eigenvector analysis, writes the closed-form general and particular solution in LaTeX, classifies the equilibrium at the origin as a saddle, node, spiral, or center, and draws an interactive phase portrait with an animated trajectory. For nonlinear planar systems you can type arbitrary right-hand sides \(f(x,y)\) and \(g(x,y)\) and the tool produces a high-accuracy RK4 phase portrait.

What Is a System of ODEs?

A system of ordinary differential equations couples several unknown functions of a single variable — usually time \(t\) — through their derivatives. In the most compact form,

\[ \mathbf{x}'(t) = \mathbf{F}(t, \mathbf{x}(t)) , \qquad \mathbf{x} \in \mathbb{R}^n \]

When \(\mathbf{F}(t, \mathbf{x}) = A\mathbf{x}\) for a constant matrix \(A\), the system is linear and autonomous — and this is where the theory is at its most beautiful: the entire long-term behavior is determined by the eigenvalues of \(A\).

The Eigenvalue Recipe for Linear Systems

For \(\mathbf{x}' = A\mathbf{x}\) the standard method is:

  1. Compute the characteristic polynomial \(\det(\lambda I - A) = 0\).
  2. Solve for the eigenvalues \(\lambda_1, \lambda_2, \dots\).
  3. For each eigenvalue, find an eigenvector \(v\) by solving \((A - \lambda I) v = 0\).
  4. Assemble the general solution as a linear combination: \(\mathbf{x}(t) = c_1 v_1 e^{\lambda_1 t} + c_2 v_2 e^{\lambda_2 t} + \cdots\).
  5. Fix the constants \(c_i\) by plugging the initial condition \(\mathbf{x}(0)\) into the general solution.

Three Cases for 2×2 Systems

Eigenvalues General Solution Portrait
Real distinct \(\lambda_1 \ne \lambda_2\) \(c_1 v_1 e^{\lambda_1 t} + c_2 v_2 e^{\lambda_2 t}\) Saddle if signs differ; node otherwise
Complex conjugate \(\alpha \pm i\beta\) \(e^{\alpha t}[c_1(p\cos\beta t - q\sin\beta t) + c_2(p\sin\beta t + q\cos\beta t)]\) Spiral (\(\alpha \ne 0\)) or center (\(\alpha = 0\))
Repeated \(\lambda_1 = \lambda_2 = \lambda\) \(c_1 v e^{\lambda t} + c_2 (tv + w) e^{\lambda t}\) Degenerate node

The Trace-Determinant Plane

For a 2×2 matrix with trace \(T = a_{11} + a_{22}\) and determinant \(D = a_{11} a_{22} - a_{12} a_{21}\), the whole classification fits in a single diagram:

\[ \begin{array}{l} D < 0 \Rightarrow \text{saddle} \\ D > 0, \; T^2 - 4D > 0 \Rightarrow \text{node (stable if } T < 0\text{)} \\ D > 0, \; T^2 - 4D < 0 \Rightarrow \text{spiral (stable if } T < 0\text{), center if } T = 0 \\ T^2 - 4D = 0 \Rightarrow \text{degenerate node (repeated eigenvalue)} \end{array} \]

This is why the results panel prominently shows \(T\), \(D\), and \(\Delta = T^2 - 4D\) — three numbers are enough to name the equilibrium.

Nonlinear Systems and the Phase Portrait

Most real-world ODEs are nonlinear and have no closed-form solution. The tool handles them by integrating the equations numerically with a 4th-order Runge–Kutta (RK4) method, which has local truncation error \(O(h^5)\) and is the default workhorse for smooth vector fields.

\[ \begin{aligned} k_1 &= f(t_n, y_n) \\ k_2 &= f(t_n + h/2, y_n + h k_1 / 2) \\ k_3 &= f(t_n + h/2, y_n + h k_2 / 2) \\ k_4 &= f(t_n + h, y_n + h k_3) \\ y_{n+1} &= y_n + \tfrac{h}{6}(k_1 + 2k_2 + 2k_3 + k_4) \end{aligned} \]

The phase portrait overlays:

How to Use This Solver

  1. Pick a mode — 2×2 Linear, 3×3 Linear, or Nonlinear 2D — via the tabs at the top of the form.
  2. Fill in coefficients or equations. Click any Quick Example to pre-fill a canonical system (stable node, center, saddle, pendulum, Van der Pol, etc.).
  3. Enter an initial condition \((x_0, y_0)\) and a time span \(T\). Typical \(T\) values are 6–20 for oscillators and 3–6 for fast-decaying stable systems.
  4. Click Solve. The full results page appears with the classification, eigenvalues, eigenvectors, closed-form solution (linear modes), animated phase portrait, and time-series plot.
  5. Replay the trajectory using the button under the phase portrait if you'd like to watch the runner traverse the IC curve again.

Worked Example — Damped Harmonic Oscillator

The damped oscillator \(\ddot{x} + 2\zeta \omega \dot{x} + \omega^2 x = 0\) can be rewritten as a 2D system by letting \(y = \dot{x}\):

\[ \begin{pmatrix} \dot{x} \\ \dot{y} \end{pmatrix} = \begin{pmatrix} 0 & 1 \\ -\omega^2 & -2\zeta\omega \end{pmatrix} \begin{pmatrix} x \\ y \end{pmatrix} \]

For \(\omega = 1\) and \(\zeta = 0.2\) (underdamped), the matrix is \(A = \begin{pmatrix} 0 & 1 \\ -1 & -0.4 \end{pmatrix}\). Trace \(T = -0.4\), determinant \(D = 1\), discriminant \(\Delta = 0.16 - 4 = -3.84 < 0\), so we get a stable spiral with eigenvalues \(-0.2 \pm 0.9798\,i\). The trajectory spirals into the origin, and the time series shows exponentially-decaying sinusoids.

Applications

Tips & Gotchas

Frequently Asked Questions

What is a system of ordinary differential equations?

A system of ordinary differential equations (ODEs) is a set of coupled equations that relate the derivatives of several unknown functions of a single independent variable, typically time. The classic form is \( \mathbf{x}'(t) = F(t, \mathbf{x}(t)) \), where \( \mathbf{x} \) is a vector of states and \(F\) is the vector field. Linear systems can be written compactly as \( \mathbf{x}' = A\mathbf{x} + \mathbf{b} \), and their behavior is determined almost entirely by the eigenvalues of the coefficient matrix \(A\).

How do eigenvalues classify the equilibrium of a 2×2 linear system?

For a 2×2 system \( \mathbf{x}' = A\mathbf{x} \) the origin is classified by the trace \(T\) and determinant \(D\) of \(A\): \(D < 0\) gives a saddle point (unstable); \(D > 0\) with \(T^2 > 4D\) gives a node (stable if \(T < 0\), unstable if \(T > 0\)); \(D > 0\) with \(T^2 < 4D\) gives a spiral (stable if \(T < 0\), unstable if \(T > 0\), a pure center if \(T = 0\)). The borderline \(T^2 = 4D\) produces a degenerate node.

What does the closed-form solution look like when the eigenvalues are complex?

If \(A\) has complex-conjugate eigenvalues \( \alpha \pm i\beta \) with complex eigenvector \( v = p + iq \), the real general solution is \( \mathbf{x}(t) = e^{\alpha t} \left[ c_1 (p \cos\beta t - q \sin\beta t) + c_2 (p \sin\beta t + q \cos\beta t) \right] \). The exponential \(e^{\alpha t}\) controls the amplitude (growing, decaying, or constant), while the sine and cosine handle the rotation.

What happens when the matrix has a repeated eigenvalue?

If the matrix has a repeated eigenvalue \(\lambda\) but only one linearly independent eigenvector \(v\), you also need a generalized eigenvector \(w\) solving \( (A - \lambda I) w = v \). The general solution then takes the form \( \mathbf{x}(t) = c_1 v e^{\lambda t} + c_2 (tv + w) e^{\lambda t} \). If the eigenspace happens to be two-dimensional, the matrix is a scalar multiple of the identity on that invariant subspace and the solution reduces to \( \mathbf{x}(t) = (c_1 v_1 + c_2 v_2) e^{\lambda t} \).

Can this tool solve nonlinear systems symbolically?

The nonlinear mode solves the system numerically using a fourth-order Runge–Kutta (RK4) integrator and plots the phase portrait. Most nonlinear systems have no closed-form solution, so this is the standard approach. You can still read off local behavior near equilibria by linearizing, which the 2×2 linear mode handles — compute the Jacobian at the fixed point and feed it in as \(A\).

What is a phase portrait?

A phase portrait is a geometric picture of the solutions of a 2D system in the \(x\)–\(y\) plane. Each solution traces out a curve called a trajectory, and the collection of trajectories together with the vector field arrows reveals the qualitative behavior: whether solutions spiral in, saddle apart, oscillate, or settle onto equilibria. Phase portraits make the global structure of a system visible at a glance.

Further Reading

Reference this content, page, or tool as:

"System of ODEs Solver" at https://MiniWebtool.com/system-of-odes-solver/ from MiniWebtool, https://MiniWebtool.com/

by miniwebtool team. Updated: Apr 23, 2026

You can also try our AI Math Solver GPT to solve your math problems through natural language question and answer.

Related MiniWebtools:

Calculus:

Top & Updated:

Random Name PickerRandom PickerInstagram User ID LookupFPS ConverterImage ResizerLine CounterSort NumbersRelative Standard Deviation CalculatorRemove SpacesRandom Truth or Dare GeneratorBatting Average CalculatorMAC Address GeneratorFacebook User ID LookupERA CalculatorFeet and Inches to Cm ConverterWord to Phone Number ConverterMAC Address LookupSun, Moon & Rising Sign Calculator 🌞🌙✨Slope and Grade CalculatorMP3 LooperSum CalculatorRandom Superpower GeneratorPercent Off CalculatorRandom IMEI Generator📷 OCR / Image to TextAudio SplitterRandom Quote GeneratorInvisible Text GeneratorWord Ladder GeneratorBitwise CalculatorNumber of Digits CalculatorVertical Jump CalculatorRoman Numerals ConverterSHA256 Hash GeneratorRandom Credit Card GeneratorAI Text HumanizerMerge VideosRandom Birthday GeneratorLog Base 10 CalculatorWAR CalculatorHalfway Date Calculator⬛ Aspect Ratio CalculatorMaster Number CalculatorCm to Feet and Inches ConverterSalary Conversion CalculatorPhone Number ExtractorRandom Meal GeneratorRandom Activity GeneratorSaturn Return CalculatorRandom Fake Address GeneratorFile Size ConverterOPS CalculatorNumber to Word ConverterIP Subnet CalculatorText FormatterSquare Root (√) CalculatorOn Base Percentage CalculatorRandom Poker Hand GeneratorRandom Writing Prompt GeneratorYouTube Channel StatisticsRandom Movie PickerSlugging Percentage CalculatorCaffeine Overdose CalculatorMercury Retrograde CalendarDecimal to BCD ConverterCompound Growth CalculatorLove Compatibility CalculatorVideo to Image ExtractorBattery Life CalculatorRandom Loadout GeneratorBCD to Decimal ConverterBinary to Gray Code ConverterStair CalculatorLeap Years List🖱️ Click CounterOctal CalculatorDNS LookupAdd Text to Image🎰 Gacha Pity CalculatorCM to Inches ConverterFirst n Digits of PiRandom Time GeneratorConnect the Dots GeneratorCompare Two Strings📅 Date CalculatorWeight Loss CalculatorSHA512 Hash GeneratorRemove AccentNumber ExtractorBingo Card GeneratorVideo CompressorProportion CalculatorImage SplitterAstrological Element Balance CalculatorImage CompressorPercent Growth Rate CalculatorOutlier CalculatorGray Code to Binary ConverterSmall Text Generator ⁽ᶜᵒᵖʸ ⁿ ᵖᵃˢᵗᵉ⁾Lottery Number GeneratorTime Duration CalculatorPER CalculatorCoin FlipperWhat is my Zodiac Sign?Arc Length CalculatorQuotient and Remainder CalculatorRandom Object GeneratorDiff CheckerDay of the Year Calculator - What Day of the Year Is It Today?Word Scramble GeneratorLongest Day of the YearAcreage CalculatorAdd Prefix and Suffix to TextBreak Line by CharactersFlip VideoList of Prime NumbersRandom Emoji GeneratorBolt Torque CalculatorWHIP CalculatorIP Address to Hex ConverterMultiple Fraction CalculatorURL ExtractorAngel Number CalculatorYouTube Tag ExtractorName Number CalculatorMandelbrot Set ExplorerModulo Calculator🔍 Plagiarism CheckerBcrypt Hash Generator / CheckerCone Flat Pattern (Template) GeneratorVideo SplitterPregnancy CalendarBroken Link CheckerMiter Angle CalculatorTessellation GeneratorDay of Year CalendarMD5 Hash GeneratorEmail ExtractorAI Language DetectorRandom Chord GeneratorSteel Weight CalculatorWhat is my Lucky Number?Social Media Username CheckerAntilog CalculatorLong Division CalculatorLunar Calendar ConverterSun Position CalculatorRandom Chess Opening GeneratorRandom Number PickerBinary to BCD ConverterMolarity CalculatorMartingale Strategy CalculatorRandom Line PickerHeight Percentile CalculatorMultiplication CalculatorIs it a Prime Number?Short Selling Profit CalculatorArctan2 CalculatorRandom Tournament Bracket GeneratorDMS to Decimal Degrees ConverterPercentile CalculatorFirst n Digits of eAI Punctuation AdderCollage MakerMorse Code GeneratorRounding CalculatorBonus CalculatorYouTube Earnings EstimatorRandom Name GeneratorRandom User-Agent GeneratorTaco Bar Calculator🔊 Tone GeneratorRemove Leading Trailing SpacesAdjust Video SpeedHypotenuse CalculatorRandom Group GeneratorHTML CompressorBoiling Point CalculatorRandomize NumbersReverse TextAPI TesterFraction CalculatorAI ParaphraserDue Date CalculatorLife Path Number CalculatorJulia Set GeneratorSquare Numbers ListColor InverterPVIF CalculatorPVIFA CalculatorCrossword Puzzle MakerRandom RPG Character GeneratorBirth Day of the Week CalculatorIncome Tax CalculatorHebrew Calendar ConverterGrade CalculatorSum of Positive Integers CalculatorExponential Decay CalculatorSort Lines AlphabeticallyHex to BCD ConverterBCD to Binary ConverterBCD to Hex ConverterMedian CalculatorStandard Error CalculatorList RandomizerAverage CalculatorReverse VideoRemove Audio from VideoActual Cash Value CalculatorScientific Notation to Decimal ConverterLog Base 2 CalculatorRoot Mean Square CalculatorSHA3-256 Hash GeneratorAI Sentence ExpanderLbs to Kg ConverterHex to Decimal ConverterConvolution CalculatorMAC Address AnalyzerRandom String GeneratorAmortization CalculatorMarkup CalculatorDecimal to Hex ConverterInstagram Font GeneratorSocial Media Image Size GuideTikTok Money CalculatorTwitter/X Character CounterTwitter/X Timestamp ConverterYouTube Watch Time CalculatorTwitch Earnings CalculatorYouTube Shorts Monetization CalculatorFacebook Ad Cost CalculatorSocial Media ROI CalculatorSocial Media Post Time OptimizerCTR CalculatorROAS CalculatorInfluencer ROI CalculatorForce CalculatorAcceleration CalculatorVelocity CalculatorMomentum CalculatorProjectile Motion CalculatorKinetic Energy CalculatorPotential Energy CalculatorWork and Power CalculatorDensity CalculatorPressure CalculatorIdeal Gas Law CalculatorFree Fall CalculatorTorque CalculatorHorsepower CalculatorDilution CalculatorChemical Equation BalancerStoichiometry CalculatorPercent Yield CalculatorEmpirical Formula CalculatorTitration CalculatorMole/Gram/Particle ConverterIrregular Polygon Area CalculatorFrustum CalculatorTorus Calculator3D Distance CalculatorGreat Circle Distance CalculatorCircumscribed Circle (Circumcircle) CalculatorInscribed Circle (Incircle) CalculatorAngle Bisector CalculatorTangent Line to Circle CalculatorHeron's Formula CalculatorCoordinate Geometry Distance CalculatorVolume of Revolution CalculatorSurface of Revolution CalculatorParametric Curve GrapherRiemann Sum CalculatorTrapezoidal Rule CalculatorSimpson's Rule CalculatorImproper Integral CalculatorL'Hôpital's Rule CalculatorMaclaurin Series CalculatorPower Series CalculatorSeries Convergence Test CalculatorInfinite Series Sum CalculatorAverage Rate of Change CalculatorInstantaneous Rate of Change CalculatorRelated Rates SolverOptimization Calculator (Calculus)Gradient Calculator (Multivariable)Divergence CalculatorCurl CalculatorLine Integral CalculatorSurface Integral CalculatorJacobian Matrix CalculatorNewton's Method CalculatorRREF Calculator (Row Echelon Form)Matrix Inverse CalculatorMatrix Multiplication CalculatorDot Product CalculatorCross Product CalculatorVector Magnitude CalculatorUnit Vector CalculatorAngle Between Vectors CalculatorNull Space CalculatorColumn Space CalculatorCramer's Rule CalculatorMatrix Diagonalization CalculatorQR Decomposition CalculatorCholesky Decomposition CalculatorMatrix Power CalculatorCharacteristic Polynomial CalculatorBayes' Theorem CalculatorF-Test / F-Distribution CalculatorHypergeometric Distribution CalculatorNegative Binomial Distribution CalculatorGeometric Distribution CalculatorExponential Distribution CalculatorWeibull Distribution CalculatorBeta Distribution CalculatorSpearman Rank Correlation CalculatorFisher's Exact Test CalculatorContingency Table CalculatorOdds Ratio CalculatorROT13 Encoder/DecoderAtbash Cipher ToolVigenère Cipher ToolPronunciation IPA ConverterHemingway-Style Readability EditorSentence Length Variance AnalyzerWord Frequency AnalyzerBusiness Days CalculatorAdd Business Days to DateDate Pattern GeneratorHow Long Until CalculatorHow Long Ago CalculatorBirthday Across Cultures CalculatorHijri Calendar ConverterInsulin Sensitivity Factor CalculatorCarb-to-Insulin Ratio CalculatorLean Body Mass to Strength CalculatorOne-Mile Walk Test (Rockport) CalculatorCooper 12-Minute Run CalculatorFFMI CalculatorAPGAR Score CalculatorGlasgow Coma Scale CalculatorWells Score Calculator (DVT/PE)Tennis Score TrackerSoccer xG (Expected Goals) CalculatorCricket Run Rate CalculatorRugby Points CalculatorBoxing Punch Power CalculatorRace Time PredictorSwimming SWOLF CalculatorYoga Pose Hold TimerFishing Knot Strength CalculatorBike Gear Ratio CalculatorClimbing Grade ConverterWine Pairing SuggesterStandard Drink CalculatorCaffeine Half-Life TrackerSpice Substitution FinderDietary Restriction Recipe FilterMarinade Time CalculatorFermentation Time CalculatorSmoking Wood Pairing GuideFreelance Project Pricing CalculatorSaaS Pricing CalculatorSubscription Cost TrackerSide Hustle ROI CalculatorRemote Work Savings CalculatorCoffee Habit Cost CalculatorGym vs Home Workout Cost CalculatorLunch Cost CalculatorWealth Growth Visualizer1031 Exchange CalculatorRental Yield CalculatorCash-on-Cash Return CalculatorBRRRR Method CalculatorSection 8 Rent CalculatorRoommate Rent SplitterAirbnb Pricing OptimizerStatute of Limitations CalculatorSentence Reduction CalculatorSales Tax Nexus CheckerPatent Filing Fee CalculatorTrademark Class FinderWill Asset Distribution CalculatorWorkers' Compensation CalculatorStopping Distance CalculatorTrip Cost SplitterVehicle Weight Distribution CalculatorTrailer Tongue Weight CalculatorTire Tread Wear CalculatorEngine Compression Ratio CalculatorHeadlight Beam Distance CalculatorCat Litter Box CalculatorAquarium Heater Wattage CalculatorBird Cage Size CalculatorReptile Habitat UVB CalculatorPet Travel Crate Size FinderHorse Hay CalculatorCrochet Hook Size ConverterKnitting Needle Size ConverterKnitting Pattern CalculatorCross-Stitch Floss CalculatorQuilt Binding CalculatorOrigami Paper Size CalculatorPottery Clay Shrinkage CalculatorBeading Pattern CalculatorResin Casting Volume CalculatorEmbroidery Thread Length CalculatorHiking Pace Calculator (Naismith's Rule)Backpacking Food Weight CalculatorTent Footprint Size CalculatorSleeping Bag Temperature Rating GuideKnot Tying Reference ToolStar Visibility CalculatorTide Time CalculatorReynolds Number CalculatorBernoulli Equation CalculatorHeat Transfer CalculatorThermal Expansion CalculatorSpecific Heat Capacity CalculatorGear Ratio Calculator (Mechanical)Pulley System CalculatorHydraulic Cylinder Force CalculatorBelt Length CalculatorCloset Capsule CalculatorStorage Unit Size CalculatorMoving Box Quantity CalculatorGift Card Tip CalculatorGas vs Electric Cost ComparisonPrint Cost CalculatorHair Dye Mixing CalculatorLaundry Detergent Dosage CalculatorDishwasher Load OptimizerTile Grout CalculatorPaint Color Mixing CalculatorFlashcard Spaced Repetition SchedulerLearning Curve CalculatorCornell Notes GeneratorVocabulary Quiz GeneratorLanguage Learning Hours to Fluency CalculatorCollege Cost CalculatorScholarship ROI CalculatorAI Recipe Generator (From Ingredients)AI Gift Idea GeneratorAI Meal Plan GeneratorAI Workout Plan GeneratorAI Reading List Generator