IB Math SL, gradient of a line, perpendicular - parallel lines
If two lines are perpendicular their slopes are negative reciprocals and if two lines are parallel have equal slopes.
Regarding your question about the gradient of the line which is perpendicular to the line
be the required slope then we have the following relation:
Hope these help!