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

Linear probability model, Pepsi:               A dummy variable where 1 den...

Pepsi:               A dummy variable where 1 denotes choice of Pepsi by the i-th customer and 0 otherwise Price_P:           The price of a 2-liter bottle of Pepsi at the time

Expected value of perfect information, Expected Value of Perfect Informatio...

Expected Value of Perfect Information In the above problems we have used the expected value criterion to evaluate the decisions under the conditions of risk. But, as long as un

Stuck on this, I need help on radical notation for a homework assignment I'...

I need help on radical notation for a homework assignment I''m really confused on it. Can I get help?

Area of polygons, ho we can find the area of diffrent types of polygon

ho we can find the area of diffrent types of polygon

Operation, What is a characteristic of operation

What is a characteristic of operation

Combined mean and standard deviation -illustration, Combined mean Assu...

Combined mean Assume m be the combined mean Assume x 1 be the mean of first sample Assume x 2 be the mean of the second sample Assume n 1 be the size of the 1 st

Find the number., There is a number. If the sum of digits is 14, and if 29 ...

There is a number. If the sum of digits is 14, and if 29 is subtracted from the number, the digits become equal. Find the number.

Find out if the following series converges or diverges, Determine or find o...

Determine or find out if the following series converges or diverges.  If it converges find out its value. Solution We first require the partial sums for this series.

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