summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tkz/tkz-fct/doc/latex/TKZdoc-fct-bac.tex
blob: 4fd537ea7f69dd6d3f94a230a977242a16320e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
\section{Exemples avec les packages \tkzname{alterqcm} et \tkzname{tkz-tab}}


\shorthandoff{:}
\begin{alterqcm}[lq=110mm]

\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}^+$.

\begin{center}
 \begin{tikzpicture}[xscale=2.25,yscale=1]
   \tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6]
   \tkzDrawX
   \tkzDrawY
   \tkzFct[samples=100,domain = -1:2.2]{x+exp(x-1)}
    \tkzDefPoint(1,2){pt1}
    \tkzDrawPoint(pt1) 
    \tkzPointShowCoord[xlabel=$1$,ylabel=$2$](pt1)
    \tkzDefPoint(2,4.71828){pt2}
    \tkzDrawPoint(pt2)  
    \tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2) 
   \tkzRep   
 \end{tikzpicture}
\end{center} 

\begin{center}
  \begin{tikzpicture}[xscale=2.25,yscale=1]
   \tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6]
   \tkzDrawX
   \tkzDrawY
   \tkzFct[samples=100,domain = -1:2.2]{x*x/2+exp(x-1)}
   \tkzDefPoint(1,1.5){pt1}
   \tkzDrawPoint(pt1)
   \tkzPointShowCoord[xlabel=$1$,ylabel=$3/2$](pt1) 
   \tkzDefPoint(2,4.71828){pt2}
   \tkzDrawPoint(pt2)
   \tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2)  
   \tkzRep   
\end{tikzpicture}
\end{center}}  

\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 
droites d'équation $x = 1$ et $x = 2$ ? }
{{$\text{e} + \cfrac{3}{4}$},
{$\text{e} + \cfrac{1}{2}$},
{$1$}
}
\end{alterqcm}

\begin{alterqcm}[lq=90mm,pre=false,numbreak=1]
\AQmessage{La fonction $k$ définie et strictement positive sur $\mathbf{R}^+$ est connue par son tableau de variations.

\begin{center}
\begin{tikzpicture}
     \tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$k(x)$/1.5}
     {$0$,$1$,$3$,$+\infty$}
     \tkzTabVar{-/            /,%
                +/            /,%
                -/            /,%
                +/ $+\infty$  /}%
     \end{tikzpicture}
\end{center}%
}

\AQquestion{Pami les tableaux suivants, quel est le tableau de variations de la fonction $g$ définie sur 
$\mathbf{R}^+$ par \[g(x) = \cfrac{1}{k(x)}\ ? \]}
{{Tableau A},
{Tableau B},
{Tableau C}
}

\AQmessage{
\begin{center}
  Tableau A
  
\begin{tikzpicture}
     \tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$g(x)$/1.5}
     {$0$,$1$,$3$,$+\infty$}
     \tkzTabVar{-/            /,%
                +/            /,%
                -/            /,%
                +/ $+\infty$  /}%
     \end{tikzpicture}

\end{center}


 \begin{center}
Tableau B

\begin{tikzpicture}
     \tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$g(x)$/1.5}
     {$0$,$1$,$3$,$+\infty$}
     \tkzTabVar{+/            /,%
                -/            /,%
                +/            /,%
                -/ $-\infty$  /}%
     \end{tikzpicture}

 \end{center}

\begin{center}
Tableau C

 \begin{tikzpicture}
     \tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$g(x)$/1.5}
     {$0$,$1$,$3$,$+\infty$}
     \tkzTabVar{-/            /,%
                +/            /,%
                -/            /,%
                +/ $0$        /}%
     \end{tikzpicture}

\end{center}
}

\AQquestion{Soit $h$ la fonction définie sur $\mathbf{R}$ par $h(x) = \text{e}^x - x + 1$.
On note $\mathcal{C}$ la courbe représentative de $h$ dans un repère 
orthonormal  $O;\vec{\imath};\vec{\jmath}$.}
{{%
\begin{minipage}{5cm}
  La droite d'équation $y = 1$ est 
  asymptote à $\mathcal{C}$%
\end{minipage}
},
{\begin{minipage}{5cm}
 La droite d'équation $x = 0$ est 
asymptote à $\mathcal{C}$
\end{minipage}},
{\begin{minipage}{5cm}
 La droite d'équation $y = -x + 1$ est 
asymptote à $\mathcal{C}$
\end{minipage}}
}
\AQquestion{En économie, le coût marginal est le coût occasionné par la 
production d'une unité supplémentaire, et on considère que le coût 
marginal est assimilé à la dérivée du coût total.\\
Dans une entreprise, une étude a montré que le coût marginal 
$C_{m}(q)$ exprimé en millliers d'euro en fonction du nombre $q$ 
d'articles fabriqués est donné par la relation :
\[C_{m}(q) = 3q^2 - 10q + \cfrac{2}{q} + 20.\]
}
{{ $C_{r}(q) = q^3 - 5q^2 + 2\ln q + 20q + 9984$},
{$C_{r}(q) = q^3 - 5q^2 + 2\ln q + 20q - 6$},
{$C_{r}(q) = 6q - 10 - \cfrac{2}{q^2}$}
}

\end{alterqcm}    

Voici le code des deux représentations de $f$ et de sa primitive~:

\subsubsection{Première représentation}
 \begin{tkzexample}[code only]
 \begin{tikzpicture}[xscale=2.25,yscale=1]
   \tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6]
   \tkzDrawX
   \tkzDrawY 
   \tkzFct[samples=100,domain = -1:2.2]{x+exp(x-1)}
   \tkzDefPoint(1,2){pt1}
   \tkzDrawPoint(pt1) 
   \tkzPointShowCoord[xlabel=$1$,ylabel=$2$](pt1)
   \tkzDefPoint(2,4.71828){pt2}
   \tkzDrawPoint(pt2)  
   \tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2)
   \tkzRep  
 \end{tikzpicture}  
 \end{tkzexample}

\subsubsection{Seconde représentation} 
 \begin{tkzexample}[]
  \begin{tikzpicture}[xscale=2.25,yscale=1]
   \tkzInit[xmin=-2,xmax=3,ymin=-1,ymax=6]
   \tkzDrawX
   \tkzDrawY
   \tkzFct[samples=100,domain =-1:2.2]{x*x/2+exp(x-1)}
   \tkzDefPoint(1,1.5){pt1}
   \tkzDrawPoint(pt1)
   \tkzPointShowCoord[xlabel=$1$,ylabel=$3/2$](pt1) 
   \tkzDefPoint(2,4.71828){pt2}
   \tkzDrawPoint(pt2)
   \tkzPointShowCoord[xlabel=$2$,ylabel=$\text{e}+2$](pt2) 
   \tkzRep  
\end{tikzpicture} 
 \end{tkzexample} 

Code d'un tableau de variations

\begin{tkzltxexample}[]
\begin{tikzpicture}
     \tkzTabInit[lgt=1,espcl=2]{$x$/0.5,$k(x)$/1.5}
     {$0$,$1$,$3$,$+\infty$}
     \tkzTabVar{-/            /,%
                +/            /,%
                -/            /,%
                +/ $+\infty$  /}%
\end{tikzpicture}  
\end{tkzltxexample}




\endinput