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

Modi method, why modi method is used in operation research

why modi method is used in operation research

Mechanics, find the composition of the simple harmonic motion of the same p...

find the composition of the simple harmonic motion of the same period in the perpendicular directions

MATLAB, Program of "surface of revolution" in MATLAB

Program of "surface of revolution" in MATLAB

Solving equations, darien agrees to sponsor her sister $8 plus $1 for every...

darien agrees to sponsor her sister $8 plus $1 for every mile she walks.Write an expression to show her total money

Number and operations, 1a.if the williams spend $385 a month on food what i...

1a.if the williams spend $385 a month on food what is their monthly income

Linear equation, develop any two linear equation which are reducible into l...

develop any two linear equation which are reducible into linear form from our daily life by cross multiplication

Find the sides of the two squares, The sum of areas of two squares is 468m ...

The sum of areas of two squares is 468m 2  If the difference of their perimeters is 24cm, find the sides of the two squares. Ans:    Let the side of the larger square be x .

Introduction to helping children learn mathematics, INTRODUCTION :  Do you...

INTRODUCTION :  Do you remember your school-going days, particularly your mathematics classes? What was it about those classes that made you like, or dislike, mathematics? In this

How to adding rational expressions with common denominators, Adding Rationa...

Adding Rational Expressions with Common Denominators To add or subtract fractions or rational expressions with common denominators, all you do is add or subtract the numerators

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