Skip to main content
2 of 3
added 1398 characters in body
csn899
  • 1
  • 6
  • 17

Finding the Perpendicular Line Through a Given Point

Question:

Ask and be perpendicular to the straight line of $y = x -1$ and lead the straight line equation that cross a point {4,3}.

My method is:

{eqn = y == x - 1, pt = {4, 3}}
eq = # == 0 &@(eq /. Equal -> Subtract)
line = Cross@(Coefficient[eq[[1]], #] & /@ {x, y}) . {x, y} + c == 0
sol = First@(line /. Thread[{x, y} -> pt] // Solve)
line = line /. sol // Simplify // SubtractSides

Are there other methods to solve this problem?

csn899
  • 1
  • 6
  • 17