Home > Common Problem > How to find indefinite integral in matlab

How to find indefinite integral in matlab

coldplay.xixi
Release: 2020-08-22 11:09:16
Original
24917 people have browsed it

Matlab method to find indefinite integrals: first define the independent variables and functions and view the image of the function; then calculate the indefinite integral of [y=x^2], use the command [int(y,x)] that is Can.

How to find indefinite integral in matlab

How to find indefinite integrals in matlab:

1. You need to use to calculate definite integrals and indefinite integrals int(y,x[,range])This function. Now we take y=x^2 as an example to illustrate how to use it. First define the independent variables and function and view the image of the function as follows.

How to find indefinite integral in matlab

2. To calculate the indefinite integral of y=x^2, use the command int(y,x). The result of the integral is f=x^3/3, and the corresponding image is as follows.

How to find indefinite integral in matlab

#3. If you want to calculate the definite integral, you need to add the upper and lower limits of the integral. For example, here is the definite integral of y=x^2 on [-1,1]: int(y,x,-1,1)

How to find indefinite integral in matlab

4. Next Let’s give a few more complicated examples y=x^2*ln(1 x). Its image is as follows:

How to find indefinite integral in matlab

5. Use symbolic representation to obtain its integral expression as follows:

If you use the ordinary integral method by parts, you need It takes two consecutive integrals by parts to eliminate the power exponent.

How to find indefinite integral in matlab

6. The image of the indefinite integral obtained above and the definite integral of the original function on [0,2] are as follows

How to find indefinite integral in matlab

The above is the detailed content of How to find indefinite integral in matlab. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template