[spec/methods] formatting fixes
[notes.git] / spec / spec-collated.tex
index 94d61876d683d0dd35373e447df8d2f1ff0f4207..e084adbe3b00bfbf96abe5203c14a0d184bcbb29 100644 (file)
@@ -1,5 +1,6 @@
 \documentclass[a4paper]{article}
 \usepackage[dvipsnames, table]{xcolor}
+\usepackage{adjustbox}
 \usepackage{amsmath}
 \usepackage{amssymb}
 \usepackage{array}
@@ -7,7 +8,7 @@
 \usepackage{dblfloatfix}
 \usepackage{enumitem}
 \usepackage{fancyhdr}
-\usepackage[a4paper,margin=2cm]{geometry}
+\usepackage[a4paper,margin=1.8cm]{geometry}
 \usepackage{graphicx}
 \usepackage{harpoon}
 \usepackage{hhline}
 \usepgflibrary{arrows.meta}
 \pgfplotsset{compat=1.16}
 \pgfplotsset{every axis/.append style={
-  axis x line=middle,    % put the x axis in the middle
-  axis y line=middle,    % put the y axis in the middle
-  axis line style={->}, % arrows on the axis
-  xlabel={$x$},          % default put x on x-axis
-  ylabel={$y$},          % default put y on y-axis
+  axis x line=middle,
+  axis y line=middle,
+  axis line style={->},
+  xlabel={$x$},
+  ylabel={$y$},
 }}
 
 \psset{dimen=monkey,fillstyle=solid,opacity=.5}
@@ -81,6 +82,7 @@
 
 \newcolumntype{L}[1]{>{\hsize=#1\hsize\raggedright\arraybackslash}X}%
 \newcolumntype{R}[1]{>{\hsize=#1\hsize\raggedleft\arraybackslash}X}%
+\newcolumntype{Y}{>{\centering\arraybackslash}X}
 
 \definecolor{cas}{HTML}{e6f0fe}
 \definecolor{important}{HTML}{fc9871}
                   \emph{Point of inflection} - max \(|\)gradient\(|\) (i.e.
                   \(f^{\prime\prime} = 0\))
 
+                  \subsubsection*{Strictly increasing/decreasing}
+
+                  For \(x_2\) and \(x_1\) where \(x_2 > x_1\):
+
+                  \textbf{Strictly increasing}\\
+                  \hspace{1em}where \(f(x_2) > f(x_1)\) or \(f^\prime(x)>0\)
+                  \textbf{strictly decreasing}\\
+                  \hspace{1em}where \(f(x_2) < f(x_1)\) or \(f^\prime(x)<0\)
+                  \begin{warning}
+                    Endpoints are included, even where gradient \(=0\)
+                  \end{warning}
+
 
                   \begin{table*}[ht]
                     \centering
-                    \begin{tabularx}{\textwidth}{rXXX}
+                    \begin{tabularx}{\textwidth}{rYYY}
                       \hline
                       \rowcolor{shade2}
-                      & \centering\(\dfrac{d^2 y}{dx^2} > 0\)  & \centering \(\dfrac{d^2y}{dx^2}<0\) & \(\dfrac{d^2y}{dx^2}=0\) (inflection) \\[1.5em]
+                      & \adjustbox{margin=0 1ex, valign=m}{\centering\(\dfrac{d^2 y}{dx^2} > 0\)}  & \adjustbox{margin=0 1ex, valign=m}{\centering \(\dfrac{d^2y}{dx^2}<0\)} & \adjustbox{margin=0 1ex, valign=m}{\(\dfrac{d^2y}{dx^2}=0\) (inflection)} \\
                       \hline
                       \(\dfrac{dy}{dx}>0\) &
                       \makecell{\\\begin{tikzpicture}\begin{axis}[axis x line=none, axis y line=none, xmin=-3,  xmax=0.8, scale=0.2, samples=50, unbounded coords=jump] \addplot[blue] {(e^(x)};  \addplot[red] {x/2.5+0.75}; \end{axis}\end{tikzpicture} \\Rising (concave up)}&