Need a Sample Code

Hello, all experts,
Is there any demo code to write integral term of the following type of equation in FF++??.


For integral term i have to used the following quadrature formula:

I am facing problem to write the integral term in the above equation( i.e first picture). I need to write the integral term by using the given quadrature formula. Thanks in advance.