Differential Equations (differential-equations-ai999x)
Differential Equations covers first- and second-order ODEs, linear systems, Laplace transforms, stability and phase portraits, numerical methods, classic PDEs (heat, wave, Laplace) and dynamical systems: 78 calculations in 7 topics, each with its formula, its steps and its units, and a plain reason instead of a number when an input is missing or out of range. One compiled engine, four ways to use it: the desktop app, the command line, the browser and Python. Everything runs on your own computer, offline.
Four ways to use it
| Desktop app (Windows, Linux) | Windows · Linux |
Command line differential-equations (Windows, Linux) | Windows · Linux |
| Browser (any device) | Try it on the model page |
| Python 3.10+ | pip install differential-equations-ai999x: on Windows and Linux (x86-64) pip installs the same compiled engine; on other systems (macOS, ARM) it installs a pure-Python build that gives the same answers |
See it
From the Differential Equations desktop app: every scene and chart is drawn from the computed answer.
Charts:
Second-order homogeneous linear ODE: initial value problem | Logistic growth: population at a time | Inverse Laplace transform of a rational function | Classical Runge-Kutta method (RK4) |
Ask in words: 15 examples
Each question below was asked on this release; the comment under it is the line it printed.
import differential_equations_ai999x as differential_equations
a = differential_equations.ask(
"Radiocarbon dating: half-life T = 5730 and fraction remaining p = "
"0.25. What is the age?"
)
print(a.outcome, a.values)
# SOLVED {'t': 11460.0}
a = differential_equations.ask(
"Find the convolution of f(t) = exp(-t) and g(t) = sin(t) at t = "
"2."
)
print(a.outcome, a.values)
# SOLVED {'value': 0.730389773305}
a = differential_equations.ask(
"Use the backward Euler method for dy/dt = -2*y + t, y(0) = 1, h = "
"0.1, n = 2."
)
print(a.outcome, a.values)
# SOLVED {'y_n': 0.718055555556, 't_n': 0.2}
a = differential_equations.ask(
"Solve the Cauchy-Euler equation t^2 y'' + 2t y' - 6y = 0 with "
"y(1) = 1, y'(1) = 0; find y(2)."
)
print(a.outcome, a.values)
# SOLVED {'y': 2.45, 'm1': -3.0, 'm2': 2.0}
a = differential_equations.ask(
"Find the Robin eigenvalue with L = 1, h = 1, n = 1."
)
print(a.outcome, a.values)
# SOLVED {'lambda_n': 4.11585836569, 'sqrt_lambda': 2.02875783811}
a = differential_equations.ask(
"Solve the Bernoulli equation y' + p y = q y^n with p = 1, q = 1, "
"n = 2, y(0) = 0.5; find y(1)."
)
print(a.outcome, a.values)
# SOLVED {'y': 0.26894142137}
a = differential_equations.ask(
"Find the impulse response of y'' + 2y' + 5y = delta(t) at t = 1."
)
print(a.outcome, a.values)
# SOLVED {'h': 0.16725591462}
a = differential_equations.ask(
"Check the CFL condition for c = 2, dt = 0.01, dx = 0.05."
)
print(a.outcome, a.values)
# SOLVED {'courant': 0.4, 'stable': True, 'dt_max': 0.025}
a = differential_equations.ask(
"Find the Fourier sine coefficient of f(x) = x*(1 - x) with L = 1, "
"n = 1."
)
print(a.outcome, a.values)
# SOLVED {'b_n': 0.258012275466}
a = differential_equations.ask(
"Find the doubling time for exponential growth with k = 0.07."
)
print(a.outcome, a.values)
# SOLVED {'t_char': 9.90210257943, 'kind': 'doubling time'}
a = differential_equations.ask(
"Use RK4 for dy/dt = t + y, y(0) = 1, h = 0.1, n = 2."
)
print(a.outcome, a.values)
# SOLVED {'y_n': 1.2428051417, 't_n': 0.2}
a = differential_equations.ask(
"Heat equation series with f(x) = x*(1 - x), L = 1, alpha = 1, N = "
"10, x = 0.5, t = 0.1."
)
print(a.outcome, a.values)
# SOLVED {'u': 0.0961618714343, 'b_1': 0.258012275466}
a = differential_equations.ask(
"A draining tank obeys Torricelli's law with h0 = 4, k = 0.2; find "
"h(5) and the emptying time."
)
print(a.outcome, a.values)
# SOLVED {'h': 2.25, 't_empty': 20.0}
a = differential_equations.ask(
"Find the Laplace transform of the delayed function u(t - c) f(t - "
"c) with f(t) = t, c = 2, s = 1."
)
print(a.outcome, a.values)
# SOLVED {'F': 0.135335283237, 'G': 1.0}
a = differential_equations.ask(
"Solve the boundary value problem y'' + p y' + q y = r with p = 0, "
"q = -1, r = 0, xa = 0, xb = 1, ya = 0, yb = 1, x = 0.5."
)
print(a.outcome, a.values)
# SOLVED {'y': 0.443409441985, 'slope_a': 0.850918128239}
Command line: 15 examples
Each command below was run with differential-equations of this release; the lines under it are the answer it printed (the full answer goes on with the method, every input in SI units and the conditions it assumes).
$ differential-equations solve sturm_liouville_eigenvalues L=1 n=2 bc=dirichlet-dirichlet
lambda_n = 39.4784176
sqrt_lambda = 6.283185307
eigenfunction = sin(6.28318530718 x)
$ differential-equations solve brusselator_hopf a=1 b=3
x_eq = 1
y_eq = 3
b_critical = 2
type = unstable spiral
stability = unstable
$ differential-equations solve radiometric_age T=5730 p=0.25
t = 11460
$ differential-equations solve convolution_integral "f=exp(-t)" "g=sin(t)" t=2
value = 0.7303897733
$ differential-equations solve phase_portrait_2x2 "A=[[0, 1], [-2, -3]]"
type = stable node
stability = asymptotically stable
lambda1 = -2
lambda2 = -1
trace = -3
det = 2
$ differential-equations solve backward_euler_method "f=-2*y + t" y0=1 h=0.1 n=2 t0=0
y_n = 0.7180555556
t_n = 0.2
$ differential-equations solve cauchy_euler_ivp a=1 b=2 c=-6 y1=1 v1=0 t=2
y = 2.45
m1 = -3
m2 = 2
$ differential-equations solve robin_eigenvalues L=1 h=1 n=1
lambda_n = 4.115858366
sqrt_lambda = 2.028757838
$ differential-equations solve competing_species_equilibrium a1=3 b11=1 b12=1 a2=2 b21=0.5 b22=1
x_eq = 2
y_eq = 1
type = stable node
stability = asymptotically stable
$ differential-equations solve bernoulli_equation p=1 q=1 n=2 y0=0.5 t=1
y = 0.2689414214
$ differential-equations solve ode_impulse_response a=1 b=2 c=5 t=1
h = 0.1672559146
$ differential-equations solve linear_system_solution "A=[[0, 1], [-2, -3]]" "x0=[1, 0]" t=1
x = [0.600423599106,-0.46508831587]
x1 = 0.6004235991
$ differential-equations solve cfl_condition c=2 dt=0.01 dx=0.05
courant = 0.4
stable = true
dt_max = 0.025
$ differential-equations solve practical_resonance m=1 c=0.4 k=4 F0=2
omega_r = 1.979898987
amplitude_max = 2.512594538
has_peak = true
$ differential-equations solve fourier_sine_coefficient "f=x*(1 - x)" L=1 n=1
b_n = 0.2580122755
Guides
- Desktop app guide: the window, every calculation, scenes and charts: PDF · HTML · Markdown
- Python guide: every calculation with a Python example: PDF · HTML · Markdown
- Command-line guide: every calculation with the command and what it printed: PDF · HTML · Markdown
Every calculation, with its formula, a worked example and its figures: Differential Equations on ai999x.com. Install guides for the app and the command line: https://www.ai999x.com/desktop-cli/.
Version 1.6.7 · License: Apache-2.0 · Author: Ibnul Jaif Farabi · Organization: AI999X · Contact: support@ai999x.com · Support the project
The Future Is Self-Improving.













