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

Evaluate the area of the region, Evaluate the area of the region. a...

Evaluate the area of the region. a. 478 units 2 b. 578 units 2 c. 528 units 2 d. 428 units 2   b. Refer to the diagram to evaluate the area of the shaded

What is the value of the largest consecutive integer, The sum of three cons...

The sum of three consecutive even integers is 102. What is the value of the largest consecutive integer? Three consecutive even integers are numbers in order such as 4, 6, and

Multiple integrals, how to convert double integral into polar coordinates a...

how to convert double integral into polar coordinates and change the limits of integration

Example of spiral development of the mathematics curriculum?, E1) Can you g...

E1) Can you give some more examples of the spiral development of the mathematics curriculum? E2) A Class 3 child was asked to add 1/4 + 1/5. She wrote 2/9. Why do you feel this

Which of the following binomials could represent the length, The area of Mr...

The area of Mr. Smith's rectangular classroom is x 2 - 25. Which of the following binomials could represent the length and the width of the room? Since area of a rectangle is

Basics of series - sequences and series, Series - The Basics That top...

Series - The Basics That topic is infinite series.  So just define what is an infinite series?  Well, let's start with a sequence {a n } ∞ n=1 (note the n=1 is for convenie

Calculus, Determine the linear approximation for f(x)= sin delta at delta =...

Determine the linear approximation for f(x)= sin delta at delta =0

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