Example of a precision error:
>
|
|
| (1) |
>
|
|
Solution:
>
|
|
| (3) |
| (4) |
| (5) |
| (6) |
| (7) |
Use of Continuation:
Attempt to solve the following problem.
>
|
|
| (8) |
An error arises indicating that the initial Newton iteration does not converge.
>
|
|
To solve this problem, choose a continuation that increases the coefficient of the second order derivative of the equation for lambda=0, and gives the solution for lambda=1.
>
|
|
| (10) |
The 1/10 is present to make the initial solution close to the desired solution. Now apply dsolve with continuation.
>
|
|
| (11) |
The desired solution is obtained.
Use plots[odeplot](ds) to view the solution. It shows a boundary layer at x=0.
For the following problem
>
|
|
| (12) |
>
|
|
| (13) |
you cannot obtain the solution directly:
>
|
|
There is an easy solution of if the right boundary condition was , so use this as the continuation, and obtain a solution:
>
|
|
| (14) |
>
|
|
| (15) |
and with the following plot, there is a boundary layer in the second derivative of the solution at t=0
>
|
|