### Second order

 To solve a second-order ODE with constant coefficients: , divide by the highest-order coefficient: , and factor out the y ,

The LHS is zero either if y=0, which isn't generally true as it's the dependent variable, or if the bracket expression is zero. Finding the roots of the bracket expression is entirely analogous to solving a polynomial equation of second order: The roots of the equation x2+px+q=0, which can be factorised as (x+x1)(x+x2)=0, are .

 In the same way, the roots of are . The ODE becomes , or by renaming the constants, , where .

Although operators in general aren't commutative, the order in which the two operators (bracket terms) are applied to y does not matter in this case because they only differ in a constant factor, which doesn't affect differentiation. This is why this technique requires constant coefficients: If they were functions of x instead, the two operators would no longer commutate, and the analogy with polynomial equations would break down. Because the order in which the two operators are applied doesn't matter, we can split up the 2nd-order equation in two separable 1st-order ones:

 First operator: , and second operator: . Separate: - , integrate: - , and solve for y: - .
 The general solution of the original ODE: is any linear combination of the two: , where .

Note that k1,2 may be complex.

### Higher order

Linear ODE with constant coefficients of higher order can be solved following the same principle. The number of 1st-order ODEs to be solved is equal to the order of the original equation. The corresponding constants k1,2,3,... are found by finding the roots of the associated auxiliary polynomial.