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

Geometry, Determine the coordinates of the point equidistant from Salt Lake...

Determine the coordinates of the point equidistant from Salt Lake City and Helena

Determine if the following sequences converge or diverge, Determine if the ...

Determine if the following sequences converge or diverge.  If the sequence converges find out its limit. a. {3n 2 - 1 / 10n + 5n 2 } ∞ n =2 b. {e 2n / n} ∞ n =1 c

Line plots, how to you find the difference between different line plots

how to you find the difference between different line plots

Computing change for a given coin system, This problem involves the questio...

This problem involves the question of computing change for a given coin system. A coin system is defined to be a sequence of coin values v1 (a) Let c ≥ 2 be an integer constant

Factor , #Mai iss 3 years younger than twice the age of her brother . If b ...

#Mai iss 3 years younger than twice the age of her brother . If b represents the age of Mai''s brother .which expression below represents Mai''s age 2-3b 3-2b 2b-3 3b-2 2-3b 3-2b q

Estimate how much did the budget increase, Previous year's budget was 12.5 ...

Previous year's budget was 12.5 million dollars. This year's budget is 14.1 million dollars. How much did the budget increase? Last year's budget must be subtracted from this y

Algebra problem solving , A rectangles lenth is (x+4) and width is (x+3).By...

A rectangles lenth is (x+4) and width is (x+3).By adding binomials give its perimiter

Solve the radical form, Simplify following. Suppose that x, y, & z are posi...

Simplify following. Suppose that x, y, & z are positive.                      √ y 7 Solution In this case the exponent (7) is larger than the index (2) and thus the fir

Explain simplifying rational expressions, Explain Simplifying Rational Expr...

Explain Simplifying Rational Expressions ? A rational expression, or algebraic fraction, is an expression in which you have a polynomial divided by a polynomial. Sometimes it

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