I have a two variable function z[x,y] = f[x,y] + g[x,y]
, such that I know the functional form of f[x,y]
but not of g[x,y]
. I have to do some symbolic calculations with the function z[x,y]
, but I would like to keep only the first order in g[x,y]
(treating g
as small). So, for example, I would like Mathematica to approximate (z[x,y])^3 = (f[x,y] + g[x,y])^3 = f[x,y]^3 + 3*f[x,y]^2*g[x,y]
, or (D[z[x,y], x])^2 = (D[f[x,y], x])^2 + 2*D[f[x,y], x]*D[g[x,y], x]
. Is there a way to do it? I have tried the most naive way, namely to use Series['exp'[z],{g, 0, 1}]
, treating g[x,y]
as a parameter rather than a function, but (as expected) it doesn't work. Do you know a way to do it?
Thank you very much in advance for anyone who will reply!