Questions related to the calculus and analysis branches of Mathematica, including, but not limited to, limits, derivatives, integrals, series, and residues.

learn more… | top users | synonyms (3)

14
votes
3answers
2k views

How can I implement the method of Lagrange multipliers to find constrained extrema?

I want to form the function $h=f-\lambda_{1}g_{1}-\lambda_{2}g_{2}$ where $f$ is the function to optimize subject to the constraints $g_{1}=0$ and $g_{2}=0$ so that I can solve the first partial ...
-2
votes
0answers
78 views

Mathematica's steps towards the result of a definite integral

I am interested in this definite integral: $$ \eqalign{\int_0^\infty {x^2 \log(1-e^{-x})}\; dx\cr } $$ That is: ...
13
votes
5answers
371 views

No response to an infinite limit

Trying to compute this limit, things seem to get frozen, even for hours. What would you recommend to fastly compute it? ...
0
votes
1answer
101 views

Replacement of terms/Pattern matching involving products of derivatives of a function

In delving into Ramanujan summation, I'm trying to get a hold of the relations of the form $$\sum_{n=0}^\infty f(n)=\dfrac{h\frac{d}{dx}}{{\mathrm{e}^{h\frac{d}{dx}}}-1}\int_{0}^\infty ...
3
votes
1answer
1k views

Convolution of two distribution functions

I have two functions; f[x_] = (1/k) Exp[-x/k] ; g[x_] = (1/p) Exp[-x/p] ; How I can convolve them? In Mathematica for convolving two functions we have this ...
6
votes
1answer
863 views

Convolving/integrating problems

Let's say I want to convolve two functions (f and g), a gaussian with a breit-wigner: ...
6
votes
2answers
322 views

Convolve does not get the correct answer

Convolve[Sinc[x], Exp[-x^2], x, X] (* E^-X^2 π *) is obviously false, but why? Any suggestions ?
2
votes
1answer
93 views

Missing zero in the CoefficientList

The following list has a length only 10 (not 11) CoefficientList[Series[ArcTan[x]/(1-x^2),{x,0,10}],x] {0, 1, 0, 2/3, 0, 13/15, 0, 76/105, 0, 263/315} It should ...
5
votes
0answers
81 views

Wrong Limit with LaguerreL

Limit[(n! LaguerreL[n,-1]/(n^(n+1/4)/Sqrt[2]/E^(n-2 Sqrt[n]+1/2))-1) Sqrt[n], n->∞] Mathematica (wrong) output ...
17
votes
4answers
662 views

A bug in Integrate

