| 1 |
\section{Exemples avec les packages \tkzname{alterqcm} et \tkzname{tkz-tab}} |
| 2 |
|
| 3 |
|
| 4 |
\shorthandoff{:} |
| 5 |
\begin{alterqcm}[lq=110mm] |
| 6 |
|
| 7 |
\AQmessage{ La figure 1. donne la représentation graphique d'une fonction $f$ définie sur $\mathbf{R}^+$ et la figure 2 celle d'une primitive de $f$ sur $\mathbf{R}^+$. |
| 8 |
|
| 9 |
\begin{center} |
| 10 |
\begin{tikzpicture}[xscale=2.25,yscale=1] |
| 11 |
\tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6] |
| 12 |
\tkzDrawX |
| 13 |
\tkzDrawY |
| 14 |
\tkzFct[samples=100,domain = -1:2.2]{x+exp(x-1)} |
| 15 |
\tkzDefPoint(1,2){pt1} |
| 16 |
\tkzDrawPoint(pt1) |
| 17 |
\tkzPointShowCoord[xlabel=$1$,ylabel=$2$](pt1) |
| 18 |
\tkzDefPoint(2,4.71828){pt2} |
| 19 |
\tkzDrawPoint(pt2) |
| 20 |
\tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2) |
| 21 |
\tkzRep |
| 22 |
\end{tikzpicture} |
| 23 |
\end{center} |
| 24 |
|
| 25 |
\begin{center} |
| 26 |
\begin{tikzpicture}[xscale=2.25,yscale=1] |
| 27 |
\tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6] |
| 28 |
\tkzDrawX |
| 29 |
\tkzDrawY |
| 30 |
\tkzFct[samples=100,domain = -1:2.2]{x*x/2+exp(x-1)} |
| 31 |
\tkzDefPoint(1,1.5){pt1} |
| 32 |
\tkzDrawPoint(pt1) |
| 33 |
\tkzPointShowCoord[xlabel=$1$,ylabel=$3/2$](pt1) |
| 34 |
\tkzDefPoint(2,4.71828){pt2} |
| 35 |
\tkzDrawPoint(pt2) |
| 36 |
\tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2) |
| 37 |
\tkzRep |
| 38 |
\end{tikzpicture} |
| 39 |
\end{center}} |
| 40 |
|
| 41 |
\AQquestion{Quelle est l'aire, en unités d'aire, de la partie du plan limitée par la représentation graphique de la fonction $f$, l'axe des abscisses et les |
| 42 |
droites d'équation $x = 1$ et $x = 2$ ? } |
| 43 |
{{$\text{e} + \cfrac{3}{4}$}, |
| 44 |
{$\text{e} + \cfrac{1}{2}$}, |
| 45 |
{$1$} |
| 46 |
} |
| 47 |
\end{alterqcm} |
| 48 |
|
| 49 |
\begin{alterqcm}[lq=90mm,pre=false,numbreak=1] |
| 50 |
\AQmessage{La fonction $k$ définie et strictement positive sur $\mathbf{R}^+$ est connue par son tableau de variations. |
| 51 |
|
| 52 |
\begin{center} |
| 53 |
\begin{tikzpicture} |
| 54 |
\tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$k(x)$/1.5} |
| 55 |
{$0$,$1$,$3$,$+\infty$} |
| 56 |
\tkzTabVar{-/ /,% |
| 57 |
+/ /,% |
| 58 |
-/ /,% |
| 59 |
+/ $+\infty$ /}% |
| 60 |
\end{tikzpicture} |
| 61 |
\end{center}% |
| 62 |
} |
| 63 |
|
| 64 |
\AQquestion{Pami les tableaux suivants, quel est le tableau de variations de la fonction $g$ définie sur |
| 65 |
$\mathbf{R}^+$ par \[g(x) = \cfrac{1}{k(x)}\ ? \]} |
| 66 |
{{Tableau A}, |
| 67 |
{Tableau B}, |
| 68 |
{Tableau C} |
| 69 |
} |
| 70 |
|
| 71 |
\AQmessage{ |
| 72 |
\begin{center} |
| 73 |
Tableau A |
| 74 |
|
| 75 |
\begin{tikzpicture} |
| 76 |
\tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$g(x)$/1.5} |
| 77 |
{$0$,$1$,$3$,$+\infty$} |
| 78 |
\tkzTabVar{-/ /,% |
| 79 |
+/ /,% |
| 80 |
-/ /,% |
| 81 |
+/ $+\infty$ /}% |
| 82 |
\end{tikzpicture} |
| 83 |
|
| 84 |
\end{center} |
| 85 |
|
| 86 |
|
| 87 |
\begin{center} |
| 88 |
Tableau B |
| 89 |
|
| 90 |
\begin{tikzpicture} |
| 91 |
\tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$g(x)$/1.5} |
| 92 |
{$0$,$1$,$3$,$+\infty$} |
| 93 |
\tkzTabVar{+/ /,% |
| 94 |
-/ /,% |
| 95 |
+/ /,% |
| 96 |
-/ $-\infty$ /}% |
| 97 |
\end{tikzpicture} |
| 98 |
|
| 99 |
\end{center} |
| 100 |
|
| 101 |
\begin{center} |
| 102 |
Tableau C |
| 103 |
|
| 104 |
\begin{tikzpicture} |
| 105 |
\tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$g(x)$/1.5} |
| 106 |
{$0$,$1$,$3$,$+\infty$} |
| 107 |
\tkzTabVar{-/ /,% |
| 108 |
+/ /,% |
| 109 |
-/ /,% |
| 110 |
+/ $0$ /}% |
| 111 |
\end{tikzpicture} |
| 112 |
|
| 113 |
\end{center} |
| 114 |
} |
| 115 |
|
| 116 |
\AQquestion{Soit $h$ la fonction définie sur $\mathbf{R}$ par $h(x) = \text{e}^x - x + 1$. |
| 117 |
On note $\mathcal{C}$ la courbe représentative de $h$ dans un repère |
| 118 |
orthonormal $O;\vec{\imath};\vec{\jmath}$.} |
| 119 |
{{% |
| 120 |
\begin{minipage}{5cm} |
| 121 |
La droite d'équation $y = 1$ est |
| 122 |
asymptote à $\mathcal{C}$% |
| 123 |
\end{minipage} |
| 124 |
}, |
| 125 |
{\begin{minipage}{5cm} |
| 126 |
La droite d'équation $x = 0$ est |
| 127 |
asymptote à $\mathcal{C}$ |
| 128 |
\end{minipage}}, |
| 129 |
{\begin{minipage}{5cm} |
| 130 |
La droite d'équation $y = -x + 1$ est |
| 131 |
asymptote à $\mathcal{C}$ |
| 132 |
\end{minipage}} |
| 133 |
} |
| 134 |
\AQquestion{En économie, le coût marginal est le coût occasionné par la |
| 135 |
production d'une unité supplémentaire, et on considère que le coût |
| 136 |
marginal est assimilé à la dérivée du coût total.\\ |
| 137 |
Dans une entreprise, une étude a montré que le coût marginal |
| 138 |
$C_{m}(q)$ exprimé en millliers d'euro en fonction du nombre $q$ |
| 139 |
d'articles fabriqués est donné par la relation : |
| 140 |
\[C_{m}(q) = 3q^2 - 10q + \cfrac{2}{q} + 20.\] |
| 141 |
} |
| 142 |
{{ $C_{r}(q) = q^3 - 5q^2 + 2\ln q + 20q + 9984$}, |
| 143 |
{$C_{r}(q) = q^3 - 5q^2 + 2\ln q + 20q - 6$}, |
| 144 |
{$C_{r}(q) = 6q - 10 - \cfrac{2}{q^2}$} |
| 145 |
} |
| 146 |
|
| 147 |
\end{alterqcm} |
| 148 |
|
| 149 |
Voici le code des deux représentations de $f$ et de sa primitive~: |
| 150 |
|
| 151 |
\subsubsection{Première représentation} |
| 152 |
\begin{tkzexample}[code only] |
| 153 |
\begin{tikzpicture}[xscale=2.25,yscale=1] |
| 154 |
\tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6] |
| 155 |
\tkzDrawX |
| 156 |
\tkzDrawY |
| 157 |
\tkzFct[samples=100,domain = -1:2.2]{x+exp(x-1)} |
| 158 |
\tkzDefPoint(1,2){pt1} |
| 159 |
\tkzDrawPoint(pt1) |
| 160 |
\tkzPointShowCoord[xlabel=$1$,ylabel=$2$](pt1) |
| 161 |
\tkzDefPoint(2,4.71828){pt2} |
| 162 |
\tkzDrawPoint(pt2) |
| 163 |
\tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2) |
| 164 |
\tkzRep |
| 165 |
\end{tikzpicture} |
| 166 |
\end{tkzexample} |
| 167 |
|
| 168 |
\subsubsection{Seconde représentation} |
| 169 |
\begin{tkzexample}[] |
| 170 |
\begin{tikzpicture}[xscale=2.25,yscale=1] |
| 171 |
\tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6] |
| 172 |
\tkzDrawX |
| 173 |
\tkzDrawY |
| 174 |
\tkzFct[samples=100,domain =-1:2.2]{x*x/2+exp(x-1)} |
| 175 |
\tkzDefPoint(1,1.5){pt1} |
| 176 |
\tkzDrawPoint(pt1) |
| 177 |
\tkzPointShowCoord[xlabel=$1$,ylabel=$3/2$](pt1) |
| 178 |
\tkzDefPoint(2,4.71828){pt2} |
| 179 |
\tkzDrawPoint(pt2) |
| 180 |
\tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2) |
| 181 |
\tkzRep |
| 182 |
\end{tikzpicture} |
| 183 |
\end{tkzexample} |
| 184 |
|
| 185 |
Code d'un tableau de variations |
| 186 |
|
| 187 |
\begin{tkzltxexample}[] |
| 188 |
\begin{tikzpicture} |
| 189 |
\tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$k(x)$/1.5} |
| 190 |
{$0$,$1$,$3$,$+\infty$} |
| 191 |
\tkzTabVar{-/ /,% |
| 192 |
+/ /,% |
| 193 |
-/ /,% |
| 194 |
+/ $+\infty$ /}% |
| 195 |
\end{tikzpicture} |
| 196 |
\end{tkzltxexample} |
| 197 |
|
| 198 |
|
| 199 |
|
| 200 |
|
| 201 |
\endinput |