Undetermined Coefficients Calculator
Type ay'' + by' + cy = g(x), and optionally initial conditions, to find the particular solution.
Write y' and y'' (or dy/dx and d^2y/dx^2): y' + 2y = 4 or y'' - 3y' + 2y = 0. Type powers with ^ and functions with brackets: e^x, sin(x), ln(x).
Optional: two conditions at the same point, such as y(0) = 0, y'(0) = 1. Leave empty for the general solution, with C1 and C2.
Result
You entered
Show the work
Type of equation
This is a second-order linear equation with constant coefficients whose right side is a polynomial, exponential, sine or cosine (or a product), so undetermined coefficients applies.
Second-order linear equation
The equation has constant coefficients: with and .
Characteristic equation
Try : it solves exactly when is a root of the characteristic equation.
Using
Two distinct real roots
, so there are two real roots and the solutions are and .
Using
Method of undetermined coefficients
The right side is a polynomial, exponential, sine or cosine (or a product), so guess of the same kind with unknown coefficients. is already a solution of the homogeneous equation ( is a root of the characteristic equation), so the guess is multiplied by .
Match coefficients
Substitute the guess into and equate the coefficients of like terms; this is a linear system for the unknown coefficients.
Particular solution
Put the coefficients back into the guess.
General solution
Add the particular solution to the homogeneous solution .
Result
The general solution, with arbitrary constants.