完整回答:显然,X、Y的联合概率密度f(x, y)在区域(0于是,Z=X-Y的分布函数F(z)=P(Z F(z) = (1/2)(1+z)^2, (-1 F(z) = 1-(1/2)(1-z)^2, (0对上述函数分区域对z求导,得 f(z) = 1+z, (-1 f(z) = 1-z, (0(当然,f(z)=0, z<-1 及 z>1。)