How to involve a variable in numerical integration?

 How to involve a variable in numerical integration?

Now I have two functions f[x] and g[x] which both contains another variable a, or we can note as f[a,x] and g[a,x]. Now I need to solve the equation Solve[Integrate[f[a,x],{x,0,2Pi}]==Integrate[g[a,x],{x,0,2Pi}],a] to solve the value of a, however, f and g are both hard to do an analytical integral. So now I have to use NIntegrate instead, but the NIntegrate function seems cannot contain a variable a in it.

What can I do to solve the a?

Let’s block ads! (Why?)

Recent Questions – Mathematica Stack Exchange