Given a line with slope y/x, find a simple formula for the slope of a second line that forms a 45 degree angle with this line (find slopes for both 45 degrees more and 45 degrees less.)

This can be done without trigonometry.

Find a general formula for any angle.

This requires trigonometry.