I'm currently a student in a Vector Calculus class, and received my exam back today. I plan to go to the professor's office hours, but I'd like to ask here (in case there's some blatantly obvious fault I'm missing). Not only do I not understand why I received no partial credit in this problem, but I don't understand why it's not completely correct. I'd really appreciate any insight. The problem statement is:
Let $a,b \in \mathbb{R^n}$ with $a \neq b$. The segment $(a,b)$ in $\mathbb{R^n}$ is defined by: $$(a,b) := \{x \in \mathbb{R^n} | ~x = (1 - t)a + tb,~ t \in (0,1) \} $$
Let $f: \mathbb{R^n} \rightarrow \mathbb{R}$ be differentiable on $\mathbb{R^n}$. Use the Mean Value Theorem from single-variable calculus to show that there exists $c \in (a,b) \subset \mathbb{R^n}$ such that: $$f(b) - f(a) = [Df(c)](b-a) = \nabla f(c) \cdot (b-a)$$
Here's my proof:
We know $f$ is differentiable on $\mathbb{R^n}$ (including on the interval $(a,b)$). Fix all elements in $x$ but one, call this element $x_i$ (that is, the $i^{th}$ element of $x$. Let $a_i < c_i < b_i$. By the mean value theorem, we know there is at least one $c_i$ such that the tangent at $c_i$ is parallel to the secant between $a_i$ and $b_i$. That is, there exists a $c_i$ such that: $$\frac{f(b_i) - f(a_i)}{b_i - a_i} = \frac{\partial f(x_i)}{\partial c_i}$$ Multiplying by $(b_i - a_i)$ on both sides, we have: $$f(b_i) - f(a_i) = \frac{\partial f(x_i)}{\partial c_i}(b_i - a_i)$$ We now fix all other elements in $x$ and, by the same process, arrive at the same result for every component of $x$. This gives us: $$f(b) - f(a) = \left(\frac{\partial f(x_1)}{\partial c_1} + \frac{\partial f(x_2)}{\partial c_2} + ... + \frac{\partial f(x_n)}{\partial c_n} \right)(b-a)$$ Note that the term on the right side of the equality is just $\nabla f(c) \cdot (b-a)$, so we know that there exists some $c$ such that: $$f(b) - f(a) = \nabla f(c) \cdot (b-a)$$
I have pretty much zero idea where I went wrong (but it's, apparently, all wrong). I'm very confused.