Given a linear ODE:
And a particular solution for the corresponding homogeneous ODE:
Use this homogeneous solution to find a new ODE of reduced order which can be used to solve the original:
Solve the reduced order ODE:
Apply the transformation to find a simpler ODE for the original variable y(x):
Solve the simpler ODE to find the general solution of the original ODE:
Alternatively, the particular homogeneous solution can be used to solve the original ODE in a single step if we use the option solve:
Simplify the form of the general solution:
Use the output=basis option instead:
Show the new solution:
Calculate the Wronskian of the two solutions for y(x):
The determinant should be nonzero to prove independence of the solutions:
Another syntax showing that you can chose the name of the variable in the reduced ODE: