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

Find the solution to initial value problem, Illustration:   Find the soluti...

Illustration:   Find the solution to the subsequent IVP. ty' + 2y = t 2 - t + 1,      y(1) = ½ Solution : Initially divide via the t to find the differential equation in

Integration, It is known that a radioactive material decays at a rate propo...

It is known that a radioactive material decays at a rate proportional to the amount present.If after a period of 12 years,a 2g piece of radium weighs 1.99g.How long will it be befo

Launching of a new product, Launching a new product (Blackberry Cube) Analy...

Launching a new product (Blackberry Cube) Analysis (target market) Product features Promotions and advertisement sample design (location)

Surface area and volume, a child prepares a poster to save energy on a squa...

a child prepares a poster to save energy on a square sheet whose each side measures 50 cm . At each corner she draws a quadrant of radius 5 cm and the centre of a circle of diamete

Sequences and series - calculus, Sequences and Series In this section ...

Sequences and Series In this section we will be taking a look at sequences and infinite series.  In fact, this section will deal approximately exclusively with series.  Though

Actaap released item booklet april 2010 grade 8, what is the least number o...

what is the least number of faces and bases the paperweight could have?

Series - convergence or divergence, Series - Convergence/Divergence In ...

Series - Convergence/Divergence In the earlier section we spent some time getting familiar with series and we briefly explained convergence and divergence.  Previous to worryin

Finding the side of a triangle only using equations, In triangle DEF, angle...

In triangle DEF, angle E is congruent to angle F. If side DE = 3x-6, Side EF = x+2 and Side DF = 18-5x. Find the length of side DE

Find the probability , 1.  What is the probability that the two beverages w...

1.  What is the probability that the two beverages will be of the same kind? 2.  What is the probability that the two beverages will be different? 3.  What is the probability

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

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