Example 2 If the angle between two lines is π/4 and slope of one of the lines is 1/2