Second Order ODE Solver
This Second Order ODE Solver helps you solve second-order differential equations and shows each step clearly. It can be used to work with common second-order ODE forms, apply suitable solution methods, and optionally use up to two initial conditions to find a particular solution. This makes it useful for checking answers, understanding how second-order ODEs are solved, and practising differential equations step by step.
Step-by-step method
- Write the ODE clearly using y′ and y″ or derivative notation.
- Check whether the equation is linear in y, y′, and y″.
- Detect the main type: constant coefficients, Euler-Cauchy, or general linear second order.
- Apply the matching method.
- Write the general solution with constants C1 and C2.
- If initial conditions are given, solve for C1 and C2.
- Write the final solution as y(x).
Formula bank:
| d²y |
| dx² |
| dy |
| dx |
Example 1: y'' + y = 0, x, y, y(0)=0, y'(0)=1
Step 1 - Write the ODE.
In this problem: Start with the given second-order differential equation.
| d²y |
| dx² |
Step 2 - Confirm linear form.
In this problem: Match the equation to a(x)y″ + b(x)y′ + c(x)y = r(x).
Step 3 - Identify constant coefficients.
In this problem: The coefficients do not depend on x, so use the characteristic equation.
| d²y |
| dx² |
| dy |
| dx |
Step 4 - Write the characteristic equation.
In this problem: Replace y by e^{rx}, which gives ar² + br + c = 0.
Step 5 - Solve for r.
In this problem: The roots determine the shape of the homogeneous solution.
Step 6 - Write the general solution.
In this problem: Complex roots give sine and cosine terms.
Step 7 - Apply initial conditions.
In this problem: Use the given values to solve for C1 and C2.
Step 8 - Final answer.
In this problem: This is the solution written in terms of the dependent variable.
Final answer: See final step
Example 2: y'' - 3y' + 2y = 0, x, y
Step 1 - Write the ODE.
In this problem: Start with the given second-order differential equation.
| dy |
| dx |
| d²y |
| dx² |
Step 2 - Confirm linear form.
In this problem: Match the equation to a(x)y″ + b(x)y′ + c(x)y = r(x).
Step 3 - Identify constant coefficients.
In this problem: The coefficients do not depend on x, so use the characteristic equation.
| d²y |
| dx² |
| dy |
| dx |
Step 4 - Write the characteristic equation.
In this problem: Replace y by e^{rx}, which gives ar² + br + c = 0.
Step 5 - Solve for r.
In this problem: The roots determine the shape of the homogeneous solution.
Step 6 - Write the general solution.
In this problem: Distinct real roots give two exponential terms.
Step 7 - Final answer.
In this problem: This is the solution written in terms of the dependent variable.
Final answer: See final step
Example 3: x^2y'' - xy' + y = 0, x, y
Step 1 - Write the ODE.
In this problem: Start with the given second-order differential equation.
| d²y |
| dx² |
| dy |
| dx |
Step 2 - Confirm linear form.
In this problem: Match the equation to a(x)y″ + b(x)y′ + c(x)y = r(x).
Step 3 - Identify Euler-Cauchy form.
In this problem: The coefficients match x²y″ + ax y′ + by = 0 up to a constant factor.
Step 4 - Write the indicial equation.
In this problem: Try y = x^m.
Step 5 - Solve for m.
In this problem: The roots determine the Euler-Cauchy solution form.
Step 6 - Write the general solution.
In this problem: A repeated root gives x^m(C1 + C2ln(x)).
Step 7 - Final answer.
In this problem: This is the solution written in terms of the dependent variable.
Final answer: See final step
Sign up or login to get the full step solution for free!