Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Solving linear differential equations by factoring

  1. May 31, 2012 #1
    Solving linear differential equations by "factoring"

    I have thought of an interesting way of solving n-th order linear differential equations (with constant coefficients) by imitating the way we solve n-th order polynomials, that is by "factoring" it into a "product" of simple 1st order linear differential equations. Does this method already exist? I haven't been able to prove it rigorously, but the case n=3 and 2 convinced me that it is reasonable to say it's true.

    We have the n-th order linear diff. eq.:
    [tex] a_{n}y^{(n)}(x)+a_{n-1}y^{(n-1)}(x)+ ... +a_{0}y(x) = f(x)[/tex]
    or in terms of the differential operator: [tex] (a_nD^n+a_{n-1}D^{n-1}+ ... + a_0)[y(x)] = f(x) [/tex]

    My claim is that any such equation can be "factored" into
    [tex] a_n(D-\lambda_n)(D-\lambda_{n-1})...(D-\lambda_1)[y(x)] = f(x) [/tex]

    where [itex] D [/itex] is the differential operator, and [itex] \lambda_{i} [/itex] is the i-th root of the polynomial equation [tex] a_{n}x^{n}+a_{n-1}x^{n-1}+ ... + a_{0} = 0 [/tex]

    and the "multiplication" is actually the successive composition of the [itex] D-\lambda_i [/itex] operations, which take the derivative of the argument and then substract [itex] \lambda_i[/itex] times the argument.

    Then by naming the function resulting from the i-th operation [itex] \phi_i(x) [/itex] we have the equation [tex] a_n\phi_n(x) = f(x) [/tex] or [tex] a_n\phi_{n-1}^'(x) - a_n\lambda_n\phi_{n-1}(x) = f(x) [/tex] This is a simple 1st order linear diff. eq solvable with integrating factors, and after solving it we repeat the process until we get to the last equation for y. Each time we replace the value of [itex] \phi_i [/itex] into the next equation for [itex]\phi_{i-1}[/itex] and solve a 1-st order eq. repetitively.


    Can the "factoring" part be proven rigorously, in a similar way that it is proven for polynomials with the Fundamental Theorem of Algebra? I know I haven't given any proof for this but it seems to be true. Is this method already known? Is it any better or worse than the traditional way such equations are solved?
     
    Last edited: May 31, 2012
  2. jcsd
  3. May 31, 2012 #2
    Re: Solving linear differential equations by "factoring"

    I'm sorry I forgot to add the f(x) in the beginning instead of equating with 0 (this method works for inhomogeneous equations too, otherwise it would be pointless since homogeneous eqns are easily solved anyway).
    I edited the original post to correct.
     
  4. May 31, 2012 #3

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    Hi Boorglar! :smile:

    Yes, this is the characteristic equation method, see http://en.wikipedia.org/wiki/Characteristic_equation_(calculus [Broken]) :wink:
     
    Last edited by a moderator: May 6, 2017
  5. May 31, 2012 #4
    Re: Solving linear differential equations by "factoring"

    Hello to you!

    The characteristic equation method works only when f(x) is 0 (the equation is homogeneous), but the ''factoring" method will actually work even if there is an arbitrary f(x) which makes it inhomogeneous.

    Basically, I know that there is an easy method for the homogeneous case (the characteristic equation method that you showed me). But the only techniques I've heard for inhomogeneous equations involve undetermined coefficients or variation of parameters.
     
  6. May 31, 2012 #5

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    the usual method is to find a particular solution to add to the homogeneous solution

    wouldn't your solution involve finding n particular solutions?
     
  7. May 31, 2012 #6
    Re: Solving linear differential equations by "factoring"

    yeah it gives the particular solution together with the homogeneous one because when you integrate each 1st order eq, the constants of integration accumulate and you end up with the general homogeneous solution, plus the remaining integrals which give the particular solution. The difference is that it is more systematic than undetermined coefficients since they need some initial guess on the type of solution.
     
  8. May 31, 2012 #7

    tiny-tim

    User Avatar
    Science Advisor
    Homework Helper

    yes, but is it quicker? :wink:
     
  9. May 31, 2012 #8
    Re: Solving linear differential equations by "factoring"

    As an example this is how I would solve

    [itex] y''-3y'+2y = x [/itex] so [itex] (D-2)(D-1)[y] = x [/itex] [tex] \phi_1' - 2\phi_1 = x [/tex] where [itex] \phi_1 = y'-y [/itex]
    [tex] \phi_1(x) = e^{2x}\int{xe^{-2x}dx} + C_1e^{2x}[/tex] (multiply by [itex]e^{-2x}[/itex] (integrating factor) and write as derivative of product, etc.)
    [tex] y' - y = e^{2x}\int{xe^{-2x}dx} + C_1e^{2x}[/tex]

    So finally by muliplying by [itex] e^{-x} [/itex] both sides (integrating factor), etc.

    [tex] y = e^x\int e^{-x}(e^{2x}\int{xe^{-2x}dx})dx + e^x\int {C_1e^x dx} + C_2e^x[/tex]
    [tex] y = e^x\int (e^{x}\int{xe^{-2x}dx})dx + C_1e^{2x} + C_2e^x [/tex]
    Which is slightly ugly but gives an explicit solution for both the particular and the general solutions.

    This could have been done using undetermined coefficients but you'd have to guess how the function looks like before. And suppose instead of x, it was something like [itex]y''-3y'+2y = \arctan(x^3-e^x)[/itex]. Then this would be hopeless. My method would at least be able to write it as an (albeit horribly complicated ;)) integral.
     
    Last edited: May 31, 2012
  10. Jun 8, 2012 #9
    Re: Solving linear differential equations by "factoring"

    The Laplace transform technique is an established technique that is related to the characteristic equation method, is systematic, and can handle inhomogenous equations naturally without having to guess the form of the particular solution. It does not use undetermined coefficients or variation of parameters. Another related approach is the Green's function / fundamental solution, which lets you write the particular solution as a convolution integral. Both approaches would give you an integral for the particular solution that is close to the form you presented.

    I think the idea you present can be made rigorous through the system of equations approach to linear constant coefficient ODEs. The system of equations you suggest can be written in the form

    [itex]
    \Phi' = A\Phi + b
    [/itex]

    Where [itex]\Phi[/itex] is a vector of functions [itex]\phi_n[/itex], [itex]A[/itex] is a matrix of coefficients, the prime is differentiation of each component of the vector, and [itex]b[/itex] is a vector of all zeros, except with an [itex]f(x)[/itex] in one position. You cleverly chose how to define your variables so that the matrix [itex]\Phi[/itex] is of a nice form. However, no matter how you chose your variables, if you write the single equation as a system like above, and then bring the system to this nice form, you'll end up with your technique. Again, the characteristic equation will come up when you go to find the eigenvectors and eigenvalues of the matrix. As an example, the usual way to do this is to call [itex]\phi_n=y^{(n)}[/itex]. Incidentally this is related to state-space methods from controls engineering too, you might want to have a look in that area for related concepts. For a start, if you google "HANDOUT ON FORMULATION OF DIFFERENTIAL EQUATIONS" and check out the thrid page of the first result, you can see why this technique works.

    Also, keep in mind that linear constant coefficient equations admit complex eigenvalues, so that in your factoring, a pair of [itex]\lambda_i[/itex] might come in a complex conjugate pair, with corresponding sin and cosine solutions, not just real exponentials. The usual way to write these terms is to take two conjugate terms and group them into a quadratic factors, then write the rest of the monomials with real roots.
     
  11. Jun 8, 2012 #10
    Re: Solving linear differential equations by "factoring"

    As a side note, I believe what you propose is basically the jordan canonical form of a constant coefficient linear system.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook