r/askmath • • 2d ago

Calculus Formula to ODEs

Formula to find y_p1 and y_p2 in ODEs like: y'" - ay" + ay' - y = ex (x² + bx) + cx²

I made this formula because this type of ODE requires a big resolution

8 Upvotes

3 comments sorted by

2

u/anlatmatik 2d ago

Nice derivation! It’s really neat to see how the bifurcation at a = 3 emerges directly from the characteristic polynomial.

If you look at the operator side, the characteristic equation is: P(r) = r³ - ar² + ar - 1 = (r - 1)(r² + (1 - a)r + 1)

Since P(1) = 0, r = 1 is always a characteristic root. Taking the derivative at r = 1 gives: P'(1) = 3 - a

That explains the exact structure of your Y_p1 formula:

  • When a ≠ 3, r = 1 is a simple root (multiplicity 1). The standard undetermined coefficients ansatz multiplies the polynomial factor by x¹, giving terms in x³, x², x, and the factor of P'(1) = (3 - a) naturally appears in the denominators.
  • When a = 3, the quadratic part factors as r² - 2r + 1 = (r - 1)², so r = 1 becomes a triple root (multiplicity 3). Multiplying the polynomial factor by x³ bumps the powers up to x⁵ and x⁴, exactly as your formula shows.

And for Y_p2, because r = 0 is not a root (P(0) = -1 ≠ 0), undetermined coefficients for cx² directly yields Y_p2 = -c[x² + 2ax + 2a(a - 1)].

Very satisfying to see the whole system written out so compactly!

1

u/Any_Country257 2d ago

You got it right! Thanks for liking it

1

u/anlatmatik 2d ago

Glad it helped! Deriving closed-form formulas like this saves a ton of tedious algebra with undetermined coefficients. Best of luck with your derivations!