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

Triple integrals, Consider a circular disc of radius 1 and thickness 1 whic...

Consider a circular disc of radius 1 and thickness 1 which has a uniform density 10 ?(x, y, z) = 1. (a) Find the moment of inertia of this disc about its central axis (that is, the

#rounding off, I am the least two digit number which round off to 100?

I am the least two digit number which round off to 100?

Area of polygons, ho we can find the area of diffrent types of polygon

ho we can find the area of diffrent types of polygon

Which state sold corsica to france in 1768, By which of those ancient civil...

By which of those ancient civilizations was Machu Pichu built? The Aztecs The Egyptians The Mayas The Incas Which state sold Corsica to France in 1768? - Not answered Genoa Veni

If t2+t+1=0 , t=w,w 2 L.H.S (w+w 2 ) + (w 2 + w) 2 ........  1  + 1 ....

t=w,w 2 L.H.S (w+w 2 ) + (w 2 + w) 2 ........  1  + 1 ..... But every third term is of the form: (w 3n +w 3n ) 2 =22 There are nine such terms. Their sum is 36. The rema

Find Equation of the circle, The line 4x-3y=-12 is tangent at the point (-3...

The line 4x-3y=-12 is tangent at the point (-3,0) and the line 3x+4y=16 is tangent at the point (4,1). find the equation of the circle. solution) well you could first find the ra

Relationship between inverse and sine function, Relationship between the in...

Relationship between the inverse sine function and the sine function We have the given relationship among the inverse sine function and the sine function.

How much did kara pay in interest, Kara borrowed $3,650 for one year at an ...

Kara borrowed $3,650 for one year at an annual interest rate of 16%. How much did Kara pay in interest? To ?nd out 16% of $3,650, multiply $3,650 through the decimal equivalent

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