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

Lower than average, A local police precinct has seen a recent enhance in th...

A local police precinct has seen a recent enhance in the number of complaints filed regarding how officers are interacting with the public. Before addressing the issue, the command

Pemdas, 15(4*4*4*4*+5*5*5)+(13*13*13+3*3*3)

15(4*4*4*4*+5*5*5)+(13*13*13+3*3*3)

Class limits and class boundries, Class limits These are numerical va...

Class limits These are numerical values, which limits uq extended of a given class that is all the observations in a provided class are expected to fall in the interval which

Prove that 2b3-3abc+a2d=0, If  the  ratios  of  the  polynomial ax 3 +3bx...

If  the  ratios  of  the  polynomial ax 3 +3bx 2 +3cx+d  are  in  AP,  Prove  that  2b 3 -3abc+a 2 d=0 Ans: Let p(x) = ax 3 + 3bx 2 + 3cx + d and α , β , r are their three Z

Calculate the probability - contingency table, 1) A survey was done where a...

1) A survey was done where a random sample of people 18 and over were asked if they preferred comedies, dramas, or neither. The information gathered was broken down by age group an

Surface area with polar coordinates, Surface Area with Polar Coordinates ...

Surface Area with Polar Coordinates We will be searching for at surface area in polar coordinates in this part.  Note though that all we're going to do is illustrate the formu

Helping children learn mathematics, Here we have focussed on how mathematic...

Here we have focussed on how mathematics learning can be made meaningful for primary school children. We have done this through examples of how children learn and how we can create

.fractions, what is the difference between North America''s part of the tot...

what is the difference between North America''s part of the total population and Africa''s part

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