WOLFRAM LANGUAGE TUTORIAL
Linear IVPs and BVPs
To begin, consider an initial value problem for a linear first-order ODE.
This is a linear first-order ODE.
Notice that the general solution is a linear function of the arbitrary constant C
This finds a particular solution for the initial condition
This verifies that the solution satisfies both the equation and the initial condition.
Here is the solution to the same problem with the general initial condition
This plots several integral curves of the equation for different values of
. The plot shows that the solutions have an inflection point if the parameter
, while a global maximum or minimum arises for other values of
Here is the solution to a linear second-order equation with initial values prescribed for
This verifies that the solution satisfies the equation and the initial conditions.
Here is a plot of the solution.
To get more information about the solutions for the problem, set
Here is a plot of the solutions for different initial directions. The solution approaches
according to whether the value of
is less than or greater than
, which is the largest root of the auxiliary equation for the ODE.
Here is a BVP for an inhomogeneous linear second-order equation.
It should be noted that, in contrast to initial value problems, there are no general existence or uniqueness theorems when boundary values are prescribed, and there may be no solution in some cases.
This problem has no solution because the term with C
in the general solution vanishes at both
. Hence there are two inconsistent conditions for the parameter C
and the solution is an empty set.
The previous discussion of linear equations generalizes to the case of higher-order linear ODEs and linear systems of ODEs.
Here is the solution to an Initial Value Problem (IVP) for a linear ODE of order four.
This verifies the solution and the initial conditions.
Since this is a fourth-order ODE, four independent conditions must be specified to find a particular solution for an IVP. If there is an insufficient number of conditions, the solution returned by DSolve
may contain some of the arbitrary parameters, as follows.
Finally, here is the solution of an IVP for a linear system of ODEs.
This verifies that the solution satisfies the system and the initial conditions.
are parametrized by the variable
and can be plotted separately in the plane or as a curve in space.