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

Area related to circle, If ABCD isaa square of side 6 cm find area of shad...

If ABCD isaa square of side 6 cm find area of shaded region

Determine probability , You are going on a road trip and you buy snack pack...

You are going on a road trip and you buy snack packs and three different kind of beverages.  You buy 7 Cokes, 5 Pepsis and 4 Dr. Peppers.  You pull out two beverages at random.  An

Lines, Standard form of the line Let's begin this section off along a q...

Standard form of the line Let's begin this section off along a quick mathematical definition of a line. Any equation that can be written in the following form,

Concepts of sampling error, Use the concepts of sampling error and z- scor...

Use the concepts of sampling error and z- scores to explain the concept of distribution of sample means.

Relating addition and subtraction, RELATING ADDITION AND SUBTRACTION :  In...

RELATING ADDITION AND SUBTRACTION :  In the earlier sections we have stressed the fact that to help children understand addition or subtraction, they need to be exposed to various

Give the examples in real world of proportions , Give the Examples in Real ...

Give the Examples in Real World of Proportions? Proportions can be used in cooking. For example, the following is a set of ingredients for a pasta called "Spaghetti All' Amatri

What is this distance expressed in standard notation, The distance from the...

The distance from the sun to the earth is approximately 9.3 × 10 7 miles. What is this distance expressed in standard notation? In order to convert this number to standard not

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