One of the criteria for lines being perpendicular is the fact that the slope of the function in a perpendicular line is the inverse of the slope of the first times -1.
And as you can see m (being the slope of the first equation) is the inverse of the second equiation:
Therefore line 1 is perpendicular to line 2.