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

The multiplication algorithm, THE MULTIPLICATION ALGORITHM :  Some Class 3...

THE MULTIPLICATION ALGORITHM :  Some Class 3 children in a nearby school had been taught the standard multiplication. Algorithm, and had even done reasonably well in the tests bas

Trigonometry, sin^2alpha *sec^2beta +tan^2 beta *cos^2alpha=sin^2alpha+tan^...

sin^2alpha *sec^2beta +tan^2 beta *cos^2alpha=sin^2alpha+tan^2 beta

Integration, how to learn integration?easier

how to learn integration?easier

Two bulbs are selected without replacement, A bag of 28 tulip bulbs contain...

A bag of 28 tulip bulbs contains 12 red tulip bulbs,7 purple tulip bulbs  and 9 yellow tulip bulbs,. Two bulbs are selected without replacement. Determine, a)    The probability t

Negative number, what should added to the sum of (-26) and 31 to m...

what should added to the sum of (-26) and 31 to make it equal to the sum of (-35) and (-11) question #Minimum 100 words accepted#

Calculus, Given f (x) =10x^3 - x^5 , find all intervals(in Interval Notatio...

Given f (x) =10x^3 - x^5 , find all intervals(in Interval Notation) of Concavity and the x-values of all Inflection Points.

Demand Forecast, How should shoppers Stop develop its demand forecasts?

How should shoppers Stop develop its demand forecasts?

Mechanics, find the composition of the simple harmonic motion of the same p...

find the composition of the simple harmonic motion of the same period in the perpendicular directions

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