Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Comments on How to find a point on a vector equation with another vector equation and perpendicular distance?

Parent

How to find a point on a vector equation with another vector equation and perpendicular distance?

+4
−0

Given two lines, $l: 3x-y=9$ and $m: x-3y=3$, and an angle bisector $x-y=3$. Point $A\left(3,0\right)$ is where these three lines intersect. The problem asks us to find a point on the angle bisector that is at a perpendicular distance of $\sqrt{10}$ from line $m$. I know that we can use the distance formula from point to line. But I'm curious if it's possible to use vectors to solve this problem.

I have written the angle bisector and line $m$ in vector equations as $\vec{u}=\begin{pmatrix} 3\\0 \end{pmatrix} + t \begin{pmatrix} 1\\1\end{pmatrix}$ and $\vec{v}=\begin{pmatrix} 3\\0 \end{pmatrix} + t \begin{pmatrix} 3\\1\end{pmatrix}$ respectively.

I was considering a vector $\begin{pmatrix} x\\y \end{pmatrix}$ denoted as $s$ that has a magnitude of $\sqrt{10}$ and is perpendicular to $m$. By using the dot product we get $3x+y=0$ (with x and y that are the components from the vector $s$, 3 and 1 from the direction vector of $m$).

But this doesn't seem to help me anywhere. It feels like I'm missing an important piece of the puzzle that could solve this problem. So is there something that I have overlooked? Or is there another formula or property that should be applied to solve this problem?

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

0 comment threads

Post
+4
−0

What you've done seems fine; you just need to continue to use the information that you have. In particular, that $s^2=10$. This is definitely an example where generalizing makes things more clear and simple. Abstracting from the details and removing unnecessary information makes the computation and laying out of what information you have easier.

The first thing to note, which is implicit in what you've written, is there is nothing special about one of the lines being an angle bisector. Given any two lines, we can always find a third such that one of the lines is an angle bisector of the others, so that is providing no additional information and certainly no necessary information. We can also readily see that the problem is translation invariant, i.e. solving the translated problem just gives a translated answer.

With these insights, the problem reduces to: Given two (linearly independent) vectors $\mathbf u$ and $\mathbf v$, find a vector $\mathbf s$ such that $\mathbf s = \alpha\mathbf u - \beta\mathbf v$, $\mathbf s\cdot \mathbf s = 10$, and $\mathbf s \cdot \mathbf v = 0$. To be clear, $\mathbf s$ is the vector from the point on the line induced by $\mathbf v$ to the point on the line induced by $\mathbf u$. The actual point that we want is (the origin plus) $\beta\mathbf v$ plus $\mathbf s$, i.e. it's (the origin plus) $\alpha\mathbf u$.

At this point, you simply start solving for $\alpha$ and $\beta$. Writing out all the information you have in a compact way by abstracting from the concrete problem and leveraging notation makes it much easier to formulate a plan. In this case, we want to start by seeing if we can eliminate $\beta$ as a free variable and $\mathbf s \cdot \mathbf v = 0$ is a simple way of doing that. It leads to the equation $\alpha\mathbf u\cdot \mathbf v = \beta \mathbf v^2$ which we quickly solve as $\beta = \alpha \mathbf u \cdot \mathbf v / \mathbf v^2$.

Using $\mathbf s \cdot \mathbf s = 10$ gives $$\begin{align} \mathbf s \cdot (\alpha \mathbf u - \beta \mathbf v) & = \mathbf s \cdot \alpha \mathbf u \\ & = \alpha^2 \mathbf u^2 - \beta\alpha\mathbf v\cdot \mathbf u \\ & = 10 \end{align}$$

