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

Continuity, Continuity : In the last few sections we've been using the te...

Continuity : In the last few sections we've been using the term "nice enough" to describe those functions which we could evaluate limits by just evaluating the function at the po

Fractions, how can I compare fractions with unlike denominators?

how can I compare fractions with unlike denominators?

Compound interest, A juicer is available for 3500 cash but was sold under i...

A juicer is available for 3500 cash but was sold under installment plan where the purchaser agreed to pay 1500 cash down and 3 equal quarterly installments. If the dealer charges i

Ratios, a doctor sees 3 boys to 5 girls in one week . If he sees 40 boys in...

a doctor sees 3 boys to 5 girls in one week . If he sees 40 boys in one day then how many girls does he see that day

Determine the numbers of sides in regular polygon, If each interior angle o...

If each interior angle of a regular polygon has a calculated as of 144 degrees, Determine the numbers of sides does it have? a. 8 b. 9 c. 10 d. 11   c. The measur

Limit, limit x APProaches infinity (1+1/x)x=e

limit x APProaches infinity (1+1/x)x=e

Algebra, (x+15)/y=10 where y=5

(x+15)/y=10 where y=5

Linear graph, in the form of linear graph interpret the ralationship betwee...

in the form of linear graph interpret the ralationship between two quantities

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