Loading…

Second Order Homogenous Differential Equation Solver

Math Calculus • Differential Equations

View all topics

4. Second Order Homogenous Differential Equation Solver

Solve constant-coefficient homogeneous ODEs of the form \(\;y'' + p\,y' + q\,y = 0\;\) using the characteristic equation. The tool detects distinct/repeated/complex roots, builds the general solution, and (optionally) determines constants from initial conditions.

Equation
Supports numeric expressions like pi, e, sqrt(2). The characteristic equation is \(r^2 + p r + q = 0\).
Constants (choose one method)
If you choose “Initial conditions”, the tool solves a 2×2 linear system for \(A,B\) using the correct basis for your root type. If you choose “Direct constants”, the tool uses your \(A,B\) directly.
Evaluation
The graph marks \((x_0,y(x_0))\) and \((x^\ast\,y(x^\ast\))) with coordinate labels.
Graph settings (optional)
Drag to pan; mouse wheel to zoom; double-click resets. Wide outputs scroll horizontally on small screens.
Ready
Enter \(p,q\) and click “Solve”.

Graph

Solution curve (pan/zoom) — axes/ticks shown

Axes represent \(x\) and \(y\) in your chosen units. The curve updates automatically when you change inputs.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is the characteristic equation for y'' + p y' + q y = 0?

Assuming a trial solution y = e^(r x) converts the ODE into the quadratic r^2 + p r + q = 0. Solving this characteristic equation determines the root type and the solution form.

How does the solver handle repeated or complex roots?

If the discriminant p^2 - 4q equals 0, the root is repeated and the solution becomes (A + Bx)e^(r x). If the discriminant is negative, the roots are alpha ± i beta and the solution becomes e^(alpha x)(A cos(beta x) + B sin(beta x)).

How are A and B found from initial conditions?

The solver substitutes y(x0)=y0 and y'(x0)=v0 into the solution basis for the detected root case. This produces a 2x2 linear system that is solved for A and B.

What do underdamped, critically damped, and overdamped mean in this tool?

These presets correspond to the characteristic-root cases: underdamped means complex roots, critically damped means a repeated real root, and overdamped means distinct real roots. The preset buttons provide quick coefficient examples that match each case.

Can the calculator evaluate the solution at a specific x value?

Yes, entering x* computes y(x*) from the solved form and shows the point on the graph alongside the initial-condition point when x0 is provided.