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

Quantitative Technique in Marketing, a company''s advertising expenditures ...

a company''s advertising expenditures average $5,000 per month. Current sales are $29,000 and the saturation sales level is estimated at $42,000. The sales-response constant is $2,

Law of Cosines, The law of cosines can only be applied to acute triangles. ...

The law of cosines can only be applied to acute triangles. Is this true or false?

Calculate overhead in bit and time-synchronous communication, 2.    Suppose...

2.    Suppose a file of 35,000 characters is to be sent over a line at 55,000bps. 1. Calculate the overhead in bits and time using asynchronous transmission. Assume 1 start bit

Find out the maximum number of ounces she can ship for $10, The cost of shi...

The cost of shipping a package by Shipping Express is $4.85 plus $2 per ounce of the weight of the package. Sally only has $10 to spend on shipping costs. Which of the subsequent c

SHARES AND DIVIDEND, i am a student of class 10 and need help for making my...

i am a student of class 10 and need help for making my project on shares and dividend

Christie paid 5% sales tax purchase how much did she spend, Christie purcha...

Christie purchased a scarf marked $15.50 and gloves marked $5.50. Both items were on sale for 20% off the marked price. Christie paid 5% sales tax on her purchase. How much did she

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

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