with my sub - i integrated the erf(x) with limits 0 and (x/(2sqrt(kt)))
to get u
can't you do this?
Of course you can, but you is a greater probability of error . The actual operations are just the same, but you are writing the formula in all its gory detail from the beginning, which is error prone. Notice that you have to apply the fundamental theorem of calculus, which tells you that if [latex]$F(x)=\int_0^x f(t) \ \mathrm{d}t$[/latex], then F'(c)=f(c) (provided certain smoothness conditions are satisfied). Doing it your way you do not have [latex]$\int_0^x$[/latex], but [latex]$\int_0^{g(x)}$[/latex]. Having a function of x in the limits of integration is not a problem (you just apply the chain rule), but can be confusing if you are not very confident. The best way is to use the chain rule from the beginning and keep the expressions you have to differentiate as simple as possible.