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

SHARES AND DIVIDEND, i am a student of class 10 and need help for making my...

i am a student of class 10 and need help for making my project on shares and dividend

Find the angle of elevation, A 50-foot pole casts a shadow on the ground. ...

A 50-foot pole casts a shadow on the ground. a) Express the angle of elevation θ of the sun as a function of the length s of the shadow. (Hint you may wish to draw this firs

Velocity of a skydiver (calculus), using v=g/k(1-e^-kt) find the velocity o...

using v=g/k(1-e^-kt) find the velocity of the skydiver when k is 0.015

Second order differential equation, Write the subsequent 2nd order differen...

Write the subsequent 2nd order differential equation as a system of first order, linear differential equations. 2 y′′ - 5 y′ + y = 0  y (3) = 6  y′ (3) = -1  We can wri

Show that the height of the aero plane, From  an  aero  plane  vertically  ...

From  an  aero  plane  vertically  above  a  straight  horizontal  road,  the  angles  of depression of two consecutive milestones on opposite sides of the aero plane are observed

Triangles, ABC is a triangle right angled at c. let BC=a, CA=b, AB=c and lr...

ABC is a triangle right angled at c. let BC=a, CA=b, AB=c and lrt p be the length of the perpendicular from C on AB. prove that cp=ab and 1/p2=1/a2+1/b2

Find the perameter of square in maths, Find the perameter of SQUARE in math...

Find the perameter of SQUARE in maths? Remember that in a square, all sides are of equal length. A square is also a kind of rectangle. So, you can use length (l) times width

Explain how to converting percents to decimals , Explain how to Converting ...

Explain how to Converting Percents to Decimals ? Percent : "Percent" means "per hundred." Percents are represented by a percent sign ( % ) to the right of a number.  For exam

Error analysis: describle and correct the error in plotting, to plot (5,-4)...

to plot (5,-4), start at (0,0) and move 5 units left and 4 units down

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