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

Shares and dividend, a man in rested rupee 800 is buying rupee 5 shares and...

a man in rested rupee 800 is buying rupee 5 shares and then are selling at premium of rupee 1.15. He sells all the shares.find profit

Pigeonhole principle, By pigeonhole principle, show that if any five number...

By pigeonhole principle, show that if any five numbers from 1 to 8 are chosen, then two of them will add upto 9.    Answer: Let make four groups of two numbers from 1 to 8 like

Determine the volume of the hollow solid, A solid is formed by cutting the ...

A solid is formed by cutting the top off of a cone with a slice parallel to the base, and then cutting a cylindrical hole into the resulting solid. Determine the volume of the holl

Rarrrrrrrrrr, i need help in writing about a magic car?..

i need help in writing about a magic car?..

Equivalent fractions and area models, Need two equal fractions multiply an...

Need two equal fractions multiply and divide 1/6 3/4 5/15 2/7 20/25 24/36 4/9

Think smarter, compare: 643,251; 633,512; and 633,893. the answer is 633,51...

compare: 643,251; 633,512; and 633,893. the answer is 633,512. what is the question?

Area, #What is an easy way to find the area of any figure

#What is an easy way to find the area of any figure

Excel, do you guys have excel math

do you guys have excel math

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