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

Method of reduction of order, Consider the equation x 2 y′′+ xy′- y = 4x...

Consider the equation x 2 y′′+ xy′- y = 4x ln x (a) Verify that x is a solution to the homogeneous equation. (b) Use the method of reduction of order to derive the second

Permutation, HOW MANY number laying between 100 and 1000 can be formed with...

HOW MANY number laying between 100 and 1000 can be formed with 0,1,2,3,4,5 and also divisible by 5 with distinct digit

Determine the probability , A medical survey was conducted in order to esta...

A medical survey was conducted in order to establish the proportion of the population which was infected along with cancer. The results indicated that 40 percent of the population

Tests for relative minimum, Tests for relative minimum For a relative ...

Tests for relative minimum For a relative minimum point there are two tests: i.The first derivative, which is (dy)/(dx)  = f´(x) = 0 ii.The second derivative, which i

Definition of infinite limits, Infinite limits : Let's now move onto the d...

Infinite limits : Let's now move onto the definition of infinite limits. Here are the two definitions which we have to cover both possibilities, limits which are positive infinity

Steps for integration strategy - integration techniques, Steps for Integrat...

Steps for Integration Strategy 1. Simplify the integrand, if possible This step is vital in the integration process. Several integrals can be taken from impossible or ve

Graph f(x) = ex and g(x) = e- x - common graph, Graph f ( x ) = e x and g ...

Graph f ( x ) = e x and g ( x ) = e - x . Solution There actually isn't a lot to this problem other than ensuring that both of these exponentials are graphed somewhere.

Show that x(q-r) + y(r-p) + z(p-q) = 0, If the p th , q th & r th term of...

If the p th , q th & r th term of an AP is x, y and z respectively, show that x(q-r) + y(r-p) + z(p-q) = 0 Ans:    p th term ⇒ x = A + (p-1) D q th term ⇒ y = A + (

Determine centigrade equivalent for a temperature, 1. 10 -2 is equal to ...

1. 10 -2 is equal to 2. If 3n = 27, what is the value of (4n) + 1 3. What is 1/100 of 10000? 4. The formula C=5/9 x (F-32) converts Centigrade temperature from Fa

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