MathJax TeX Test Page
The partial derivative is a special case of the directional derivative. These are just directional derivatives in the direction of the basis vectors. They are written like this
$$\dfrac{\partial f}{\partial x_n}(p) = D_{e_n}f(p)$$
These are easy to calculate.
Take this for example
$\dfrac{\partial f}{\partial x} x^2y + y^2x$. In this example, you could plug it into the directional derivative equation, which would be
$$\lim_{t \to 0}\dfrac{(x+t)^2y + y^2(x+t) - x^2y - y^2x}{t} = \dfrac{x^2y - x^2y + 2txy + t^2y + xy^2 - xy^2 + ty^2}{t}$$
$$=\lim_{t \to 0}2xy + y^2 + ty = \boxed{2xy + y^2}$$
That was annoying. Now, how you would actually do it is consider y as a constant. For this example, we can rename $y$ to $c$ to make it clearer and do a normal derivative.
$$\dfrac{d}{dx}x^2c + c^2x = 2xc + c^2 = 2xy + y^2$$