second-order-odes

Solve second-order ODEs analytically and numerically with SymPy and SciPy.

8|1|Updated Jan 4, 2026
One-click install
npx skills add https://github.com/scooter-lacroix/Maestro --skill second-order-odes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: second-order-odes
Source: https://github.com/scooter-lacroix/Maestro/tree/main/maestro/skills/math/math/odes-pdes/second-order-odes
Command: npx skills add https://github.com/scooter-lacroix/Maestro --skill second-order-odes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sympy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a structured approach to solving second-order ordinary differential equations (ODEs), covering both analytical and numerical methods.

Core Features & Use Cases

  • ODE Classification: Helps identify the type of second-order ODE (constant coefficients, variable coefficients, Cauchy-Euler).
  • Analytical Solutions: Guides through finding homogeneous and particular solutions using characteristic equations and methods like undetermined coefficients or variation of parameters.
  • Numerical Solutions: Facilitates converting ODEs into first-order systems for numerical solvers like solve_ivp.
  • Boundary Value Problems: Outlines strategies for solving ODEs with boundary conditions using methods like shooting or collocation.
  • Use Case: You are working on a physics simulation involving damped harmonic motion, which is described by a second-order ODE. This skill helps you find both the general solution and specific solutions based on initial conditions.

Quick Start

Use the second-order-odes skill to find the characteristic equation for a homogeneous ODE with constant coefficients.

Frequently Asked Questions about second-order-odes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I solve second-order ODEs with constant coefficients analytically?

To solve second-order ODEs with constant coefficients analytically, you find the characteristic equation to determine the homogeneous solution, then apply methods like undetermined coefficients or variation of parameters for the particular solution. This skill uses SymPy for symbolic computation to guide the process.

Can I use SciPy for numerical integration of second-order differential equations?

Yes, you can use SciPy for numerical integration of second-order differential equations by converting them into a system of first-order ODEs. This skill facilitates that conversion process, enabling you to utilize solvers like `solve_ivp` for numerical simulation.

What is the best way to solve boundary value problems for second-order ODEs?

The best way to solve boundary value problems for second-order ODEs is by using shooting or collocation methods. This skill outlines specific strategies for handling ODEs with boundary conditions, integrating numerical techniques to find specific solutions.

When do I need to classify a second-order ordinary differential equation?

You need to classify a second-order ordinary differential equation before solving it to identify its type, such as constant coefficients, variable coefficients, or Cauchy-Euler. Classification determines the appropriate analytical or numerical strategy for finding the solution.

Does SymPy support solving non-homogeneous second-order differential equations?

Yes, SymPy supports solving non-homogeneous second-order differential equations through symbolic computation. This skill provides strategies for finding both homogeneous and particular solutions using SymPy, covering methods like undetermined coefficients and variation of parameters.

How do I model damped harmonic motion using second-order differential equations?

To model damped harmonic motion using second-order differential equations, you formulate the ODE based on physical parameters and apply analytical or numerical methods. This skill helps find general solutions and specific solutions based on initial conditions for physics simulations.