Tableau de concavité avec Tikz
📅 March 05, 2024 | 👁️ Views: 115

\documentclass{standalone}
\standaloneconfig{border=2mm 2mm 2mm 2mm}
\usepackage{tikz,tkz-tab}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}
\node[align=left] at (4,1.5) {Concavité avec tikz, n'est pas supportée en tkz-tab};
\node[align=left] at (2.5,1) {à utiliser jusqu'à trouver mieu};
\tkzTabInit{$x$ /1, $f''$ /1,$f'$ /2, $C_f$ /2}{$-\infty$ , $1$ ,$+\infty$}
\tkzTabLine{, - , z , + ,}
\tkzTabVar{+/$+\infty$ , -/$-2$ , +/$+\infty$}
\begin{scope}[line width=1pt]
% le point N14 est définie dans le packet tkz-tab
% on décine des courbes avec la command "to"
% [out=90,in=180] : le debut de la courbe à un angle 90
% vers la droite et fini avec un angle horizontal (sommet de la courbe) à 180
% à une hauter de 1.9 (ajouté à y)
% puis en descend, le début 0 degré et la fin 90 degrés
\draw[red] ($(N14)+(-0.2,0.2)$) to [out=90,in=180] ($(N14)+(1,1.9)$)
to [out=0,in=90] ($(M14)+(0.7,0.2)$) coordinate (A);
\draw ($(A)+(0.2,0)$) -- ++(0.7,1.7) coordinate (B) -- ++(1,-1.7);
% debut -90 degrés, fin 180 horizontal en bas.
\draw[blue] ($(B)+(1,-0.2)$) to [out=-90,in=180] ($(B)+(2,-1.7)$)
to [out=0,in=-90] ($(B)+(3,-0.2)$) coordinate (C);
\node[below, text width=2cm, align=center] at ($(B)+(0.2,-1)$) {
\scriptscriptsize{point d'inflexion}
};
\end{scope}
\end{tikzpicture}
\end{document}