Use a closure. Eg \partial f_1 / \partial x_1 at x_1, x_2 is
ForwardDiff.derivative(x1 -> f1(x1, x2), x1)