Integrate[(1 + 16 Tan[2 x - y]^2)/(1 + 4 Tan[2 x - y]^2), {x, 0, 2 π}] Mathematica (wrong) output is (tested under versions 8 and 10.0, took ~ 1 minute of CPU ...
1
vote
1answer
75 views

Numerical integral speed

I have the following code to calculate a numerical integral for any given a, however it takes a very long time, even with adaptivemontecarlo, which is not accurate enough: ...
0
votes
0answers
50 views

Bug (?) in Mathematica in Derivative of function with Abs [duplicate]

I encountered a weird problem with Derivatives in Mathematica, see the following code: ...
3
votes
2answers
208 views

$L = \lim\limits_{z \to 1} \frac{1-z}{1-z^\ast}$ evaluates incorrectly

I'm about 90% certain this is a Mathematica issue, not me making a silly mistake. I'm trying to evaluate $$L = \lim_{z \to 1} \frac{1-z}{1-z^\ast}.$$ Naively entering ...
5
votes
0answers
105 views

Wrong Limit in Mathematica 10.0.0

Limit[(Log[(3+Sqrt[5])/2]/(2*Log[(1+Sqrt[5])/2]))^(-1-2*n), n -> Infinity] Mathematica (wrong) output: 0 But this is ...
19
votes
2answers
1k views

Why does Mathematica give the wrong answer when integrating?

I integrate Integrate[Exp[I Cos[b - c]] Cos[b], {b, 0, 2 Pi}] Mathematica gives: 2 I Pi BesselJ[1, 1] Which is indepedent ...
5
votes
0answers
118 views

Why don't products of Dirac deltas integrate correctly?

The integral $\int \int \ \delta(x) \delta(y) \ dx dy=1$ evaluates to 0 in Mathematica ...
-1
votes
0answers
62 views

convergence problem - triple integral

I have a problem in convergence ... for i=j=5 is enough to calculate what i want. But for os11[100,5,5]=1.59 ( 1.58 is the real ...
4
votes
2answers
116 views

definite integration very slow

I have to perform definite integration of function of this kind : ...
5
votes
0answers
60 views

LogisticSigmoid residue bug?

On version 10.0 for arm: Residue[LogisticSigmoid[z],{z,I Pi}] gives 0 not 1. Can anyone reproduce this?
7
votes
2answers
205 views

Why does Mathematica say $\int_0^1\int_0^1\int_0^1\frac{1.0}{xyz}\,dz\,dy\,dx=0$?

Mathematica 9 says that $\int_0^1\int_0^1\int_0^1\frac{1.0}{xyz}\,dz\,dy\,dx=0$ and $\int_0^1\int_0^1\int_0^1\frac{1}{xyz}\,dz\,dy\,dx=0$. ...
2
votes
1answer
147 views

How to speed up a symbolic integration

I have a question about an integral. I wanna integrate this: ...
5
votes
1answer
181 views

Find exponential generating function from the first few terms

The function FindGeneratingFunction computes the ordinary generating function of a sequence, given a sufficient number of initial terms. I have two questions in ...
13
votes
4answers
692 views

How to make a Line[] with no end?

I'm trying to do this: In this graph, the secant points are aproximated in order to become the tangent, it seems I need some kind of function which plots a line based on two points and it's points ...
0
votes
1answer
46 views

Problem with 'time dependent' functions [on hold]

I'm just trying to make $\frac{dx}{dt}$ where $x= \rho \cos\theta \sin\phi$ where $\theta, \phi $ and $\rho$ are time dependent functions. ...
4
votes
4answers
1k views

Numerical differentiation methods

Is it possible to write code in Mathematica that implements various differentiation methods (like forward, central, extrapolated, etc.)?
0
votes
0answers
41 views

Multidimensional integration does not work

I am trying to solve an integral over Cubic Birillioun Zone, but after taking a long time Mathematica give nothing in return and just repeating the integral form, here is my integral, ...
0
votes
1answer
35 views

Plotting partial sums of Taylor Function

I need to plot the partial function: $T_f(x)=\log 2+\sum_{k=1}^{\infty}\frac{(-1)^{k+1}}{2^kk}(x-2)^k$ for $n=2$,$n=4$ and $n=6$ on the same plot over the interval $[-\frac{1}{2},4]$ and also the ...
2
votes
1answer
161 views

How can I evaluate surface integral in Mathematica?

$$\iint_{S^+}x^3dydz $$where $S$ bottom part of $$ \frac{x^2}{a^2}+\frac{y^2}{b^2}+\frac{z^2}{c^2}=1$$ $S^+$ - outer side of $S$ $$\iint_{S^+}P(x,y,z)dydz = \iint_{S}P\cos\alpha dS,\ \; normal : ...
12
votes
3answers
341 views

How can I obtain an asymptotic integral expansion at infinity?

I want to find the asymptotic expansion at $x \to \infty$ of the following function: $$ I(x) \equiv \int_0^{\pi/2} e^{-xt^3 \cos(t)} dt.$$ To do this I defined ...
-2
votes
1answer
44 views

Need help to solve this math question when x reach 0 [closed]

My son can home and ask me to help him with this equation: lim ((x-2)/(2x-1))^(1/x) x→0 I try to use /www.symbolab.com but its too complicated to solve this. Thanks with the help
0
votes
0answers
27 views

How to refine the approximate solution of an implicit function? [closed]

I have an equation of the form exp(A(C-x))-1-exp(x-B(C-x)^(2/3))=0 Here A,B and C are constants, x is the unknown, I want to find, but approximate value of x is known. so, the problem is how to get ...
0
votes
1answer
96 views

Get rid of Error Function: How to get rid of sequential appearances of error function?

We have a function as e[t_] :=(E^(-t^2)) Cos[0.1 t] and we must evaluate below integration (However I used the variable x ...
1
vote
1answer
89 views

Strange timings of integrals involving Hermite's polynomials

I have used Mathematica to calculate tunneling for quantum harmonic oscillator. The code is simple: ...
5
votes
1answer
237 views

Lagrange Multiplier

We are asked to maximize and minimize $f(x,y)=4xy$, given the constraint $4x^2+y^2=8$, using the Lagrange Multiplier method. First, I enter the functions f and g. ...
2
votes
1answer
97 views

Double integral over normal pdf gives inconsistent answer

I am using Integrate function to do the following double integral ...
0
votes
0answers
33 views

Series Expansion of Differential Operators [duplicate]

We know about the possibility of series expansion of a function in Mathematica. Same as below, where a function f[a x] is expanded around zero up to 5th order. ...
3
votes
3answers
93 views

Factoring a separable integral with a product of independent integrands

I would like to input someFunction[Integrate[p[x] p[y], {x, -1, 1}, {y, -1, 1}]] and to get the following output ...
0
votes
0answers
42 views
0
votes
2answers
60 views

Continuity of function-example

I'd like to examine the continuity of the following function: f[x_] := Limit[(n^x - n^(-x) ) / (n^x + n^(-x) ), n -> Infinity] I know that this function isn't ...
3
votes
0answers
40 views

Indeterminate expression 0(I*Infinity]) on indefinite integrals on first use only

I do not know if this is new or not, I googled before. Windows 7, 10.1 64 bit: Integrals generate this error message The strange thing also is that the message shows up the first time the command ...
4
votes
2answers
65 views

Inconsistent Integration involving DiracDelta at boundaries

I'm working on integrals involving DiracDelta functions at the boundary of the integrals. I'm confused by the output Mathematica v10.1.0 gives me in this case: ...
5
votes
1answer
56 views

Integrate gives Simplify::infd “simplified to Indeterminate” message

Using version 10.1 on windows 7 Integrate gives this Simplify::infd Kernel message. What causes it, is this a bug? ...
7
votes
1answer
142 views

Curious solutions of x' = Sqrt(x), x(0)=4

Consider the solution of $x'=\sqrt{x}$, $x(0)=4$ using DSolve. ...
2
votes
1answer
89 views

Calculate exact Probability of product of normal random variables

Find the value of $P[\Pi_{i=1}^{10}X_i > C]$ for $C=5$, where $X_{10\times 1}$ is a random vector with $10$ dimensional Normal Distribution having location parameter $\mu_{10\times 1} = ...
1
vote
2answers
81 views

Plotting a function based of a complicated integral

I would like to have help in making a plot of a complicated function based a definite integral. - desired graph My calculation: ...
3
votes
0answers
79 views

DiracDelta and version 10.0.0

Note: This issue seems to affect version 10.0.0 only and is fixed in 10.0.1, 10.0.2, and 10.1 When evaluating the following two inputs: ...
3
votes
1answer
184 views