<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Calculus 📉 | Nicholas Hu</title>
    <link>https://www.math.ucla.edu/~njhu/notes/calc/</link>
      <atom:link href="https://www.math.ucla.edu/~njhu/notes/calc/index.xml" rel="self" type="application/rss+xml" />
    <description>Calculus 📉</description>
    <generator>Hugo Blox Builder (https://hugoblox.com)</generator><language>en-ca</language><lastBuildDate>Thu, 27 Nov 2025 00:00:00 +0000</lastBuildDate>
    <image>
      <url>https://www.math.ucla.edu/~njhu/media/icon_hu_d46824b1c45312fd.png</url>
      <title>Calculus 📉</title>
      <link>https://www.math.ucla.edu/~njhu/notes/calc/</link>
    </image>
    
    <item>
      <title>Derivative tests</title>
      <link>https://www.math.ucla.edu/~njhu/notes/calc/derivtests/</link>
      <pubDate>Thu, 27 Nov 2025 00:00:00 +0000</pubDate>
      <guid>https://www.math.ucla.edu/~njhu/notes/calc/derivtests/</guid>
      <description>&lt;div class=&#34;btn-links mb-3&#34;&gt;
&lt;a class=&#34;btn btn-outline-primary btn-page-header btn-sm&#34; href=&#34;../derivtests.pdf&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;
  PDF
&lt;/a&gt;
&lt;/div&gt;
&lt;!--
No newlines allowed between $$&#39;s below!
--&gt;
&lt;div style=&#34;display: none;&#34;&gt;
$$
%% Sets and functions %%
\newcommand{\set}[1]{\{ #1 \}}
\newcommand{\Set}[1]{\left \{ #1 \right\}}
\renewcommand{\emptyset}{\varnothing}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\Rn}{\mathbb{R}^n}
\newcommand{\Rm}{\mathbb{R}^m}
\newcommand{\C}{\mathbb{C}}
\newcommand{\F}{\mathbb{F}}
%% Linear algebra %%
\newcommand{\abs}[1]{\lvert #1 \rvert}
\newcommand{\Abs}[1]{\left\lvert #1 \right\rvert}
\newcommand{\inner}[2]{\langle #1, #2 \rangle}
\newcommand{\Inner}[2]{\left\langle #1, #2 \right\rangle}
\newcommand{\norm}[1]{\lVert #1 \rVert}
\newcommand{\Norm}[1]{\left\lVert #1 \right\rVert}
\newcommand{\tp}{{\top}}
\newcommand{\trans}{{\top}}
\newcommand{\span}{\operatorname{span}}
\newcommand{\im}{\operatorname{im}}
\newcommand{\ker}{\operatorname{ker}}
\newcommand{\rank}{\operatorname{rank}}
\newcommand{\proj}{\operatorname{proj}}
\newcommand{\proj}[1]{\mathop{\mathrm{proj}_{#1}}}
\newcommand{\refl}{\operatorname{refl}}
\newcommand{\refl}[1]{\mathop{\mathrm{refl}_{#1}}}
\newcommand{\K}{\mathcal{K}}
\newcommand{\L}{\mathcal{L}}
\renewcommand{\epsilon}{\varepsilon}
\newcommand{\conj}{\overline}
\newcommand{\sign}{\operatorname{sign}}
%% Colours %%
\definecolor{cblue}{RGB}{31, 119, 180}
\definecolor{corange}{RGB}{255, 127, 14}
\definecolor{cgreen}{RGB}{44, 160, 44}
\definecolor{cred}{RGB}{214, 39, 40}
\definecolor{cpurple}{RGB}{148, 103, 189}
\definecolor{cbrown}{RGB}{140, 86, 75}
\definecolor{cpink}{RGB}{227, 119, 194}
\definecolor{cgrey}{RGB}{127, 127, 127}
\definecolor{cyellow}{RGB}{188, 189, 34}
\definecolor{cteal}{RGB}{23, 190, 207}
$$
&lt;/div&gt;
&lt;!-- BODY --&gt;
&lt;p&gt;Let 

$I \subseteq \R$ be a nonempty interval and 

$f : I \to \R$ be a function. We denote the interior of 

$I$ by 

$I^\circ$.&lt;/p&gt;
&lt;h2 id=&#34;monotonicity&#34;&gt;Monotonicity&lt;/h2&gt;
&lt;p&gt;We say that 

$f$ is &lt;strong&gt;increasing&lt;/strong&gt; if 

$f(x) \leq f(y)$ for all 

$x, y \in I$ with 

$x &lt; y$ and that 

$f$ is &lt;strong&gt;strictly increasing&lt;/strong&gt; if the former inequality is strict. We define &lt;strong&gt;decreasing&lt;/strong&gt; and &lt;strong&gt;strictly decreasing&lt;/strong&gt; analogously.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Characterization of monotonicity&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Suppose that 

$f$ is continuous on 

$I$ and differentiable on 

$I^\circ$.&lt;sup id=&#34;fnref:1&#34;&gt;&lt;a href=&#34;#fn:1&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;1&lt;/a&gt;&lt;/sup&gt; Then 

$f$ is increasing on 

$I$ if and only if 

$f’ \geq 0$ on 

$I^\circ$. In addition, 

$f$ is strictly increasing on 

$I$ if 

$f’ &gt; 0$ on 

$I^\circ$.&lt;sup id=&#34;fnref:2&#34;&gt;&lt;a href=&#34;#fn:2&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;2&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;extremality&#34;&gt;Extremality&lt;/h2&gt;
&lt;p&gt;We say that 

$x \in I$ is a &lt;strong&gt;(global) minimizer&lt;/strong&gt; and that the value 

$f(x)$ is a &lt;strong&gt;(global) minimum&lt;/strong&gt; of 

$f$ if 

$f(x) \leq f(y)$ for all 

$y \in I$. We define &lt;strong&gt;(global) maximizer&lt;/strong&gt; and &lt;strong&gt;(global) maximum&lt;/strong&gt; analogously.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Extreme value theorem&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If 

$I$ is closed and bounded and 

$f$ is continuous on 

$I$, then 

$f$ has a minimizer and a maximizer in 

$I$.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We say that 

$x \in I$ is a &lt;strong&gt;local minimizer&lt;/strong&gt; and that the value 

$f(x)$ is a &lt;strong&gt;local minimum&lt;/strong&gt; of 

$f$ if there exists an 

$\epsilon &gt; 0$ such that 

$f(x) \leq f(y)$ for all 

$y \in I \cap (x-\epsilon, x+\epsilon)$. We define &lt;strong&gt;local maximizer&lt;/strong&gt; and &lt;strong&gt;local maximum&lt;/strong&gt; analogously. Clearly, any global extremizer must also be a local extremizer.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Fermat’s theorem&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Suppose that 

$x \in I^\circ$ is a local extremizer of 

$f$. If 

$f$ is differentiable at 

$x$, then 

$f’(x) = 0$ (that is, 

$x$ is a &lt;strong&gt;stationary point&lt;/strong&gt; of 

$f$).&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thus, under the hypotheses of the extreme value theorem, any extremizer of 

$f$ will either be an interior point of 

$I$ and hence a point at which 

$f$ is stationary &lt;em&gt;or&lt;/em&gt; not differentiable, or else will be a boundary point of 

$I$. We call a point of the former type (that is, a point at which 

$f$ is stationary &lt;em&gt;or&lt;/em&gt; not differentiable) a &lt;strong&gt;critical point&lt;/strong&gt; of 

$f$.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;First derivative test&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If 

$f$ is continuous at 

$x$ and there exists an 

$\epsilon &gt; 0$ such that 

$f’ \leq 0$ on 

$(x-\epsilon, x)$ and 

$f’ \geq 0$ on 

$(x, x+\epsilon)$, then 

$x$ is a local minimizer of 

$f$.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Second derivative test&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If 

$f$ is stationary at 

$x$ and 

$f&#39;&#39;(x) &gt; 0$, then 

$x$ is a local minimizer of 

$f$.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&#34;convexity&#34;&gt;Convexity&lt;/h2&gt;
&lt;p&gt;We say that 

$f$ is &lt;strong&gt;convex&lt;/strong&gt; if 

$f((1-\theta) x + \theta y) \leq (1-\theta)f(x) + \theta f(y)$ for all &lt;em&gt;distinct&lt;/em&gt; 

$x, y \in I$ and 

$\theta \in (0, 1)$ and that 

$f$ is &lt;strong&gt;strictly convex&lt;/strong&gt; if the inequality is strict. We define &lt;strong&gt;concave&lt;/strong&gt; and &lt;strong&gt;strictly concave&lt;/strong&gt; analogously.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Secant and tangent line characterizations of convexity&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Given an 

$x \in I$, let 

$g(y; x) := \frac{f(y)-f(x)}{y-x}$ for all 

$y \in I \setminus \set{x}$. Then 

$f$ is convex (resp., strictly convex) on 

$I$ if and only if 

$g$ is increasing (resp., strictly increasing) in 

$y$ for all 

$x \in I$. In addition, if 

$f$ is differentiable on 

$I^\circ$, then 

$f$ is convex (resp., strictly convex) on 

$I$ if and only if 

$g(y; x) \geq f&#39;(x)$ (resp., 

$g(y; x) &gt; f&#39;(x)$) for all 

$x \in I^\circ$ and 

$y \in I \setminus \set{x}$.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;First-order characterization of convexity&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Suppose that 

$f$ is continuous on 

$I$ and differentiable on 

$I^\circ$. Then 

$f$ is convex (resp., strictly convex) on 

$I$ if and only if 

$f’$ is increasing (resp., strictly increasing) on 

$I^\circ$.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Second-order characterization of convexity&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Suppose that 

$f$ is continuous on 

$I$ and twice differentiable on 

$I^\circ$. Then 

$f$ is convex on 

$I$ if and only if 

$f&#39;&#39; \geq 0$ on 

$I^\circ$. In addition, 

$f$ is strictly convex on 

$I$ if 

$f&#39;&#39; &gt; 0$ on 

$I^\circ$.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Minimizers of convex functions&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If 

$f$ is convex and 

$x$ is a local minimizer of 

$f$, then 

$x$ is a global minimizer of 

$f$. In addition, if 

$f$ is strictly convex, then 

$f$ has &lt;em&gt;at most one&lt;/em&gt; local minimizer.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;!--Thus, if 

$I$ is open and 

$f$ is convex and differentiable on 

$I$, then 

$x$ is a global minimizer of 

$f$ if and only if 

$x$ is a stationary point of 

$f$.--&gt;
&lt;p&gt;We say that $f$ has an &lt;strong&gt;inflection point&lt;/strong&gt; at $x$ if it is continuous and changes from strictly convex to strictly concave or vice-versa at $x$.&lt;sup id=&#34;fnref:3&#34;&gt;&lt;a href=&#34;#fn:3&#34; class=&#34;footnote-ref&#34; role=&#34;doc-noteref&#34;&gt;3&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt;
&lt;div class=&#34;footnotes&#34; role=&#34;doc-endnotes&#34;&gt;
&lt;hr&gt;
&lt;ol&gt;
&lt;li id=&#34;fn:1&#34;&gt;
&lt;p&gt;If 

$I$ is open, then 

$I^\circ = I$ and the hypothesis reduces to 

$f$ being differentiable on 

$I$.&amp;#160;&lt;a href=&#34;#fnref:1&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&#34;fn:2&#34;&gt;
&lt;p&gt;The converse is false in general: consider 

$f(x) = x^3$ on 

$I = \R$.&amp;#160;&lt;a href=&#34;#fnref:2&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li id=&#34;fn:3&#34;&gt;
&lt;p&gt;Definitions vary – some require that the graph of $f$ have a (possibly vertical) tangent line at $(x, f(x))$; others require that $f$ be twice differentiable near (but not at) $x$.&amp;#160;&lt;a href=&#34;#fnref:3&#34; class=&#34;footnote-backref&#34; role=&#34;doc-backlink&#34;&gt;&amp;#x21a9;&amp;#xfe0e;&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
</description>
    </item>
    
  </channel>
</rss>
