Formulate conditions on a weight function w(x) that guarantee that the weighted integral defines an…