Concept:Use the identity sin2A+cos2A=1 and the square expansion (a+b)2=a2+2ab+b2.Explanation:Rewrite (1−sinA+cosA)2 as [(1−sinA)+cosA]2.Expand: (1−sinA)2+cos2A+2(1−sinA)cosA.Compute (1−sinA)2=1+sin2A−2sinA.Add cos2A: 1+sin2A−2sinA+cos2A=1+(sin2A+cos2A)−2sinA=1+1−2sinA=2−2sinA.Now add the cross term: 2(1−sinA)cosA.Total: 2−2sinA+2(1−sinA)cosA=2(1−sinA)+2(1−sinA)cosA.Factor 2(1−sinA): 2(1−sinA)(1+cosA).Answer:2(1−sinA)(1+cosA), which matches option B.