Create a vector to represent the polynomial integrand $$3{x}^{4}-4{x}^{2}+10x-25$$. The ${\mathit{x}}^{3}$ term is absent and thus has a coefficient of 0.

p = [3 0 -4 10 -25];

Use polyint to integrate the polynomial using a constant of integration equal to 0.

q = polyint(p)

q = 1×6
0.6000 0 -1.3333 5.0000 -25.0000 0

Find the value of the integral by evaluating q at the limits of integration.

Polynomial coefficients, specified as a vector. For example,
the vector [1 0 1] represents the polynomial $${x}^{2}+1$$,
and the vector [3.13 -2.21 5.99] represents the
polynomial $$3.13{x}^{2}-2.21x+5.99$$.

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.