Search the corpus

    Total differentiability at the origin when $f_x$ is continuous

    P-34W2F

    Area
    Prelim
    Topics
    Differentiation, Multivariable Calculus
    Seen at
    UGA
    Years
    2014
    Status
    draft

    Let \(f: \mathbb{R}^2 \to \mathbb{R}\) be continuous.

    1. Define what it means for \(f\) to be (totally) differentiable at the origin.

    2. Suppose \(\partial f/\partial x\) is continuous at \((0,0)\), while \(\partial f/\partial y\) exists at \((0,0)\). Prove that \(f\) is differentiable at \((0,0)\).

    Note: You can “buy” the answer to part (a) for 4 points. Also you can earn partial credit on part (b) by making the stronger assumption both partial derivatives are continuous at \((0,0)\).

    Solution

    A function \(f: \RR^2 \to \RR\) is totally differentiable at \(\vector x\) if there exists a linear map \(D: \RR^2 \to \RR\) such that \[f(\vector x + \vector h)- f(\vector x) = D(\vector x)\vector h + \varepsilon(\vector h) \text{ where } \frac{\varepsilon(\vector h)}{\norm{\vector h}} \to 0. \] Equivalently, it is when the following limit exists and satisfies \[ \lim_{\vector h \to \vector 0} \abs{\frac{f(\vector x + \vector h) - f(\vector x) - D(\vector x)\vector h}{\norm{\vector h}}} = 0, \] in which case we write \(f' = D\), or in this special case, \(f' = \nabla f\).

    Substituting in $\vector x = \vector 0$, being differentiable at zero requires that $\exists D$ such that
    $$
    f(\vector h) - f(\vector 0) = D(\vector 0)\vector h + \varepsilon(\vector h), ~\frac{\varepsilon(\vector h)}{\norm{\vector h}} \to 0, 
    \\ \text{ or } \\ 
    \lim_{\vector h \to \vector 0} \abs{\frac{f(\vector h) - f(\vector 0) - D(\vector 0)\vector h}{\norm{\vector h}}} = 0.
    $$
    We'll make use the mean value theorem. The general statement is
    $$
    f' \text{ exists and continuous on } (a,b)
    \implies \exists A \in [a,b] \suchthat \\
    f(b) - f(a) = f'(c)(b-a)
    $$
    and here we'll use
    $$
    f_x \text{ exists and continuous on } (0, t) 
    \implies \exists A \in [0, t] \suchthat \\ 
    f(t, y) - f(0, y) = f_x(A, y)(t - 0) = tf_x(A, y) \\
    \implies \color{purple} f(t, y) - f(0, y) = tf_x(A, y)
    $$
    where moreover 
    $$
    \lim_{t\to 0} f_x(A, y) = f_x(\lim_{t\to 0} A, y) = f(0, y)
    $$ 
    since $f_x$ was assumed to be continuous.
    
    We'll also use the "best linear approximation" definition of differentiability. In general, it states
    $$
    f' \text{ exists on } (a,b) \\
    \implies f(x) = f(a) + f'(a)(x-a) + o(x-a),~ \frac{o(x-a)}{x-a} \to 0 \\
    \implies f(x) - f(a) = f'(a)(x-a) + o(x-a),~ \frac{o(x-a)}{x-a} \to 0 \\
    \implies f(b) - f(a) = f'(a)(b-a) + o(b-a),~ \frac{o(b-a)}{b-a} \to 0
    $$
    and here we'll take $a=0, b=t$, so $x-a = x$ and $b-a = t$, and use the variant
    $$
    f_y \text{ exists on } (0, t) \\ 
    \implies f(x, t) - f(x, 0) = f_y(x, 0)(t - 0) + o(t),~ \frac{o(t)}{t} \to 0 \\
    \implies \color{green}f(x, t) - f(x, 0) = tf_y(x,0) + o(t), ~\frac{o(t)}{t} \to 0.
    $$
    We can then write
    $$\begin{align*}
    f(h_1, h_2) - f(0, 0)
    &= {\color{green}f(h_1, h_2) - f(h_1, 0)} + {\color{purple}f(h_1, 0) - f(0, 0)} \\
    &= {\color{green}h_2f_y(0, 0) + o(h_2)} + {\color{purple}h_1f_x(A, 0)}\\
    &= (h_1 f_x(0, 0) - {\color{red}h_1 f_x(0, 0)}) + {\color{purple}h_1f_x(A, 0)} + {\color{green}h_2f_y(0, 0) + o(h_2)} \\
    &= h_1 f_x(0, 0) + {\color{green}h_2 f_y(0, 0)} + h_1({\color{purple}f_x(A,0)} - {\color{red}f_x(0,0)}) + {\color{green}o(h_2)}
    \end{align*}$$
    
    Now, since $f_x$ is continuous, ${\color{purple}f_x(A,0)} - {\color{red}f_x(0,0)} \to 0$ and so $h_1(f_x(A,0) - f_x(0,0)) = o(h_1)$. We thus have
    $$\begin{align*}
    f(h_1, h_2) - f(0, 0)
    &= h_1 f_x(0, 0) + h_2 f_y(0, 0) + o(h_1) + o(h_2) \\
    &= h_1 f_x(0, 0) + h_2 f_y(0, 0) + o(\norm{\vector h}) \\ \\
    &\implies 
    f(h_1, h_2) - f(0, 0) - h_1 f_x(0, 0) - h_2 f_y(0, 0) = o(\norm{\vector h})
    \end{align*}$$
    
    and so if we define 
    $$D(\vector h) = h_1 f_x(0, 0) + h_2 f_y(0, 0),
    $$ 
    
    we can take absolute values to find that 
    $$
    \abs{f(\vector h) - f(\vector 0) - D(\vector h)} = o(\norm{\vector h}) \\
    \text{ and so } \\
    \lim_{\vector h \to \vector 0} \abs{\frac{f(\vector h) - f(\vector 0) - D(\vector h)}{\norm{\vector h}}} = 0
    $$
    
    which forces $f$ to be totally differentiable at $\vector 0$ with derivative $D$.
    Solution

    Goal: Prove that if the partial derivatives \(f_x\) and \(f_y\) of \(f: \mathbb{R}^2 \to \mathbb{R}\) exist in an open neighborhood of \((0,0)\) and \(f_x\) is continuous at \((0,0)\), then \(f\) is (totally) differentiable at \((0,0)\) provided \(f_y(0,0)\) exists.

    1. Definition: \(f\) is differentiable at \(\mathbf{0} = (0,0)\) with total derivative \(L = (f_x(\mathbf{0}), f_y(\mathbf{0}))\) if and only if\[\lim_{\mathbf{h} \to \mathbf{0}} \frac{|f(h_1, h_2) - f(0,0) - h_1 f_x(0,0) - h_2 f_y(0,0)|}{\|\mathbf{h}\|} = 0.\]

    2. Decomposition of the difference: For small \(\mathbf{h} = (h_1, h_2)\),\[f(h_1, h_2) - f(0,0) = [f(h_1, h_2) - f(0, h_2)] + [f(0, h_2) - f(0,0)].\]

    Trivial algebraic identity by adding and subtracting \(f(0, h_2)\).

    3. Application of the single-variable Mean Value Theorem:There exists \(\theta \in (0, 1)\) such that \(f(h_1, h_2) - f(0, h_2) = h_1 f_x(\theta h_1, h_2)\).

    For fixed \(h_2\), the function \(g(t) = f(t, h_2)\) is differentiable on the interval between \(0\) and \(h_1\) because \(f_x\) exists in a neighborhood of \((0,0)\). By the single-variable MVT, \(g(h_1) - g(0) = h_1 g'(\theta h_1) = h_1 f_x(\theta h_1, h_2)\).

    4. Linear approximation along the \(y\)-axis:\(f(0, h_2) - f(0,0) = h_2 f_y(0,0) + r(h_2)\) where \(\lim_{h_2 \to 0} \frac{r(h_2)}{h_2} = 0\).

    By definition of the partial derivative \(f_y(0,0) = \lim_{h_2 \to 0} \frac{f(0, h_2) - f(0,0)}{h_2}\).

    5. Bounding the remainder:\[|f(h_1, h_2) - f(0,0) - h_1 f_x(0,0) - h_2 f_y(0,0)| \le |h_1| |f_x(\theta h_1, h_2) - f_x(0,0)| + |r(h_2)|.\]

    Substitute 3 and 4 into 2 and apply the triangle inequality: \[f(\mathbf{h}) - f(\mathbf{0}) - h_1 f_x(\mathbf{0}) - h_2 f_y(\mathbf{0}) = h_1 [f_x(\theta h_1, h_2) - f_x(0,0)] + r(h_2).\]

    6. The limit as \(\|\mathbf{h}\| \to 0\) vanishes:Proof:

    6.1. Since \(|h_1| \le \|\mathbf{h}\|\), \(\frac{|h_1| |f_x(\theta h_1, h_2) - f_x(0,0)|}{\|\mathbf{h}\|} \le |f_x(\theta h_1, h_2) - f_x(0,0)|\).

    6.2. As \(\mathbf{h} \to \mathbf{0}\), \((\theta h_1, h_2) \to (0,0)\). Since \(f_x\) is continuous at \((0,0)\), \(\lim_{\mathbf{h} \to \mathbf{0}} |f_x(\theta h_1, h_2) - f_x(0,0)| = 0\).

    6.3. Since \(|h_2| \le \|\mathbf{h}\|\), \(\frac{|r(h_2)|}{\|\mathbf{h}\|} \le \frac{|r(h_2)|}{|h_2|} \to 0\) as \(h_2 \to 0\) (for \(h_2 \neq 0\); for \(h_2 = 0\), \(r(h_2) = 0\)).

    6.4. Combining these bounds shows the quotient in 1 tends to \(0\).

    7. Conclusion: \(f\) is totally differentiable at \((0,0)\).

    6. Q.E.D.

    Source Collections

    Guide Appearances

    What links to this