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

Discount, outdoor grill- regular price:$360 discount:33 1/3%

outdoor grill- regular price:$360 discount:33 1/3%

Conduct an appropriate hypothesis test, Aspire LLP is a recruitment agency....

Aspire LLP is a recruitment agency. Recently, the company senior manager, Kay conducted a survey to understand the number of hours students spend daily on their studies after schoo

Find var (3x+8) where x is a random variable, If Var(x) = 4, find Var (3x+8...

If Var(x) = 4, find Var (3x+8), where X is a random variable. Var (ax+b) = a 2 Var x Var (3x+8) = 3 2 Var x = 36

Tristansmath, how do i multiply demencinals

how do i multiply demencinals

What is equivalence relation, What is equivalence relation?  Prove that rel...

What is equivalence relation?  Prove that relation  'congruence modulo' (  ≡mod m) is an equivalence relation.  Ans: A relation R illustrated on a nonempty set A is said to be

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

Find the polynomial zeros , If two zeros of the polynomial f(x) = x 4 - 6x...

If two zeros of the polynomial f(x) = x 4 - 6x 3 - 26x 2 + 138x - 35 are 2 ± √3.Find the other zeros.     (Ans:7, -5) Ans : Let the two zeros are 2 +√3 and 2 - √3 Sum of

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