-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpww-2.tex
More file actions
7105 lines (6421 loc) · 238 KB
/
pww-2.tex
File metadata and controls
7105 lines (6421 loc) · 238 KB
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
\documentclass[oneside]{scrbook}
\usepackage{unicode-math}
\setmainfont{TeX Gyre Pagella}
\setmathfont{TeX Gyre Pagella Math}
\usepackage{graphicx}
\usepackage{mflogo}
\addtokomafont{section}{\clearpage}
\usepackage{luamplib}
\mplibtextextlabel{enable}
\everymplib{input colorbrewer-rgb;interim ahangle := 30;beginfig(0);
numeric tw; tw = \mpdim{\textwidth};}
\everyendmplib{numeric wd;
wd = xpart (urcorner bbox currentpicture - llcorner bbox currentpicture);
if wd > tw: currentpicture := currentpicture scaled (tw/wd); fi
endfig;}
\usepackage{etoc}
\newcommand{\minitoc}{\etocsettocstyle{\begingroup\small}{\endgroup}\localtableofcontentswithrelativedepth{+1}}
%--------------------
\title{Proofs without words II\\[6pt]{\Large More exercises in \MP}}
\date{March 2020 — July 2023\\[4in]
\centerline{\begin{mplibcode}
path t[], h;
numeric r; r = -30;
t0 = (for i=0 upto 2: up scaled 21 rotated 120i -- endfor cycle) rotated r;
h = (for i=0 upto 5: up scaled 34 rotated 60i -- endfor cycle) rotated r;
t1 = subpath (0, 1) of t0 -- point 1 of h -- cycle;
t2 = subpath (1, 2) of t0 -- point 3 of h -- cycle;
t3 = subpath (2, 3) of t0 -- point 5 of h -- cycle;
t4 = subpath (0, 1) of h -- point 0 of t0 -- cycle;
t5 = subpath (1, 2) of h -- point 1 of t0 -- cycle;
t6 = subpath (2, 3) of h -- point 1 of t0 -- cycle;
t7 = subpath (3, 4) of h -- point 2 of t0 -- cycle;
t8 = subpath (4, 5) of h -- point 2 of t0 -- cycle;
t9 = subpath (5, 6) of h -- point 0 of t0 -- cycle;
fill t0 withcolor Blues 7 2;
fill t1 withcolor Blues 7 1;
fill t2 withcolor Blues 7 3;
fill t3 withcolor Blues 7 3;
fill t4 withcolor Blues 7 1;
fill t5 withcolor Blues 7 1;
fill t6 withcolor Blues 7 2;
fill t7 withcolor Blues 7 5;
fill t8 withcolor Blues 7 5;
fill t9 withcolor Blues 7 2;
forsuffixes @=0, 4, 5, 6, 7, 8, 9: draw t@; endfor \end{mplibcode}}}
\author{Toby Thurston}
\setcounter{secnumdepth}{-1}
\setcounter{tocdepth}{0}
% some tex defs
\def\contrib#1{\rightline{— #1}}
\begin{document}
\maketitle
\tableofcontents
\vskip 1in
\noindent \textbf{Note:} when reading the source for each illustration, you
might like to bear in mind that the there are three \texttt{luamplib} options set that
affect how the drawings are processed.
First \texttt{mplibtextextlabel} is enabled so that strings passed to \texttt{label}
commands are automatically processed by \TeX. And secondly
\texttt{everymplib} is set so that every drawing:
\begin{itemize}
\item loads \texttt{colorbrewer-rgb} for the extended colours
\item sets \texttt{ahangle} to 30° so that you get slimmer arrow heads
\item sets a numeric variable \texttt{tw} to the current text width
\item and finally inserts the required \texttt{beginfig(0)}
\end{itemize}
Thirdly \texttt{everyendmplib} is set to insert the required \texttt{endfig}
and to scale down the current picture if it is wider than the text width.
\chapter{Geometry and Algebra}
\minitoc
\section{The Pythagorean theorem VII}
\vfill
$$
\begin{mplibcode}
numeric u;
u = 16;
path s[];
for i=0 upto 4:
for j=0 upto 4:
s[5i+j] = unitsquare shifted -(1/2,1/2)
scaled ((4-((i+j) mod 2))*u)
shifted (1/2i*u*(7,-1))
shifted (1/2j*u*(1,7));
fill s[5i+j] withcolor if odd (i+j): Blues 8 3 else: Oranges 8 3 fi;
endfor
endfor
fill subpath(0,7/4) of s[8] -- cycle withcolor Reds 8 4;
for i=0 upto 4:
for j=0 upto 4:
draw s[5i+j];
endfor
endfor
drawoptions(withpen pencircle scaled 1);
draw point 0 of s[0] -- point 7/4 of s[24];
draw point 0 of s[2] -- point 7/4 of s[14]
-- point 7/4 of s[22] -- point 0 of s[10] -- cycle;
draw point 0 of s[4] -- point 7/4 of s[ 4]
-- point 7/4 of s[20] -- point 0 of s[20] -- cycle;
\end{mplibcode}
$$
\vfill
\contrib{Annairizi of Arabia (circa 900)}
\section{The Pythagorean theorem VIII}
\vfill
$$
\begin{mplibcode}
numeric u;
u = 12mm;
path a[], b[];
a1 = ((0,0)--(1,0)--(1,1)--cycle) scaled 3u;
b0 = unitsquare scaled u;
b1 = ((1,0)--(4,0)--(4,4)--cycle) scaled u;
b2 = ((1,0)--(4,4)--(1,1)--cycle) scaled u;
a2 = a1 reflectedabout((0,0),(1,1));
b3 = b1 reflectedabout((0,0),(1,1));
b4 = b2 reflectedabout((0,0),(1,1));
picture A[], B[];
forsuffixes $=1,2:
A$ = image(fill a$ withcolor Blues 8 3; draw a$);
draw A$ shifted (3u * left);
endfor
forsuffixes $=0,1,2,3,4:
B$ = image(fill b$ withcolor Oranges 8 3; draw b$);
draw B$ shifted (4u * down);
endfor
draw A1 shifted (0u,3u);
draw A2 shifted (4u,1u);
draw B0 shifted (3u,3u);
draw B1 rotated 90 shifted (4u,-1u);
draw B2 shifted (3u,0u);
draw B3 reflectedabout(left,right) shifted (3u,8u);
draw B4 reflectedabout(down,up) rotated 90 shifted (4u,7u);
\end{mplibcode}
$$
\vfill
\contrib{Liu Hui (3rd century \textsc{A.D.})}
\section{The Pythagorean theorem IX}
\vfill
$$
\begin{mplibcode}
path c, t, s[];
c = fullcircle scaled 2/5 \mpdim\textwidth;
t = point 4 of c -- point 0 of c -- point 2.5 of c -- cycle;
fill t withcolor Oranges 7 3;
for i=1 upto 3:
s[i] = unitsquare zscaled (point i-1 of t - point i of t)
shifted point i of t;
draw s[i];
endfor
z1 = point 2 of t rotatedabout(center s1, 180);
draw point 2 of t -- z1 dashed evenly;
draw point 2 of s1 -- z1 -- point 3 of s1;
draw point 2 of s2 -- point 3 of s3 dashed evenly;
draw point 2 of s3 -- point 3 of s2;
\end{mplibcode}
$$
\vfill
\contrib{Leonardo da Vinci (1452–1519)}
\section{The Pythagorean theorem X}
\vfill
$$
\begin{mplibcode}
path c, t, s[];
c = fullcircle scaled 2/5 \mpdim\textwidth;
t = point 4 of c -- point 0 of c -- point 2.5 of c -- cycle;
vardef square_on(expr a,b) =
unitsquare scaled abs(a-b) rotated angle (a-b) shifted b
enddef;
for i=1 upto 3:
s[i] = square_on(point i-1 of t, point i of t);
endfor
z2 = whatever [ point 3 of s3, point 2 of s2 ]
= whatever [ point 3 of s1, point 4 of s1 ] ;
z3 = whatever [ point 3 of s3, point 2 of s2 ]
= whatever [ point 1 of s1, point 2 of s1 ] ;
path p[];
p21 = point 0 of s2 -- point 1 of s2 -- z2 -- cycle;
p22 = point 1 of s2 -- point 2 of s2 -- z2 -- cycle;
p23 = p21 rotatedabout(center s2, 180);
p24 = p22 rotatedabout(center s2, 180);
p31 = point 3 of s3 -- point 4 of s3 -- z3 -- cycle;
p32 = point 0 of s3 -- point 1 of s3 -- z3 -- cycle;
p33 = p31 rotatedabout(center s3, 180);
p34 = p32 rotatedabout(center s3, 180);
color f[];
f21 = f23 = Greens[7][3]; f22 = f24 = Greens[7][2];
f31 = f33 = Oranges[7][3]; f32 = f34 = Oranges[7][2];
picture m[];
forsuffixes $=21,22,23,24,31,32,33,34:
m$ = image(fill p$ withcolor f$; draw p$);
draw m$;
endfor
draw m21 shifted (point 3 of s1 - point 1 of s2);
draw m23 shifted (point 1 of s1 - point 3 of s2);
draw m32 shifted (point 2 of s1 - point 0 of s3);
draw m34 shifted (point 0 of s1 - point 2 of s3);
draw m22 shifted -point 1 of s2 rotated 90 shifted point 3 of s1;
draw m24 shifted -point 3 of s2 rotated 90 shifted point 1 of s1;
draw m31 shifted -point 0 of s3 rotated 90 shifted point 0 of s1;
draw m33 shifted -point 2 of s3 rotated 90 shifted point 2 of s1;
\end{mplibcode}
$$
\vfill
\contrib{J.\@ E.\@ Böttcher}
\section{The Pythagorean theorem XI}
\vfill
$$
\begin{mplibcode}
numeric a,b,c,u;
a = 1.0605; b = 1.414; c = a++b;
u = 72;
path t[];
t0 = (origin -- (a,0) -- (0,b) -- cycle) scaled u;
t1 = t0 scaled a reflectedabout(up,down) rotated angle(b,a) rotated 90;
t2 = t0 scaled b reflectedabout(up,down) rotated angle(b,a);
t3 = t0 scaled c reflectedabout(up,down);
t0 := t0 shifted - point 1/2 of t0;
t1 := t1 shifted (1/2u*(a-6,-6)-point 2 of t1);
t2 := t2 shifted (1/2u*(a-6,-6)-point 1 of t2);
t3 := t3 shifted (point 2 of t1 reflectedabout(up,down));
fill t0 withcolor Blues[7][1]; draw t0;
fill t1 withcolor Blues[7][2]; draw t1;
fill t2 withcolor Blues[7][3]; draw t2;
fill t3 withcolor Blues[7][4]; draw t3;
label.bot("$a$", point 1/2 of t0);
label.lft("$b$", point 5/2 of t0);
label.urt("$c$", point 3/2 of t0);
label.bot ("$ac$", point 1/2 of t3);
label.rt ("$bc$", point 5/2 of t3);
label.ulft("$c^2$", point 3/2 of t3);
label.urt ("$a^2$", point 1/2 of t1);
label.ulft("$ab$", point 5/2 of t1);
label.bot ("$ac$", point 3/2 of t1);
label.lft ("$bc$", point 3/2 of t2);
label.urt ("$b^2$", point 5/2 of t2);
vardef centroid(expr t) = 2/3[point 2 of t, point 1/2 of t] enddef;
path a[];
for i=1 upto 3:
a[i] = centroid(t0) -- centroid(t[i]) if i=1: shifted 20 right fi
cutbefore fullcircle scaled 1.7u shifted centroid(t0)
cutafter fullcircle scaled 1.7u shifted centroid(t[i]);
drawarrow a[i] withcolor 2/3 blue;
endfor
label.lrt ("${}\times a$", point 1/2 of a1);
label.ulft("${}\times b$", point 1/2 of a2);
label.urt ("${}\times c$", point 1/2 of a3);
\end{mplibcode}
$$
\vfill
\contrib{Frank Burk}
\section{The Pythagorean theorem XII}
\vfill
$$
\begin{mplibcode}
numeric a,b,r,u;
u = 1cm; r = 21;
a = 3u-r;
b = 3u+r;
path t[];
for i=0 upto 3:
t[i] = ((-a-b,a-b) -- (-a,a-2b) -- (-a,a) -- cycle) rotated 90i;
endfor
fill for i=0 upto 3: point 0 of t[i] -- endfor cycle withcolor Oranges[7][3];
fill for i=0 upto 3: point 2 of t[i] -- endfor cycle withcolor Oranges[7][1];
for i=0 upto 3:
fill t[i] withcolor Oranges[7][2]; draw t[i];
endfor
draw for i=0 upto 3: point 0 of t[i] -- endfor cycle dashed evenly;
draw subpath(1,2) of t0 -- point 2 of t3 -- cycle withpen pencircle scaled 1.2;
label.bot("$a$", 1/2[point 2 of t0, point 2 of t3]);
label.urt("$b$", 1/2[point 2 of t0, point 1 of t0]);
label.ulft("$c$", 1/2[point 1 of t0, point 2 of t3]);
\end{mplibcode}
$$
\bigskip
$$
a^2+b^2=c^2
$$
\vfill
\contrib{Poo-Sung Park}
\section{A generalization from Pythagoras}
The sum of the area of two squares, whose sides are the lengths of two
diagonals of a parallelogram, is equal to the sum of the area of four
squares, whose sides are its four sides.
\bigskip
$$
\begin{mplibcode}
% DUMP squash=True
numeric a,b,r; a = 42; b = 26; r = 13; -z0 = z2 = (b,0) rotated r; -z1 = z3 = (0,a);
z4 = z3 rotatedabout(z0,-90); z5 = z0 rotatedabout(1/2[z4,z2],180);
path p,h; p = z0--z1--z2--z3--cycle; h = z0--z2--z3--cycle;
path v,b; v = z0--z1--z3--cycle; b = z0--z4--z5--z2--cycle;
picture whole, cut_v, cut_h, fit, twos, fours;
whole = image(fill p withcolor background; draw p);
def fd(expr p, shade) = fill p withcolor shade; draw p enddef;
color s; s = Oranges 6 2;
cut_v = image(fd(h shifted 2 up, s); fd(h rotated 180 shifted 2 down, s));
s := Greens 6 2;
cut_h = image(fd(v shifted 2 left, s); fd(v rotated 180 shifted 2 right, s));
input mark_equal
fit = image(fd(h, Oranges[6][2]); fd(b, Blues[6][2]);
mark_equal(z0,z2,1); mark_equal(z4,z5,1);
mark_equal(z0,z3,2); mark_equal(z0,z4,2); mark_equal(z2,z5,2);
draw unitsquare scaled 3 rotated angle(z4-z0) shifted z0);
path hh[], vv[];
hh1 = h rotatedabout(z0,-90); hh2 = h rotated 180 shifted 1/2[z4,z5];
vv1 = v shifted -z0 rotated -90 shifted point 2 of hh2;
vv2 = v shifted -z0 shifted point 2 of vv1;
vv3 = v shifted -z3 rotated 90 shifted point 1 of vv1;
hh3 = h shifted -z3 shifted point 0 of vv3;
fours = image(
fd(b, Blues[6][2]);
fd(hh1, Oranges[6][2]); fd(hh2, Oranges[6][2]); fd(hh3, Oranges[6][2]);
fd(vv1, Greens[6][2]); fd(vv2, Greens[6][2]); fd(vv3, Greens[6][2]);
draw point 2 of b -- point 2 of vv2;
draw point 1 of hh3 -- point 1 of vv2;
draw point 0 of hh3
-- point 2 of hh3 reflectedabout(point 0 of hh3, point 2 of vv3)
-- point 2 of vv3 -- point 1 of hh1);
path hh[], vv[];
hh1 = h; hh2 = h rotatedabout(point 2 of h, 180);
hh3 = h shifted point 1/2 of hh2 rotatedabout(point 0 of hh2,-90);
vv1 = v shifted -z0 shifted point 2 of h;
vv2 = v shifted -z1 rotated -90 shifted point 2 of vv1;
vv3 = v shifted -z3 rotated 90 shifted z2;
twos = image(
fd(b, Blues[6][2]);
fd(hh1, Oranges[6][2]); fd(hh2, Oranges[6][2]); fd(hh3, Oranges[6][2]);
fd(vv1, Greens[6][2]); fd(vv2, Greens[6][2]); fd(vv3, Greens[6][2]);
draw point 1 of vv3 -- point 2 of vv2;
draw point 1 of hh2
-- point 0 of hh2 reflectedabout(point 1 of hh2, point 0 of hh3)
-- point 0 of hh3);
numeric i; i = -1;
forsuffixes $=cut_v, whole, cut_h, fit: draw $ shifted 72(incr i, 0); endfor
draw (0,-70) -- (252,-70);
numeric dy; dy = ypart (lrcorner fours - lrcorner twos);
draw fours shifted (0, -100); draw twos shifted (184,dy-100);
\end{mplibcode}
$$
\bigskip
\noindent
\textsc{Corollary}: The Pythagorean theorem (when the parallelogram is a
rectangle).
\vfill
\contrib{David S.\@ Wise}
\section{A theorem of Hippocrates of Chios (circa 440 \textsc{BC})}
The combined area of the lunes constructed on the legs of a given right
angle triangle is equal to the area of the triangle.
\bigskip
$$
\begin{mplibcode}
path T; T = origin -- 90 right -- 120 up -- cycle;
path s[];
vardef semicircle(expr a,b) = halfcircle zscaled (a-b) shifted 1/2[a,b] enddef;
s0 = semicircle(point 2 of T, point 1 of T);
s1 = semicircle(point 2 of T, point 0 of T);
s2 = semicircle(point 0 of T, point 1 of T);
s3 = semicircle(point 1 of T, point 2 of T);
path A[], S[], L[];
for i=1 upto 3: A[i] = s[i] -- cycle; endfor
S1 = s0 cutafter origin -- cycle;
L1 = s0 cutafter origin .. reverse s1 .. cycle;
S2 = s0 cutbefore origin -- cycle;
L2 = s0 cutbefore origin .. reverse s2 .. cycle;
picture part[]; color f; f = 7/8[blue,white];
part1 = image(
draw unitsquare scaled 5 withcolor 1/2 white;
forsuffixes $=1, 2, 3:
fill A$ withcolor f; draw A$;
label("$A_" & str $ & "$", 1/2[point 2 of A$, point 9/2 of A$]);
endfor
label("$T$", 2/3 point 3/2 of T);
);
part2 = image(
fill T withcolor f;
draw unitsquare scaled 5 withcolor 1/2[f,black];
draw T;
fill L1 withcolor f; draw L1;
fill L2 withcolor f; draw L2;
label("$T$", 2/3 point 3/2 of T);
label("$L_1$", point 6 of L1 shifted 18 right);
label("$L_2$", point 5 of L2 shifted 16 up);
label("$S_1$", point 5/2 of T shifted 12 left);
label("$S_2$", point 1/2 of T shifted 8 down);
);
part3 = image(
fill T withcolor f;
draw unitsquare scaled 5 withcolor 1/2[f,black];
draw T;
L1 := L1 shifted (-180,0); fill L1 withcolor f; draw L1;
L2 := L2 shifted (-140,50); fill L2 withcolor f; draw L2;
label("$T$", 2/3 point 3/2 of T);
label("$L_1$", point 6 of L1 shifted 18 right);
label("$L_2$", point 5 of L2 shifted 16 up);
label("$+$", (-170,50));
label("$=$", (-24,50));
);
draw part1 shifted 120 left; draw part2 shifted 120 right;
draw part3 shifted (120,-200);
\end{mplibcode}
$$
\bigskip
$$
\vbox{\openup6pt\halign{\hfil$#$&${}=#$\hfil\cr
A_1 + A_2 & A_3 \cr
(L_1 + S_1) + (L_2 + S_2) & T + S_1 + S_2 \cr
L_1 + L_2 & T \cr
}}
$$
\vfill
\contrib{Eugene A.\@ Margerum and Michael M.\@ McDonnell}
%----------------------------------------------------
\section{The area of a right triangle with acute angle $\pi/12$}
The area of a right triangle is $\frac18(\hbox{hypotenuse})^2$ if and
only if one acute angle is $\pi/12$.
\vfill
$$
\begin{mplibcode}
path s;
s = unitsquare scaled 3/4 \mpdim\textwidth;
z1 = point 1 of s rotated 30;
z2 = 1/2[z1,point 1 of s];
fill origin--point 1 of s--z2--cycle withcolor 7/8[red,white];
draw unitsquare scaled 7 rotated 195 shifted z2;
draw s;
draw subpath(0,1) of s shifted point -1/4 of s;
draw subpath(0,1) of s shifted point -1/2 of s;
draw subpath(0,1) of s shifted point -3/4 of s;
draw origin--z2;
for i=0 upto 3: draw z1--point i of s; endfor
label.bot("$c$", point 1/2 of s);
label.lft("$c$", point 7/2 of s);
label.lrt("$c$", 3/4 [point 0 of s, z1]);
label.urt("$c$", 3/4 [point 3 of s, z1]);
for t=9/8 step 1/4 until 2:
label.rt("$c/4$", point t of s);
endfor
\end{mplibcode}
$$
\vfill
\contrib{Klara Pinter}
\section{A right angle inequality}
\vfill
Let $c$ be the hypotenuse of a right triangle whose other two sides are $a$ and $b$.
Prove that
$$a+b\le\sqrt2c.$$
When does equality hold?
\bigskip
$$
\begin{mplibcode}
vardef make_fig(expr wd,r) =
save a,b; a+b = wd; b-a=r;
save s,t; path s,t;
s = unitsquare scaled (a+b);
t = (b,0) -- (a,a+b) -- (0,a) -- cycle;
image(
fill t withcolor 7/8 [ blue, white ];
draw t;
draw s;
label.top("$a$", (1/2 a, a+b));
label.lft("$a$", (0, 1/2 a));
label.bot("$b$", (1/2 b, 0));
label.lft("$b$", (0, a + 1/2 b));
label.lrt("$c$", point 3/2 of t);
label.urt("$c$", point 5/2 of t);
label.rt("$\sqrt2c$", point 1/2 of t);
)
enddef;
numeric u; u = 2/11 \mpdim\textwidth;
picture p[];
p1 = make_fig(2u,30) shifted (-3/2u,0);
p2 = make_fig(2u, 0) shifted (+3/2u,0);
draw p1; label.bot("$a+b\le\sqrt2c$", point 1/2 of bbox p1 shifted 8 down);
draw p2; label.bot("$a+b=\sqrt2c \iff a=b$", point 1/2 of bbox p2 shifted 8 down);
\end{mplibcode}
$$
\vfill
\contrib{Canadian Mathematical Olympiad 1969}
\section{The inradius of a right triangle}
\vfill
$$
\begin{mplibcode}
input arrow_label
numeric a, b, c, r, u; u = 32; a = 3u; b = 4u; c = a++b; 2r = a + b - c;
path s; s = fullcircle scaled (a+b-c) shifted (r, r);
path t; t = origin -- (b,0) -- (0,a) -- cycle;
picture P[];
P1 = image(
drawarrow center s -- point 3.14 of s; label.urt("$r$", 1/2 point 3.14 of s);
drawdot center s withpen pencircle scaled 2; draw s withcolor 2/3 red;
draw unitsquare scaled 4 withcolor 3/4; draw t;
label.lft("$a$", point 5/2 of t);
label.bot("$b$", point 1/2 of t);
label.urt("$c$", point 3/2 of t));
P2 = btex \vbox to 72pt{\openup8pt\halign{#\hfil\quad&$\displaystyle #$\cr
I.&r=\frac{ab}{a+b+c}\cr II.&r=\frac{a+b-c}{2}\cr}\vss} etex;
P3 = btex \hbox to \textwidth{\hbox to 12pt{\hss I.}\quad $ab = r(a+b+c)$\hss} etex;
P4 = image( % this one is re-used in P5 and P8
path p[]; p0 = unitsquare scaled r; % split the triangle into 5 parts
p1 = (0,r)--(r,r)--(0,a)--cycle; p2 = p1 reflectedabout((r,r),(0,a));
p3 = (r,0)--(b,0)--(r,r)--cycle; p4 = p3 reflectedabout((r,r),(b,0));
numeric i; i = -1;
for t=1,3,3,2,2: fill p[incr i] withcolor Greens[7][t]; draw p[i]; endfor
draw s withcolor 1/2[2/3 red,white]);
P5 = image(
draw P4; draw P4 rotatedabout(point 3/2 of t, 180) shifted (b/a,1);
label.lft("$a$", point 5/2 of t); label.bot("$b$", point 1/2 of t));
P6 = image(
fill unitsquare xscaled (a-r) yscaled r shifted ( 0,0) withcolor Greens[7][3];
fill unitsquare xscaled (r) yscaled r shifted ( a-r,0) withcolor Greens[7][1];
fill unitsquare xscaled (b-r) yscaled r shifted ( a,0) withcolor Greens[7][2];
fill unitsquare xscaled (r) yscaled r shifted ( a+b-r,0) withcolor Greens[7][1];
fill unitsquare xscaled (a-r) yscaled r shifted ( a+b,0) withcolor Greens[7][3];
fill unitsquare xscaled (b-r) yscaled r shifted (2a+b-r,0) withcolor Greens[7][2];
draw (0,0)--(a+b+c,0); draw (0,r)--(a+b+c,r);
draw (0,0)-- (0,r)-- (a-r,0)-- (a-r,r);
draw (a,0)-- (a,r)-- (a+b-r,0)-- (a+b-r,r);
draw (a+b,0)--(a+b,r)--(2a+b-r,0)--(2a+b-r,r)--(a+b+c,0)--(a+b+c,r);
interim ahangle := 20;
arrow_label((0,r),(0,0),"$r$", 10);
arrow_label((0,0),(a-1/2,0),"$a$", 10);
arrow_label((a+1/2,0),(a+b-1/2,0),"$b$", 10);
arrow_label((a+b+1/2,0),(a+b+c,0),"$c$", 10));
% DUMP capture=False, comment="... and so on to define the other pictures"
P7 = btex \hbox to \textwidth{\hbox to 12pt{\hss II.}\quad $c = a+b-2r$\hss} etex;
P8 = image(
draw P4;
label.lft("$r$", 1/2(0,r));
label.bot("$r$", 1/2(r,0));
label.lft("$a-r$", 1/2(0,a+r));
label.urt("$a-r$", 1/2(0,a+r) reflectedabout((r,r),(0,a)));
label.bot("$b-r$", 1/2(b+r,0));
label.urt("$b-r$", 1/2(b+r,0) reflectedabout((r,r),(b,0)));
);
% DUMP capture=True
label.lft(P1, 24 left); label.rt(P2, 24 right);
label.bot(P3, point 1/2 of bbox currentpicture shifted 36 down);
label.bot(P5, point 1/2 of bbox currentpicture shifted 9 down);
label.bot(P6, point 1/2 of bbox currentpicture shifted 9 down);
label.bot(P7, point 1/2 of bbox currentpicture shifted 36 down);
label.bot(P8, point 1/2 of bbox currentpicture shifted 9 down);
\end{mplibcode}
$$
\vfill
\contrib{Liu Hui (3rd century \textsc{a.d.})}
%----------------------------------------------------------------------
\section{The product of the perimeter of a triangle and its inradius is
twice the area of the triangle I}
\vfill
$$
\begin{mplibcode}
numeric r, p[]; path c;
r = 89;
c = fullcircle scaled 2r;
p0 = 0.518; p1 = 6; p2 = 2.9; % points round c
pair v[], t[]; % vertexes and tangents
for i = 0, 1, 2: j := (i+1) mod 3;
t[i] = point p[i] of c;
v[i] = whatever[precontrol p[i] of c, postcontrol p[i] of c]
= whatever[precontrol p[j] of c, postcontrol p[j] of c];
endfor
for i = 0, 1, 2: j := (i+1) mod 3;
pair a; a = whatever[v[i], t[i]] = whatever * (v[i]-t[j]);
pair b; b = whatever[v[i], t[j]] = whatever * (v[i]-t[i]);
label("\small " & decimal (i+1), 1/3(a - t[j] + 2v[i]));
label("\small " & decimal (i+1), 1/3(b - t[i] + 2v[i]));
label("\small " & decimal (i+1), 1/3(a + t[i]));
label("\small " & decimal (i+1), 1/3(b + t[j]));
fill origin -- a -- v[i] -- b -- cycle withcolor Oranges 8 2;
draw subpath (p[i] if i=0: + 8 fi, p[j]) of c withcolor Oranges 8 4;
draw origin -- v[i]-t[i] -- v[i] -- v[i]-t[j] -- cycle withpen pencircle scaled 1/4;
draw origin -- t[i] -- v[i] -- t[j] withpen pencircle scaled 3/4;
endfor
label.bot(btex \small
\textsc{Note}: \textit{Triangles marked with the same number are equal in area}.
etex, point 1/2 of bbox currentpicture shifted 32 down);
\end{mplibcode}
$$
\vfill
\contrib{Grace Lin}
%----------------------------------------------------------------------
\section{The product of the perimeter of a triangle and its inradius is
twice the area of the triangle II}
\vfill
$$
\begin{mplibcode}
numeric r, a[]; path c; pair v[]; path t[];
r = 37; c = fullcircle scaled 2r; a0 = 0.518; a1 = 6; a2 = 2.9;
for i = 0, 1, 2: j := (i+1) mod 3;
v[i] = whatever[precontrol a[i] of c, postcontrol a[i] of c]
= whatever[precontrol a[j] of c, postcontrol a[j] of c];
endfor
for i = 0, 1, 2: j := (i+1) mod 3;
t[2i+1] = origin -- point a[i] of c -- v[i] -- cycle;
t[2i+2] = origin -- point a[j] of c -- v[i] -- cycle;
endfor
picture P[];
P1 = image(
for i=1 upto 6: fill t[i] withcolor Blues[7][ceiling (i/2)]; draw t[i]; endfor
draw c withcolor Blues 7 7;
label.bot("$a$", 1/2[v0, v1]); label.ulft("$b$", 1/2[v1, v2]);
label.urt("$c$", 1/2[v2, v0]); label.rt("$r$", 1/2 point a1 of c);
);
numeric rotb, rotc;
3 rotb = 180 - angle(v2 - v1); 3 rotc = - angle(v2 - v0);
forsuffixes $=4,5: t$ := t$ rotatedabout(v1, rotb); endfor
forsuffixes $=6,1: t$ := t$ rotatedabout(v0, rotc); endfor
P2 = image(
for i=1 upto 6: fill t[i] withcolor Blues[7][ceiling (i/2)]; draw t[i]; endfor
drawarrow subpath (0,1) of fullcircle scaled 2r
rotated (angle (point 1 of t5 - v1) + 6) shifted v1;
drawarrow subpath (8,7) of fullcircle scaled 2r
rotated (angle (point 1 of t6 - v0) - 6) shifted v0;
);
forsuffixes $=4,5: t$ := t$ rotatedabout(v1, 2 rotb); endfor
forsuffixes $=6,1: t$ := t$ rotatedabout(v0, 2 rotc); endfor
P3 = image(for i=1 upto 6: fill t[i] withcolor Blues[7][ceiling (i/2)]; draw t[i]; endfor);
P4 = image(drawarrow (up--down) scaled 5/8 r; unfill fullcircle scaled 15;
label("\large ${}\times2$", origin));
input arrow_label
forsuffixes $=1,2,3,4,5,6: t$ := t$ rotatedabout(point -1/2 of t$, 180); endfor
P5 = image(
draw P3; for i=1 upto 6: fill t[i] withcolor Blues[7][ceiling (i/2)]; draw t[i]; endfor
arrow_label(point 1 of t5, point 0 of t5, "$r$", 8);
arrow_label(point 0 of t5, point 0 of t4, "$b$", 8);
arrow_label(point 0 of t3, point 0 of t2, "$a$", 8);
arrow_label(point 0 of t1, point 0 of t6, "$c$", 8);
);
draw P1;
draw P2 shifted 180 down;
draw P3 shifted 260 down;
draw P4 shifted 328 down;
draw P5 shifted 360 down;
\end{mplibcode}
$$
\vfill
\section{Four triangles with equal area}
\vfill
$$
\begin{mplibcode}
path t[], s[];
t0 = origin -- 72 right -- 48 right rotated 64 -- cycle;
for i=1 upto 3:
s[i] = unitsquare zscaled (point i-1 of t0 - point i of t0) shifted point i of t0;
endfor
for i=1 upto 3:
t[i] = point i of t0 -- point -1 of s[i] -- point 2 of s[i mod 3 + 1] -- cycle;
endfor
def fd(expr p, shade) = fill p withcolor shade; draw p; enddef;
def do_arrow(expr n) =
drawarrow point 2/3 of t[n] .. point (3n-2)/3 of t0 {direction (2n-1)/2 of t0 rotated 90}
cutbefore fullcircle scaled 10 shifted point 2/3 of t[n]
cutafter fullcircle scaled 10 shifted point (3n-2)/3 of t0; enddef;
picture P[];
P0 = image(fd(t0, Oranges 7 4));
P1 = image(draw P0; for i=1 upto 3: draw s[i]; endfor);
P2 = image(draw P1; for i=1 upto 3: fd(t[i], Oranges[7][i]); endfor);
P3 = image(draw P0; for i=1 upto 3: fd(t[i], Oranges[7][i]); do_arrow(i); endfor);
P4 = image(
draw P0;
for i=1 upto 3:
fd(t[i] rotatedabout(point i of t0, -90), Oranges[7][i]);
endfor
);
draw P0;
draw P1 shifted (140,-20);
draw P2 shifted (300,-40);
draw P3 shifted ( 60,-240);
draw P4 shifted (280,-280);
\end{mplibcode}
$$
\vfill
\contrib{Steven L.\@ Snover}
\section{The triangle of medians has 3/4 the area of the original triangle}
\vfill
$$
\begin{mplibcode}
numeric a,b;
a = 3/4 b; b = 1/3 \mpdim\textwidth;
z0 = origin; z1 = (b,0); z2 = (0,a) rotated -27;
z3 = 1/2[z1,z2];
z4 = 1/2[z2,z0];
z5 = 1/2[z0,z1];
path t[], s[], m[];
t0 = z0--z1--z2--cycle;
t1 = z0--z4--z5--cycle;
s1 = z0--z1;
s2 = z1--z2;
s3 = z0--z2;
m1 = z0--z3;
m2 = z1--z4;
m3 = z2--z5;
picture P[];
P1 = image(
for i=1 upto 3: draw m[i] dashed evenly; endfor
draw t0;
label.bot("$a$", point 5/8 of t0);
label.urt("$b$", point 13/8 of t0);
label.ulft("$c$", point 21/8 of t0);
label.lrt("$m_b$", point 1/3 of m1);
label.llft("$m_c$", point 1/3 of m2);
label.rt("$m_a$", point 1/3 of m3);
);
P2 = image(
forsuffixes $=0,3,4,5:
fill t1 shifted z$ withcolor 7/8[blue,background];
endfor
draw s1 shifted z2 dashed withdots scaled 1/2;
draw s3 shifted z1 dashed withdots scaled 1/2;
draw m3 & m1 shifted z5 -- cycle dashed evenly;
draw t0;
label.lft("$m_a$", point 2/3 of m3);
label.lrt("$m_b$", point 2/3 of m1 shifted z5);
label.urt("$m_c$", 2/3[point 1 of m1 shifted z5, z2]);
);
draw P1 shifted (-2/3b,0);
draw P2 shifted (2/3b,0);
\end{mplibcode}
$$
\bigskip
$$
{3\over4}
\mathop{\hbox{area}}(\triangle abc) =
\mathop{\hbox{area}}(\triangle m_a m_b m_c)
$$
\vfill
\contrib{Norbert Hungerbühler}
\section{Heptasection of a triangle}
If the one-third points on each side of a triangle are joined to
opposite vertices, the resulting central triangle is equal in area
to one-seventh that of the initial triangle.
\bigskip
$$
\begin{mplibcode}
% DUMP squash=True
color s[]; s1 = Greens 7 3; s2 = Blues 7 3; s3 = Oranges 7 3;
z1 = origin;
z2 = 184 right rotated 4;
z3 = 116 right rotated 64;
z12 = 2/3[z1, z2];
z23 = 2/3[z2, z3];
z31 = 2/3[z3, z1];
z4 = whatever [z1, z23] = whatever [z2, z31];
z5 = whatever [z2, z31] = whatever [z3, z12];
z6 = whatever [z3, z12] = whatever [z1, z23];
z7 = whatever [z3, z1]; z7-z4 = whatever * (z3-z6);
z8 = whatever [z1, z2]; z8-z5 = whatever * (z1-z4);
z9 = whatever [z2, z3]; z9-z6 = whatever * (z2-z5);
picture P[];
P1 = image(
fill z1--z6--z3--cycle withcolor s1;
fill z2--z4--z1--cycle withcolor s2;
fill z3--z5--z2--cycle withcolor s3;
draw z1--z2--z3--cycle;
draw z1--z23; draw z2--z31; draw z3--z12;
);
P2 = image(
draw P1;
draw z4--z7; draw z5--z8; draw z6--z9;
);
P31 = image(fill z1--z4--z7--cycle withcolor s1; draw z31--z4--z7--z1--z4;);
P32 = image(fill z2--z5--z8--cycle withcolor s2; draw z12--z5--z8--z2--z5;);
P33 = image(fill z3--z6--z9--cycle withcolor s3; draw z23--z6--z9--z3--z6;);
for p = (3, -87), (4, -180): numeric n, r; (n, r) = p;
P[n] = image(
fill z6--z3--z7--z4--cycle withcolor s1; draw z6--z3--z7--z4--cycle;
fill z4--z1--z8--z5--cycle withcolor s2; draw z4--z1--z8--z5--cycle;
fill z5--z2--z9--z6--cycle withcolor s3; draw z5--z2--z9--z6--cycle;
draw P31 rotatedabout(z7, r);
draw P32 rotatedabout(z8, r);
draw P33 rotatedabout(z9, r);
);
endfor
z101 = z4 rotatedabout(z7, 180);
z102 = z5 rotatedabout(z8, 180);
z103 = z6 rotatedabout(z9, 180);
P5 = image(
fill z4--z6--z3--z101--cycle withcolor s1; draw z101--z6--z4--z101--z3--z6;
fill z5--z4--z1--z102--cycle withcolor s2; draw z102--z4--z5--z102--z1--z4;
fill z6--z5--z2--z103--cycle withcolor s3; draw z103--z5--z6--z103--z2--z5;
);
draw P1 shifted 120(-.9,+1.1); draw P2 shifted 120(+1,+1.1);
draw P3;
draw P4 shifted 120(-.9,-1.1); draw P5 shifted 120(+1,-1.1);
\end{mplibcode}
$$
\vfill
\contrib{William Johnston and Joe Kennedy}
\section{A Golden Section problem from the \textit{Monthly}}
(Problem E3007, \textit{American Mathematical Monthly}, 1983, p.482)
\smallskip\noindent
Let $A$ and $B$ be the midpoints of the sides $EF$ and $ED$ of an
equilateral triangle $DEF$. Extend $AB$ to meet the circumcircle
(of $DEF$) at $C$. Show that $B$ divides $AC$ according to the
golden section.
\bigskip\noindent
\textsc{Solution}:
$$
\begin{mplibcode}
pair A, B, C, D, E, F, G;
E = 144 up;
F = E rotated 120;
D = F rotated 120;
A = 1/2[E, F];
B = 1/2[D, E];
path circ; circ = fullcircle scaled 2 abs E;
(whatever, t) = (A -- 2[A,B]) intersectiontimes circ;
C = point t of circ; G = point 4-t of circ;
vardef angle_mark@#(expr a, o, b) =
fullcircle scaled @# rotated angle (a-o) shifted o cutafter (o--b)
enddef;
draw angle_mark 28 (G, C, D) withcolor Blues 8 7;
draw angle_mark 28 (G, E, D) withcolor Blues 8 7;
draw angle_mark 28 (C, D, E) withcolor Purples 8 7;
draw angle_mark 24 (C, D, E) withcolor Purples 8 7;
draw angle_mark 28 (C, G, E) withcolor Purples 8 7;
draw angle_mark 24 (C, G, E) withcolor Purples 8 7;
draw circ withcolor Reds 8 7;
draw D--E--F--cycle; draw E--G--C--D;
dotlabel.ulft("$A$", A);
dotlabel.urt ("$B$", B);
dotlabel.urt ("$C$", C);
dotlabel.lrt ("$D$", D);
dotlabel.top ("$E$", E);
dotlabel.llft("$F$", F);
dotlabel.lft ("$G$", G);
label.llft("$\tau$", 1/2[E,B]);
label.llft("$\tau$", 1/2[D,B]);
label.bot ("$\tau$", 1/2[A,B]);
label.bot ("$1$", 1/2[A,G]);
label.bot ("$1$", 1/2[B,C]);
\end{mplibcode}
$$
\medskip
$$\tau^2=\tau+1$$
\vfill
\contrib{Jan van de Craats}
\section{Tiling with squares and parallelograms}
If squares are constructed eternally on the sides of the parallelogram, their centres form a square.
\bigskip
$$
\begin{mplibcode}
path s[]; s0 = unitsquare shifted (-1/2, -1/2);
numeric a, n; a = 36; n=0;
for i=1 upto 4:
for j=1 upto 4:
s[incr n] = s0 scaled if not odd (i+j): 2a rotated -24.29519 else: a fi
shifted (1.822875a * (i,j));
draw s[n];
endfor
endfor
fill subpath (2,3) of s[6] -- subpath (0,1) of s[11] -- cycle withcolor Oranges 7 3;
draw subpath (2,3) of s[6] -- subpath (0,1) of s[11] -- cycle;
for i=0 upto 3:
draw center s[4i+1] -- center s[4i+4] dashed evenly withcolor 2/3 blue;
draw center s[i+1] -- center s[i+13] dashed evenly withcolor 2/3 blue;
endfor
forsuffixes @=6,7,10,11:
fill fullcircle scaled 4 shifted center s@ withcolor Oranges 7 4;
draw fullcircle scaled 4 shifted center s@;
endfor
currentpicture := currentpicture rotated 24.29519;
\end{mplibcode}