In my calculation (of a simple heat equation, for testing) using the Newton method, I tried to replace the full Jacobian matrix with an approximation vector, i.e. replacing $J$ in $$J(u)\delta u=-F(u)$$ with $$J\vec{v}\approx\frac{F(\vec{u}+\varepsilon \vec{v}) - F(\vec{u})}{\varepsilon}$$ which should be possible, after I solve the system using a GMRES-solver. Here $\varepsilon$ is calculated using $$\varepsilon=\frac{1}{n\vert\vert\vec{v}\vert\vert_2}\sum_{i=1}^n\left(b\vert u_i\vert+b\right)\text{, }b=10^{-6}$$ $F(u)$ is the function itself, i.e. $$F(u)=\nabla^2u+f$$ Now I encountered two problems:
- Usually in the first iteration $\vert\vert\vec{v}\vert\vert_2=0$, resulting in infinity for $\varepsilon$. My current solution is to set $\varepsilon=10^{-6}$ in that case, but is that correct? I could not find any solution for that in the literature
- When considering the value for $F(u)$ at each step, it decreases (as it should) when using the full version of $J$, but increases when using the approximation. Is there a way how can I narrow down the possible problems here?
How can I solve those problems (or is there literature about them which I could not find yet)?