We are going to learn how to use the vector equation of a line to plot lines in Geogebra![br][br]Recall that to find the equation for a line, we need two pieces of information: [br][br](1) A point on the line, and (2) the direction of the line.[br][br]For lines in the typical Two Dimensional Cartesian plane, the direction of the line was always given by the slope or an angle of inclination and used points such as one or both of the points of intercept with the axes.[br][br]For higher dimensional spaces (in this case Three-Dimensional) we still only need a point on the line, denoted by the position vector [math]\mathbf{r}_{0}[/math] and a vector,[math]\mathbf{v}[/math], pointing the direction of the line.[br][br]Then, as was derived in the lecture video, we get the following vector equation for such a line:[br][br][center][math]\mathbf{r} = \mathbf{r}_{0} + t\mathbf{v}[/math][/center][br][br]where [math]t[/math] is just a parameter that varies over all [math]\mathbb{R}[/math].
So, we want to construct such a line in Geogebra.[br][br]Let us begin by choosing a nice point on the line such as the point (0,0,2).[br][br]In the graphic below, construct the vector [math]\mathbf{r}_{0} = \langle 0,0,2\rangle[/math]. (Hint: Geogebra lets you assign sub-indexed variables using the underscore(_) after the variable letter.)[br][br]Next, we will need a vector describing the direction of our line.[br][br]Again, in the graphic below, construct the vector [math]\mathbf{v} = \langle 2,2,3\rangle[/math].[br][br]Finally, it is time to construct the line![br][br]In the input area type the following: [code]r = r_0 + t*v[/code] and hit [code]enter[/code].[br][br]Notice that Geogebra treats the letter [i]t[/i] as an automatic parameter and fills out the entire line for our window.[br][br]One comment that is made in the textbook, is that one can think of the line as being "traced out" in space by the vector [math]\mathbf{r}[/math] as [math]t[/math] varies.[br][br]We can see this visually by doing a little more to the graphic below![br][br]In the next input area, type [code]s[/code] and hit [code]enter[/code]. You will see a slider appear on the left-hand side.[br][br]We are going to use this slider for our next trick![br][br]Type the following: [code]l = r_0 + s*v[/code] and hit [code]enter[/code].[br][br]This will result in a new vector [math]\mathbf{l}[/math] that you can move using the slider. Notice that as you move the slider, the tip of [math]\mathbf{l}[/math] traces out the line we drew previously!
Recall that to define a plane we need: [br][br](1)a point on the plane, and (2) a vector normal to the plane.[br][br]Letting the point on the plane be given by [math]\mathbf{r}_{0}[/math] and the vector normal to the plane by given by [math]\mathbf{n}[/math], we get the following equation defining the plane[br][br][center][math]\mathbf{n}\cdot\left(\mathbf{r} - \mathbf{r}_{0}\right) = 0[/math][/center]or written another way[br][br][center][math]\mathbf{n}\cdot\mathbf{r} = \mathbf{n}\cdot\mathbf{r}_{0}[/math][/center][br]However, neither of these lead us to an 'easy-to-use' formula in Geogebra.[br][br]Nonetheless, we CAN use this, as is shown in the lecture, to derive the [b]linear equation[/b] of a plane[br][br][center][math] ax + by + cz + d = 0[/math][/center][br][br]where [math]d = -\left(ax_{0} + by_{0} + cz_{0}\right)[/math].[br][br]Using this linear form of the equation for the plane allows us to plot these planes in Geogebra (we may just have to do a little work on paper, first!)[br][br]For example, in the following graph type [code]2x + 2y + 2z + 2 = 0[/code] and hit [code]enter[/code].[br][br]Geogebra will have plotted the plane corresponding to that linear equation. Note that you could just as well have entered [code]2x + 2y + 2z = -2[/code] and, since these equations are equivalent, you would have gotten the same plane.[br][br]Go ahead and try it out with some other planes.[br]
The trick of using the linear equation is extremely handy. We will use this method more in the next section when we talk about quadric surfaces.