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

Why is vector division undefined, Division basically refers to multiplicati...

Division basically refers to multiplication of reciprocal. For example a/b is same as a*1/b or we can say, is same as a*b -1 , which is "a" multiplied to the inverse of "b". There

Find out height of the box which will give maximum volume, We contain a pie...

We contain a piece of cardboard i.e. 14 inches by 10 inches & we're going to cut out the corners as illustrates below and fold up the sides to form a box, also illustrated below. F

Critical points, Critical Point Definition : We say that x = c is a critic...

Critical Point Definition : We say that x = c is a critical point of function f(x) if f (c) exists & if either of the given are true. f ′ (c ) = 0        OR             f ′ (c

Maths for Social Science, A retired couple has up to $30000 to invest in fi...

A retired couple has up to $30000 to invest in fixed-income securities. Their broker recommends investing in two bonds: one a AAA bond yielding 8%; the other a B+ bond paying 12%.

how large a sample is necessary to have a standard error, If the populatio...

If the population standard deviation is o=8, how large a sample is necessary to have a standard error that is: a.  less than 4 points? b.  less than 2 points? c.  less than 1 poin

Factors, What are the factors of 956

What are the factors of 956

Volume, a data set has a mean of 3, a median of 4, and a mode of 5.which nu...

a data set has a mean of 3, a median of 4, and a mode of 5.which number must be in the data set-3,4,5?

Evaluating the function at the point of limit, Calculate the value of the f...

Calculate the value of the following limit. Solution: This first time through we will employ only the properties above to calculate the limit. Firstly we will employ prop

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