The question is from class 12 NCERT Physics chapter 10 wave optics
The superposition principle comes from the linear character of the differential equation of wavemotion.that is if and are the solution of any wave equation, then linear combination of and is also the solution of the wave equation.