Answer:
y=2x-6
Explanation:
First find the equation of line AB
y=mx+b
m = slope
b = y- intercept = -1
m=rise/run
m=-1/2
y=-1/2x-1
if AB is perpendicular to CD, then slope of CD is inverse reciprocal = 2
then use the following to find equation of CD, using coordinates ( 2,-2) as (x1, y1)
y-y1=m(x-x1)
y- (-2)=2(x-2)
y+2=2x-4
y=2x-6