(1)有题知AB与x轴夹角为30,得到斜率为根号3/3。设A(x1,7)(x2,1)列出方程组7=根号3/3x1+b,1=根号3/3x2+b,解得x2-x1=6根号3所以AB=(x2-x1)^2+36=12(2)列出方程组7=k/x1,1=k/x2,解得x1=根号3,x2=7根号3。把x1代入得k=7根号3.所以解析式为y=7根号3/x