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

Example of multiplication of matrix, Given So calculate AB. Sol...

Given So calculate AB. Solution The new matrix will contain size 2 x 4. The entry in row 1 and column 1 of the new matrix will be determined by multiplying row 1 of

Theory of equations, If p,q,r are roots of x^3-3x^2+4x-7=0 (p+2)(q+2)(...

If p,q,r are roots of x^3-3x^2+4x-7=0 (p+2)(q+2)(r+2)=

Lucy youth group increased $1, Lucy's youth group increased $1,569 for char...

Lucy's youth group increased $1,569 for charity. They decided to split the money evenly between 3 charities. How much will each charity receive? Divide the money raised through

Elliptic paraboloid - three dimensional spaces, Elliptic Paraboloid Th...

Elliptic Paraboloid The equation which is given here is the equation of an elliptic paraboloid. x 2 /a 2 + y 2 /b 2 = z/c Like with cylinders this has a cross section

One step ahead, how do we figure it out here is an example 3,4,6,9,_,_,_,_...

how do we figure it out here is an example 3,4,6,9,_,_,_,_,_,. please help

Proof of: limq -0 sinq/q = 1 trig limits, Proof of: lim q →0 sin q...

Proof of: lim q →0 sin q / q = 1 This proofs of given limit uses the Squeeze Theorem. Though, getting things set up to utilize the Squeeze Theorem can be a somewha

Probability, I have a question that hurts my head to work out. It is really...

I have a question that hurts my head to work out. It is really confusing for me. It sais " By the start of the 21st century, only 1 in 6 babies in America was born with blue eyes.

Four-step plan, Adison earned $25 mowing her neighbor''s lawn. Then she loa...

Adison earned $25 mowing her neighbor''s lawn. Then she loaned her friend $18, and got $50 from her grandmother for her birthday. She now has $86. How much money did Adison have to

Classify quadrilaterals, which quadrilaterals have only 1 pair of parallel ...

which quadrilaterals have only 1 pair of parallel sides

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