Exploring Pythagorean Triples
2020-09-21 16:39
This GeoGebra applet explores Pythagorean triples by combining geometric and algebraic methods. Using commands such as vectors, complex number conversions, polygon constructions, and sequence generation, it dynamically demonstrates the integer relationships between the side lengths of right-angled triangles. It is ideal for cross-disciplinary teaching in number theory and geometry, helping learner
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.604.0" app="classic" platform="d" id="439352fc-f605-4465-9b88-11342047b522" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/apps/xsd/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="1798" height="1054" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.17018909899888765" orientation="1" />
</panes>
<views>
<view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1,1" size="400" window="1155,363,1160,722" />
<view id="4" toolbar="0 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />
<view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 || 1008 1009 || 66 68 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />
<view id="512" toolbar="0 | 1 501 5 19 , 67 | 2 15 45 18 , 7 37 | 514 3 9 , 13 44 , 47 | 16 | 551 550 11 , 20 22 21 23 , 55 56 57 , 12 | 69 | 510 511 , 512 513 | 533 531 , 534 532 , 522 523 , 537 536 , 535 | 521 520 | 36 , 38 49 560 | 571 30 29 570 31 33 | 17 | 540 40 41 42 , 27 28 35 , 6 , 502" visible="false" inframe="false" stylebar="true" location="1,1" size="432" window="100,100,600,400" />
<view id="1" visible="true" inframe="false" stylebar="true" location="1" size="1765" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="true" location="3" size="306" tab="ALGEBRA" window="100,100,600,400" />
<view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />
<view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="64" toolbar="0" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
<view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />
</views>
<toolbar show="true" items="0 39 73 62 | 1 501 67 , 5 19 , 72 75 76 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 14 68 | 30 29 54 32 31 33 | 25 17 26 60 52 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />
<input show="true" cmd="true" top="algebra" />
<dockBar show="true" east="true" />
</perspective>
</perspectives>
<labelingStyle val="3"/>
<font size="18"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="1765" height="834"/>
<coordSystem xZero="698.9272714192863" yZero="575.0546966405482" scale="81.03647683117185" yscale="81.03647683117197"/>
<evSettings axes="true" grid="true" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="0" g="0" b="0"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="11" grid="0"/>
<labelStyle axes="1" serif="true"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>
</euclidianView>
<algebraView>
<mode val="1"/>
<auxiliary show="true"/>
</algebraView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="2" spreadsheet="0"/>
<coordStyle val="0"/>
</kernel>
<tableview min="-2.0" max="2.0" step="1.0"/>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<command name="Intersect">
<input a0="xAxis" a1="yAxis"/>
<output a0="A"/>
</command>
<element type="point" label="A">
<show object="false" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="-3" y="28"/>
<labelMode val="0"/>
<coords x="0.0" y="-0.0" z="1.0"/>
<pointSize val="1"/>
<pointStyle val="10"/>
</element>
<element type="point" label="B">
<show object="true" label="true" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="3"/>
<animation step="1" speed="1" type="1" playing="false"/>
<coords x="2.0" y="1.0" z="1.0"/>
<pointSize val="5"/>
<pointStyle val="10"/>
<caption val="$z=m+ i n$"/>
</element>
<command name="Vector">
<input a0="A" a1="B"/>
<output a0="u"/>
</command>
<element type="vector" label="u">
<show object="false" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2.0" y="1.0" z="0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="A"/>
</element>
<expression label="a" exp="u^(2)" />
<element type="numeric" label="a">
<value val="5.0"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<expression label="b" exp="(u * u)" />
<element type="numeric" label="b">
<value val="5.0"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<command name="ToComplex">
<input a0="u"/>
<output a0="cu"/>
</command>
<element type="vector" label="cu">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="-20" y="-15"/>
<labelMode val="3"/>
<coords x="2.0" y="1.0" z="0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<coordStyle style="complex"/>
<startPoint exp="A"/>
</element>
<expression label="z_1" exp="cu^(2)" type="point" />
<element type="point" label="z_1">
<show object="true" label="true" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="3"/>
<coords x="3.000000000000001" y="4.0" z="1.0"/>
<coordStyle style="complex"/>
<pointSize val="1"/>
<pointStyle val="10"/>
<caption val="$z^2=(m+in)^2$"/>
</element>
<command name="Vector">
<input a0="z_1"/>
<output a0="w"/>
</command>
<element type="vector" label="w">
<show object="false" label="false"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="3.000000000000001" y="4.0" z="0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
</element>
<command name="ToComplex">
<input a0="w"/>
<output a0="cu2"/>
</command>
<element type="vector" label="cu2">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelOffset x="-28" y="-5"/>
<labelMode val="0"/>
<coords x="3.000000000000001" y="4.0" z="0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<coordStyle style="complex"/>
</element>
<command name="Length">
<input a0="cu2"/>
<output a0="c"/>
</command>
<element type="numeric" label="c">
<value val="5.000000000000001"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<expression label="cwi" exp="imaginary(cu2)" />
<element type="numeric" label="cwi">
<value val="4.0"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<expression label="cwr" exp="real(cu2)" />
<element type="numeric" label="cwr">
<value val="3.000000000000001"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
</element>
<expression label="text2" exp=""a^2+b^2=c^2 有无穷多整数解""/>
<element type="text" label="text2">
<show object="true" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<bgColor r="255" g="192" b="203" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="8" style="1"/>
<absoluteScreenLocation x="100" y="47"/>
</element>
<expression label="C" exp="(x(B), 0)" type="point" />
<element type="point" label="C">
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="2.0" y="0.0" z="1.0"/>
<pointSize val="1"/>
<pointStyle val="10"/>
</element>
<command name="Polygon">
<input a0="A" a1="B" a2="C"/>
<output a0="t1" a1="c_1" a2="a_1" a3="b_1"/>
</command>
<element type="polygon" label="t1">
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="153" g="204" b="0" alpha="0.5"/>
<layer val="0"/>
<labelMode val="0"/>
</element>
<element type="segment" label="c_1">
<show object="false" label="false"/>
<objColor r="153" g="204" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-1.0" y="2.0" z="0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="a_1">
<show object="false" label="false"/>
<objColor r="153" g="204" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="1.0" y="0.0" z="-2.0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="b_1">
<show object="false" label="false"/>
<objColor r="153" g="204" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0.0" y="-2.0" z="-0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<expression label="C'" exp="(x(cu2), 0)" type="point" />
<element type="point" label="C'">
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="3.000000000000001" y="0.0" z="1.0"/>
<pointSize val="1"/>
<pointStyle val="10"/>
</element>
<expression label="B'" exp="(real(cu2), imaginary(cu2))" type="point" />
<element type="point" label="B'">
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<coords x="3.000000000000001" y="4.0" z="1.0"/>
<pointSize val="1"/>
<pointStyle val="10"/>
</element>
<command name="Polygon">
<input a0="A" a1="B'" a2="C'"/>
<output a0="t2" a1="c'" a2="a_2" a3="b'"/>
</command>
<element type="polygon" label="t2">
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<show object="true" label="false" ev="4"/>
<objColor r="0" g="100" b="0" alpha="0.25"/>
<layer val="0"/>
<labelMode val="0"/>
</element>
<element type="segment" label="c'">
<show object="false" label="false"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="-4.0" y="3.000000000000001" z="0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="a_2">
<show object="false" label="false"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="4.0" y="0.0" z="-12.000000000000004"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="segment" label="b'">
<show object="false" label="false"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<auxiliary val="false"/>
<coords x="0.0" y="-3.000000000000001" z="-0.0"/>
<lineStyle thickness="5" type="0" typeHidden="1" opacity="178"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<element type="numeric" label="t">
<value val="10.0"/>
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.10000000149011612"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="1" max="10" absoluteScreenLocation="true" width="200.0" x="106.0" y="531.0" fixed="false" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="1" speed="1" type="0" playing="false"/>
</element>
<command name="Sequence">
<input a0="y^(2) = ((-8 * k) * (x - (2 * k)))" a1="k" a2="2" a3="t" a4="2"/>
<output a0="l1"/>
</command>
<element type="list" label="l1">
<show object="false" label="false"/>
<objColor r="0" g="100" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<command name="Sequence">
<input a0="y^(2) = ((8 * k) * (x + (2 * k)))" a1="k" a2="2" a3="t" a4="2"/>
<output a0="l2"/>
</command>
<element type="list" label="l2">
<show object="false" label="false"/>
<objColor r="153" g="51" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<lineStyle thickness="5" type="0" typeHidden="1"/>
<pointSize val="5"/>
<angleStyle val="0"/>
</element>
<expression label="text3" exp=""设 复数 z=m+in\\
则有 z^2=(m^2-n^2)+2mn i\\
设 a=m^2-n^2, b=2mn, 则\\
c=m^2+n^2""/>
<element type="text" label="text3">
<show object="true" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<bgColor r="208" g="240" b="192" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="8" style="0"/>
<absoluteScreenLocation x="101" y="104"/>
</element>
<expression label="text1" exp=""举例说明:拖动点至格点\\
z=" + (LaTeX[cu]) + "\\
z^2=" + (LaTeX[cu2]) + "\\" + (LaTeX[c]) + "^2=(" + (LaTeX[cwr]) + ")^2+(" + (LaTeX[cwi]) + ")^2"" />
<element type="text" label="text1">
<show object="true" label="false" ev="8"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<bgColor r="208" g="240" b="192" alpha="255"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="8" style="0"/>
<absoluteScreenLocation x="103" y="286"/>
</element>
<expression label="text4" exp=""$\sqrt{m^2+n^2}$""/>
<element type="text" label="text4">
<show object="true" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.0" size="0" style="0"/>
<startPoint exp="Midpoint[A, B]"/>
<labelOffset x="-22" y="-12"/>
</element>
<expression label="text5" exp=""m^2+n^2""/>
<element type="text" label="text5">
<show object="true" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0.0"/>
<layer val="0"/>
<labelMode val="0"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.0" size="0" style="0"/>
<startPoint exp="Midpoint[A, B']"/>
<labelOffset x="-74" y="-31"/>
</element>
</construction>
</geogebra>