Substituting the earlier expression for $\beta$ gives $\alpha^2(\mathbf u^2 - (\mathbf u \cdot \mathbf v)^2/\mathbf v^2) = 10$. This is easily solved for $\alpha$. If we chose, $\mathbf u$ and $\mathbf v$ to be normalized, i.e. of length $1$, then this simplifies to $\alpha^2 = 10/(1-\cos^2\theta)=10/\sin^2\theta$ where $\theta$ is the angle between the two lines. We can verify that this is the correct answer via trigonometry. (How?)

An alternative approach would be to recognize that the problem is also rotationally invariant, so you could actually rotate one of the lines to be the $x$-axis and the problem becomes simply what (rotated) point on the rotated bisector has $\sqrt{10}$ as its $y$-coordinate. Geometric algebra would allow us to express the rotations purely in terms of vectors, i.e. without introducing rotation matrices.

As a minor terminological nit that I often see, an expression like $\begin{pmatrix} 3\\0 \end{pmatrix} + t \begin{pmatrix} 1\\1\end{pmatrix}$ is not an equation – there is no equals sign. "Expression" or "term" would be more appropriate terminology.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.

1 comment thread

Thank you for correcting me. I'll update my post using the correct equations. I understand your expla... (5 comments)
Thank you for correcting me. I'll update my post using the correct equations. I understand your expla...
Bennyshinichi‭ wrote 6 months ago · edited 6 months ago

Thank you for correcting me. I'll update my post using the correct equations. I understand your explanation up to the part where you wrote: $$\begin{align} \mathbf s \cdot (\alpha \mathbf u - \beta \mathbf v) & = \mathbf s \cdot \alpha \mathbf u \\ & = \alpha^2 \mathbf u^2 - \beta\alpha\mathbf v\cdot \mathbf u \\ & = 10 \end{align}$$ Could you please explain how you derived $ \mathbf s \cdot \alpha \mathbf u$ and $\alpha^2 \mathbf u^2 - \beta\alpha\mathbf v\cdot \mathbf u$? You then got the equation $\alpha^2(\mathbf u^2 - (\mathbf u \cdot \mathbf v)^2/\mathbf v^2) = 10$. Could you please clarify how you reached this point and which equations you used? Finally, when working with the vectors $\mathbf u$ and $\mathbf v$, should we use the direction vectors or the entire vector equations?

Derek Elkins‭ wrote 6 months ago

$\mathbf s\cdot(\alpha\mathbf u -\beta\mathbf v)=\mathbf s\cdot\alpha\mathbf u -\mathbf s\cdot\beta\mathbf v$, but we know $\mathbf s\cdot\mathbf v=0$. While I didn't write it in the clearest possible way, this whole equation is $\mathbf s\cdot\mathbf s = 10$ and then we're expanding $\mathbf s$ twice and using $\mathbf s\cdot\mathbf v=0$.

By translating so that the origin is $A$, the parameterizations of the lines just become $\alpha\mathbf u$ and $\beta\mathbf v$. An equivalent, alternate view is we are considering the vectors we get from $P(t)-P(0)$ where $P(t)=A+t\mathbf u$ is a parameterization of one of the lines and similarly for the other line.

Bennyshinichi‭ wrote 6 months ago · edited 6 months ago

Aha, that makes a lot more sense now. I have one last question: how did we derive $\alpha^2 \mathbf{u}^2 - \beta\alpha \mathbf{v} \cdot \mathbf{u}$? Did you use $(\alpha \mathbf{u} - \beta \mathbf{v})^2$? But this expansion results in $\alpha^2 \mathbf{u}^2 - 2\beta\alpha \mathbf{v} \cdot \mathbf{u} + \beta^2 \mathbf{v}^2$, right? So, where did the coefficient 2 and the term $\beta^2 \mathbf{v}^2$ go? We eventually didn’t use this expression for the equation, right? But I'm still curious how this is derived.

Derek Elkins‭ wrote 6 months ago

I simply substituted in the value for $\beta$.

Bennyshinichi‭ wrote 6 months ago

But substituting wouldn't result in the substituted value (in this case $\beta$) to come back in the equation, right?