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

Differential Equations, Verify Liouville''''s formula for y "-y" - y'''' + ...

Verify Liouville''''s formula for y "-y" - y'''' + y = 0 in (0, 1) ?

Linear Systems, Find the solution to the following system of equations usin...

Find the solution to the following system of equations using substitution:

Five shirts and one tie cost $20 what price of one shirt, Three shirts and ...

Three shirts and five ties cost $23. Five shirts and one tie cost $20. What is the price of one shirt? Let x = the cost of one shirt. Let y = the cost of one tie. The ?rst part

one student is more in each row, The students of a class are made to stand...

The students of a class are made to stand in complete rows. If one student is more in each row, there would be 2 rows less, and if one student is less in every row, there would be

Sums, what is 10 times 10 pls

what is 10 times 10 pls

Geometry, in right angle triangle BAC.

in right angle triangle BAC.

Geometry, P and Q are the points (12,0) and (0,-5) respectively,find the le...

P and Q are the points (12,0) and (0,-5) respectively,find the length of the median through the origin O of the triangle OPQ

Word problems, The sum of two numbers is 19, their difference is 5. find th...

The sum of two numbers is 19, their difference is 5. find the numbers

Complex number, a ,b,c are complex numbers such that a/1-b=b/1-c=c-1-a=k.fi...

a ,b,c are complex numbers such that a/1-b=b/1-c=c-1-a=k.find the value of k

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