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

Stats Combination Questions, A car buyer has a choice of three makes, five ...

A car buyer has a choice of three makes, five body styles, and six colors. How many different choices does the buyer have?

Define degrees and radians, Q. Define Degrees and Radians? Ans. Ju...

Q. Define Degrees and Radians? Ans. Just as your height can be measured in meters or feet and your weight can be measured in pounds or kilograms, angles can be measured in

Proof for absolute convergence - sequences and series, Proof for Absolute C...

Proof for Absolute Convergence Very first notice that |a n | is either a n or it is - a n depending upon its sign.  The meaning of this is that we can then say, 0 a n +

Detremine the surface area to the nearest inch, If a tabletop has a diamete...

If a tabletop has a diameter of 42 in, Detremine the surface area to the nearest inch? (π = 3.14) a. 1,384 in 2 b. 1,319 in 2 c. 1,385 in 2 d. 5,539 in 2 c. Th

Properties of triangle, In triangle ABC, cosecA(sinB.sinC+cosB.sinC) is equ...

In triangle ABC, cosecA(sinB.sinC+cosB.sinC) is equal to..?

Fractions, A car travels 283 1/km in 4 2/3 hours .How far does it go in 1 h...

A car travels 283 1/km in 4 2/3 hours .How far does it go in 1 hour?

Homework, How do you simplify 10:30:45

How do you simplify 10:30:45

Example of developing an understanding, In class 1, the teacher had written...

In class 1, the teacher had written down the digits 0,1, ...., 9 on the board. Then she made all the children recite the corresponding number names. Finally, she made them write th

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