says said:
Sorry, I copied and pasted the question. t ∈ R.
The problem I am having with this question is understanding [3,0,0] + t(0,1,0).
As I said before, this is the sum of two
vectors: the first, <3, 0, 0>, is the vector from the origin to the point (3, 0, 0). I use <> to denote vectors, and () to denote points. The second vector is t<0, 1, 0> which is exactly the same as <0, t, 0>. If you add <3, 0, 0> and t<0, 1, 0> you get a vector that extends from the origin to some point on the line.
For example, if t = 0, the vector sum is <3, 0, 0>. If t = 1/2, you get the vector <3, 0, 0> + <0, 1/2, 0> = <3, 1/2, 0>, which extends from the origin to the point (3, 1/2, 0). For each value of t, you get a different vector that points to a different point on the line.
says said:
I've calculated the projection, presuming the vector that is on the line p is [3,0,0].
(3, 0, 0) is a point on the line, but the direction of the line is the vector <0, 1, 0>. In other words, the line is parallel to the y-axis.
says said:
You are right in post #5
@Mark44, I have used an incorrect equation. It should have been
t = [ P ⋅ p / p ⋅ p ]
where
t is a scalar
P is the vector [1,2,0]
p is the vector that sits on the line
t = [1,2,0] ⋅ [3,0,0] / [3,0,0] ⋅ [3,0,0] ]
= 3/9 = 1/3
No. If t = 1/3, and assuming you're still working with your parametric form of the line, you get <3, 0, 0> + (1/3)<0, 1, 0> = <3, 1/3, 0>. This vector goes from the origin to the point (3, 1/3, 0).
says said:
projection of P on to p = 1/3 * [3,0,0]
= [1,0,0]
To check the answer we know that the vector P - the projection dotted with the vector p = 0 because they are orthogonal to each other.
(P - projp P) ⋅ [3,0,0] = 0
(0,2,0) ⋅ [3,0,0] = 0
I've attached a photo of my working. I know I probably haven't answered the question properly, because I ignored the + t(0,1,0) bit, but I'm confused with the notation and what it means. The projection of P on to p will be any multiple of the vector [3,0,0] + t(0,1,0). If [3,0,0] and (0,1,0) both sit on the line then I can create a linear combination of the two and say that the vector [3,1,0] multiplied by some scalar, t, is equal to the projection of P on to p.
Your drawing would be better if you had overlaid your vectors onto an x-y coordinate system. Because of the vectors involved in this problem, in which the z-coordinate is 0 for all, you can get away with drawing everything in two dimensions.