calculate numeric and symbolic integrals
an integral is a mathematical measure that combines infinitesimal data points. integrals have a broad range of applications in all engineering disciplines.
types of integrals
in general, integrals can be either . definite integrals represent functions with bounded upper and lower limits, whereas indefinite integrals represent functions without limits.
the following example shows an indefinite integral:
$$i= \int3x^2 dx=x^3 c$$
where ‘c’ is a constant.
a definite integral for the same equation must have defined limits. for example, we can integrate the above equation with limits [-2, 2] as follows:
$$i= \int_{-2}^2 3x^2 dx=(2^3 c)-(-2^3 c)=16$$
you can use matlab® and symbolic math toolbox™ to calculate integrals and symbolically.
examples of integral applications
- area under curves:
you can calculate the area under two curves using integrals. for example, we define two curves,
$$x1=y^2-1$$
$$x2=1- y^2$$
and calculate the area under the curves as follows:
$$a=∫(x2-x1) dy=\frac{(-2y(y^2-3))}{3}$$
the area under the curve\('a’\) here is a function of \('y’\) because we did not specify limits. if we define the limits as \([-1, 1]\), the integral returns a value of:
$$a=8/3.$$
- volume of objects:
you can use integrals to calculate the volume of objects. for example, you can derive the volume of a sphere by starting with a function:
$$f(x)=√(r^2-x^2 )$$
which depicts a semi-circle with radius ‘r.’ rotating this semi-circle around the x-axis would yield a sphere.
the area of the semi-circle would be
$$a=πf(x)^2$$
integrating this area with limits [-r, r] would give us the volume of the sphere:
$$v= ∫_{-r}^{ r} a dx=\frac{(4πr^3)}{3}$$
- velocity of a moving object:
you can find the velocity of an object by finding the definite integral of the object’s acceleration with respect to time, because acceleration is simply defined as the rate of change of velocity over time.
$$∆vel= ∫acc \; dt$$
techniques to calculate integrals
you can calculate integrals numerically using techniques such as:
- simpson quadrature
- lobatto quadrature
- gauss-kronrod quadrature
for more information on the numeric and symbolic calculations of integrals, see matlab® and symbolic math toolbox™.
examples and how to
software reference
numerical integration
symbolic integration
see also: analytical solution, mathematical modeling, computer algebra system, dimensional analysis, inverse kinematics