I want to solve a integro-differential equation numerically.
The equation is given by :
$\dot{c}(t)=-\int_0^t \mathrm{d}t_1f(t-t_1)c(t_1)$
Hereby, $f(t-t_1)$ will be given a realisation of some random numbers, e.g. $f(t-t_1)$ originally was a rondom variable, and I want to solve the integer differential equation for one realisation. So the function will most certainly be a messy polynomial, where the solution cannot be obtained easily with the Laplace-transform used to solve the equation.
How is the best procedure to numerically solve this (or any) integer differential equation?
Thanks already Martin
To solve numerically this problem is not more difficult than solving a linear system. Using the collocation method, using a family of interpolation functions $\phi_k(t), k = 1,\cdots, n$ over a fixed grid $t_1,\cdots,t_n$ we can postulate $c(t) = \sum_{k=1}^n\alpha_k\phi_k(t)$. With those interpolation functions we can also model $f(t) = \sum_{k=1}^nf_k\phi_k(t)$ and then the problem reduces to determine $\alpha_k$ in
$$ \sum_{k=1}^n\alpha_k\phi'_k(t)+\int_0^t\left(\sum_{k=1}^nf_k\phi_k(t-\tau)\right)\left(\sum_{j=1}^n\alpha_j\phi_j(\tau)\right)d\tau = 0 $$
over the grid $t_1,\cdots, t_n$ so we have to solve the linear system
$$ \sum_{k=1}^n\alpha_k\phi'_k(t_{\nu})+\int_0^{t_{\nu}}\left(\sum_{k=1}^nf_k\phi_k(t_{\nu}-\tau)\right)\left(\sum_{j=1}^n\alpha_j\phi_j(\tau)\right)d\tau = 0,\ \ \ \text{for}\ \ \nu = 1,\cdots, n $$
NOTE
We need non null initial conditions on $c(t)$ to avoid the null solution.
Follows a MATHEMATICA script using as interpolation functions Lagrange polynomials. In red $f(t)$ and in blue $c(t)$.
The theoretical result can be obtained by solving
$$ s C(s) + C(s)F(s) = 1,\ \ F(s) = \frac{2 \pi }{5 \left(s^2+\frac{4 \pi ^2}{25}\right)} $$
giving
$$ C(s) = \frac{25 s^2+4 \pi ^2}{25 s^3+4 \pi ^2 s+10 \pi } $$
Follows the Laplace inverse plot in blue and $f(t)$ in red