ode internal name "first_order_laplace"
These are ode’s solved using Laplace method. Currently only linear odes are supported. Both constant coefficients and time varying coefficients. For time varying only, only coefficients that are polynomial in \(t\) are allowed. For example the following ode can be solved using Laplace
But not
Initial conditions can be at zero or not at zero or not given. For time varying, the ode is transform to Laplace using the property
What this means, is that having \(t\) as coefficient will generate first order ode in \(Y\left ( s\right ) \) which needs to be solved first to find \(Y\left ( s\right ) \) before applying inverse Laplace transform to find the solution \(y\left ( t\right ) \). A coefficient \(t^{2}\) will generate second order ode in \(Y\left ( s\right ) \) and \(t^{3}\) will generate a third order ode in \(Y\left ( s\right ) \) and so on. This means if we are to use Laplace transform to solve first order ode, we could end having to solving an ode in \(Y\left ( s\right ) \) of much higher order and the generated solution \(Y\left ( s\right ) \) might become too complicated to even inverse Laplace it.
So it is not really useful to use Laplace method to solve time varying first order ode of coefficient of polynomial of power \(t^{n}\) where \(n>1\).
When the initial condition of the original ode is not at zero, the original condition must be shifted so it is at zero. This is more critical to do for time varying than for constant coefficients ode when we use Laplace transform method. This means we have to do change of variables first. See examples below.
The following is the algorithm for solving using Laplace transform for time varying coefficients ode
-- Input is first ode in y(t) with possible IC in form y(t0)=y0 -- output is solution y(t) using Laplace transform. -- The first step is convert the ODE in y(t) to ODE in Y(s) using -- the relation L(t^n f(t) ) = -(1)^n d^n/ds^n( F(s) ) -- where F(s) is the Laplace of f(t). This is applied to each term in -- the original ode in y(t). -- Now we have an ODE in Y(s). This ode can be first order or higher -- order depending on the power on t. For example if the input -- is t^3*y(t)+y'(t)=0 then the ode in Y(s) will be 3rd order. -- Next step is to solve the ode in Y(s). Let us say the solution -- is Y(s)=.... This solution will have as many new constants as the -- order of the ode in Y(s) IF no IC are given THEN Apply Laplace to the ODE and convert to ode in Y(s) solve this ode in Y(s) Apply inverse Laplace transform on solution Y(s). THis gives y(t)=.... which is the final solution. ELSE -- IC is given as y(t0)=y0 IF t0=0 THEN Apply Laplace to the ODE and convert to ode in Y(s) solve this ode in Y(s) LABEL L: Apply inverse Laplace transform on Y(s) now we have y(t)=.... with constants c_i in it (*) these constants c_i come from solving the ode in Y(s) Apply IC to obtain equation y0=.... with constants c_i in it. IF there is more than one unknown c_i in the RHS then solve for one of them and plug that into (*). This is final solution ELSE solve for c_1 from y0=.... c_1 .... and plugin into (*). END IF ELSE -- initial conditions not at zero, i.e. y(t0)=y0 and t0<>0 -- This applies also even if y0=0 or not. Transform the original ode in y(t) such that IC is now shifted to zero. For example, if IC was y(1)=y0, then use transformation tau=t-1. This gives new ode in time, but with y(0)=y0. This is the one we will work with now. Not the orginal one. Apply Laplace to this new ODE and convert to ode in Y(s) solve this ode in Y(s) GOTO LABEL L to find solution y(tau) convert solution back to t, using tau=t-t0 END IF END IF