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

Pumping lemma for context free languages, 1. Construct a grammar G such tha...

1. Construct a grammar G such that L(G) = L(M) where M is the PDA in the previous question. Then show that the word aaaabb is generated by G. 2. Prove, using the Pumping Lemma f

Slope of tangent line, Slope of Tangent Line : It is the next major interp...

Slope of Tangent Line : It is the next major interpretation of the derivative. The slope of the tangent line to f ( x ) at x = a is f ′ ( a ) . Then the tangent line is given by,

Trigonometry, explain the formular for finding trigonometry

explain the formular for finding trigonometry

Partial differential equations, I need expert who can solve 10 set of PDE w...

I need expert who can solve 10 set of PDE with constant of integration.

Find area of y = 2 x2 + 10 and y = 4 x + 16, Find out the area of the regio...

Find out the area of the region bounded by y = 2 x 2 + 10 and y = 4 x + 16 . Solution In this case the intersection points (that we'll required eventually) are not going t

What is the probability that they will both come to a party, Q.  Suppose th...

Q.  Suppose the probability of David coming to a party is 75% and the probability of Jason coming to a party is 85%. What is the probability that they will both come to a party, a

Find the original average of boys and girls in the class, When 6 boys were ...

When 6 boys were admitted & 6 girls left the percentage of boys increased from 60% to 75%. Find the original no. of boys and girls in the class. Ans: Let the no. of Boys be x

Generic rectangles and greatest common factors, miaty and yesenia have a gr...

miaty and yesenia have a group of base ten blocks.Misty has six more than yesnia. Yesenia''s blocks repersent 17 together they have 22 blocks,and the total of blocks repersent 85.

Example of union of sets, Need help, please anybody solve this: Consider...

Need help, please anybody solve this: Consider the universal set T and its subsets A, B and C underneath as: T = {a, b, c, d e, f} A = {a, d} B = {b, c, f} C = {a, 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