More on Lines

One of my least favorite IB topics. Nothing to do but jump in with both feet…

Parallel & Coincident Lines

Parallel Lines - Angle between the lines is zero.

Coincident Lines - Same line or two lines that lie on top of one another

There are two ways to determine if two lines are parallel. Both involve the direction vector. The equation below provides the value of the cosine of the angle between two vectors.

(1)
\begin{align} \frac{v}{|v|} \cdot \frac{w}{|w|} = cos \theta \end{align}

If the cosine of the angle between the two direction vectors is 1 or -1 then the angle between the vectors is 0 (or 180) and the vectors are parallel (anti-parallel).

The second way can be done almost by inspection. That is if the direction vectors are scalar multiples of each other then they are parallel. For example the vectors:

(2)
\begin{align} u=\begin{pmatrix} 1\\ 2\\ 3 \end{pmatrix} u=\begin{pmatrix} 3\\ 6\\ 9 \end{pmatrix} \end{align}

The vector u is 3 times vector v.

Perpendicular Lines

Perpendicular Lines - have an angle of 90 degrees between them

This one is pretty easy. If the cosine of the angle between the direction vectors is 0 then the angle between them is 90 or 270 and the lines are perpendicular. Again we use the scalar product formula:

(3)
\begin{align} \frac{v}{|v|} \cdot \frac{w}{|w|} = cos \theta \end{align}

We can go one step further, since $cos(90)=0$ and say that for perpendicular lines:

(4)
\begin{align} v\cdot w = 0 \end{align}

Its important to note that in 3D perpendicular lines do not necessarily intersect.

Cartesian Equations

Occasionally the IB will ask you to write a "Cartesian equation" from a vector equation of a line. This is often done to help you with finding intersection points and such.

A cartesian equation is one that is only in terms of x and y (and z if 3D). There is no t variable in the equation.

Lets start with a 2D example. Lets write a Cartesian equation from the following vector equation:

(5)
\begin{align} \binom{x}{y}=\binom{1}{3}+t \binom{3}{-1} \end{align}

The first step is to write two separate equations, each from a different row in the vector equation.

(6)
\begin{equation} x=1+3t \end{equation}
(7)
\begin{equation} y=3-t \end{equation}

Solving both for t:

(8)
\begin{align} t=\frac{1}{3}x - \frac{1}{3} \end{align}
(9)
\begin{equation} t=3-y \end{equation}

Setting them equal with a little rearrangement we have:

(10)
\begin{equation} 10-x-3y=0 \end{equation}

This is the "Cartesian Equation." Someone please correct me if I'm wrong SL folks do not need to write a Cartesian Equation for a 3D line.

Intersecting Lines/Points

It is very common for the IB to ask at what point two lines intersect or IF they intersect.

Case 1 - Finding the intersection point is straight forward if you have Cartesian equations for both lines. If you do not have Cartesian equations for both lines it might be worth finding them…

With two Cartesian equations you simply find the intersection of the two lines as you would in a basic Algebra course. Use your GDC or solve one equation for y (or x) and substitute into the second equation. Voila!

Case 2 - 3D vectors… Each line will have its own "time" variable. Often represented by t and s when there are two vector equations. If the two lines intersect then there is a value for t and a value for s that will results in the same (x,y,z) coordinates for both lines. Essentially we set the two equations equal to each other and solve for t and s.

Example of Find an Intersection Point

Given the two vector equations $\binom{x}{y}=\binom{1}{3}+t \binom{3}{-1}$ and $\binom{x}{y}=\binom{2}{2}+t \binom{-1}{3}$ find the point $(x,y)$ where they intersect.

First we find the Cartesian equations. We found the first above to be:

(11)
\begin{equation} 10-x-3y=0 \end{equation}

Similarly we can find a Cartesian equation for the second:

(12)
\begin{equation} x=2-t \end{equation}
(13)
\begin{equation} y=2+3t \end{equation}

Solving for t and setting the two equation equal:

(14)
\begin{align} 2-x=\frac{y-2}{3} \end{align}

Simplifying:

(15)
\begin{equation} 8-3x-y = 0 \end{equation}

Solving the second Cartesian equation for y ($y=8-3x$) and substituting into the first equation we get:

(16)
\begin{equation} 10-x-3(8-3x)=-14 +8x = 0 \end{equation}

Resulting in $x=\frac{14}{8}=\frac{7}{4}=1.75$ and $y= 2.75$. We can confirm this graphically as shown below.

pub?id=1EW3DmQYtbP2OWNiv_wVHZ17Lm3PeZjVPp6nKcNL5H0g&w=300&h=295

Example of Finding Intersections in 3D

Given the two vector equations

(17)
\begin{align} r_1 = {\begin{pmatrix} 1\\ -1\\ 4 \end{pmatrix}} + t\begin{pmatrix} 1\\ -1\\ 1 \end{pmatrix} \end{align}

and

(18)
\begin{align} r_2 = {\begin{pmatrix} 2\\ 4\\ 7 \end{pmatrix}} + s{\begin{pmatrix} 2\\ 1\\ 3 \end{pmatrix}} \end{align}

Since we only have two unknowns to solve for t and s we only need two equations. Lets take the first two rows of each equation:

(19)
\begin{matrix} x=1+t\\ y=-1-t \end{matrix}
(20)
\begin{matrix} x=2+2s\\ y=4+s \end{matrix}

Each of the x-equations can be set equal and each of the y-equations set equal. This results in two equations and two unknowns. Solve… We find that $t=-3, s=-2$. One of these values is then substituted back into the corresponding original equation to solve for the (x,y,z) coordinates. Substituting $t=-3$ into the first equation:

(21)
\begin{align} r_1 = \begin{pmatrix} 1\\ -1\\ 4 \end{pmatrix} + (-3){\begin{pmatrix} 1\\ -1\\ 1 \end{pmatrix}} = {\begin{pmatrix} -2\\ 2\\ 1 \end{pmatrix}} \end{align}

You can also check your work by substituting $s=-2$ into the other equation and if all is well you will get the same coordinate point for the intersection.

Collisions - More Than Just Intersecting

Collisions are a half step up in difficulty from intersection points as we now have to consider time as well.

Two objects will collide ONLY IF they have the same coordinates (x,y) at the same time t. Think about it… Two cars can have the same position, its only a problem if they do so at the same time.

If there is an intersection point then a collision is possible. You must check that the intersection points occurs when the two time variables are the same. In the example above there would be no collision as the time variables (s and t) are not the same.


Want to add to or make a comment on these notes? Do it below.

Dayang Syahirah (guest) 27 Dec 2013 13:38

do you have the 3d vectors notes>

by Dayang Syahirah (guest), 27 Dec 2013 13:38

Post preview:

(will not be published)
page revision: 24, last edited: 21 May 2012 06:37
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.

AltStyle によって変換されたページ (->オリジナル) /