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

Determine the relation is partially ordered, Determine if the relation repr...

Determine if the relation represented by the following Boolean matrix is partially ordered. Ans: Let the following relation R is defined on set A = {x, y, z}. To test if t

probability that they are both the same color, Consider two bags, A and B,...

Consider two bags, A and B, with the following contents a)    A single marble is drawn from each bag. What is the probability of getting a white marble out of Bag A and a red marb

Area of a circle, How do you find the area of a circle given the diameter?

How do you find the area of a circle given the diameter?

Example of least common denominator, Example of Least Common Denominator: ...

Example of Least Common Denominator: Example: Add 1/7 +2 /3 + 11/12 + 4/6 Solution: Step 1:             Find out primes of each denominator. 7 = 7 (already is

Logarithmic functions- general properties, Logarithmic functi...

Logarithmic functions have the following general properties If y = log a x, a > 0 and a ≠1, then The domain of the function

Differential calculus and probability, Josephine is constructing an open bo...

Josephine is constructing an open box by cutting the squares off the corners of a sheet of paper sized 20cm by 16cm. She is considering options of 3cm, 4cm and 5cm squares in order

Mathematics- in our lives , MATHEMATICS - IN OUR LIVES : What is the mo...

MATHEMATICS - IN OUR LIVES : What is the most obvious example of mathematics in your life? To many of us it is the maths that we studied in school. But is that all the mathemat

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