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

4th grade, Ray cut 6 pieces of rope . Each piece was between 67 and 84 inch...

Ray cut 6 pieces of rope . Each piece was between 67 and 84 inches long. What would be the total length of the 6 pieces of rope?

Modi method, why modi method is used in operation research

why modi method is used in operation research

Derivatives of hyperbolic functions , Derivatives of Hyperbolic Functions ...

Derivatives of Hyperbolic Functions : The last set of functions which we're going to be looking at is the hyperbolic functions.  In several physical situations combinations of e

The invisible effort on learning maths, The Invisible Effort :   Although t...

The Invisible Effort :   Although the development of children is a process, what is noticed and given recognition to is the end-product. We usually speak of children having achieve

Ratio test - sequences and series, Ratio Test In this part we are goin...

Ratio Test In this part we are going to take a look at a test that we can make use to see if a series is absolutely convergent or not.  Remind that if a series is absolutely 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%.

Determine the length of the longer base, The longer base of a trapezoid is ...

The longer base of a trapezoid is 3 times the shorter base. The nonparallel sides are congruent. The nonparallel side is 5 cm more that the shorter base. The perimeter of the trape

Compute the total and annual return on the investment, 1. Calculate the ann...

1. Calculate the annual interest that you will receive on the described bond-A $500 Treasury bond with a current yield of 4 .2% that is quoted at 106 points? 2. Compute the tota

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