Vector Scaling Transformation Demonstration
2016-09-28 05:10
This interactive GeoGebra applet visually demonstrates the scaling of vectors (scalar multiplication). By adjusting the parameter, users can observe how the length of the original vector is proportionally magnified or reduced when multiplied by different real numbers, and how its direction remains the same or reverses. The applet also displays the changes in the vector's coordinate components in t
<?xml version="1.0" encoding="utf-8"?>
<geogebra format="5.0" version="5.0.284.0" id="3e7ec0e9-af5b-4f56-9de3-f51ebd590913" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb.xsd" xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<gui>
<window width="917" height="583" />
<perspectives>
<perspective id="tmp">
<panes>
<pane location="" divider="0.3107960741548528" orientation="1" />
</panes>
<views>
<view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1,1" size="400" window="920,301,700,550" />
<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="false" location="1,1,1" size="500" window="100,100,600,400" />
<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="1" visible="true" inframe="false" stylebar="true" location="1" size="917" window="100,100,600,400" />
<view id="2" visible="false" inframe="false" stylebar="false" location="3" size="285" window="100,100,250,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="128" visible="false" inframe="true" stylebar="false" location="1" size="480" 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" />
<view id="43" visible="false" inframe="false" stylebar="false" location="1" size="450" window="50,50,500,500" />
</views>
<toolbar show="false" items="0 39 | 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 | 30 29 54 32 31 33 | 17 26 62 73 , 14 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6 || 100001 100002 " position="1" help="false" />
<input show="false" cmd="true" top="algebra" />
<dockBar show="false" east="false" />
</perspective>
</perspectives>
<labelingStyle val="2"/>
<font size="12"/>
</gui>
<euclidianView>
<viewNumber viewNo="1"/>
<size width="917" height="583"/>
<coordSystem xZero="463.33342981984225" yZero="313.99999999999955" scale="49.999986623866604" yscale="49.99999999999991"/>
<evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="0" rightAngleStyle="1" checkboxSize="26" gridType="0"/>
<bgColor r="255" g="255" b="255"/>
<axesColor r="96" g="96" b="96"/>
<gridColor r="192" g="192" b="192"/>
<lineStyle axes="0" grid="0"/>
<axis id="0" show="true" label="" unitLabel="" tickStyle="2" showNumbers="false" tickDistance="1" tickExpression=""/>
<axis id="1" show="true" label="" unitLabel="" tickStyle="2" showNumbers="false" tickDistance="1" tickExpression=""/>
</euclidianView>
<kernel>
<continuous val="false"/>
<usePathAndRegionParameters val="true"/>
<decimals val="2"/>
<angleUnit val="degree"/>
<algebraStyle val="0" spreadsheet="0"/>
<coordStyle val="0"/>
<angleFromInvTrig val="false"/>
</kernel>
<scripting blocked="false" disabled="false"/>
<construction title="" author="" date="">
<element type="numeric" label="t">
<value val="-0.5"/>
<show object="true" label="true"/>
<objColor r="0" g="100" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="1"/>
<slider min="-1.5" max="1.5" absoluteScreenLocation="true" width="200" x="21" y="45" fixed="true" horizontal="true" showAlgebra="true"/>
<lineStyle thickness="10" type="0" typeHidden="1"/>
<animation step="0.1" speed="1" type="0" playing="true"/>
</element>
<expression label="txtTA" exp=""" + (LaTeX[t]) + " \, a"" />
<element type="text" label="txtTA">
<show object="false" label="true" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint x="-3.646669571963617" y="2.219999999999993" z="1"/>
</element>
<expression label ="O" exp="(0, 0)" type="point"/>
<element type="point" label="O">
<show object="false" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<fixed val="true"/>
<selectionAllowed val="false"/>
<coords x="0" y="0" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<element type="point" label="A">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<animation step="0.1" speed="1" type="1" playing="false"/>
<coords x="4.413332584269662" y="3.58" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Vector">
<input a0="O" a1="A"/>
<output a0="u"/>
</command>
<element type="vector" label="u">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="127" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="4.413332584269662" y="3.58" z="0"/>
<lineStyle thickness="6" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="O"/>
</element>
<expression label="Ax" exp="(x(A), 0)" type="point" />
<element type="point" label="Ax">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="4.413332584269662" y="0" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="Ay" exp="(0, y(A))" type="point" />
<element type="point" label="Ay">
<show object="false" label="true" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0" y="3.58" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="A" a1="Ax"/>
<output a0="segAx"/>
</command>
<element type="segment" label="segAx">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="3.58" y="0" z="-15.799730651685389"/>
<lineStyle thickness="2" type="20" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="A" a1="Ay"/>
<output a0="segAy"/>
</command>
<element type="segment" label="segAy">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0" y="-4.413332584269662" z="15.799730651685389"/>
<lineStyle thickness="2" type="20" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<expression label="P" exp="(t * A)" type="point" />
<element type="point" label="P">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-2.206666292134831" y="-1.79" z="1"/>
<pointSize val="5"/>
<pointStyle val="0"/>
</element>
<command name="Vector">
<input a0="O" a1="P"/>
<output a0="v"/>
</command>
<element type="vector" label="v">
<show object="true" label="false" ev="4"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-2.206666292134831" y="-1.79" z="0"/>
<lineStyle thickness="9" type="0" typeHidden="1"/>
<coordStyle style="cartesian"/>
<startPoint exp="O"/>
</element>
<expression label="Px" exp="(x(P), 0)" type="point" />
<element type="point" label="Px">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-2.206666292134831" y="0" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="Py" exp="(0, y(P))" type="point" />
<element type="point" label="Py">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0" y="-1.79" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Segment">
<input a0="P" a1="Px"/>
<output a0="segPx"/>
</command>
<element type="segment" label="segPx">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-1.79" y="0" z="-3.949932662921347"/>
<lineStyle thickness="2" type="20" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<command name="Segment">
<input a0="P" a1="Py"/>
<output a0="segPy"/>
</command>
<element type="segment" label="segPy">
<show object="true" label="false" ev="4"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0" y="2.206666292134831" z="3.949932662921347"/>
<lineStyle thickness="2" type="20" typeHidden="1"/>
<outlyingIntersections val="false"/>
<keepTypeOnTransform val="true"/>
</element>
<expression label="txtA" exp=""a""/>
<element type="text" label="txtA">
<show object="false" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint x="-4.046666666666669" y="-2.440000000000016" z="1"/>
</element>
<expression label="txtA2" exp=""a""/>
<element type="text" label="txtA2">
<show object="true" label="false" ev="40"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint exp="PinA"/>
</element>
<expression label="txtB" exp=""b""/>
<element type="text" label="txtB">
<show object="false" label="false" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint x="-4.086666666666669" y="-3.5200000000000182" z="1"/>
</element>
<expression label="txtB2" exp=""b""/>
<element type="text" label="txtB2">
<show object="true" label="false" ev="40"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint exp="PinB"/>
</element>
<expression label="aW" exp="x(Corner[txtA, 2] - Corner[txtA, 1])" />
<element type="numeric" label="aW">
<value val="0.5400001444622795"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="aH" exp="y(Corner[txtA, 4] - Corner[txtA, 1])" />
<element type="numeric" label="aH">
<value val="0.600000000000001"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="upp" exp="x(Corner[2] - Corner[1]) / x(Corner[5])" />
<element type="numeric" label="upp">
<value val="0.02004362586376003"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label ="txtPad" exp="10"/>
<element type="numeric" label="txtPad">
<value val="10"/>
<symbolic val="true" />
<show object="false" label="true"/>
<objColor r="0" g="0" b="0" alpha="0.1"/>
<layer val="0"/>
<labelMode val="2"/>
<animation step="0.1" speed="1" type="0" playing="false"/>
<selectionAllowed val="false"/>
</element>
<expression label="PinA" exp="Ax - ((sgn(y(u)) * (aH / 2 + (txtPad * upp))) * (0, 1)) + ((-aW), aH) / 2" type="point" />
<element type="point" label="PinA">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="4.143332512038522" y="-0.20043625863760028" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="bW" exp="x(Corner[txtB, 2] - Corner[txtB, 1])" />
<element type="numeric" label="bW">
<value val="0.4800001284109148"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="bH" exp="y(Corner[txtB, 4] - Corner[txtB, 1])" />
<element type="numeric" label="bH">
<value val="0.6000000000000014"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="PinB" exp="Ay - ((sgn(x(u)) * (bW / 2 + (txtPad * upp))) * (1, 0)) + ((-bW), bH) / 2" type="point" />
<element type="point" label="PinB">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-0.6804363870485151" y="3.880000000000001" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="taH" exp="y(Corner[txtTA, 4] - Corner[txtTA, 1])" />
<element type="numeric" label="taH">
<value val="0.6000000000000012"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="taW" exp="x(Corner[txtTA, 2] - Corner[txtTA, 1])" />
<element type="numeric" label="taW">
<value val="1.500000401284109"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="txtTA2" exp=""" + (LaTeX[t]) + " \, a"" />
<element type="text" label="txtTA2">
<show object="true" label="true" ev="40"/>
<objColor r="255" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint exp="PinTA"/>
</element>
<expression label="PinTA" exp="Px - ((sgn(y(v)) * (taH / 2 + (txtPad * upp))) * (0, 1)) + ((-taW), taH) / 2" type="point" />
<element type="point" label="PinTA">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="-2.9566664927768853" y="0.8004362586376015" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<expression label="txtTB2" exp=""" + (LaTeX[t]) + "\, b"" />
<element type="text" label="txtTB2">
<show object="true" label="true" ev="40"/>
<objColor r="0" g="0" b="255" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint exp="PinTB"/>
</element>
<expression label="txtTB" exp=""" + (LaTeX[t]) + "\, b"" />
<element type="text" label="txtTB">
<show object="false" label="true" ev="40"/>
<objColor r="0" g="0" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<isLaTeX val="true"/>
<font serif="true" sizeM="1.4" size="5" style="1"/>
<startPoint x="2.2533320064205444" y="-3.1400000000000174" z="1"/>
</element>
<expression label="tbH" exp="y(Corner[txtTB, 4] - Corner[txtTB, 1])" />
<element type="numeric" label="tbH">
<value val="0.620000000000001"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="tbW" exp="x(Corner[txtTB, 2] - Corner[txtTB, 1])" />
<element type="numeric" label="tbW">
<value val="1.4400003852327448"/>
<symbolic val="true" />
<objColor r="0" g="0" b="0" alpha="0.1"/>
<selectionAllowed val="false"/>
</element>
<expression label="PinTB" exp="Py - ((sgn(x(v)) * (tbW / 2 + (txtPad * upp))) * (1, 0)) + ((-tbW), tbH) / 2" type="point" />
<element type="point" label="PinTB">
<show object="false" label="false" ev="4"/>
<objColor r="68" g="68" b="68" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="0.20043625863760028" y="-1.4799999999999995" z="1"/>
<pointSize val="3"/>
<pointStyle val="0"/>
</element>
<command name="Polygon">
<input a0="{O, A, Ax}"/>
<output a0="poly1"/>
</command>
<element type="polygon" label="poly1">
<lineStyle thickness="0" type="0" typeHidden="1"/>
<show object="true" label="false" ev="4"/>
<objColor r="255" g="255" b="102" alpha="0.25"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
</element>
<command name="Polygon">
<input a0="{O, P, Px}"/>
<output a0="poly2"/>
</command>
<element type="polygon" label="poly2">
<lineStyle thickness="0" type="0" typeHidden="1"/>
<show object="true" label="false" ev="4"/>
<objColor r="255" g="102" b="153" alpha="0.25"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
</element>
<expression label="PP1" exp="A" type="point" />
<element type="point" label="PP1">
<show object="true" label="false" ev="4"/>
<objColor r="51" g="255" b="0" alpha="0"/>
<layer val="0"/>
<labelMode val="0"/>
<selectionAllowed val="false"/>
<coords x="4.413332584269662" y="3.58" z="1"/>
<pointSize val="7"/>
<pointStyle val="2"/>
</element>
</construction>
</geogebra>