I'm trying to understand the computation of tangent planes. Mainly my problem is when to use the formula that involves the gradient. For example here are two different questions.

Find an equation of the tangent plane z = f(x,y) at the point (2,3, f(2,3)) at:

f(x,y) = (x)/[x^2+y^2]

Find the equation of the tangent plane at the point (-3,1,0) to the graph of z = f(x,y) defined implicitly by x(y^2+z^2) + ye^(xz) = -2

in the first question this can be solved by

fx(x0

y0)(x−x0)+fy(x0

y0)(y−y0)−(z−z0) = 0

the second question requires the use of the gradient to solve. I just want to know where to use each formula and why?