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

Analyze the dynamic path - difference equation, One of the well-known class...

One of the well-known class of models that involve a simple difference equation are models of mean reversion. These models typically take the form yt+1 - yt = -a(yt - μ)where 0

Example of infinite interval - improper integrals, Evaluate the subsequent ...

Evaluate the subsequent integral. Solution This is an innocent enough looking integral. Though, because infinity is not a real number we cannot just integrate as norm

In terms of x what is the volume of the rectangular prism, The dimensions o...

The dimensions of a rectangular prism can be expressed as x + 1, x - 2, and x + 4. In terms of x, what is the volume of the prism? Since the formula for the volume of a rectang

Implementation of kruskal algorithm, You are required to implement Kruskal'...

You are required to implement Kruskal's algorithm for finding a Minimum Spanning Tree of Graph.  This will require implementing : A Graph Data Type (including a display meth

Trigonometry, If sec A = x+i/x, prove that sec A + tan A = 2x or 1/2x

If sec A = x+i/x, prove that sec A + tan A = 2x or 1/2x

The shape of a graph, The Shape of a Graph, Part II : In previous we saw h...

The Shape of a Graph, Part II : In previous we saw how we could use the first derivative of a function to obtain some information regarding the graph of a function.  In this secti

Trigonmetry, [3+tan20+tan80]/tan20+tan80

[3+tan20+tan80]/tan20+tan80

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