Coordinate geometry - move a line $X$ units along its normal

284 Views Asked by At

So I have a straight line, in the classic $y = mx + b$, and I'm just trying to translate the formula for the line a certain distance along its normal.

For example, with this graph, how would I translate the red line to the blue one if (for example) $x$ was $4$?

2

There are 2 best solutions below

2
On BEST ANSWER

The line $ y = mx + b $ has a slope $ \tan \phi =m $. It should be parallelly displaced through distance $d$.

The $y$ intercept increases or decreases by an amount

$$ d \sec \phi = d\, \sqrt{1+m^2}$$

so that the displaced line is

$$ y = mx + b \pm d\, \sqrt{1+m^2}. $$

PS: Please avoid using same symbol $X$ in the graph used for a variable of the straight line.

3
On

Suppose the equation of your first line is

$$y=mx+b.$$

Then the angle this line makes to the $x$-axis is $\arctan (m)$. Then the angle perpendicular to this in the direction wanted is $\arctan (m) - \frac{\pi}{2}$. Then by trigonometry, the amount required to translate the $y$-intercept of line is $4\sin (\arctan (m) - \frac{\pi}{2}).$

Hence the translated line will be

$$y=mx+b+4\sin\Big(\arctan (m)-\frac{\pi}{2}\Big).$$