Slope of a line, perpendicular and parallel lines - MYP Mathematics
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!