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

Absolute convergent, Find out if each of the subsequent series are absolute...

Find out if each of the subsequent series are absolute convergent, conditionally convergent or divergent. Solution: (a) The above is the alternating harmonic ser

What is the length of the longer base, The longer base of a trapezoid is th...

The longer base of a trapezoid is three times the shorter base. The nonparallel sides are congruent. The nonparallel side is 5 cm more that the shorter base. The perimeter of the t

Vector addition, Is it possible to add two vectors of unequal magnitude and...

Is it possible to add two vectors of unequal magnitude and get a resultant of zero?Please explain also. Ans) no it is not possible as .. if the magnitude is diffrent then they c

Example of division , Example of division: Divide 738 by 83. Soluti...

Example of division: Divide 738 by 83. Solution: Example: Divide 6409 by 28. Solution: Division could be verified through multiplying

Divison, what is 24 diveded by 3

what is 24 diveded by 3

Proof of various derivative facts formulas properties, PROOF OF VARIOUS DER...

PROOF OF VARIOUS DERIVATIVE FACTS/FORMULAS/PROPERTIES Under this section we are going to prove several of the different derivative facts, formulas or/and properties which we en

Diameter of the circle , The length of the diameter of the circle which tou...

The length of the diameter of the circle which touches the X axis at the point (1,0) and passes through the point (2,3) is ? Solution)  If a circle touches the x-axis, its equatio

Example of fractional equations, Example of Fractional Equations: Exa...

Example of Fractional Equations: Example: Solve the fractional equation (3x +8)/x +5 =0 Solution: Multiply both sides of the equation by the LCD (x). (x) ((3x

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