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

Limit properties, Limit Properties :  The time has almost come for us t...

Limit Properties :  The time has almost come for us to in fact compute some limits.  Though, before we do that we will require some properties of limits which will make our lif

Constructing tables versus rote learning maths, CONSTRUCTING TABLES VERSUS ...

CONSTRUCTING TABLES VERSUS ROTE LEARNING :  Ask any adult how she would help a child to acquire simple multiplication facts. There is a very strong possibility that she would say,

Surface area, Find the amount of sheet metal need to form a conical funnel ...

Find the amount of sheet metal need to form a conical funnel of base radius 30cm with a vertical height of 50cm, allowing for 0.5cm overlap. Find the total surface area?

Linear Systems, Find the solution to the following system of equations usin...

Find the solution to the following system of equations using substitution:

Calculate magnitude and direction of maximum principle, At a point in a loa...

At a point in a loaded member, the stresses relative to an x, y, z coordinate system are given by Calculate the magnitude and direction of the maximum principal stress.

What is converse- inverse and contrapositive, What is Converse, Inverse, an...

What is Converse, Inverse, and Contrapositive In geometry, many declarations are written in conditional form "If ...., then....." For Example: "If two angles are right angles,

What is the sale price of the printer, A printer which sells for $190 is on...

A printer which sells for $190 is on sale for 20% off. What is the sale price of the printer? The printer is 20% off. That means that it is 80% of its original price (100% - 2

Random variable, RANDOM VARIABLE A variable which assumes differ...

RANDOM VARIABLE A variable which assumes different numerical values as a result of random experiments or random occurrences is known as a random variable. The rainfal

Matrices, problem faced by students

problem faced by students

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