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

Intervals of validity, I've termed this section as Intervals of Validity si...

I've termed this section as Intervals of Validity since all of the illustrations will involve them. Though, there is many more to this section. We will notice a couple of theorems

Detremine the rectilinear distance, Rectilinear Distance (Total Travel Dist...

Rectilinear Distance (Total Travel Distance per Day Using Rectilinear Distance): It can be computed through using following formula: d(X, Pi) = |x - ai| + |y - bi| (Source: T

How to raise powers of monomials, How to raise Powers of Monomials ? To ...

How to raise Powers of Monomials ? To raise a monomial to a certain power: Step 1: Place the entire monomial inside parentheses, and place the desired power outside the paren

Calculate the acceleration time, Question A 22 kW, 3-phase, 415 V, 40 A,...

Question A 22 kW, 3-phase, 415 V, 40 A, 50 Hz, 960 rpm, 0.88 PF squirrel cage induction motor drives a pump. The total inertia of the drives system is 1.2 kg-m2. Determine th

Distinct eigenvalues, It's now time to do solving systems of differential e...

It's now time to do solving systems of differential equations. We've noticed that solutions to the system, x?' = A x? It will be the form of, x? = ?h e l t Here l and

What is the ratio of the areas of sectors , What is the ratio of the areas ...

What is the ratio of the areas of sectors I and II ?                               (Ans:4:5) Ans:    Ratio will be 120/360  Π r 2 : 150/360  Π r 2 4/12  : 5/12  =

How to solving one-step equations, How to Solving One-Step Equations? E...

How to Solving One-Step Equations? Equations, where one math operation is acting on the variable, can be solved in one step. The trick is to get the variable x by itself - isol

How many more cm are required to reach the average monthly, Thomas is remai...

Thomas is remaining track of the rainfall in the month of May for his science project. The first day, 2.6 cm of rain fell. On the second day, 3.4 cm fell. On the third day, 2.1 cm

Comparing and scaling, a dairy mngr says it takes 70lbs of make 10 lbs of c...

a dairy mngr says it takes 70lbs of make 10 lbs of cottage cheese... How do I make a rate table and a make a graph showing the relationship between lbs of milk and lbs of cottage c

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