Debian Codegraph @

texmf-dist/doc/latex/tkz-euclide/TKZdoc-euclide-examples.tex

raw
1 \section{Some interesting examples}
2
3 \subsection{Square root of the integers}
4 \begin{tikzpicture}
5 \node [mybox,title={Square root of the integers}] (box){%
6 \begin{minipage}{0.90\textwidth}
7 {\emph{How to get $1$, $\sqrt{2}$, $\sqrt{3}$ with a rule and a compass.
8 }}
9 \end{minipage}
10 };
11 \end{tikzpicture}
12
13 \begin{tkzexample}[latex=7cm,small]
14 \begin{tikzpicture}
15 \tkzDefPoint(0,0){O}
16 \tkzDefPoint(1,0){a0}
17 \tkzDrawSegment(O,a0)
18 \foreach \i [count=\j] in {0,...,16}{%
19 \tkzDefPointWith[orthogonal normed](a\i,O)
20 \tkzGetPoint{a\j}
21 \pgfmathsetmacro{\c}{5*\i}
22 \tkzDrawPolySeg[fill=teal!\c](a\i,a\j,O)}
23 \end{tikzpicture}
24 \end{tkzexample}
25
26 \subsection{About right triangle}
27 \begin{tikzpicture}
28 \node [mybox,title={About right triangle}] (box){%
29 \begin{minipage}{0.90\textwidth}
30 {\emph{We have a segment $[AB]$ and we want to determine a point $C$ such that $AC=8$~cm and $ABC$ is a right triangle in $B$.
31 }}
32 \end{minipage}
33 };
34 \end{tikzpicture}
35
36 \begin{tkzexample}[latex=7cm,small]
37 \begin{tikzpicture}[scale=.5]
38 \tkzDefPoint["$A$" left](2,1){A}
39 \tkzDefPoint["$B$" right](6,4){B}
40 \tkzDefPointWith[orthogonal,K=-1](B,A)
41 \tkzDrawLine[add = .5 and .5](B,tkzPointResult)
42 \tkzInterLC[R](B,tkzPointResult)(A,8)
43 \tkzGetPoints{J}{C}
44 \tkzDrawSegment(A,B)
45 \tkzDrawPoints(A,B,C)
46 \tkzCompass(A,C)
47 \tkzMarkRightAngle(A,B,C)
48 \tkzDrawLine[color=gray,style=dashed](A,C)
49 \tkzLabelPoint[above](C){$C$}
50 \end{tikzpicture}
51 \end{tkzexample}
52
53 \subsection{Archimedes}
54 \begin{tikzpicture}
55 \node [mybox,title={Archimedes}] (box){%
56 \begin{minipage}{0.90\textwidth}
57 {\emph{This is an ancient problem proved by the great Greek mathematician Archimedes .
58 The figure below shows a semicircle, with diameter $AB$. A tangent line is drawn and touches the semicircle at $B$. An other tangent line at a point, $C$, on the semicircle is drawn. We project the point $C$ on the line segment $[AB]$ on a point $D$. The two tangent lines intersect at the point $T$. Prove that the line $(AT)$ bisects $(CD)$
59 }}
60 \end{minipage}
61 };
62 \end{tikzpicture}
63
64 \begin{tkzexample}[]
65 \begin{tikzpicture}[scale=1]
66 \tkzDefPoint(0,0){A}\tkzDefPoint(6,0){D}
67 \tkzDefPoint(8,0){B}\tkzDefPoint(4,0){I}
68 \tkzDefLine[orthogonal=through D](A,D)
69 \tkzInterLC[R](D,tkzPointResult)(I,4) \tkzGetSecondPoint{C}
70 \tkzDefLine[orthogonal=through C](I,C) \tkzGetPoint{c}
71 \tkzDefLine[orthogonal=through B](A,B) \tkzGetPoint{b}
72 \tkzInterLL(C,c)(B,b) \tkzGetPoint{T}
73 \tkzInterLL(A,T)(C,D) \tkzGetPoint{P}
74 \tkzDrawArc(I,B)(A)
75 \tkzDrawSegments(A,B A,T C,D I,C) \tkzDrawSegment[new](I,C)
76 \tkzDrawLine[add = 1 and 0](C,T) \tkzDrawLine[add = 0 and 1](B,T)
77 \tkzMarkRightAngle(I,C,T)
78 \tkzDrawPoints(A,B,I,D,C,T)
79 \tkzLabelPoints(A,B,I,D) \tkzLabelPoints[above right](C,T)
80 \tkzMarkSegment[pos=.25,mark=s|](C,D) \tkzMarkSegment[pos=.75,mark=s|](C,D)
81 \end{tikzpicture}
82 \end{tkzexample}
83
84 \newpage
85 \subsubsection{Square and rectangle of same area; Golden section}
86
87 \begin{tikzpicture}
88 \node [mybox,title={Book II, proposition XI \_Euclid's Elements\_}] (box){%
89 \begin{minipage}{0.90\textwidth}
90 {\emph{To construct Square and rectangle of same area.}
91 }
92 \end{minipage}
93 };
94 \end{tikzpicture}%
95
96 \begin{tkzexample}[vbox,small]
97 \begin{tikzpicture}[scale=.75]
98 \tkzDefPoint(0,0){D} \tkzDefPoint(8,0){A}
99 \tkzDefSquare(D,A) \tkzGetPoints{B}{C}
100 \tkzDefMidPoint(D,A) \tkzGetPoint{E}
101 \tkzInterLC(D,A)(E,B)\tkzGetSecondPoint{F}
102 \tkzInterLC[near](B,A)(A,F)\tkzGetFirstPoint{G}
103 \tkzDefSquare(A,F)\tkzGetFirstPoint{H}
104 \tkzInterLL(C,D)(H,G)\tkzGetPoint{I}
105 \tkzFillPolygon[teal!10](I,G,B,C)
106 \tkzFillPolygon[teal!10](A,F,H,G)
107 \tkzDrawArc[angles](E,B)(0,120)
108 \tkzDrawSemiCircle(A,F)
109 \tkzDrawSegments(A,F E,B H,I F,H)
110 \tkzDrawPolygons(A,B,C,D)
111 \tkzDrawPoints(A,...,I)
112 \tkzLabelPoints[below right](A,E,D,F,I)
113 \tkzLabelPoints[above right](C,B,G,H)
114 \end{tikzpicture}
115 \end{tkzexample}
116
117 \newpage
118
119 \subsubsection{Steiner Line and Simson Line}
120
121 \begin{tikzpicture}
122 \node [mybox,title={Steiner Line and Simson Line}] (box){%
123 \begin{minipage}{0.90\textwidth}
124 {\emph{Consider the triangle ABC and a point M on its circumcircle. The projections of M on the sides of the triangle are on a line (Steiner Line), The three closest points to M on lines AB, AC, and BC are collinear. It's the Simson Line.
125 }}
126 \end{minipage}
127 };
128 \end{tikzpicture}%
129
130 \begin{tkzexample}[latex=7cm,small]
131 \begin{tikzpicture}[scale=.75,rotate=-20]
132 \tkzDefPoint(0,0){B}
133 \tkzDefPoint(2,4){A} \tkzDefPoint(7,0){C}
134 \tkzDefCircle[circum](A,B,C)
135 \tkzGetPoint{O}
136 \tkzDrawCircle(O,A)
137 \tkzCalcLength(O,A)
138 \tkzGetLength{rOA}
139 \tkzDefShiftPoint[O](40:\rOA){M}
140 \tkzDefShiftPoint[O](60:\rOA){N}
141 \tkzDefTriangleCenter[orthic](A,B,C)
142 \tkzGetPoint{H}
143 \tkzDefSpcTriangle[orthic,name=H](A,B,C){a,b,c}
144 \tkzDefPointsBy[reflection=over A--B](M,N){P,P'}
145 \tkzDefPointsBy[reflection=over A--C](M,N){Q,Q'}
146 \tkzDefPointsBy[reflection=over C--B](M,N){R,R'}
147 \tkzDefMidPoint(M,P)\tkzGetPoint{I}
148 \tkzDefMidPoint(M,Q)\tkzGetPoint{J}
149 \tkzDefMidPoint(M,R)\tkzGetPoint{K}
150 \tkzDrawSegments[new](P,R M,P M,Q M,R N,P'%
151 N,Q' N,R' P',R' I,K)
152 \tkzDrawPolygons(A,B,C)
153 \tkzDrawPoints(A,B,C,H,M,N,P,Q,R,P',Q',R',I,J,K)
154 \tkzLabelPoints(A,B,C,H,M,N,P,Q,R,P',Q',R',I,J,K)
155 \end{tikzpicture}
156 \end{tkzexample}
157
158 \newpage
159 \subsection{Lune of Hippocrates}
160
161 \begin{tikzpicture}
162 \node [mybox,title={Lune of Hippocrates}] (box){%
163 \begin{minipage}{0.90\textwidth}
164 { \emph{From wikipedia : In geometry, the lune of Hippocrates, named after Hippocrates of Chios, is a lune bounded by arcs of two circles, the smaller of which has as its diameter a chord spanning a right angle on the larger circle.In the first figure, the area of the lune is equal to the area of the triangle ABC. Hippocrates of Chios (ancient Greek mathematician,)
165 }}
166 \end{minipage}
167 };
168 \end{tikzpicture}%
169
170 \begin{tkzexample}[latex=7cm,small]
171 \begin{tikzpicture}
172 \tkzInit[xmin=-2,xmax=5,ymin=-1,ymax=6]
173 \tkzClip % allows you to define a bounding box
174 % large enough
175 \tkzDefPoint(0,0){A}\tkzDefPoint(4,0){B}
176 \tkzDefSquare(A,B)
177 \tkzGetFirstPoint{C}
178 \tkzDrawPolygon[fill=green!5](A,B,C)
179 \begin{scope}
180 \tkzClipCircle[out](B,A)
181 \tkzDefMidPoint(C,A) \tkzGetPoint{M}
182 \tkzDrawSemiCircle[fill=teal!5](M,C)
183 \end{scope}
184 \tkzDrawArc[delta=0](B,C)(A)
185 \end{tikzpicture}
186 \end{tkzexample}
187
188 \subsection{Lunes of Hasan Ibn al-Haytham}
189
190 \begin{tikzpicture}
191 \node [mybox,title={Lune of Hippocrates}] (box){%
192 \begin{minipage}{0.90\textwidth}
193 { \emph{From wikipedia : the Arab mathematician Hasan Ibn al-Haytham (Latinized name Alhazen) showed that two lunes, formed on the two sides of a right triangle, whose outer boundaries are semicircles and whose inner boundaries are formed by the circumcircle of the triangle, then the areas of these two lunes added together are equal to the area of the triangle. The lunes formed in this way from a right triangle are known as the lunes of Alhazen.
194 }}
195 \end{minipage}};
196 \end{tikzpicture}%
197
198 \begin{tkzexample}[latex=7cm,small]
199 \begin{tikzpicture}[scale=.5,rotate=180]
200 \tkzInit[xmin=-1,xmax=11,ymin=-4,ymax=7]
201 \tkzClip
202 \tkzDefPoints{0/0/A,8/0/B}
203 \tkzDefTriangle[pythagore,swap](A,B)
204 \tkzGetPoint{C}
205 \tkzDrawPolygon[fill=green!5](A,B,C)
206 \tkzDefMidPoint(C,A) \tkzGetPoint{I}
207 \begin{scope}
208 \tkzClipCircle[out](I,A)
209 \tkzDefMidPoint(B,A) \tkzGetPoint{x}
210 \tkzDrawSemiCircle[fill=teal!5](x,A)
211 \tkzDefMidPoint(B,C) \tkzGetPoint{y}
212 \tkzDrawSemiCircle[fill=teal!5](y,B)
213 \end{scope}
214 \tkzSetUpCompass[/tkzcompass/delta=0]
215 \tkzDefMidPoint(C,A) \tkzGetPoint{z}
216 \tkzDrawSemiCircle(z,A)
217 \end{tikzpicture}
218 \end{tkzexample}
219
220 \newpage
221 \subsection{About clipping circles}\label{About clipping circles}
222 \begin{tikzpicture}
223 \node [mybox,title={About clipping circles}] (box){%
224 \begin{minipage}{0.90\textwidth}
225 { \emph{The problem is the management of the bounding box. First you have to define a rectangle in which the figure will be inserted. This is done with the first two lines.
226 }}
227 \end{minipage}
228 };
229 \end{tikzpicture}%
230
231 \begin{tkzexample}[latex=7cm,small]
232 \begin{tikzpicture}
233 \tkzInit[xmin=0,xmax=6,ymin=0,ymax=6]
234 \tkzClip
235 \tkzDefPoints{0/0/A, 6/0/B}
236 \tkzDefSquare(A,B) \tkzGetPoints{C}{D}
237 \tkzDefMidPoint(A,B) \tkzGetPoint{M}
238 \tkzDefMidPoint(A,D) \tkzGetPoint{N}
239 \tkzDefMidPoint(B,C) \tkzGetPoint{O}
240 \tkzDefMidPoint(C,D) \tkzGetPoint{P}
241 \begin{scope}
242 \tkzClipCircle[out](M,B) \tkzClipCircle[out](P,D)
243 \tkzFillPolygon[teal!20](M,N,P,O)
244 \end{scope}
245 \begin{scope}
246 \tkzClipCircle[out](N,A) \tkzClipCircle[out](O,C)
247 \tkzFillPolygon[teal!20](M,N,P,O)
248 \end{scope}
249 \begin{scope}
250 \tkzClipCircle(P,C) \tkzClipCircle(N,A)
251 \tkzFillPolygon[teal!20](N,P,D)
252 \end{scope}
253 \begin{scope}
254 \tkzClipCircle(O,C) \tkzClipCircle(P,C)
255 \tkzFillPolygon[teal!20](P,C,O)
256 \end{scope}
257 \begin{scope}
258 \tkzClipCircle(M,B) \tkzClipCircle(O,B)
259 \tkzFillPolygon[teal!20](O,B,M)
260 \end{scope}
261 \begin{scope}
262 \tkzClipCircle(N,A) \tkzClipCircle(M,A)
263 \tkzFillPolygon[teal!20](A,M,N)
264 \end{scope}
265 \tkzDrawSemiCircles(M,B N,A O,C P,D)
266 \tkzDrawPolygons(A,B,C,D M,N,P,O)
267 \end{tikzpicture}
268 \end{tkzexample}
269
270 \newpage
271 \subsection{Similar isosceles triangles}
272
273 \begin{tikzpicture}
274 \node [mybox,title={Similar isosceles triangles}] (box){%
275 \begin{minipage}{0.90\textwidth}
276 { \emph{The following is from the excellent site \textbf{Descartes et les Mathématiques}. I did not modify the text and I am only the author of the programming of the figures.
277 \url{http://debart.pagesperso-orange.fr/seconde/triangle.html}
278 }}
279 \end{minipage}
280 };
281 \end{tikzpicture}%
282
283 The following is from the excellent site \textbf{Descartes et les Mathématiques}. I did not modify the text and I am only the author of the programming of the figures.
284
285 \url{http://debart.pagesperso-orange.fr/seconde/triangle.html}
286
287 Bibliography:
288
289 \begin{itemize}
290 \item Géométrie au Bac - Tangente, special issue no. 8 - Exercise 11, page 11
291
292 \item Elisabeth Busser and Gilles Cohen: 200 nouveaux problèmes du "Monde" - POLE 2007 (200 new problems of "Le Monde")
293
294 \item Affaire de logique n° 364 - Le Monde February 17, 2004
295 \end{itemize}
296
297
298 Two statements were proposed, one by the magazine \textit{Tangente} and the other by \textit{Le Monde}.
299
300 \vspace*{2cm}
301 \emph{Editor of the magazine "Tangente"}: \textcolor{orange}{Two similar isosceles triangles $AXB$ and $BYC$ are constructed with main vertices $X$ and $Y$, such that $A$, $B$ and $C$ are aligned and that these triangles are "indirect". Let $\alpha$ be the angle at vertex $\widehat{AXB}$ = $\widehat{BYC}$. We then construct a third isosceles triangle $XZY$ similar to the first two, with main vertex $Z$ and "indirect".
302 We ask to demonstrate that point $Z$ belongs to the straight line $(AC)$.}
303
304 \vspace*{2cm}
305 \emph{Editor of "Le Monde"}: \textcolor{orange}{We construct two similar isosceles triangles $AXB$ and $BYC$ with principal vertices $X$ and $Y$, such that $A$, $B$ and $C$ are aligned and that these triangles are "indirect". Let $\alpha$ be the angle at vertex $\widehat{AXB}$ = $\widehat{BYC}$. The point Z of the line segment $[AC]$ is equidistant from the two vertices $X$ and $Y$.\\
306 At what angle does he see these two vertices?}
307
308 \vspace*{2cm} The constructions and their associated codes are on the next two pages, but you can search before looking. The programming respects (it seems to me ...) my reasoning in both cases.
309
310 \subsection{Revised version of "Tangente"}
311 \begin{tkzexample}[]
312 \begin{tikzpicture}[scale=.8,rotate=60]
313 \tkzDefPoint(6,0){X} \tkzDefPoint(3,3){Y}
314 \tkzDefShiftPoint[X](-110:6){A} \tkzDefShiftPoint[X](-70:6){B}
315 \tkzDefShiftPoint[Y](-110:4.2){A'} \tkzDefShiftPoint[Y](-70:4.2){B'}
316 \tkzDefPointBy[translation= from A' to B ](Y) \tkzGetPoint{Y}
317 \tkzDefPointBy[translation= from A' to B ](B') \tkzGetPoint{C}
318 \tkzInterLL(A,B)(X,Y) \tkzGetPoint{O}
319 \tkzDefMidPoint(X,Y) \tkzGetPoint{I}
320 \tkzDefPointWith[orthogonal](I,Y)
321 \tkzInterLL(I,tkzPointResult)(A,B) \tkzGetPoint{Z}
322 \tkzDefCircle[circum](X,Y,B) \tkzGetPoint{O}
323 \tkzDrawCircle(O,X)
324 \tkzDrawLines[add = 0 and 1.5](A,C) \tkzDrawLines[add = 0 and 3](X,Y)
325 \tkzDrawSegments(A,X B,X B,Y C,Y) \tkzDrawSegments[color=red](X,Z Y,Z)
326 \tkzDrawPoints(A,B,C,X,Y,O,Z)
327 \tkzLabelPoints(A,B,C,Z) \tkzLabelPoints[above right](X,Y,O)
328 \end{tikzpicture}
329 \end{tkzexample}
330
331 \subsection{"Le Monde" version}
332
333 \begin{tkzexample}[]
334 \begin{tikzpicture}[scale=1.25]
335 \tkzDefPoint(0,0){A}
336 \tkzDefPoint(3,0){B}
337 \tkzDefPoint(9,0){C}
338 \tkzDefPoint(1.5,2){X}
339 \tkzDefPoint(6,4){Y}
340 \tkzDefCircle[circum](X,Y,B) \tkzGetPoint{O}
341 \tkzDefMidPoint(X,Y) \tkzGetPoint{I}
342 \tkzDefPointWith[orthogonal](I,Y) \tkzGetPoint{i}
343 \tkzDrawLines[add = 2 and 1,color=orange](I,i)
344 \tkzInterLL(I,i)(A,B) \tkzGetPoint{Z}
345 \tkzInterLC(I,i)(O,B) \tkzGetFirstPoint{M}
346 \tkzDefPointWith[orthogonal](B,Z) \tkzGetPoint{b}
347 \tkzDrawCircle(O,B)
348 \tkzDrawLines[add = 0 and 2,color=orange](B,b)
349 \tkzDrawSegments(A,X B,X B,Y C,Y A,C X,Y)
350 \tkzDrawSegments[color=red](X,Z Y,Z)
351 \tkzDrawPoints(A,B,C,X,Y,Z,M,I)
352 \tkzLabelPoints(A,B,C,Z)
353 \tkzLabelPoints[above right](X,Y,M,I)
354 \end{tikzpicture}
355 \end{tkzexample}
356
357 \subsection{Triangle altitudes}
358
359 \begin{tikzpicture}
360 \node [mybox,title={Triangle altitudes}] (box){%
361 \begin{minipage}{0.90\textwidth}
362 { \emph{From Wikipedia : The following is again from the excellent site \textbf{Descartes et les Mathématiques} (Descartes and the Mathematics).
363 \url{http://debart.pagesperso-orange.fr/geoplan/geometrie_triangle.html}.
364 The three altitudes of a triangle intersect at the same H-point.
365 }}
366 \end{minipage}
367 };
368 \end{tikzpicture}%
369
370 \begin{tkzexample}[vbox,small]
371 \begin{tikzpicture}
372 \tkzDefPoint(0,0){C} \tkzDefPoint(7,0){B}
373 \tkzDefPoint(5,6){A}
374 \tkzDefMidPoint(C,B) \tkzGetPoint{I}
375 \tkzInterLC(A,C)(I,B)
376 \tkzGetFirstPoint{B'}
377 \tkzInterLC(A,B)(I,B)
378 \tkzGetSecondPoint{C'}
379 \tkzInterLL(B,B')(C,C') \tkzGetPoint{H}
380 \tkzInterLL(A,H)(C,B) \tkzGetPoint{A'}
381 \tkzDefCircle[circum](A,B',C') \tkzGetPoint{O}
382 \tkzDrawArc(I,B)(C)
383 \tkzDrawPolygon(A,B,C)
384 \tkzDrawCircle[color=red](O,A)
385 \tkzDrawSegments[color=orange](B,B' C,C' A,A')
386 \tkzMarkRightAngles(C,B',B B,C',C C,A',A)
387 \tkzDrawPoints(A,B,C,A',B',C',H)
388 \tkzLabelPoints[above right](A,B',C',H)
389 \tkzLabelPoints[below right](B,C,A')
390 \end{tikzpicture}
391 \end{tkzexample}
392
393 \subsection{Altitudes - other construction}
394
395 \begin{tkzexample}[vbox,small]
396 \begin{tikzpicture}
397 \tkzDefPoint(0,0){A} \tkzDefPoint(8,0){B}
398 \tkzDefPoint(5,6){C}
399 \tkzDefMidPoint(A,B)\tkzGetPoint{O}
400 \tkzDefPointBy[projection=onto A--B](C) \tkzGetPoint{P}
401 \tkzInterLC[common=A](C,A)(O,A)
402 \tkzGetFirstPoint{M}
403 \tkzInterLC(C,B)(O,A)
404 \tkzGetSecondPoint{N}
405 \tkzInterLL(B,M)(A,N)\tkzGetPoint{I}
406 \tkzDefCircle[diameter](A,B)\tkzGetPoint{x}
407 \tkzDefCircle[diameter](I,C)\tkzGetPoint{y}
408 \tkzDrawCircles(x,A y,C)
409 \tkzDrawSegments(C,A C,B A,B B,M A,N)
410 \tkzMarkRightAngles[fill=brown!20](A,M,B A,N,B A,P,C)
411 \tkzDrawSegment[style=dashed,color=orange](C,P)
412 \tkzLabelPoints(O,A,B,P)
413 \tkzLabelPoint[left](M){$M$}
414 \tkzLabelPoint[right](N){$N$}
415 \tkzLabelPoint[above](C){$C$}
416 \tkzLabelPoint[above right](I){$I$}
417 \tkzDrawPoints[color=red](M,N,P,I)
418 \tkzDrawPoints[color=brown](O,A,B,C)
419 \end{tikzpicture}
420 \end{tkzexample}
421
422 \newpage
423 \subsection{Three circles in an Equilateral Triangle }
424 \begin{tikzpicture}
425 \node [mybox,title={Three circles in an Equilateral Triangle}] (box){%
426 \begin{minipage}{0.90\textwidth}
427 { \emph{From Wikipedia : In geometry, the Malfatti circles are three circles inside a given triangle such that each circle is tangent to the other two and to two sides of the triangle. They are named after Gian Francesco Malfatti, who made early studies of the problem of constructing these circles in the mistaken belief that they would have the largest possible total area of any three disjoint circles within the triangle. Below is a study of a particular case with an equilateral triangle and three identical circles.
428 }}
429 \end{minipage}
430 };
431 \end{tikzpicture}%
432 \begin{tkzexample}[latex=7cm,small]
433 \begin{tikzpicture}[scale=.8]
434 \tkzDefPoints{0/0/A,8/0/B,0/4/a,8/4/b,8/8/c}
435 \tkzDefTriangle[equilateral](A,B) \tkzGetPoint{C}
436 \tkzDefMidPoint(A,B) \tkzGetPoint{M}
437 \tkzDefMidPoint(B,C) \tkzGetPoint{N}
438 \tkzDefMidPoint(A,C) \tkzGetPoint{P}
439 \tkzInterLL(A,N)(M,a) \tkzGetPoint{Ia}
440 \tkzDefPointBy[projection = onto A--B](Ia)
441 \tkzGetPoint{ha}
442 \tkzInterLL(B,P)(M,b) \tkzGetPoint{Ib}
443 \tkzDefPointBy[projection = onto A--B](Ib)
444 \tkzGetPoint{hb}
445 \tkzInterLL(A,c)(M,C) \tkzGetPoint{Ic}
446 \tkzDefPointBy[projection = onto A--C](Ic)
447 \tkzGetPoint{hc}
448 \tkzInterLL(A,Ia)(B,Ib) \tkzGetPoint{G}
449 \tkzDefSquare(A,B) \tkzGetPoints{D}{E}
450 \tkzDrawPolygon(A,B,C)
451 \tkzClipBB
452 \tkzDrawSemiCircles[gray,dashed](M,B A,M
453 A,B B,A G,Ia)
454 \tkzDrawCircles[gray](Ia,ha Ib,hb Ic,hc)
455 \tkzDrawPolySeg(A,E,D,B)
456 \tkzDrawPoints(A,B,C,G,Ia,Ib,Ic)
457 \tkzDrawSegments[gray,dashed](C,M A,N B,P
458 M,a M,b A,a a,b b,B A,D Ia,ha)
459 \end{tikzpicture}
460 \end{tkzexample}
461
462 \newpage
463 \subsection{Law of sines}
464 \begin{tikzpicture}
465 \node [mybox,title={Law of sines}] (box){%
466 \begin{minipage}{0.90\textwidth}
467 {From wikipedia : \emph{In trigonometry, the law of sines, sine law, sine formula, or sine rule is an equation relating the lengths of the sides of a triangle (any shape) to the sines of its angles.
468 }}
469 \end{minipage}
470 };
471 \end{tikzpicture}%
472
473 \begin{tkzexample}[latex=7cm,small]
474 \begin{tikzpicture}
475 \tkzDefPoints{0/0/A,5/1/B,2/6/C}
476 \tkzDefTriangleCenter[circum](A,B,C)
477 \tkzGetPoint{O}
478 \tkzDefPointBy[symmetry= center O](B)
479 \tkzGetPoint{D}
480 \tkzDrawPolygon[color=brown](A,B,C)
481 \tkzDrawCircle(O,A)
482 \tkzDrawPoints(A,B,C,D,O)
483 \tkzDrawSegments[dashed](B,D A,D)
484 \tkzLabelPoint[left](D){$D$}
485 \tkzLabelPoint[below](A){$A$}
486 \tkzLabelPoint[above](C){$C$}
487 \tkzLabelPoint[right](B){$B$}
488 \tkzLabelPoint[below](O){$O$}
489 \tkzLabelSegment(B,C){$a$}
490 \tkzLabelSegment[left](A,C){$b$}
491 \tkzLabelSegment(A,B){$c$}
492 \end{tikzpicture}
493 \end{tkzexample}
494
495 In the triangle $ABC$
496
497 \begin{equation}
498 \frac{a}{\sin A} = \frac{b}{\sin B} =\frac{c}{\sin C}
499 \end{equation}
500
501 \[\widehat{C} = \widehat{D}\]
502 \begin{equation}
503 \frac{c}{2R} = \sin D = \sin C
504 \end{equation}
505
506 Then \[ \frac{c}{\sin C} = 2R\]
507
508 \newpage
509 \subsection{Flower of Life}
510 \begin{tikzpicture}
511 \node [mybox,title={Book IV, proposition XI \_Euclid's Elements\_}] (box){%
512 \begin{minipage}{0.90\textwidth}
513 {\emph{Sacred geometry can be described as a belief system attributing a religious or cultural value to many of the fundamental forms of space and time. According to this belief system, the basic patterns of existence are perceived as sacred because in contemplating them one is contemplating the origin of all things. By studying the nature of these forms and their relationship to each other, one may seek to gain insight into the scientific, philosophical, psychological, aesthetic and mystical laws of the universe.
514 The Flower of Life is considered to be a symbol of sacred geometry, said to contain ancient, religious value depicting the fundamental forms of space and time. In this sense, it is a visual expression of the connections life weaves through all mankind, believed by some to contain a type of Akashic Record of basic information of all living things.
515 }}
516 \end{minipage}
517 };
518 \end{tikzpicture}%
519
520 One of the beautiful arrangements of circles found at the Temple of Osiris at Abydos, Egypt (Rawles 1997). \\
521 Weisstein, Eric W. "Flower of Life." From MathWorld--A Wolfram Web Resource.\\ \url{http://mathworld.wolfram.com/FlowerofLife.html}
522
523 \begin{tkzexample}[vbox,small]
524 \begin{tikzpicture}[scale=.75]
525 \tkzSetUpLine[line width=2pt,color=teal!80!black]
526 \tkzSetUpCompass[line width=2pt,color=teal!80!black]
527 \tkzDefPoint(0,0){O} \tkzDefPoint(2.25,0){A}
528 \tkzDrawCircle(O,A)
529 \foreach \i in {0,...,5}{
530 \tkzDefPointBy[rotation= center O angle 30+60*\i](A)\tkzGetPoint{a\i}
531 \tkzDefPointBy[rotation= center {a\i} angle 120](O)\tkzGetPoint{b\i}
532 \tkzDefPointBy[rotation= center {a\i} angle 180](O)\tkzGetPoint{c\i}
533 \tkzDefPointBy[rotation= center {c\i} angle 120](a\i)\tkzGetPoint{d\i}
534 \tkzDefPointBy[rotation= center {c\i} angle 60](d\i)\tkzGetPoint{f\i}
535 \tkzDefPointBy[rotation= center {d\i} angle 60](b\i)\tkzGetPoint{e\i}
536 \tkzDefPointBy[rotation= center {f\i} angle 60](d\i)\tkzGetPoint{g\i}
537 \tkzDefPointBy[rotation= center {d\i} angle 60](e\i)\tkzGetPoint{h\i}
538 \tkzDefPointBy[rotation= center {e\i} angle 180](b\i)\tkzGetPoint{k\i}
539 \tkzDrawCircle(a\i,O)
540 \tkzDrawCircle(b\i,a\i)
541 \tkzDrawCircle(c\i,a\i)
542 \tkzDrawArc[rotate](f\i,d\i)(-120)
543 \tkzDrawArc[rotate](e\i,d\i)(180)
544 \tkzDrawArc[rotate](d\i,f\i)(180)
545 \tkzDrawArc[rotate](g\i,f\i)(60)
546 \tkzDrawArc[rotate](h\i,d\i)(60)
547 \tkzDrawArc[rotate](k\i,e\i)(60)
548 }
549 \tkzClipCircle(O,f0)
550 \end{tikzpicture}
551 \end{tkzexample}
552
553
554 \newpage
555 \subsection{Pentagon in a circle}
556 \begin{tikzpicture}
557 \node [mybox,title={Book IV, proposition XI \_Euclid's Elements\_}] (box){%
558 \begin{minipage}{0.90\textwidth}
559 {\emph{To inscribe an equilateral and equiangular pentagon in a given circle.
560 }}
561 \end{minipage}
562 };
563 \end{tikzpicture}%
564
565 \begin{tkzexample}[vbox,small]
566 \begin{tikzpicture}[scale=.75]
567 \tkzDefPoint(0,0){O}
568 \tkzDefPoint(5,0){A}
569 \tkzDefPoint(0,5){B}
570 \tkzDefPoint(-5,0){C}
571 \tkzDefPoint(0,-5){D}
572 \tkzDefMidPoint(A,O) \tkzGetPoint{I}
573 \tkzInterLC(I,B)(I,A) \tkzGetPoints{F}{E}
574 \tkzInterCC(O,C)(B,E) \tkzGetPoints{D3}{D2}
575 \tkzInterCC(O,C)(B,F) \tkzGetPoints{D4}{D1}
576 \tkzDrawArc[angles](B,E)(180,360)
577 \tkzDrawArc[angles](B,F)(220,340)
578 \tkzDrawLine[add=.5 and .5](B,I)
579 \tkzDrawCircle(O,A)
580 \tkzDefCircle[diameter](O,A) \tkzGetPoint{x}
581 \tkzDrawCircle(x,A)
582 \tkzDrawSegments(B,D C,A)
583 \tkzDrawPolygon[new](D,D1,D2,D3,D4)
584 \tkzDrawPoints(A,...,D,O)
585 \tkzDrawPoints[new](E,F,I,D1,D2,D4,D3)
586 \tkzLabelPoints[below left](A,...,D,O)
587 \tkzLabelPoints[new,below right](I,E,F,D1,D2,D4,D3)
588 \end{tikzpicture}
589 \end{tkzexample}
590
591 \newpage
592 \subsection{Pentagon in a square}
593 \begin{tikzpicture}
594 \node [mybox,title={Pentagon in a square}] (box){%
595 \begin{minipage}{0.90\textwidth}
596 { \emph{To inscribe a pentagon in a given square.
597 }}
598 \end{minipage}
599 };
600 \end{tikzpicture}%
601
602 \begin{tkzexample}[vbox,small]
603 \begin{tikzpicture}[scale=.75]
604 \tkzDefPoints{0/0/O,-5/-5/A,5/-5/B}
605 \tkzDefSquare(A,B) \tkzGetPoints{C}{D}
606 \tkzDefMidPoint(A,B) \tkzGetPoint{F}
607 \tkzDefMidPoint(C,D) \tkzGetPoint{E}
608 \tkzDefMidPoint(B,C) \tkzGetPoint{G}
609 \tkzDefMidPoint(A,D) \tkzGetPoint{K}
610 \tkzInterLC[near](C,D)(E,B) \tkzGetFirstPoint{T}
611 \tkzDefMidPoint(D,T) \tkzGetPoint{I}
612 \tkzInterCC[with nodes](O,D,I)(E,D,I) \tkzGetSecondPoint{H}
613 \tkzInterLC(O,H)(O,E) \tkzGetSecondPoint{M}
614 \tkzInterCC(O,E)(E,M) \tkzGetFirstPoint{Q}
615 \tkzInterCC[with nodes](O,O,E)(Q,E,M) \tkzGetFirstPoint{P}
616 \tkzInterCC[with nodes](O,O,E)(P,E,M) \tkzGetFirstPoint{N}
617 \tkzCompasss(O,H E,H)
618 \tkzDrawArc(E,B)(T)
619 \tkzDrawPolygons[purple](A,B,C,D M,E,Q,P,N)
620 \tkzDrawCircle(O,E)
621 \tkzDrawSegments(T,I O,H E,H E,F G,K)
622 \tkzDrawPoints(T,M,Q,P,N,I)
623 \tkzLabelPoints(A,B,O,N,P,Q,M,H)
624 \tkzLabelPoints[above right](C,D,E,I,T)
625 \end{tikzpicture}
626 \end{tkzexample}
627
628 \newpage
629 \subsection{Hexagon Inscribed}
630 \begin{tikzpicture}
631 \node [mybox,title={Hexagon Inscribed}] (box){%
632 \begin{minipage}{0.90\textwidth}
633 {\emph{To inscribe a regular hexagon in a given equilateral triangle perfectly inside it (no boarders).
634 }}
635 \end{minipage}
636 };
637 \end{tikzpicture}%
638
639 \subsubsection{Hexagon Inscribed version 1} % (fold)
640 \label{ssub:hexagon_inscribed_version_1}
641 \begin{tkzexample}[latex=7cm,small]
642 \begin{tikzpicture}[scale=.5]
643 \pgfmathsetmacro{\c}{6}
644 \tkzDefPoints{0/0/A,\c/0/B}
645 \tkzDefTriangle[equilateral](A,B)\tkzGetPoint{C}
646 \tkzDefTriangleCenter[centroid](A,B,C)
647 \tkzGetPoint{I}
648 \tkzDefPointBy[homothety=center A ratio 1./3](B)
649 \tkzGetPoint{c1}
650 \tkzInterLC(B,C)(I,c1) \tkzGetPoints{a1}{a2}
651 \tkzInterLC(A,C)(I,c1) \tkzGetPoints{b1}{b2}
652 \tkzInterLC(A,B)(I,c1) \tkzGetPoints{c1}{c2}
653 \tkzDrawPolygon(A,B,C)
654 \tkzDrawCircle[thin,orange](I,c1)
655 \tkzDrawPolygon[red,thick](a2,a1,b2,b1,c2,c1)
656 \end{tikzpicture}
657 \end{tkzexample}
658 % subsubsection hexagon_inscribed_version_1 (end)
659
660 \subsubsection{Hexagon Inscribed version 2} % (fold)
661 \label{ssub:hexagon_inscribed_version_2}
662 \begin{tkzexample}[latex=7cm,small]
663 \begin{tikzpicture}[scale=.5]
664 \pgfmathsetmacro{\c}{6}
665 \tkzDefPoints{0/0/A,\c/0/B}
666 \tkzDefTriangle[equilateral](A,B)\tkzGetPoint{C}
667 \tkzDefTriangleCenter[centroid](A,B,C)
668 \tkzGetPoint{I}
669 \tkzDefPointsBy[rotation= center I%
670 angle 60](A,B,C){a,b,c}
671 \tkzDrawPolygon[fill=teal!20,opacity=.5](A,B,C)
672 \tkzDrawPolygon[fill=purple!20,opacity=.5](a,b,c)
673 \end{tikzpicture}
674 \end{tkzexample}
675 % subsubsection hexagon_inscribed_version_2 (end)
676
677 \newpage
678 \subsection{Power of a point with respect to a circle}
679
680 \begin{tikzpicture}
681 \node [mybox,title={Power of a point with respect to a circle}] (box){%
682 \begin{minipage}{0.90\textwidth}
683 {\emph{$\overline{MA} \times \overline{MB}={MT}^2={MO}^2-{OT}^2$} }
684 \end{minipage}
685 };
686 \end{tikzpicture}%
687
688 \begin{tkzexample}[vbox,small]
689 \begin{tikzpicture}
690 \pgfmathsetmacro{\r}{2}%
691 \pgfmathsetmacro{\xO}{6}%
692 \pgfmathsetmacro{\xE}{\xO-\r}%
693 \tkzDefPoints{0/0/M,\xO/0/O,\xE/0/E}
694 \tkzDefCircle[diameter](M,O)
695 \tkzGetPoint{I}
696 \tkzInterCC(I,O)(O,E) \tkzGetPoints{T}{T'}
697 \tkzDefShiftPoint[O](45:2){B}
698 \tkzInterLC(M,B)(O,E) \tkzGetPoints{A}{B}
699 \tkzDrawCircle(O,E)
700 \tkzDrawSemiCircle[dashed](I,O)
701 \tkzDrawLine(M,O)
702 \tkzDrawLines(M,T O,T M,B)
703 \tkzDrawPoints(A,B,T)
704 \tkzLabelPoints[above](A,B,O,M,T)
705 \end{tikzpicture}
706 \end{tkzexample}
707
708 \newpage
709 \subsection{Radical axis of two non-concentric circles}
710 \begin{tikzpicture}
711 \node [mybox,title={Radical axis of two non-concentric circles}] (box){%
712 \begin{minipage}{0.90\textwidth}
713 {From Wikipedia : \emph{In geometry, the radical axis of two non-concentric circles is the set of points whose power with respect to the circles are equal. For this reason the radical axis is also called the power line or power bisector of the two circles. The notation radical axis was used by the French mathematician M. Chasles as axe radical.
714 }}
715 \end{minipage}
716 };
717 \end{tikzpicture}%
718
719 \begin{tkzexample}[vbox,small]
720 \begin{tikzpicture}
721 \tkzDefPoints{0/0/A,4/2/B,2/3/K}
722 \tkzDefCircle[R](A,1)\tkzGetPoint{a}
723 \tkzDefCircle[R](B,2)\tkzGetPoint{b}
724 \tkzDefCircle[R](K,3)\tkzGetPoint{k}
725 \tkzDrawCircles(A,a B,b)
726 \tkzDrawCircle[dashed,new](K,k)
727 \tkzInterCC(A,a)(K,k) \tkzGetPoints{a}{a'}
728 \tkzInterCC(B,b)(K,k) \tkzGetPoints{b}{b'}
729 \tkzDrawLines[new,add=2 and 2](a,a')
730 \tkzDrawLines[new,add=1 and 1](b,b')
731 \tkzInterLL(a,a')(b,b') \tkzGetPoint{X}
732 \tkzDefPointBy[projection= onto A--B](X) \tkzGetPoint{H}
733 \tkzDrawPoints(A,B,H,X,a,b,a',b')
734 \tkzDrawLine(A,B)
735 \tkzDrawLine[add= 1 and 2,new](X,H)
736 \tkzLabelPoints(A,B,H,X,a,b,a',b')
737 \end{tikzpicture}
738 \end{tkzexample}
739
740 \newpage
741 \subsection{External homothetic center}
742 \begin{tikzpicture}
743 \node [mybox,title={External homothetic center}] (box){%
744 \begin{minipage}{0.90\textwidth}
745 {From Wikipedia : \emph{ Given two nonconcentric circles, draw radii parallel and in the same direction. Then the line joining the extremities of the radii passes through a fixed point on the line of centers which divides that line externally in the ratio of radii. This point is called the external homothetic center, or external center of similitude (Johnson 1929, pp. 19-20 and 41).
746 }}
747 \end{minipage}
748 };
749 \end{tikzpicture}%
750
751 \begin{tkzexample}[vbox,small]
752 \begin{tikzpicture}
753 \tkzDefPoints{0/0/A,4/2/B,2/3/K}
754 \tkzDefCircle[R](A,1)\tkzGetPoint{a}
755 \tkzDefCircle[R](B,2)\tkzGetPoint{b}
756 \tkzDrawCircles(A,a B,b)
757 \tkzDrawLine(A,B)
758 \tkzDefShiftPoint[A](60:1){M}
759 \tkzDefShiftPoint[B](60:2){M'}
760 \tkzInterLL(A,B)(M,M') \tkzGetPoint{O}
761 \tkzDefLine[tangent from = O](B,M') \tkzGetPoints{X}{T'}
762 \tkzDefLine[tangent from = O](A,M) \tkzGetPoints{X}{T}
763 \tkzDrawPoints(A,B,O,T,T',M,M')
764 \tkzDrawLines[new](O,B O,T' O,M')
765 \tkzDrawSegments[new](A,M B,M')
766 \tkzLabelPoints(A,B,O,T,T',M,M')
767 \end{tikzpicture}
768 \end{tkzexample}
769
770 \newpage
771 \subsection{Tangent lines to two circles}
772
773 \begin{tikzpicture}
774 \node [mybox,title={Tangent lines to two circles}] (box){%
775 \begin{minipage}{0.90\textwidth}
776 {\emph{For two circles, there are generally four distinct lines that are tangent to both if the two circles are outside each other. For two of these, the external tangent lines, the circles fall on the same side of the line; the external tangent lines intersect in the external homothetic center}}
777 \end{minipage}
778 };
779 \end{tikzpicture}%
780
781 \begin{tkzexample}[vbox,small]
782 \begin{tikzpicture}
783 \pgfmathsetmacro{\r}{1}%
784 \pgfmathsetmacro{\R}{2}%
785 \pgfmathsetmacro{\rt}{\R-\r}%
786 \tkzDefPoints{0/0/A,4/2/B,2/3/K}
787 \tkzDefMidPoint(A,B) \tkzGetPoint{I}
788 \tkzInterLC[R](A,B)(B,\rt) \tkzGetPoints{E}{F}
789 \tkzInterCC(I,B)(B,F) \tkzGetPoints{a}{a'}
790 \tkzInterLC[R](B,a)(B,\R) \tkzGetPoints{X'}{T'}
791 \tkzDefLine[tangent at=T'](B) \tkzGetPoint{h}
792 \tkzInterLL(T',h)(A,B) \tkzGetPoint{O}
793 \tkzInterLC[R](O,T')(A,\r) \tkzGetPoints{T}{T}
794 \tkzDefCircle[R](A,\r) \tkzGetPoint{a}
795 \tkzDefCircle[R](B,\R) \tkzGetPoint{b}
796 \tkzDefCircle[R](B,\rt) \tkzGetPoint{c}
797 \tkzDrawCircles(A,a)
798 \tkzDrawCircles[orange](B,b B,c)
799 \tkzDrawCircle[orange,dashed](I,B)
800 \tkzDrawPoints(O,A,B,a,a',E,F,T',T)
801 \tkzDrawLines(O,B A,a B,T' A,T)
802 \tkzDrawLines[add= 1 and 8](T',h)
803 \tkzLabelPoints(O,A,B,a,a',E,F,T,T')
804 \end{tikzpicture}
805 \end{tkzexample}
806
807 \newpage
808 \subsection{Tangent lines to two circles with radical axis}
809
810 \begin{tikzpicture}
811 \node [mybox,title={Tangent lines to two circles with radical axis}] (box){%
812 \begin{minipage}{0.90\textwidth}
813 {\emph{As soon as two circles are not concentric, we can construct their radical axis, the set of points of equal power with respect to the two circles. We know that the radical axis is a line orthogonal to the line of the centers. Note that if we specify $P$ and $Q$ as the points of contact of one of the common exterior tangents with the two circles and $D$ and $E$ as the points of the circles outside [AB], then (DP) and (EQ) intersect on the radical axis of the two circles. We will show that this property is always true and that it allows us to construct common tangents, even when the circles have the same radius. }}
814 \end{minipage}
815 };
816 \end{tikzpicture}%
817
818
819 \begin{tkzexample}[vbox,small]
820 \begin{tikzpicture}
821 \tkzDefPoints{0/0/A,4/2/B,2/3/K}
822 \tkzDefCircle[R](A,1) \tkzGetPoint{a}
823 \tkzDefCircle[R](B,3) \tkzGetPoint{b}
824 \tkzInterCC[R](A,1)(K,3) \tkzGetPoints{a}{a'}
825 \tkzInterCC[R](B,3)(K,3) \tkzGetPoints{b}{b'}
826 \tkzInterLL(a,a')(b,b') \tkzGetPoint{X}
827 \tkzDefPointBy[projection= onto A--B](X) \tkzGetPoint{H}
828 \tkzGetPoint{C}
829 \tkzInterLC[R](A,B)(B,3) \tkzGetPoints{b1}{E}
830 \tkzInterLC[R](A,B)(A,1) \tkzGetPoints{D}{a2}
831 \tkzDefMidPoint(D,E) \tkzGetPoint{I}
832 \tkzDrawCircle[orange](I,D)
833 \tkzInterLC(X,H)(I,D) \tkzGetPoints{M}{M'}
834 \tkzInterLC(M,D)(A,D) \tkzGetPoints{P}{P'}
835 \tkzInterLC(M,E)(B,E) \tkzGetPoints{Q'}{Q}
836 \tkzInterLL(P,Q)(A,B) \tkzGetPoint{O}
837 \tkzDrawCircles(A,a B,b)
838 \tkzDrawSegments[orange](A,P I,M B,Q)
839 \tkzDrawPoints(A,B,D,E,M,I,O,P,Q,X,H)
840 \tkzDrawLines(O,E M,D M,E O,Q)
841 \tkzDrawLine[add= 3 and 4,orange](X,H)
842 \tkzLabelPoints(A,B,D,E,M,I,O,P,Q,X,H)
843 \end{tikzpicture}
844 \end{tkzexample}
845
846 \newpage
847 \subsection{Middle of a segment with a compass}
848
849 \begin{tikzpicture}
850 \node [mybox,title={Tangent lines to two circles with radical axis}] (box){%
851 \begin{minipage}{0.90\textwidth}
852 {\emph{This example involves determining the middle of a segment, using only a compass.}}
853 \end{minipage}
854 };
855 \end{tikzpicture}%
856
857 \begin{tkzexample}[vbox,small]
858 \begin{tikzpicture}
859 \tkzDefPoint(0,0){A}
860 \tkzDefRandPointOn[circle= center A radius 4] \tkzGetPoint{B}
861 \tkzDefPointBy[rotation= center A angle 180](B) \tkzGetPoint{C}
862 \tkzInterCC(A,B)(B,A) \tkzGetPoints{I}{I'}
863 \tkzInterCC(A,I)(I,A) \tkzGetPoints{J}{B}
864 \tkzInterCC(B,A)(C,B) \tkzGetPoints{D}{E}
865 \tkzInterCC(D,B)(E,B) \tkzGetPoints{M}{M'}
866 \tkzSetUpArc[color=orange,style=solid,delta=10]
867 \tkzDrawArc(C,D)(E)
868 \tkzDrawArc(B,E)(D)
869 \tkzDrawCircle[color=teal,line width=.2pt](A,B)
870 \tkzDrawArc(D,B)(M)
871 \tkzDrawArc(E,M)(B)
872 \tkzCompasss[color=orange,style=solid](B,I I,J J,C)
873 \tkzDrawPoints(A,B,C,D,E,M)
874 \tkzLabelPoints(A,B,M)
875 \end{tikzpicture}
876 \end{tkzexample}
877
878 \newpage
879
880 \subsection{Definition of a circle \_Apollonius\_}
881
882 \begin{tikzpicture}
883 \node [mybox,title={Definition of a circle \_Apollonius\_}] (box){%
884 \begin{minipage}{0.90\textwidth}
885 {From Wikipedia : \emph{Apollonius showed that a circle can be defined as the set of points in a plane that have a specified ratio of distances to two fixed points, known as foci. This Apollonian circle is the basis of the Apollonius pursuit problem. ... The solutions to this problem are sometimes called the circles of Apollonius.}}
886 \end{minipage}
887 };
888 \end{tikzpicture}%
889
890 Explanation
891
892 A circle is the set of points in a plane that are equidistant from a given point O. The distance r from the center is called the radius, and the point O is called the center. It is the simplest definition but it is not the only one. Apollonius of Perga gives another definition :
893 The set of all points whose distances from two fixed points are in a constant ratio is a circle.
894
895 With \pkg{tkz-euclide} is easy to show you the last definition
896
897 \begin{tkzexample}[vbox, small]
898 \begin{tikzpicture}[scale=1.5]
899 % Firstly we defined two fixed point.
900 % The figure depends of these points and the ratio K
901 \tkzDefPoint(0,0){A}
902 \tkzDefPoint(4,0){B}
903 % tkz-euclide.sty knows about the apollonius's circle
904 % with K=2 we search some points like I such as IA=2 x IB
905 \tkzDefCircle[apollonius,K=2](A,B) \tkzGetPoints{K1}{k}
906 \tkzDefPointOnCircle[through= center K1 angle 30 point k]
907 \tkzGetPoint{I}
908 \tkzDefPointOnCircle[through= center K1 angle 280 point k]
909 \tkzGetPoint{J}
910 \tkzDrawSegments[new](A,I I,B A,J J,B)
911 \tkzDrawCircle[color = teal,fill=teal!20,opacity=.4](K1,k)
912 \tkzDrawPoints(A,B,K1,I,J)
913 \tkzDrawSegment(A,B)
914 \tkzLabelPoints[below,font=\scriptsize](A,B,K1,I,J)
915 \end{tikzpicture}
916 \end{tkzexample}
917
918 \subsection{Application of Inversion : \tkzname{Pappus chain} }\label{pappus}
919 \begin{tikzpicture}
920 \node [mybox,title={Pappus chain}] (box){%
921 \begin{minipage}{0.90\textwidth}
922 From Wikipedia {\emph{In geometry, the Pappus chain is a ring of circles between two tangent circles investigated by Pappus of Alexandria in the 3rd century AD.}}
923 \end{minipage}
924 };
925 \end{tikzpicture}%
926
927 \begin{tkzexample}[vbox,small]
928 \begin{tikzpicture}[ultra thin]
929 \pgfmathsetmacro{\xB}{6}%
930 \pgfmathsetmacro{\xC}{9}%
931 \pgfmathsetmacro{\xD}{(\xC*\xC)/\xB}%
932 \pgfmathsetmacro{\xJ}{(\xC+\xD)/2}%
933 \pgfmathsetmacro{\r}{\xD-\xJ}%
934 \pgfmathsetmacro{\nc}{16}%
935 \tkzDefPoints{0/0/A,\xB/0/B,\xC/0/C,\xD/0/D}
936 \tkzDefCircle[diameter](A,C) \tkzGetPoint{x}
937 \tkzDrawCircle[fill=teal!30](x,C)
938 \tkzDefCircle[diameter](A,B) \tkzGetPoint{y}
939 \tkzDrawCircle[fill=teal!30](y,B)
940 \foreach \i in {-\nc,...,0,...,\nc}
941 {\tkzDefPoint(\xJ,2*\r*\i){J}
942 \tkzDefPoint(\xJ,2*\r*\i-\r){H}
943 \tkzDefCircleBy[inversion = center A through C](J,H)
944 \tkzDrawCircle[fill=teal](tkzFirstPointResult,tkzSecondPointResult)}
945 \end{tikzpicture}
946 \end{tkzexample}
947
948 \subsection{Book of lemmas proposition 1 Archimedes}
949 \begin{tikzpicture}
950 \node [mybox,title={Book of lemmas proposition 1 Archimedes}] (box){%
951 \begin{minipage}{0.90\textwidth}
952 {\emph{If two circles touch at $A$, and if $[CD]$, $[EF]$ be parallel diameters in them, $A$, $C$ and $E$ are aligned.}}
953 \end{minipage}
954 };
955 \end{tikzpicture}%
956
957 \begin{tkzexample}[latex=7cm,small]
958 \begin{tikzpicture}[scale=.75]
959 \tkzDefPoints{0/0/O_1,0/1/O_2,0/3/A}
960 \tkzDefPoint(15:3){F}
961 \tkzDefPointBy[symmetry=center O_1](F) \tkzGetPoint{E}
962 \tkzDefLine[parallel=through O_2](E,F) \tkzGetPoint{x}
963 \tkzInterLC(x,O_2)(O_2,A) \tkzGetPoints{D}{C}
964 \tkzDrawCircles(O_1,A O_2,A)
965 \tkzDrawSegments[orange](O_1,A E,F C,D)
966 \tkzDrawSegments[purple](A,E A,F)
967 \tkzDrawPoints(A,O_1,O_2,E,F,x,C,D)
968 \tkzLabelPoints(A,O_1,O_2,E,F,x,C,D)
969 \end{tikzpicture}
970 \end{tkzexample}
971
972 $(CD) \parallel (EF)$ $(AO_1)$ is secant to these two lines so
973 $\widehat{A0_2C} = \widehat{A0_1E}$.
974
975 Since the triangles $AO_2C$ and $AO_1E$ are isosceles the angles at the base are equal $widehat{AC0_2} = \widehat{AE0_1} = \widehat{CA0_2} = \widehat{EA0_1}$. Thus $A$,$C$ and $E$ are aligned
976
977 \subsection{Book of lemmas proposition 6 Archimedes}
978 \begin{tikzpicture}
979 \node [mybox,title={Book of lemmas proposition 6 Archimedes}] (box){%
980 \begin{minipage}{0.90\textwidth}
981 {\emph{Let $AC$, the diameter of a semicircle, be divided at $B$ so that $AC/AB =\phi$ or in any ratio. Describe semicircles within the first semicircle and on $AB$, $BC$ as diameters, and suppose a circle drawn touching the all three semicircles. If $GH$ be the diameter of this circle, to find relation between $GH$ and $AC$.}}
982 \end{minipage}
983 };
984 \end{tikzpicture}%
985
986
987 \begin{tkzexample}[vbox,overhang,small]
988 \begin{tikzpicture}
989 \tkzDefPoints{0/0/A,12/0/C}
990 \tkzDefGoldenRatio(A,C) \tkzGetPoint{B}
991 \tkzDefMidPoint(A,C) \tkzGetPoint{O}
992 \tkzDefMidPoint(A,B) \tkzGetPoint{O_1}
993 \tkzDefMidPoint(B,C) \tkzGetPoint{O_2}
994 \tkzDefExtSimilitudeCenter(O_1,A)(O_2,B) \tkzGetPoint{M_0}
995 \tkzDefIntSimilitudeCenter(O,A)(O_1,A) \tkzGetPoint{M_1}
996 \tkzDefIntSimilitudeCenter(O,C)(O_2,C) \tkzGetPoint{M_2}
997 \tkzInterCC(O_1,A)(M_2,C) \tkzGetFirstPoint{E}
998 \tkzInterCC(O_2,C)(M_1,A) \tkzGetSecondPoint{F}
999 \tkzInterCC(O,A)(M_0,B) \tkzGetFirstPoint{D}
1000 \tkzInterLL(O_1,E)(O_2,F) \tkzGetPoint{O_3}
1001 \tkzDefCircle[circum](E,F,B) \tkzGetPoint{0_4}
1002 \tkzInterLC(A,D)(O_1,A) \tkzGetFirstPoint{I}
1003 \tkzInterLC(C,D)(O_2,B) \tkzGetSecondPoint{K}
1004 \tkzInterLC[common=D](A,D)(O_3,D) \tkzGetFirstPoint{G}
1005 \tkzInterLC[common=D](C,D)(O_3,D) \tkzGetFirstPoint{H}
1006 \tkzInterLL(C,G)(B,K) \tkzGetPoint{M}
1007 \tkzInterLL(A,H)(B,I) \tkzGetPoint{L}
1008 \tkzInterLL(L,G)(A,C) \tkzGetPoint{N}
1009 \tkzInterLL(M,H)(A,C) \tkzGetPoint{P}
1010 \tkzDrawCircles[red,thin](O_3,F)
1011 \tkzDrawCircles[new,thin](0_4,B)
1012 \tkzDrawSemiCircles[teal](O,C O_1,B O_2,C)
1013 \tkzDrawSemiCircles[green](M_2,C)
1014 \tkzDrawSemiCircles[green,swap](M_1,A)
1015 \tkzDrawSegment(A,C)
1016 \tkzDrawSegments[new](O_1,O_3 O_2,O_3)
1017 \tkzDrawSegments[new,very thin](B,H C,G A,H G,N H,P)
1018 \tkzDrawSegments[new,very thin](B,D A,D C,D G,H I,B K,B B,G)
1019 \tkzDrawPoints(A,B,C,M_1,M_2,E,O_3,F,D,0_4,O_1,O_2,I,K,G,H,L,P,N,M)
1020 \tkzLabelPoints[font=\scriptsize](A,B,C,M_1,M_2,F,O_1,O_2,I,K,G,H,L,M,N)
1021 \tkzLabelPoints[font=\scriptsize,right](E,O_3,D,0_4,P)
1022 \end{tikzpicture}
1023 \end{tkzexample}
1024
1025 Let $GH$ be the diameter of the circle which is parallel to $AC$, and let the circle touch the semicircles on $AC$, $AB$, $BC$ in $D$, $E$, $F$ respectively.
1026
1027 Then, by Prop. 1 $A$,$G$ and $D$ are aligned, ainsi que $D$, $H$ and $C$.\\
1028 For a like reason $A$ $E$ and $H$ are aligned, $C$ $F$ and $G$are aligned, as also are $B$ $E$ and $G$, $B$ $F$ and $H$.
1029
1030 Let $(AD)$ meet the semicircle on $[AC]$ at $I$, and let $(BD)$ meet the semicircle on $[BC]$ in $K$. Join CI, CK meeting AE, BF in L, M, and let GL, HM produced meet AB in N, P respectively.
1031
1032 Now, in the triangle $AGB$, the perpendiculars from $A$, $C$ on the opposite sides meet in $L$. Therefore by the properties of triangles, $(GN)$ is perpendicular to $(AC)$.
1033 Similarly $(HP)$ is perpendicular to $(BC)$.\\
1034 Again, since the angles at $I$, $K$, $D$ are right, $(CK)$ is parallel to $(AD)$, and $(CI)$ to $(BD)$.
1035
1036 Therefore\\
1037 \[\frac{AB}{BC} = \frac{AL}{LH} = \frac{AN}{NP} \quad\text{and} \quad \frac{BC}{AB} = \frac{CM}{MG} = \frac{PC}{NP} \]
1038
1039 hence
1040
1041 \[ \frac{AN}{NP} = \frac{NP}{PC} \quad\text{so} \quad {NP}^2 = AN \times PC \]
1042
1043 Now suppose that $B$ divides $[AC]$ according to the divine proportion that is :
1044 \[\phi = \frac{AB}{BC} = \frac{AC}{AB} \quad\text{then} \quad AN = \phi NP \text{and}\quad NP = \phi PC \]
1045
1046 We have
1047 \[ AC = AN + NP + PC\quad \text{either} \quad AB + BC = = AN + NP + PC \quad \text{or} \quad (\phi + 1) BC = AN + NP + PC \]
1048
1049 we get
1050
1051 \[ (\phi + 1) BC = \phi NP + NP + PC =(\phi + 1)NP + PC = \phi(\phi + 1)PC + PC = {\phi}^2 + \phi + 1)PC \]
1052
1053 as
1054 \[ {\phi}^2 = \phi + 1 \quad \text{then} \quad (\phi + 1) BC = 2(\phi + 1) PC \quad\text{i.e.}\quad BC = 2 PC \]
1055
1056 That is,
1057 $p$ is the middle of the segment $BC$.
1058
1059 Part of the proof from \url{https://www.cut-the-knot.org}
1060
1061
1062 \subsection{ "The" Circle of APOLLONIUS}
1063
1064 \begin{tikzpicture}
1065 \node [mybox,title={The Apollonius circle of a triangle \_Apollonius\_}] (box){%
1066 \begin{minipage}{0.90\textwidth}
1067 {\emph{The circle which touches all three excircles of a triangle and encompasses them is often known as "the" Apollonius circle (Kimberling 1998, p. 102)}}
1068 \end{minipage}
1069 };
1070 \end{tikzpicture}%
1071
1072 Explanation
1073
1074 The purpose of the first examples was to show the simplicity with which we could recreate these propositions. With TikZ you need to do calculations and use trigonometry while with \pkg{tkz-euclide} you only need to build simple objects
1075
1076 But don't forget that behind or far above \pkg{tkz-euclide} there is TikZ. I'm only creating an interface between TikZ and the user of my package.
1077
1078 The last example is very complex and it is to show you all that we can do with \pkg{tkz-euclide}.
1079
1080
1081 \begin{tkzexample}[vbox,small]
1082 \begin{tikzpicture}[scale=.6]
1083 \tkzDefPoints{0/0/A,6/0/B,0.8/4/C}
1084 \tkzDefTriangleCenter[euler](A,B,C) \tkzGetPoint{N}
1085 \tkzDefTriangleCenter[circum](A,B,C) \tkzGetPoint{O}
1086 \tkzDefTriangleCenter[lemoine](A,B,C) \tkzGetPoint{K}
1087 \tkzDefTriangleCenter[ortho](A,B,C) \tkzGetPoint{H}
1088 \tkzDefSpcTriangle[excentral,name=J](A,B,C){a,b,c}
1089 \tkzDefSpcTriangle[centroid,name=M](A,B,C){a,b,c}
1090 \tkzDefCircle[in](Ma,Mb,Mc) \tkzGetPoint{Sp} % Sp Spieker center
1091 \tkzDefProjExcenter[name=J](A,B,C)(a,b,c){Y,Z,X}
1092 \tkzDefLine[parallel=through Za](A,B) \tkzGetPoint{Xc}
1093 \tkzInterLL(Za,Xc)(C,B) \tkzGetPoint{C'}
1094 \tkzDefLine[parallel=through Zc](B,C) \tkzGetPoint{Ya}
1095 \tkzInterLL(Zc,Ya)(A,B) \tkzGetPoint{A'}
1096 \tkzDefPointBy[reflection= over Ja--Jc](C')\tkzGetPoint{Ab}
1097 \tkzDefPointBy[reflection= over Ja--Jc](A')\tkzGetPoint{Cb}
1098 \tkzInterLL(K,O)(N,Sp) \tkzGetPoint{Q}
1099 \tkzInterLC(A,B)(Q,Cb) \tkzGetFirstPoint{Ba}
1100 \tkzInterLC(A,C)(Q,Cb) \tkzGetPoints{Ac}{Ca}
1101 \tkzInterLC(B,C')(Q,Cb) \tkzGetFirstPoint{Bc}
1102 \tkzInterLC[next to=Ja](Ja,Q)(Q,Cb) \tkzGetFirstPoint{F'a}
1103 \tkzInterLC[next to=Jc](Jc,Q)(Q,Cb) \tkzGetFirstPoint{F'c}
1104 \tkzInterLC[next to=Jb](Jb,Q)(Q,Cb) \tkzGetFirstPoint{F'b}
1105 \tkzInterLC[common=F'a](Sp,F'a)(Ja,F'a) \tkzGetFirstPoint{Fa}
1106 \tkzInterLC[common=F'b](Sp,F'b)(Jb,F'b) \tkzGetFirstPoint{Fb}
1107 \tkzInterLC[common=F'c](Sp,F'c)(Jc,F'c) \tkzGetFirstPoint{Fc}
1108 \tkzInterLC(Mc,Sp)(Q,Cb) \tkzGetFirstPoint{A''}
1109 \tkzDefCircle[euler](A,B,C) \tkzGetPoints{E}{e}
1110 \tkzDefCircle[ex](C,A,B) \tkzGetPoints{Ea}{a}
1111 \tkzDefCircle[ex](A,B,C) \tkzGetPoints{Eb}{b}
1112 \tkzDefCircle[ex](B,C,A) \tkzGetPoints{Ec}{c}
1113 % Calculations are done, now you can draw, mark and label
1114 \tkzDrawCircles(Q,Cb E,e)%
1115 \tkzDrawCircles(Eb,b Ea,a Ec,c)
1116 \tkzDrawPolygon(A,B,C)
1117 \tkzDrawSegments[dashed](A,A' C,C' A',Zc Za,C' B,Cb B,Ab A,Ca)
1118 \tkzDrawSegments[dashed](C,Ac Ja,Xa Jb,Yb Jc,Zc)
1119 \begin{scope}
1120 \tkzClipCircle(Q,Cb) % We limit the drawing of the lines
1121 \tkzDrawLine[add=5 and 12,orange](K,O)
1122 \tkzDrawLine[add=12 and 28,red!50!black](N,Sp)
1123 \end{scope}
1124 \tkzDrawPoints(A,B,C,K,Ja,Jb,Jc,Q,N,O,Sp,Mc,Xa,Xb,Yb,Yc,Za,Zc)
1125 \tkzDrawPoints(A',C',A'',Ab,Cb,Bc,Ca,Ac,Ba,Fa,Fb,Fc,F'a,F'b,F'c)
1126 \tkzLabelPoints(Ja,Jb,Jc,Q,Xa,Xb,Za,Zc,Ab,Cb,Bc,Ca,Ac,Ba,F'b)
1127 \tkzLabelPoints[above](O,K,F'a,Fa,A'')
1128 \tkzLabelPoints[below](B,F'c,Yc,N,Sp,Fc,Mc)
1129 \tkzLabelPoints[left](A',C',Fb)
1130 \tkzLabelPoints[right](C)
1131 \tkzLabelPoints[below right](A)
1132 \tkzLabelPoints[above right](Yb)
1133 \tkzDrawSegments(Fc,F'c Fb,F'b Fa,F'a)
1134 \tkzDrawSegments[color=green!50!black](Mc,N Mc,A'' A'',Q)
1135 \tkzDrawSegments[color=red,dashed](Ac,Ab Ca,Cb Ba,Bc Ja,Jc A',Cb C',Ab)
1136 \tkzDrawSegments[color=red](Cb,Ab Bc,Ac Ba,Ca A',C')
1137 \tkzMarkSegments[color=red,mark=|](Cb,Ab Bc,Ac Ba,Ca)
1138 \tkzMarkRightAngles(Jc,Zc,A Ja,Xa,B Jb,Yb,C)
1139 \tkzDrawSegments[green,dashed](A,F'a B,F'b C,F'c)
1140 \end{tikzpicture}
1141 \end{tkzexample}
1142
1143 \endinput