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

Find relative extrema f ( x ) = x2 on [-2, Recognizes the absolute extrema...

Recognizes the absolute extrema & relative extrema for the given function.  f ( x ) = x 2        on                  [-2, 2] Solution Following is the graph for this fun

Find the area enclosed between two concentric circles, Find the area enclos...

Find the area enclosed between two concentric circles of radii 3.5cm, 7cm. A third  concentric circle is drawn outside the 7cm circle so that the area enclosed between it and the 7

Trignometry: sin-3x, sin(2x+x)=sin2x.cosx+cos2x.sinx              =2sinxco...

sin(2x+x)=sin2x.cosx+cos2x.sinx              =2sinxcosx.cosx+(-2sin^2x)sinx              =2sinxcos^2+sinx-2sin^3x             =sinx(2cos^2x+1)-2sin^3x =sinx(2-2sin^2x+1)-2sin^3

Rolles theorem, Rolle's Theorem  Assume f(x) is a function which satis...

Rolle's Theorem  Assume f(x) is a function which satisfies all of the following. 1. f(x) is continuous in the closed interval [a,b]. 2. f(x) is differentiable in the ope

Functions and graphs, Functions and Graphs Need assistance, Please de...

Functions and Graphs Need assistance, Please describe Functions and Graphs.

An amortization, Ahmad borrowed $450000.00 at 3% compounded semi-annually f...

Ahmad borrowed $450000.00 at 3% compounded semi-annually for ten years to buy an apartment. Equal payments are made at the end of every six months. a) Determine the size of the se

Estimate round to the nearest tenth of an inch, One inch equals 2.54 centim...

One inch equals 2.54 centimeters. The dimensions of a table made in Europe are 85 cm huge by 120 cm long. What is the width of the table in inches? Round to the nearest tenth of an

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