Task from homework:
Let $f:\Bbb R^n\to\Bbb R$, $f(x,y)=\langle x, y\rangle$, where $\langle\cdot,\cdot\rangle$ means the scalar product in $\Bbb R^n$. Find the differential $Df(x,y)(h,k)$.
First, the domain of $f$ is surely wrong, so with correcting it to $\Bbb R^n\times \Bbb R^n$, I'm struggling to even start because every theorem we ever mentioned in class was about functions with the domain in $\Bbb R^n$. How can $f$ be partially differentiated if the components $x$ and $y$ are again vectors? Partial derivatives were my first idea, but any help would be appreciated.
The value of the differential at a point $(x,y)$ is the linear part of the difference $\;f(x+h, y+k)-f(x,y)$. Now if $f$ is the dot product, we can use bilinearity: $$f(x+h, y+k)-f(x,y)=\langle x+h,y+k\rangle -\langle x, y\rangle=\underbrace{\langle x,k\rangle+\langle h, y\rangle}_\text{linear terms} +\underbrace{\langle h, k\rangle}_{o(\|(h,k)\|)},$$ so $\; Df_{(x,y)}(h,k)=\langle x,k\rangle+\langle h, y\rangle$.