search
HomeCommon ProblemHow to find indefinite integral in matlab

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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment