Integration: Module 4-Part 1 CS 132 - Mathematics For Computer Science
Integration: Module 4-Part 1 CS 132 - Mathematics For Computer Science
Module 4- Part 1
CS 132 - Mathematics for Computer Science
1
Objectives
4. cos u du = sin u + C
5. sin u du = -cos u + C
6. sec2u du = tan u + C
7. csc2udu = -cot u + C
Therefore,
(2x)dx = 2x2 + 2c = 2x2 + d, d is an arbitrary constant.
An example
= 2 + C -1/2 -C
= 3/2
Definite Integration
=(f(x)dx at x=b) - (f(x)dx at x=a)
= 2 + C -1/2 -C
= 3/2
*** In practice, the arbitrary constants are simply disregarded when doing definite integration because they can cancel out each other anyway.
Definite Integration
=(f(x)dx at x=b) - (f(x)dx at x=a)
= 4 + C -1 -C
=3
*** In practice, the arbitrary constants are simply disregarded when doing definite integration because they can cancel out each other anyway.
Definite Integration
=x4/4 -x2 + c
Program in Python
import simpy as sp
def f(x):
return x**3 - 2x
x=sp.symbol(‘x’)
Subdivide the area under the curve y=f(x) from x=a to x=b into several small
trapezoids.
The integral of f(x) from a to b is the sum of the areas of small trapezoids:
Definite Integration Using Python
(Trapezoidal Rule)
The area under the curve is divided into 100 small trapezoids.
Next Thing to do