Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   General Discussions (http://forums.winamp.com/forumdisplay.php?f=1)
-   -   Vector help (http://forums.winamp.com/showthread.php?t=85253)

fwgx 19th April 2002 12:13

Vector help
 
I need help trying to understand a problem in a maths question involving vectors (which I do have the answer to). I know there a quite a few mathmaticians around here so I plead for some help.

I know that a.b means the dot product of those two vectors but the working makes no sence to me.
The problem is as follows:
Quote:

Find the angle between the lines with vector equations r = a + tc and r = b + sd, where

a={1,2,-1}
b={5,5,-4}
c={0,1,-1}
d={2,1,-1}

Show that these lines intersect, and find the position vector of P, the point of intersection. Express in the vector form r.n = k the equation of the plane which passes through the point P, and which is perpendicular to the line joining the two points with position vectors a and b.
The answer I am given is:
Quote:

c.d = 1+1 = 2 = sqrRt(2) sqrRt(6) cos0 => 0 = 54.7'

Lines intersect when s=-2 and t=1 at the point P=i +3 j -2 k
Line through a and b = (4,3,-3)'
r.(4 i +3 j -3 k)=k
(i +3 j -2 k) .(4 i +3 j -3 k)=19
=> r.(4 i +3 j -3 k)=19
Those cos0 are supposed to be the beta symbol thing, a 0 with a cross in the middle)
Now what I want to know is where did what does c.d have to do with anything? What are t and s and how do they know where the lines intersect?

Sorry about this but I'm confused and a maths dunce.

Bass Evolution 19th April 2002 12:29

Thats the kinda stuff I'm doin for matsh atm but I havent done that yet, sorry...
What level maths is it? University, school etc? :)

dam 19th April 2002 12:37

Hmm.I dont remember much but here goes.

s & t are scalars.

To find the vector eqaution you have to use the standard form.
To find the angle we use c and d because of the scalars.The point of intersection is found by solving the equation.We get the scalars as -2 and 1.

nature spirit 19th April 2002 12:53

all I can say.. gulp.. goodluck phily baby!

fwgx 19th April 2002 12:54

Thanks dam, that's kinda set me on the right track. This is university maths for my graphics course. Which is good because the last time i did maths was at GCSE where I struggeld. Things are starting to click now however :).

pAk 19th April 2002 13:19

Right..

the c.d is used to calculate the angle because when two lines intercept, you can use the formula

cos (theta) = (c.d)/((magnitude of c) x (magnitude of d))

code:

cos theta = c.d
|c||d|



therefore...

c.d = (0x2)+(1x1)+(-1x-1) = 2
mag c = sqrt(0²+1²+(-1)²)) = sqrt(2)
mag d = sqrt(2²+1²+(-1)²)) = sqrt(6)

therefore cos(theta) = 2/(sqrt(2)*sqrt(6) = .57735

therefore theta = arccos(.57735) = 54.74°

more to come if I can remember it (it's been a while)

oh and the reason you use c and d instead of a or b is becuase if you consider it to be like a graph, the a and b just represent points whereas c and d represent the gradient (this is a crap explaination not sure if it will help).

take the line r=a+tc for example..

effectively you start at point a, you then go off at angle c for a distance that is a multiple t of the magnitude of c. from this you can calculate your position r


for calculating the intercept point...

r=a+tc
r=b+sd

therefore

a + tc = b + sd

putting in numbers...

code:

[ 1] [ 0] [ 5] [ 2]
[ 2]+[ 1]t=[ 5]+[ 1]d
[-1] [-1] [-4] [-1]



from the top one

1+0t = 5+2s
1 = 5+2s
-4 = 2s
therefore s=-2

then using any of the other lines ... (I have used the second

2+t = 5+d
2+t = 5+(-2)
2+t = 3
therefore t = 1


putting s and into the 1st equation r=bs+d
you get r=[1,3,-2]

fwgx 19th April 2002 13:45

Right I'm off to buy Mathematical Methods for Science Students for some extra help. Well I'll go see if it's better than the book I've got at the moment.

Thanks pAk, I've got upto figuring the angle, I take a long time to grasp some maths. :)

pAk 19th April 2002 13:57

added a load more above, just in case you don't notice

I don't understand the point of the last question, but

n=b-a = [5,5,-4]-[1.,2,-1] = [4,3,-3]

then using the dot product again

r.n=k

(1x4)+(3x3)+(-2x-3)
=4+9+6
=19

God, I have a headache now. HAvn't done any of that in years.

Must get back to revision...

anyone know anything about laplace transforms?

fwgx 19th April 2002 15:44

WOW! Thanks man that's helped a lot. I got me new book too so am now feeling a little thin in the wallet.

dam 19th April 2002 17:36

Quote:

Originally posted by Phily Baby
I got me new book too so am now feeling a little thin in the wallet.
Its worth the cash.Better than trying to figure it all out on your own.

fwgx 19th April 2002 18:33

Maths is one of those things I've always wanted to be good at but never have been. Now I think it's because I haven't put the effort in for a long while and make too many silly mistakes like missing off +/- signs. I'm now going to try get my act together before the end of the year.

I just know my graphics coursework (that made no secnce at all to me) will make perfect sence by the end of the summer, by which time it's too late.

So far I can find the angle and the vector P but the last bit I don't get, time to e-mail the lecturer...


All times are GMT. The time now is 10:16.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.