Recently, I have been trying to discretise a PDE, however, I realized I may be lacking some fundamental knowledge regarding numerical methods.
I have the following PDE to discretise: $$ \frac{\partial g}{\partial t} = \frac{\partial f}{\partial x} $$ Now we can semi-discretise this using forward Euler in temporal space as follows: $$ g^{n+1} = g^n + \Delta t {\frac{\partial f}{\partial x}\bigg|}^n $$ where n is a superscript (not a power) and it denotes the step in time. This can be marched through time given initial conditions, and my question is, is it now possible to use classical RK4 to discretise $\frac{\partial f}{\partial x}$ in space? Problem is functions f and g are not the same which seems to be ALL the examples that textbooks dare go into. Do you some how need to link them or can you use RK4 regardless? It is also worth noting that $g = g(\alpha)$ and $f = f(\alpha) $ but they each depend on some other variables as well. Also, there is no direct link between them. How do I approach this problem?
Please let me know if more details are needed and I will elaborate. Thanks in advance.