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

Calculate the ratio of the areas of three sectors, A circular disc of 6 cm ...

A circular disc of 6 cm radius is divided into three sectors with central angles 1200, 1500,900. What part of the circle is the sector with central angles 1200. Also give the ratio

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

Mr, Probability of A is 85% Probability of B is 45% Probability A and B 56%...

Probability of A is 85% Probability of B is 45% Probability A and B 56% What is the probability of not either A or B?

Compound interest, Draw a flowchart for accumulated principal at the end of...

Draw a flowchart for accumulated principal at the end of 5 years by taking into account compound interest?

AREA, How do you find the distributive property any faster?

How do you find the distributive property any faster?

Geometric progression (g.p.), Learning geometric progression ...

Learning geometric progression vis-á-vis arithmetic progression should make it easier. In geometric progression also we denote the first t

Longer- term forecasting, Longer- Term Forecasting Moving averages, ex...

Longer- Term Forecasting Moving averages, exponential smoothing and decomposition methods tend to be utilized for short to medium term forecasting. Longer term forecasting is

Matrices, det(adj A)for 1*1 matrix

det(adj A)for 1*1 matrix

Graph ( x + 1)2 /9 -( y - 2)2/4 =1 of hyperbola, Graph  ( x + 1) 2 /9 -( ...

Graph  ( x + 1) 2 /9 -( y - 2) 2 /4 =1 Solution It is a hyperbola. There are in fact two standard forms for a hyperbola.  Following are the basics for each form. H

Evaluate the volume of the shaded region, If the hight of pipe is 18 inches...

If the hight of pipe is 18 inches, what is the volume of the shaded region in terms of π? a. 31.5π in 3 b. 126π in 3 c. 157.5 in 3 d. 58.5 in 3

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