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

Derive a linear system - gauss jordan elimination, Suppose that, on a certa...

Suppose that, on a certain day, 495 passengers want to fly from Honolulu (HNL) to New York (JFK); 605 passengers want to fly from HNL to Los Angeles (LAX); and 1100 passengers want

To find out the volume of a cube give formula, To find out the volume of a ...

To find out the volume of a cube which measures 3 cm by 3 cm by 3 cm, what formula would you use? The volume of a cube is the length of the side cubed and the length of the sid

Definition of concavity, Definition 1: Given the function f (x ) then 1...

Definition 1: Given the function f (x ) then 1. f ( x ) is concave up in an interval I if all tangents to the curve on I are below the graph of f ( x ) . 2. f ( x ) is conca

Find interval of function, Find interval for which the function f(x)=xe x(1...

Find interval for which the function f(x)=xe x(1-x)   is increasing or decreasing function

Roman numerals, how to determine roman numerals to digits specially when it...

how to determine roman numerals to digits specially when it hundred thousands

Co-prime positive integers, A group of 5 people are going to meet weekly at...

A group of 5 people are going to meet weekly at the library for 4 weeks. Every week, two people are selected at random to speak. Every person may speak in multiple weeks, but no pa

Linear relations, determine the equation that represent the following lines...

determine the equation that represent the following lines be sure to define your variable and show all of your work

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