Draw any line segment ¯¯¯¯¯¯¯¯AB. Mark any point M on it. Through M, draw a perpendicular to ¯¯¯¯¯¯¯¯AB. (Use ruler and compasses)
Draw any line segment. Take any point R not on it. Through R, draw a perpendicular to. (Use ruler and set-square)