How Can You Solve a Complex Numerical Integration Problem on Paper?

Click For Summary
SUMMARY

The discussion focuses on solving a complex numerical integration problem represented by the integral T = ∫ (dy/V_ab(y)) = (2/v)∫[1 + (α²y/L) + 2α√(y/L)cos(φ(y))]⁻¹/² dy, with φ(y) defined as (π/6) + sin⁻¹(α√(y)/(2√L)). Users express difficulties in computing this integral using MATLAB's quad() and quadl() functions, which utilize Simpson and Lobatto quadrature methods, respectively. The conversation also explores transforming the integral through variable substitutions to facilitate manual computation, ultimately suggesting that the integral may be tabulated as a numerical function of the parameter r = 2arcsin(α/2).

PREREQUISITES
  • Understanding of numerical integration techniques, specifically Simpson and Lobatto quadrature.
  • Familiarity with MATLAB functions quad() and quadl() for numerical integration.
  • Knowledge of variable substitution methods in calculus.
  • Basic proficiency in trigonometric functions and their inverses.
NEXT STEPS
  • Research the implementation of MATLAB's quad() and quadl() functions for numerical integration.
  • Explore variable substitution techniques in calculus to simplify complex integrals.
  • Learn about tabulating integrals as numerical functions for practical applications.
  • Investigate the use of standard functions in expressing complex integrals for easier computation.
USEFUL FOR

Students and professionals in mathematics, engineering, and physics who are tackling complex numerical integration problems, particularly those seeking to understand manual integration techniques and MATLAB applications.

samgrace
Messages
27
Reaction score
0

Homework Statement



Integreate:

##T = ∫ \frac{dy}{V_ab (y)} = \frac{2}{v}∫[1 + \frac{\alpha^2 y}{L} + 2\alpha \sqrt\frac{y}{L} cos(\phi(y))]^\frac{-1}{2} dy##

where ## \phi (y) = \frac{\pi}{6} + sin^-1(\frac{\alpha\sqrt{y}}{2\sqrt{L}}) ##

The limits are between 0 and L

Homework Equations

The Attempt at a Solution


I have input this integral several times into MATLAB with no success, I was wondering if there was a way to do this on paper? My module on numerical integration isn't until next term
 
Last edited:
Physics news on Phys.org
Are you familiar with a function known as ##\text{quad()}##? It uses Simpson quadrature to numerically estimate the integral.

There is also ##\text{quadl()}##, which uses Lobatto quadrature.

The quad/quadl syntax you should be using is: ##\text{quad(function, a, b)}##.

So define your integral as an anonymous function between the respective limits from ##a## to ##b## and quad should return the answer.
 
samgrace said:

Homework Statement



Integreate:

##T = ∫ \frac{dy}{V_ab (y)} = \frac{2}{v}∫[1 + \frac{\alpha^2 y}{L} + 2\alpha \sqrt\frac{y}{L} cos(\phi(y))]^\frac{-1}{2} dy##

where ## \phi (y) = \frac{\pi}{6} + sin^-1(\frac{\alpha\sqrt{y}}{2\sqrt{L}}) ##

The limits are between 0 and L

Homework Equations

The Attempt at a Solution


I have input this integral several times into MATLAB with no success, I was wondering if there was a way to do this on paper? My module on numerical integration isn't until next term

You can use the fact that
\cos(\phi) =\frac{\sqrt{3}}{4} \sqrt{4 - \frac{\alpha^2 y}{L}}- \frac{\alpha}{4} \sqrt{\frac{y}{L}}
then change variables to ##y/L = w^2## to get
T = \frac{2}{v} 4L \int_0^1 \frac{w}{\sqrt{D(w)}} \, dw, \\<br /> D(w) = 4 + 2 \alpha^2 w^2 + 2 \sqrt{3} \alpha w \sqrt{4 - \alpha^2 w^2}<br />
A further change of variables to ##w = (2/\alpha) \sin(\theta)##, followed by ##\theta = \lambda/2## produces
T = \frac{2}{v} \frac{2L}{\alpha^2}<br /> \int_{\lambda =0}^{2\arcsin(\alpha/2)} \frac{\sin(\lambda)}{2 - \cos(\lambda) -\sqrt{3} \sin(\lambda)}\, d \lambda
This last integral still might not be doable explicitly, but it contains a single parameter ##r = 2 \arcsin(\alpha/2)##, so can be tabulated as a numerical function of ##r## (and perhaps even be "fitted" by a simple functional form in ##r## that has adequate accuracy over the ##r##-range of interest to you).

Note added in edit: by some further manipulations, the integral can be done in terms of standard functions. I really cannot tell you more until you supply evidence of having struggled with the problem, by showing your work, etc.
 
Last edited:

Similar threads

Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
Replies
12
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K