Let f:= x^5+x^2*y*z^2+z^3*x*y; and let S= {{2,1,0},{7,7,1},{5,1,0},{3,0,1}} be a set of points .
I need to calculate the tangent planes at each point of S and then substitute the tangent planes in f .
I have tried to compute the tangents as below but to substitute the tangent planes in f , I couldn't do that.
f := x^5 + x^2*y*z^2 + z^3*x*y;
diff[var_, point_] :=
D[f, var] /. {x -> point[[1]], y -> point[[2]], z -> point[[3]]}
tangent[point_] := (x - point[[1]]) diff[x,
point] + (y - point[[2]]) diff[y, point] + (z - point[[3]]) diff[
z, point] + (f /. {x -> point[[1]], y -> point[[2]],
z -> point[[3]]})
m = {{2, 1, 0}, {7, 7, 1}, {5, 1, 0}, {3, 0, 1}};
tangent /@ m // FullSimplify
(* {16 (-8 + 5 x), 7 (-9828 + 1730 x + 8 y + 119 z),
3125 (-4 + x), 405 x + 12 (-81 + y)} *)

