The concept of derivative and differential has always caused me confusion. So, I was reviewing analysis of several variables, and in a book I found the following definition
Let $X, Y$ be Banach space, $U\subset X$ an open set and $f: U\to Y$ an application, differentiable at a point $a\in U$. The (unique) linear application $A: X\to Y$, which satisfies \eqref{eq1} is called the derivative of $f$ at point $a$, denoted by $df(a):= A: X\to Y$. If $f$ is differentiable at any point in $U$, then the application $$df:U\to\mathcal{L}(X,Y) \qquad a\mapsto df(a)$$ is called the differential of $f$.
$$\forall\;\varepsilon>0\;\exists\:\delta>0\;\forall\: h\in X, \text{ such that } 0<\left\lVert h \right\lVert_{X}<\delta \Rightarrow a+h\in U \text{ and } \frac{\left\lVert f(a+h)-f(a)-Ah \right\lVert_{Y}}{\left\lVert h\right\lVert_{X}}<\varepsilon\tag{1}\label{eq1}$$
Through the site there are several posts about the difference between derivative and differential, to to quote a few (as a reference):
What is the practical difference between a differential and a derivative?
Differential vs Derivative
Are the differential and derivative of a single-variable function exactly the same thing?
But despite the good answers, I was still having trouble understanding the difference between these two concepts, until I came across the definition above. So, I would like to see if I really understand these concepts (my interest is restricted to functions $f:\mathbb{R}^m\to\mathbb{R}^n$). I thought of the following example:
Let $f:\mathbb{R}^2\to\mathbb{R}^2$, be defined by $f(x,y)=e^x(\cos y,\sin y)$. So, the differential is given by
$$df:\mathbb{R}^2\to\mathcal{L}(\mathbb{R}^2 ,\mathbb{R}^2)\quad\text{where}\quad df= \begin{pmatrix} e^x\cos y & -e^x\sin y \\ e^x\sin y & e^x\cos y \\ \end{pmatrix} $$
And the derivative "only makes sense" to speak, when talking about a derivative at a point, so, considering the point $(0,2\pi)$, the derivative at this point is given by
$$df(0,2\pi)= \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ \end{pmatrix} $$ which is a linear transformation from $\mathbb{R}^2$ to $\mathbb{R}^2$.
I would like to know if my example is correct, that is, if I managed to understand the difference between these concepts.