Let a straight line pass through the point m (- 2,2), and the area of the triangle formed by the two coordinate axes is 1, then the equation of the straight line is obtained

Let a straight line pass through the point m (- 2,2), and the area of the triangle formed by the two coordinate axes is 1, then the equation of the straight line is obtained

Let the point where y = ax + B intersects the coordinate axis be (0, b) (- B / A, 0)
If the triangle area is 1, the absolute value of (- B / A * b) = 2
And because passing through point m, we get 2 = - 2A + B
A = - 1 / 2, B = 1 or a = - 2, B = - 2
The equation is y = - 1 / 2x + 1 or y = - 2x-2