>
|
|
| (1) |
>
|
|
| (2) |
| (3) |
| (4) |
A nonhomogeneous ODE example
>
|
|
| (5) |
| (6) |
A nonhomogeneous example step by step
>
|
|
| (7) |
>
|
|
| (8) |
Steps 1) and 2) mentioned above
>
|
|
| (9) |
Step 3): two independent solutions for the homogeneous_ode
>
|
|
| (10) |
>
|
|
| (11) |
Step 4): a procedure for the general solution to the original nonhomogeneous ODE (ode[3]) is given by
>
|
|
| (12) |
where s1 and s2 are the linearly independent solutions of the homogeneous ode (sol_1 and sol_2 above), F is the nonhomogeneous term (here represented by F(x)), and W is the Wronskian, in turn given by
>
|
|
| (13) |
from which the answer to the nonhomogeneous ODE follows
>
|
|
| (14) |