Site Map
General information
Types of DEs
Manipulation
Examples
  • Example 1
  • Example 2
  • Example 3
  • Example 4
  • Example 5
  • Example

    • Example: f(x) = sinx - xcos2x
    1. sin x is due to complex root, has real part of 0 because e0 = 1 (multiply 1 on sin and cos).
    2. A(D) then has root of 0 \pm i (simply \pm i) with multiplicity 1.
    3. Also r=\pm 2i with multiplicity 2.
    • Example: \left[ {D^2  - D} \right]y = 1 - 2x

    Here r = 0:e0 = 1,x,x2,....xn;r = 1:ex,xex,...,xnex Note that once a distinct root is used, it may not be used again due to linearly independent.

    y_c  = c_1 y_1  + c_2 y_2  = c_1 \left( 1 \right) + c_2 \left( {e^x } \right). A(D) has of multiplicity of 2.

    \left. {\begin{matrix}    {Y_p  = Ax + Bx^2 }  \\    {Y_p ^\prime   = A + 2Bx}  \\    {Y_p ^{\prime \prime }  = 2B}  \\ \end{matrix}} \right\}2B - \left[ {A + 2Bx} \right] = \left[ {2B - A} \right] - 2Bx = 1 - 2x

    Equating coefficients, 2BA yields constant term on RHS of 1, hence 2B − 1 = 1 so B = 1, A = 1. −2B = −2. Therefore yp = Ax + Bx2 = x + x2. Solution hence becomes y = yc + yp = C1 + C2ex + x + x2 . If we do not keep deleting our used roots, we than may have y = yc + yp = C1 + C2ex + 1 + x2, it would be incorrect since C1 absorbs the arbitrariness of x (here is 1); thus violates linearly dependence.

    • Example: \left[ {D^2  - D} \right]y = x - 2e^x (same as y'' - y' = x - 2ex)

    In this case, we have roots r = {0, 1} which yield family of solution such as

    \begin{matrix}  r = 0:1,x,x^2 ,x^3 ,... \\   r = 1:e^x ,xe^x ,x^2 e^x ,... \\   \end{matrix}

    Therefore, y1 = 1,y2 = ex and yc = C1(1) + C2ex Since A(D) has \left. \begin{matrix}  r = 0\,\,{\rm{of\ multiplicity\ of\ 2}} \\   r = 1\,\,{\rm{of\ multiplicity\ of\ 1}} \\   \end{matrix} \right\} giving the form of \left. \begin{matrix}  Y_p  = Ax + Bx + Cxe^x  \\   Y_p ^\prime   = A + 2Bx + C(1 + x)e^x  \\   Y_p ^{\prime \prime }  = 2B + C(2 + x)e^x  \\   \end{matrix} \right\} put in original equation to have \left[ {2B - A} \right] - 2Bx + ce^x  = x - 2e^x

    Equating coefficient, \begin{matrix}  2B - A = 0\,\,{\rm{so }}\,{\rm{A = 2B}} \Rightarrow A =  - 1 \\    - 2B = 1 \Rightarrow B =  - \frac{1}{2};C =  - 1 \\   \end{matrix}

    Thus y_p  = Ax + Bx + Cxe^x  =  - x - \frac{1}{2}x^2  - 2xe^x

    • Example: \left[ {D^2  + 1} \right]y = f = \sec x. What roots would give rise to the solution of the form f\left( x \right) = \sec \left( x \right) ?

    Solution:

    No roots. f\left( x \right) = \sec \left( x \right) is not a sinusoid, rather the reciprocal of a sinusoid. So this method would not apply and 2nd-order variation-of-parameters (VoP) must be used to solve these type of problems (no valid finite linear combination could be tried in this case).





    Solving linear equations

    instant payday loans