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 total surface area which is exposed , A golf ball has a diame...

A golf ball has a diameter equal to 4.1cm. Its surface has 150 dimples each of radius 2mm. Calculate the total surface area which is exposed to the surroundings assuming that the d

Relation and functions, Prove that if f and g are functions, then f interse...

Prove that if f and g are functions, then f intersect g is a function by showing f intersect g = glA A={x:g(x)=f(x)}

The coordinate axes, Trace the curve y 2 = (x + 2) 2 (x - 6). Clearly sta...

Trace the curve y 2 = (x + 2) 2 (x - 6). Clearly state all the properties you have used for tracing it(e.g., symmetry about the axes, symmetry about the origin, points of interse

Partial Differential Equation, Determine the minimum capacity C of a Capaci...

Determine the minimum capacity C of a Capacitor given that: C =(ax/(x-a))+(xy/(y-b))+(yb/(b-y)) given that "a" and "b" are fixed values and "x" and "y" vary independently such th

Pre-calculus, Give all solutions between o degree and 360 degree for sin x=...

Give all solutions between o degree and 360 degree for sin x=3/2

Geometry, two sides of an equilateral triangle have lengths 3x-1 and 3x-1. ...

two sides of an equilateral triangle have lengths 3x-1 and 3x-1. Which of 27-x or 2x-4 could be the length of the third side?

Differential equations and group methods, solve the differential equation ...

solve the differential equation dy/dx=f(y)x^n+g(y)x^m by finding a one-parameter group leaving it invariant

Graph for the sequence - sequences and series, Graph for the Sequence F...

Graph for the Sequence First we wish to think about the term graphing a sequence. To graph the sequence {a n } we plot the points {n, a n } as n ranges over every possible valu

Credit and invoice, mr ouma bought two sets of spanners for sh 300per set ...

mr ouma bought two sets of spanners for sh 300per set two machanic vice at sh 1000each three set of screw driver at sh 115 per set and tool box for sh 300

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