Find the integral of a function, Mathematics

Assignment Help:

We want to find the integral of a function at an arbitrary location x from the origin. Thus,

1486_find the integral of a function.png

where I(x=0) is the value of the integral for all times less than 0. (Essentially, I(x=0) is the unknown constant of integration or the initial condition.) From the class lecture on the trapezoidal rule for numerical integration, it can be seen that this function can be approximated by

2413_find the integral of a function1.png

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule. Your function should accept two vectors as inputs, x and f.

The first vector (x) contains the independent variable data (the points at which the values of the function are known. The second vector (f) should contain the values of the function at the points provided in the first vector. Your function should return the integral of f with respect to x, as a function of x.


Related Discussions:- Find the integral of a function

Algebra, 25 algebraic equations that equal 36

25 algebraic equations that equal 36

Find least number of cables required to connect 100 computer, Find out the ...

Find out the least number of cables required to connect 100 computers to 20 printers to assurance that 20 computers can directly access 20 different printers.  Justify your answer.

Show that af+bd+ce=ae+bf+cd= 1/2 , In figure, the incircle of triangle ABC...

In figure, the incircle of triangle ABC touches the sides BC, CA, and AB at D, E, and F respectively. Show that AF+BD+CE=AE+BF+CD= 1/2   (perimeter of triangle ABC), Ans:

Determine the derivative f ( x ) = 2 x2 -16x + 35, Determine the derivative...

Determine the derivative of the following function by using the definition of the derivative. f ( x ) = 2 x 2 -16x + 35 Solution Thus, all we actually have to do is to pl

Pair of straight lines, the adjacent sides of a parallelogram are 2x2-5xy+3...

the adjacent sides of a parallelogram are 2x2-5xy+3y2=0 and one diagonal is x+y+2=0 find the vertices and the other diagonal

Example of word problem, Example of Word problem: There is a man who i...

Example of Word problem: There is a man who is 21 years older than his son.  5 years ago he was four times as old as his son. How older are both now? Solution: Step 1

Geometry, calculate the area of a trapezoid with height 8cm base 18cm and 9...

calculate the area of a trapezoid with height 8cm base 18cm and 9cm

Marketing of herbal products , To help Himalya herbal launch a successful m...

To help Himalya herbal launch a successful marketing campaign in the UK

Initial conditions and boundary conditions, Initial Condition...

Initial Conditions and Boundary Conditions In many problems on integration, an initial condition (y = y 0 when x = 0) or a boundary condition (y = y

Find final position of point by rotation -translation matric, Question: ...

Question: A point in 3D is first rotated anticlockwise by 45 degrees about x axis,then translated along y axis by 2 units.Find the final position of the point if its initial po

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd