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

Arthimetic progressions, what is the ratio of sides of a right angle triang...

what is the ratio of sides of a right angle triangle which are in A.P

Parity to De-Skew, Consider the following proposal to deskew a skewed bitst...

Consider the following proposal to deskew a skewed bitstream from a TRNG. Consider the bitstream to be a sequence of groups ot n bits for some n > 2. Take the first n bits, and o

Standard basis vectors -application of scalar multiplication, Standard Basi...

Standard Basis Vectors Revisited In the preceding section we introduced the idea of standard basis vectors with no really discussing why they were significant.  We can now do

Advanced functions, writ the equation that describes the motion of a point ...

writ the equation that describes the motion of a point on the wheel that has a center of 4m off the ground, has radius of 15 cm, makes a full rotation every 10 seconds and starts a

Explain the decimal system in detail, Explain The Decimal System in detail?...

Explain The Decimal System in detail? A decimal, such as 1.23, is made up of two parts: a whole number and a decimal fraction. In 1.23, the whole number is 1 and the decimal fr

Eqt.., pam bought a new bedroom suit for $2588.she me a down payment of $18...

pam bought a new bedroom suit for $2588.she me a down payment of $188 and paid the remaining amount in 24 equal monthly payments .how much did she pay for each monthly payment.

Trigonometry, Ashow that sec^2x+cosec^2x cannot be less than 4

Ashow that sec^2x+cosec^2x cannot be less than 4

Example to understand division means, My nephew had been introduced to divi...

My nephew had been introduced to division by his teacher Ms. Santosh, in Class 3. He, and several of his friends who had been taught by her, appeared to be quite comfortable with t

Cartesian product of sets, The Cartesian product (also called as the cross ...

The Cartesian product (also called as the cross product) of two sets A and B, shown by AΧB (in the similar order) is the set of all ordered pairs (x, y) such that x€A and y€B. What

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