A nonhomogeneous ODE example
A nonhomogeneous example step by step
Steps 1) and 2) mentioned above
Step 3): two independent solutions for the homogeneous_ode
Step 4): a procedure for the general solution to the original nonhomogeneous ODE (ode[3]) is given by
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
from which the answer to the nonhomogeneous ODE follows