Partial derivatives are just a straightforward extension of derivatives as you understand them already. The key difference is that they are derivatives of multivariable functions instead of single-variable functions. Further, when you differentiate with respect to one variable, all other variables are kept constant. If you would like to build a graphical image of what the partial derivative is, well recall that the derivative of a single-variable function is just the gradient of that function. Consequently, it is also the gradient of the tangent line to that function. The partial derivative is similar to that. As when we have a function with more than a single independent variable, we have the freedom to choose which variable or variables we wish to determine our function's gradient with respect to.
If you want to visualize this, imagine a surface defined by z=f(x,y) for example. Because a tangent line is two dimensional and we're in three dimensional space, there can be more than one tangent line to a given point. As when constructing the tangent line, we must answer a question: in which direction do we want our line to be tangential to our surface? It could be tangential in the x direction or the y direction, or even in any arbitrary direction in the x-y plane. If we want the tangent line in the x direction, we will need the partial derivative with respect to x to get its gradient, whereas if we want the tangent line in the y direction, we will need the partial derivative with respect to y to get its gradient. More generally, for an arbitrary direction in the x-y plane we would use the directional derivative as it is called.
Say f is a function of two variables — x and y. Then its partial derivative with respect to x is formally defined as:
∂x∂f=h→0limhf(x+h,y)−f(x,y). This is analogous to the first principles definition of the derivative you would have learned for standard derivatives. Namely, if we are differentiating f(x):
dxdf=h→0limhf(x+h)−f(x). The only difference is that now we also have a variable y that our function f(x,y) depends on, but is kept constant when differentiating with respect to x. Say f(x,y)=2x2y. Then ∂x∂f would be:
∂x∂f=h→0limh2(x+h)2y−2x2y. Did you notice that 2y is a common factor of both terms in our numerator? Let us take it out of our limit altogether, as it is effectively a constant (it does not depend on h, after all).
∂x∂f=2yh→0limh(x+h)2−x2 Using the binomial theorem, we know that
(x+h)2=x2+2xh+h2. Hence:
∂x∂f=2yh→0limhx2+2xh+h2−x2=2yh→0limh2xh+h2=2yh→0lim2x+h=2y⋅2x=4xy. Okay, so that is the long way of finding out partial derivatives. Fortunately, there is also a faster way. Which is that we apply normal differentiation rules, but any variable we are not differentiating with respect to is treated like it is a constant. So for f(x,y)=2x2y we would treat the 2y as just a constant number and only differentiate the x2. Applying the power rule, we see that dxdx2=2x and hence:
∂x∂f=2y⋅2x=4xy.