WOLFRAM LANGUAGE TUTORIAL
Nonlinear IVPs and BVPs
Many real-world applications require the solution of IVPs and BVPs for nonlinear ODEs. For example, consider the logistic equation, which occurs in population dynamics.
This is the logistic equation.
The right-hand side of the equation can be expanded to a quadratic polynomial in
. Hence, the logistic equation is simply a Riccati equation, and its general solution can be easily found.
This sets the intrinsic growth rate
and the saturation level
and solves the initial value problem. The warning message from Solve
is issued while solving for the arbitrary constant C
from the general solution.
This solves the initial value problem for the logistic equation with symbolic parameters
This verifies that the solution satisfies the equation and the initial condition.
Here is a plot of the solution for different values of
Here is an example of an IVP for a second-order nonlinear ODE whose general solution can be obtained in explicit form.
This verifies that the solution satisfies the equation and the initial conditions.
Finally, here is a boundary value problem for a nonlinear second-order ODE. The solution is required to satisfy boundary conditions at 0 and infinity. The Solve::ifun
message is generated while finding the general solution in terms of JacobiSN
, the inverse of EllipticF
. The DSolve::bvlim
messages are given because the limit required for satisfying the condition y′[Infinity]0
cannot be calculated for either branch of the general solution. However, the solution for the boundary value problem is found using an alternative method to determine the values of the constants C
in the general solution.
It may not always be possible to obtain a symbolic solution to an IVP or BVP for a nonlinear equation. Numerical methods may be necessary in such cases.