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

Write radicals in exponent form, Write each of the given radicals in expone...

Write each of the given radicals in exponent form. Solution As illustrated in the last two parts of this example we have to be careful with parenthesis.  While we

Determine the area of the sail, If a triangular sail has a horizontal lengt...

If a triangular sail has a horizontal length of 30 ft and a vertical height of 83 ft , Determine the area of the sail? a. 1,245 ft 2 b. 1,155 ft 2 c. 201 ft 2 d. 2,4

Complex analysis test, Can anyone help with my exam. I have 8 questions to ...

Can anyone help with my exam. I have 8 questions to do which is due on 02-14-13

Surface area and volume, a child prepares a poster to save energy on a squa...

a child prepares a poster to save energy on a square sheet whose each side measures 50 cm . At each corner she draws a quadrant of radius 5 cm and the centre of a circle of diamete

Infinite interval - improper integrals, Infinite Interval  - Improper Inte...

Infinite Interval  - Improper Integrals In this type of integral one or both of the limits that is upper limit and lower limit of integration are infinity.  In these cases the

Find the perimeter and the area of the shaded portion, The given figure con...

The given figure consists of four small semicircles and two big semicircles.  If the smaller semicircles are equal in radii and the bigger semicircles are also equal in radii, find

Determine the probability that is of low quality, 1) A local factory makes ...

1) A local factory makes sheets of plywood. Records are kept on the number of mild defects that occur on each sheet. Letting the random variable x represent the number of mild de

Recursively, Let a 0 , a 1 ::: be the series recursively defined by a 0 =...

Let a 0 , a 1 ::: be the series recursively defined by a 0 = 1, and an = 3 + a n-1 for n ≥ 1. (a) Compute a 1 , a 2 , a 3 and a 4 . (b) Compute a formula for an, n ≥ 0.

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