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 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.
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.
#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)
4. Next Let’s give a few more complicated examples y=x^2*ln(1 x). Its image is as follows:
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.
6. The image of the indefinite integral obtained above and the definite integral of the original function on [0,2] are as follows
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!