How to write integration formula

Hello, I would ask you how to write integrate formula.

I know this will work..

F(x)<-integrant (exp (x)/x^2)
integrate(f(x), lower = 0, upper = Inf)

but what i want to is put 9x^3 before integrant.
the formula is technically
F(x)<-9x^3*integrant (exp (x)/x^2)

but this doesn't work.
also f(x)*9x^3
i appreciate your advice. im not good at math.

thank you.


see the 'Value' section of integrate's documentation (help("integrate")). The function outputs a list of class 'integrate' which is probably why your second attempt doesn't work.

1 Like