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

What are the angles of depression from observing position, In Figure, what ...

In Figure, what are the angles of depression from the observing positions O 1 and O 2 of the object at A?

Introduction to multiplication and division, INTRODUCTION :  When a Class ...

INTRODUCTION :  When a Class 5 child was given the problem 'If I paid Rs. 60 for 30 pencil boxes, how much did b pencil box cost?', he said it would be 60 x 30 = 1800. This

Draw the bipartite graph, The graph C n , n  ≥  3 contains n vertices and n...

The graph C n , n  ≥  3 contains n vertices and n edges creating a cycle. For what value of n is C n a bipartite graph? Draw the bipartite graph of C n to give explanation for yo

What is pythagorean triples, What is Pythagorean Triples? A set of thre...

What is Pythagorean Triples? A set of three numbers a, b, and c that can satisfy the equation A 2 +b 2 = c 2 , is called a Pythagorean triple. The following is a list of

Continuous Probability Distributions, Ask questioOn average, Josh makes thr...

Ask questioOn average, Josh makes three word-processing errors per page on the first draft of his reports for work. What is the probability that on the next page he will make a) 5

Example of convergent or divergent - comparison test, Determine if the subs...

Determine if the subsequent series is convergent or divergent. Solution As the cosine term in the denominator doesn't get too large we can suppose that the series term

Estimate whose time was the fastest, Nancy, Jennifer, Alex, and Joy ran a r...

Nancy, Jennifer, Alex, and Joy ran a race. Nancy's time was 50.24 seconds, Jennifer's was 50.32, Alex's was 50.9, and Joy's was 50.2. Whose time was the fastest? The fastest ti

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