I have the following simply function:
f[x_, y_, z_] = (x - A)^2 + (y - B)^2 + (2*z - C)^2 + (5 + z + x - D)^2 + (y - 2 + 2*x)^2 + (y - z + F)^2
I am looking for a simple way to have mathematica take the derivatives w.r.t to
x,y,z, set them to zero, create a system of 3 equations with the three unknowns where the unknowns are moved to the left, and the constants to the right (I need to see the system outputted before it is solved). I know how to do this the standard way where I write things down one step at a time, but I was wondering if there is simpler way to do it, because I have to deal with a messier function.