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

Lim.., how can solve limits

how can solve limits

Ratio lanquage, Alexis needs to paint the four exterior walls of a large re...

Alexis needs to paint the four exterior walls of a large rectangular barn. the length of the barn is 80 feet the width is 50 feet and the height is 30 feet. The pain costs 28 dolla

Seriation to developing pre-number concepts, Seriation :  You have read ab...

Seriation :  You have read about a preschooler's ability to order. Ordering a set of objects means to arrange them in a sequence according to some rule. This arrangement could be

Linear programming, #question.As office manager of her firm, Marcellyne has...

#question.As office manager of her firm, Marcellyne has been directed to buy new filing cabinets. She knows that cabinet A costs $10, requires 6 square feet of floor space, and hol

Simplex table, maximize Z=2x+5y+7z, subject to constraints : 3x+2y+4z =0

maximize Z=2x+5y+7z, subject to constraints : 3x+2y+4z =0

Which state sold corsica to france in 1768, By which of those ancient civil...

By which of those ancient civilizations was Machu Pichu built? The Aztecs The Egyptians The Mayas The Incas Which state sold Corsica to France in 1768? - Not answered Genoa Veni

Differentiate y = x x using implicit differentiation, Differentiate y = x ...

Differentiate y = x x Solution : We've illustrated two functions similar to this at this point. d ( x n ) /dx = nx n -1                                 d (a x ) /dx= a

Time table, tips to memorize my time table

tips to memorize my time table

How much time does larry spend on his dog each day, Larry spends 3/4 hour t...

Larry spends 3/4 hour twice a day walking and playing with his dog. He also spends 1/6 hour twice a day feeding his dog. How much time does Larry spend on his dog each day? Add

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