I do not understand what you mean by ‘represent the integral’, so I will take some guesses:
To do a numerical integration with afunction, use theintegral function.
To do a numerical integration withdata, use thetrapz function.
To do a symbolic integration, use theint function.
To display an integral as you might see it in a textbook or paper, see the documentation onText Properties, specifically with respect to using the LaTeX interpreter.
You have the quadgk, integral, et al. functions for numerical integration. If you have access to the symbolic toolbox you and want an analytical solution you might have success with the int function. Check the help-documentation for those and see if they give you what you want.
Best Answer