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

Linear programming Special purpose of algorithm, the conclusion about stepp...

the conclusion about stepping stone method in real life situation?

Curve tracing, How we calculate region for curve tracing

How we calculate region for curve tracing

How many checks required to be used for the monthly costs, Green Bank charg...

Green Bank charges a monthly fee of $3 for a checking account and $.10 per check. Savings-R-Us bank charges a $4.50 monthly fee and $.05 per check. How many checks required to be u

Calculate the instantaneous rate of change of the volume, Assume that the a...

Assume that the amount of air in a balloon after t hours is specified by                                             V (t ) = t 3 - 6t 2 + 35 Calculate the instantaneous

Assisnment, How a student of mathematics of b.sc can make an assignment on...

How a student of mathematics of b.sc can make an assignment on topic of asymptotes?

Drawn to a circle with center o, From a point P, two tangents PA are drawn ...

From a point P, two tangents PA are drawn to a circle with center O.If OP=diameter of the circle show that triangle APB is equilateral. Ans:    PA=PB (length of tangents

Fractions, kim had 1/2 an orange. she gave Linda 1/4 of this. What fraction...

kim had 1/2 an orange. she gave Linda 1/4 of this. What fraction of the whole orange did Linda get?

Addition of like terms with same signs, Case 1: Suppose we are given...

Case 1: Suppose we are given expressions like 3abc and 7abc and asked to compute their sum. If this is the case we should not worry much. Because adding like exp

If 0.3 is added to 0.2 times the quantity x - 3, If 0.3 is added to 0.2 tim...

If 0.3 is added to 0.2 times the quantity x - 3, the result is 2.5. What is the value of x? The statement, "If 0.3 is added to 0.2 times the quantity x - 3, the result is 2.5,

How far up the building will the ladder reach?, A rescue and ?re squad plac...

A rescue and ?re squad places a 15 ft ladder against a burning building. If the ladder is 9 ft from the base of the building, how far up the building will the ladder reach? a. 8

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