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

Constants of integration, CONSTANTS OF INTEGRATION Under this section w...

CONSTANTS OF INTEGRATION Under this section we require to address a couple of sections about the constant of integration. During most calculus class we play pretty quick and lo

Write an equation in radius and solve it for radius, X and Y are centers of...

X and Y are centers of circles of radius 9cm and 2cm and XY = 17cm. Z is the centre of a circle of radius 4 cm, which touches the above circles externally.  Given that XZY=90 o , w

Rates of change or instantaneous rate of change, Rates of Change or instant...

Rates of Change or instantaneous rate of change ; Now we need to look at is the rate of change problem.  It will turn out to be one of the most significant concepts . We will c

Find the external surface area, A shuttlecock used for playing badminton ha...

A shuttlecock used for playing badminton has the shape of a frustum of a Cone mounted on a hemisphere.  The external diameters of the frustum are 5 cm and 2 cm, and the height of t

Core concepts, define marketing and show its core concepts

define marketing and show its core concepts

What are logarithmic function, The logarithm of a provided number b to the ...

The logarithm of a provided number b to the base 'a' is the exponent showing the power to which the base 'a' have to be raised to get the number b. This number is defined as log a

Geometry of arcs, how to divide an arc in three equal parts

how to divide an arc in three equal parts

Problem of purchasing, story of faicing problem when customer purchasing a ...

story of faicing problem when customer purchasing a product

Multiplication of complex numbers, Multiplication of complex numbers Af...

Multiplication of complex numbers After that, let's take a look at multiplication.  Again, along with one small difference, it's possibly easiest to just think of the complex n

Equations of planes - three dimensional spaces, Equations of Planes Ear...

Equations of Planes Earlier we saw a couple of equations of planes.  Though, none of those equations had three variables in them and were actually extensions of graphs which 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