Loading…

Second Order Non Homogeneous Solver

Math Calculus • Multivariable Calculus

View all topics

Solve constant-coefficient non-homogeneous equations in normalized form \(\displaystyle y''+ay'+by=G(x)\) using undetermined coefficients. The calculator finds the complementary solution, detects resonance, builds an automatic particular-solution guess, solves for the coefficients, and graphs \(y_h\), \(y_p\), and \(y=y_h+y_p\).

Equation \(\displaystyle y''+ay'+by=G(x)\) Characteristic equation \(\displaystyle r^2+ar+b=0\) General solution \(\displaystyle y=y_h+y_p\) Resonance rule \(\displaystyle y_p=x^sY_{\text{guess}}\)

Equation, forcing term, and graph settings

Use normalized form, so the coefficient of \(y''\) is \(1\). Supported forcing families include polynomials, exponentials, sine/cosine terms, and simple products such as x*sin(2*x), exp(3*x), and exp(x)*cos(2*x). Use variable x. Supported functions: sin, cos, sqrt, abs, exp, ln, log.
Live preview

Quick examples

Ready
Enter \(a\), \(b\), and \(G(x)\), then click “Solve”.

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 type of differential equation does this calculator solve?

It solves second-order linear non-homogeneous equations with constant coefficients in the form y'' + ay' + by = G(x).

What is the complementary solution?

The complementary solution y_h solves the associated homogeneous equation y'' + ay' + by = 0.

What is a particular solution?

A particular solution y_p is one specific solution of the full non-homogeneous equation y'' + ay' + by = G(x).

What is the method of undetermined coefficients?

It guesses the form of y_p based on the forcing term G(x), substitutes it into the differential equation, and solves for unknown coefficients.

What is resonance?

Resonance occurs when the natural complementary solution already contains the same family as the forcing-term guess. The particular guess must then be multiplied by x or a higher power of x.

How does the calculator handle y'' + 4y = sin(2x)?

The characteristic roots are ±2i, which match the sine forcing. The calculator detects resonance and multiplies the usual sine/cosine guess by x.

Does the calculator support every possible G(x)?

No. Undetermined coefficients applies to specific forcing families such as polynomials, exponentials, sine/cosine terms, and their simple products and sums.

Can it graph the forcing term and solution parts separately?

Yes. The graph can show G(x), y_h, y_p, and the total solution y.

Are the graph axes labeled with units?

Yes. The graph axes have labels and numbered tick marks with the selected units.