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

Ratio, the ratio of dogs to cats is 2 to 9.if there are 10 dogs how many ca...

the ratio of dogs to cats is 2 to 9.if there are 10 dogs how many cats are there?

Determine does this point lie on the line, Does this Point Lie on The Line?...

Does this Point Lie on The Line? How do you know if a point lies on a given line? For example, does the point (1, 2) lie on the line 3x + y = 7? If you graph the line and the

Positive exponents, Simplify following and write the answers with only posi...

Simplify following and write the answers with only positive exponents.   (-10 z 2 y -4 ) 2 ( z 3 y ) -5 Solution    (-10 z 2 y -4 ) 2 ( z 3 y ) -5

Damping force, The subsequent force that we want to consider is damping. Th...

The subsequent force that we want to consider is damping. This force may or may not be there for any specified problem. Dampers work to counteract any movement. There are some w

Mashed patatos, I have 6 cups of patatos that I have to share with 13 frien...

I have 6 cups of patatos that I have to share with 13 friends write that as the nearest hundredth

4 accounting majors, 4 accounting majors, 2 economics majors and 3 marketin...

4 accounting majors, 2 economics majors and 3 marketing majors have an interview for5 different positions with a large company. Find the number of dfferent ways that 5 of these c

Determining and classifying all the critical points, how do you determine ...

how do you determine and classify all the critical points of a function

Simultaneous equations, two rolls of carpet cost £574, the first cost £8 pe...

two rolls of carpet cost £574, the first cost £8 per meter, the second which is 7m longer costs £7 p/m. how many meters are there in each roll

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