In this section, Bernstein polynomial basis is used to find a solution for the integral form of Eq. (2) as
(10)
Let
then
(12)
To approximate the solution, replace (11) and (12) into (10) and rewrite it as
(13)
Function can be approximated as follows:
(14)
where, C and are vectors given by
so, we can write
(15)
By substituting (14) and (15) into (13), we have
(16)
The collocation method with , , is used for determination of the unknown vector C as follows:
(17)
We use Lemma 2.1 to calculate Itô integrals. By solving the nonlinear system (17), we find the unknown coefficient. Then we get the approximate solution and .
The figures show the results of a numerical solution generated by the stochastic θ-method with and the Bernstein approximation with for two cases of r. The results show a rapid rise along the logistic curve and then a fast exponential decay to zero for big r.
They also illustrate a comparison between the numerical solutions of the deterministic and the stochastic models.