first-order-odes
SolidProblem-solving strategies for first order odes in odes pdes
AI & Automation 3,795 stars
297 forks Updated 4 months ago MIT
Install
Quality Score: 86/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# First Order Odes
## When to Use
Use this skill when working on first-order-odes problems in odes pdes.
## Decision Tree
1. **Classify the ODE**
- Linear: y' + P(x)y = Q(x)?
- Separable: y' = f(x)g(y)?
- Exact: M(x,y)dx + N(x,y)dy = 0 with dM/dy = dN/dx?
- Bernoulli: y' + P(x)y = Q(x)y^n?
2. **Select Solution Method**
| Type | Method |
|------|--------|
| Separable | Separate and integrate |
| Linear | Integrating factor e^{int P dx} |
| Exact | Find potential function |
| Bernoulli | Substitute v = y^{1-n} |
3. **Numerical Solution (IVP)**
- `scipy.integrate.solve_ivp(f, [t0, tf], y0, method='RK45')`
- For stiff systems: `method='Radau'` or `method='BDF'`
- Adaptive step size: specify rtol/atol, not step size
4. **Verify Solution**
- Substitute back into ODE
- Check initial/boundary conditions
- `sympy_compute.py dsolve "y' + y = x" --ics "{y(0): 1}"`
5. **Phase Portrait (Autonomous)**
- Find equilibria: f(y*) = 0
- Analyze stability: sign of f'(y*)
- `z3_solve.py solve "dy/dt == 0"`
## Tool Commands
### Scipy_Solve_Ivp
```bash
uv run python -c "from scipy.integrate import solve_ivp; sol = solve_ivp(lambda t, y: -y, [0, 5], [1]); print('y(5) =', sol.y[0][-1])"
```
### Sympy_Dsolve
```bash
uv run python -m runtime.harness scripts/sympy_compute.py dsolve "Derivative(y,x) + y" --ics "{y(0): 1}"
```
### Z3_Equilibrium
```bash
uv run python -m runtime.harness scripts/z3_solve.py solve "f(y_star) == 0"
```
##...
Details
- Author
- parcadei
- Repository
- parcadei/Continuous-Claude-v3
- Created
- 5 months ago
- Last Updated
- 4 months ago
- Language
- Python
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
first-order-odes
Problem-solving strategies for first order odes in odes pdes
496 Updated 1 months ago
vibeeval AI & Automation Solid
second-order-odes
Problem-solving strategies for second order odes in odes pdes
3,795 Updated 4 months ago
parcadei AI & Automation Solid
second-order-odes
Problem-solving strategies for second order odes in odes pdes
496 Updated 1 months ago
vibeeval AI & Automation Solid
boundary-value-problems
Problem-solving strategies for boundary value problems in odes pdes
3,795 Updated 4 months ago
parcadei AI & Automation Solid
boundary-value-problems
Problem-solving strategies for boundary value problems in odes pdes
496 Updated 1 months ago
vibeeval