The slope of the line is (1 - (-1))/(-1 - 3) = 2/(-4) = -1/2
We can use the point-slope form of the equation of a line, which is y - y0 = m(x - x0) to obtain y - 1 = -1/2 (x + 1). Recall that m = slope and (x0, y0) is a point on the line.
y - 1 = -1/2 x - 1/2
y = -1/2 x + 1/2
To find the y-intercept, we know that y = mx + b is the slope-intercept form of the equation of a line. Here, b = 1/2, and b corresponds to the y-intercept. In other words, when x = 0, y = 1/2, and the graph of the line intersects the y-axis at the point (0, 1/2).
The line perpendicular to this line will have the negative reciprocal slope. The negative reciprocal of -1/2 is 2. If this perpendicular line passes thru (1, 1), then its equation is
y - 1 = 2(x - 1)
y - 1 = 2x - 2
y = 2x - 1
I will leave it to you to graph the two lines, as that is not possible on this platform.