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

Definition of minimum and maximum values, Definition 1.   We say that f...

Definition 1.   We say that f(x) consist an absolute (or global) maximum at x = c if f ( x ) ≤ f (c ) for every x in the domain we are working on. 2.  We say that at x = c ,

Absolute value, Consider x € R. Then the magnitude of x is known as it's...

Consider x € R. Then the magnitude of x is known as it's absolute value and in general, shown by |x| and is explained as Since the symbol   always shows the nonnegative

Metric Units, How do I convert metric units?

How do I convert metric units?

Find the volume of ice cream cone, An ice-cream cone has a hemispherical to...

An ice-cream cone has a hemispherical top. If the height of the cone is 9 cm and base radius is 2.5 cm, find the volume of ice cream cone.

Describe adding and subtracting fractions in details, Describe Adding and S...

Describe Adding and Subtracting Fractions in details? To add or subtract fractions, here are some steps: 1. Find the lowest common denominator (LCD) or any common denominato

Discount, outdoor grill- regular price:$360 discount:33 1/3%

outdoor grill- regular price:$360 discount:33 1/3%

Estimate the grade resistance, The grade resistance is F=W sin θ, where θ i...

The grade resistance is F=W sin θ, where θ is the grade and W is the weight of the automobile.  What is the grade resistance of a 2500 pound car traveling on a 2.6 degree uphill gr

Find out the surface area of the solid, Find out the surface area of the so...

Find out the surface area of the solid acquired by rotating y = √ (9-x 2 ), - 2 x 2 about the x-axis. Solution The formula that we'll be using here is, S = ∫ 2Πyds

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