1차 선형 미분방정식은 계수가 연속인 구간에서 y′+p(x)y=q(x) 형태를 갖는다. 분리 가능할 필요는 없다. μ(x)=exp(∫p(x)dx)로 설정한다. μ′=pμ이므로 양변에 곱하면 (μy)′=μq이 되어, y=μ⁻¹(∫μq dx+C)가 된다. p에 대한 임의의 원함수를 선택할 수 있으며, 적분 상수는 오직 μ의 크기만 변경하고 해에서는 소거된다. 적분 후 초기 조건을 적용하고, 선택한 구간 밖의 특이 계수 점은 제외한다.
For y′+2xy=x with y(0)=1, μ=e^(x²). Then (e^(x²)y)′=x e^(x²), whose integral is e^(x²)/2+C. Thus y=1/2+C e^(−x²), and the initial condition gives C=1/2. Direct substitution checks y′+2xy=x. The integrating factor makes the left side a product derivative; it is not an extra factor that remains multiplying the original right side in the final answer.
For ay″+by′+cy=r(x) with a nonzero, solve the characteristic equation aλ²+bλ+c=0 for the homogeneous part. Distinct real roots give two exponentials; a repeated root λ gives (C₁+C₂x)e^(λx); roots α±iβ give e^(αx)(C₁ cos βx+C₂ sin βx). The complete solution is y_h+y_p. A polynomial forcing suggests a polynomial particular trial; an exponential or sine/cosine forcing suggests the corresponding family, with enough coefficients to account for differentiation.
특해 시도가 homogeneous 해와 중복되면 forcing를 생성할 수 없으므로, 단순 근에는 x를 한 번, 중근에는 두 번 곱한다. y″−3y′+2y=e^x인 경우, naive Ke^x는 소멸한다. Kxe^x를 시도하면 −Ke^x가 되므로, y_p=−xe^x이다. 초기 조건은 y_p를 더한 후에야 homogeneous 상수를 결정한다. 최종 함수를 원본 방정식에 대입하여 부호와 forcing를 확인하고, 초기 값 검증만으로 미분방정식을 검증할 수 없다.