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

Surds and logarithms, what are these all about and could i have some exampl...

what are these all about and could i have some examples of them please

Proportions, How would you solve this question? 4/5 = 8/x+2

How would you solve this question? 4/5 = 8/x+2

Solving an equation problems, Temperature: On one day in Fairfield, Montana...

Temperature: On one day in Fairfield, Montana the temperature dropped 80 degree fahrenheit from noon to midnight. If the temperature at midnight was -21 degree fahrenheit, write an

How much is the volume increased, If the lengths of all sides of a box are ...

If the lengths of all sides of a box are doubled, how much is the volume increased? a. 2 times b. 4 times c. 6 times d. 8 times d. The volume of a box is taken by mu

Circle, #question when equation of tangent T=0 and why

#question when equation of tangent T=0 and why

What does required to earn on his further science test in 93, Justin earned...

Justin earned scores of 85, 92, and 95 on his science tests. What does he required to earn on his further science test to have an average (arithmetic mean) of 93%? To earn an a

Shortcomng methods for teaching hto in maths, 1.What are the strengths and ...

1.What are the strengths and shortcomings of the methods of teaching H T 0 in Examples 1 and 2? 2. a) Think of another activity for getting children to practise H T 0, especia

Proof of limit comparison test - sequences and series, Proof of Limit Compa...

Proof of Limit Comparison Test As 0  Now, as   we know that for large enough n the quotient a n /b n should be close to c and thus there must be a positive integer

Inequalities, seven more than a number is less than or equal to -18

seven more than a number is less than or equal to -18

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