Just some points:
- $a$ is a function of $x$ and $t$. Hence $f$ as defined will be a function of $x$.,ie. $f(x)=\int_0^\infty g(x,t)\, dt$ where $g(x,t)$ is your integrand.
- To numerically integrate (as question title asks &given function of Gaussian's[diffusion eqn soln]), $f(x)$ needs a numerical argument.
- I am not sure what your ultimate aim is.
With these comments and hopefully helpful:
a[x_, t_, q_, n_] := q Exp[-x^2/(4 n t)]/(4 Pi n t)^(3/2);
f[x_, q_, n_, k1_, k2_] :=
k1 NIntegrate[a[x, t, q, n]/(k2 + a[x, t, q, n]), {t, 0, Infinity}]
Applying, e.g. visualingf
:
Plot[f[x, 1, 1, 1, 1], {x, -1, 1}]
This may take variable time depending on arguments. I hope this facilitates your aims.