second-order-odes

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

3.9k|296|Updated Dec 23, 2025
One-click install
npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill second-order-odes-parcadei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: second-order-odes
Source: https://github.com/parcadei/Continuous-Claude-v3/tree/main/.claude/skills/math/odes-pdes/second-order-odes
Command: npx skills add https://github.com/parcadei/Continuous-Claude-v3 --skill second-order-odes-parcadei

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides strategies and tools for solving second-order ordinary differential equations (ODEs), a common challenge in various scientific and engineering fields.

Core Features & Use Cases

  • Classification: Helps identify the type of second-order ODE (constant coefficients, variable coefficients, Cauchy-Euler).
  • Solution Methods: Outlines analytical techniques for homogeneous and non-homogeneous cases, including characteristic equations, undetermined coefficients, and variation of parameters.
  • Numerical Solutions: Guides on converting ODEs into first-order systems for numerical solvers like scipy.integrate.solve_ivp.
  • Boundary Value Problems: Mentions methods like the shooting method and scipy.integrate.solve_bvp.
  • Use Case: When faced with a differential equation like y'' + 4y' + 3y = sin(x), this skill will guide you through finding both the complementary and particular solutions.

Quick Start

Use the second-order-odes skill to solve the differential equation y'' + y = sin(x).

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 ordinary differential equations with constant coefficients in Python?

To solve second-order ODEs with constant coefficients, this Skill uses SymPy to find complementary and particular solutions via characteristic equations and undetermined coefficients, yielding exact symbolic mathematical expressions.

How can I numerically integrate a second-order ODE using scipy?

Numerical integration of a second-order ODE using SciPy requires converting the equation into a first-order system, which is then passed to scipy.integrate.solve_ivp to compute the numerical trajectory over the specified interval.

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

Solving boundary value problems for second-order ODEs is best handled using the shooting method or passing the boundary conditions directly to scipy.integrate.solve_bvp to compute the numerical solution across the spatial domain.

Does this approach support variable coefficient and Cauchy-Euler differential equations?

Yes, this approach supports variable coefficient and Cauchy-Euler differential equations by first classifying the ODE type and then applying appropriate analytical techniques like variation of parameters to find the symbolic solution.

How do I find the particular solution for a non-homogeneous second-order ODE like y'' + 4y' + 3y = sin(x)?

To find the particular solution for non-homogeneous second-order ODEs like y'' + 4y' + 3y = sin(x), this Skill applies undetermined coefficients or variation of parameters using SymPy to derive the exact symbolic response.