# Differentiability of Multivariable Functions
### Continuity vs. Partial Derivatives vs. Differentiability
Recall that in single variable calculus we required continuity if we wanted differentiability:

Now let us look at the following multivariable function:

We can ask two questions:
1. Is it continuous?
2. Does it have derivatives?
We can start by trying to determine if it is continuous. We can start by approaching the point $(0,0)$ along the path $y=0$:

And now we can approach the same point along the path $y=x$:

And we see that we have two different paths, and the limit along those two different paths gives two different values, so the limit does not exist. Because the limit does not exist the function is not continuous.
Now, remember in calculus I if we knew the function was not continuous then we would know that the function was not differentiable. However, will that be the same case in multivariable calculus, particularly in this example?
First let's look at the partial derivative of $f$ with respect to $x$:

Very interesting! So our partial derivative here *exists*! It is equal to a specific number!
The same argument applies for the partial derivative with respect to $y$.
So, our take away is that we have an example of a function that:
* Is **discontinuous** as $(0,0)$
* Has **partial derivatives** that exist at $(0,0)$
### Differentiability of Multivariable Functions
Lets try and build up some intuition for the differentiability of a multivariable function. Recall the single variable derivative:

We can also take a different view with a quick rearrangement of our equation:


We can now apply this type of reasoning to our multivariate function:

We can apply this back to our cross function:


Hence, we end up with $-1 =0$, meaning that our function is *not differentiable*!!!
---
Links to: [Partial-Derivatives](Partial-Derivatives.md) [Multivariable-Calculus](Multivariable-Calculus.md)
References:
* [Continuity vs Partial Derivatives vs Differentiability](https://www.youtube.com/watch?v=6Wi1kT9kR1M&list=PLHXZ9OQGMqxc_CvEy7xBKRQr6I214QJcd&index=15)
* [What is differentiability for multivariable functions?](https://www.youtube.com/watch?v=9n0cRmmxkJw&list=PLHXZ9OQGMqxc_CvEy7xBKRQr6I214QJcd&index=16)