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

What is the objective of lipids metabolism, What is the objective of lipids...

What is the objective of lipids metabolism ? After studying this unit, you will be able to: 1. explain how fatty acids are oxidized for the production of energy, 2. describe

Solid Mensuration, The two sides of a triangle are 17cm and 28cm long, and ...

The two sides of a triangle are 17cm and 28cm long, and the length of the median drawn to the third side is equal to 19.5 cm. What is the distance from an endpoint of the median to

Determine differential equation from direction field, Thus, just why do we ...

Thus, just why do we care regarding direction fields? Two nice pieces of information are there which can be readily determined from the direction field for a differential equation.

Learning, my math skills are keeping me from getting my ged need help in al...

my math skills are keeping me from getting my ged need help in all areas

Find how much women prefer a job outside of the home, According to a Gallup...

According to a Gallup poll 51% of US women prefer to have a job outside of the home. What is the chance that a survey of 200 women would find that 45% or less of the respondants

Vectors and sclara, find the angel between the vectors 4i-2j+k and 2i-4j on...

find the angel between the vectors 4i-2j+k and 2i-4j online answer

Solution set of equation, The complete set of all solutions is called as th...

The complete set of all solutions is called as the solution set for the equation or inequality.  There is also some formal notation for solution sets.  We have to still acknowledge

Vertical tangent for parametric equations, Vertical Tangent for Parametric ...

Vertical Tangent for Parametric Equations Vertical tangents will take place where the derivative is not defined and thus we'll get vertical tangents at values of t for that we

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