# How do I perform the following numerical integration [duplicate]

I have the following integral to evaluate numerically: $$x(t) = \frac{1}{f(t)}\int_0^{t_b} t^m (t + n)^o \sin(pt) \mathrm{d}t \quad m,n,o,p \in \mathbb{R}$$

x[t]== f[t]^-1 Integrate[t^m*(t + n)^o*Sin[p t], {t, 0, tb}]


$t_b, m, n, o,$ and $p$ are known constants. I'm quite confident that it is straightforward to employ NIntegrate to solve [and plot] x(t) if it lacks $\frac{1}{f(t)}$ but I'm unsure about how to go about evulating the above integral and then generating plots. Any advice on the same would be great help.

Thanks.

• I don't see the problem... 1/f(t) is not inside the integral (?) – Ivan Sep 19 '14 at 3:32
• Yeah, that's my problem. – gadha007 Sep 19 '14 at 3:40
• Well, if it's not inside the integral, you can just simply use NIntegrate[t^m*(t + n)^o*Sin[p t], {t, 0, tb}] and get a number. – Ivan Sep 19 '14 at 4:01
• This question shows how to numerically approximate an integral as a function of the end point. Do the answers to it solve your problem? It seems fundamentally the same question. – Michael E2 Sep 19 '14 at 12:36
• @Michael E2 sorry. Yes. You're right. That's what the equation is. I'll check out the link you posted. Thanks. – gadha007 Sep 19 '14 at 18:02