I need to derive the 3rd order Runge Kutta method which needs a tedious computation of partial derivatives, which i have a feeling i will make a mistake on eventually. I was wondering if there is any software or something those lines that will help me do this? Here is the setup
$$ f = f(t,x)=x'=x'(t)=\frac{dx(t)}{dt} $$ $$ x(t+h)=x(t)+hx'(t)+\frac{h^2}{2}x''(t)+\frac{h^3}{6}x'''(t)+O(h^4) $$ $$ x(t+h)=x(t)+hf+\frac{h^2}{2}(f_t+f_xf)+\frac{h^3}{6}(f_{tt}+f_{tx}f+f_{xt}f+f_tf_x+f_{xx}f^2+(f_x)^2f)+O(h^4) $$ 3rd order $$ O(h^4)=0 $$ This is where i need help. It is defined that $$ f(x+h,t+k)=\sum\limits_{i=1}^\infty {\frac{1}{i!}(h\frac{\partial}{\partial t}+k\frac{\partial}{\partial x})^i}f(x,t) $$ For the Runge Kutta method, k is a function of x and t. I need to show that $$ x(t+h)=x(t)+\frac{1}{9}(2F_1+3F_2+4F_3) $$ Where $$ F_1=hf(t,x) , F_2=hf(t+\frac{1}{2}h,x+\frac{1}{2}F_1),F_3=hf(t+\frac{3}{4}h,x+\frac{3}{4}F_2) $$ I need either a detailed explanation on how to derive this or at least some software that can expand $$ f(x+ah,t+bk) , k=F(x,t) $$ Thanks