We know that the equation of the line in symmetric form passing through the point (x1, y1) and making an angle 0 with the positive direction of x-axis is:
[x - x1] / cos 0 = [y - y1] / sin 0
Here, x1 = -2 , y1 = 1 and 0 = 45°, therefore, required equation of the line is:
[x + 2] / cos 45° = [y - 1] / sin 45°
x + 2 = y - 1 {•.• cos 45° = sin 45°}