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)

-2
votes
1answer
55 views

Finding unit vectors which makes an angle 60 degrees with both {1, -1, 0} and {1, 0, -1} [closed]

Find unit vectors which makes an angle 60 degrees with both vectors {1, -1, 0} and {1, 0, -1}.
3
votes
1answer
99 views

Indefinite integral of nested trig functions [closed]

I tried vainly to integrate nested trig functions like Integrate[Sin[Cos[x]], x] Mathematica does not find a solution. At first I thought there was no solution, ...
6
votes
1answer
94 views

How correctly use WhenEvent to detect when gradient is over a certain value?

So I wish to stop integrating my PDE when the spatial gradient is larger than some value, let's say 10. That is to say, my WhenEvent condition wants to be stop when the the maximum gradient over all x ...
0
votes
1answer
54 views

Evaluate as much of an integral as possible [closed]

Consider the integrand $\qquad \cos(x+\sin^{-1}(x)) = \sqrt{1-x^2} \cos(x) - x \sin(x)$ If I ask Mathematica to integrate $\cos(x+\sin^{-1}(x))$, Mathematica is unable to do so analytically (due to ...
4
votes
3answers
252 views

How can I plot a paraboloid?

How do I plot a function for a paraboloid? Im putting together surfaces to model lipstick. I need the paraboloid for the top part and then I'll be cutting the paraboloid at angle with another surface. ...
3
votes
1answer
64 views

Evaluating function

I'm trying to evaluate this function, which is gradient of integral with variable limit of integration: $$ u(x,y,t)=\nabla(\int_{v(x,y)}^\infty \frac{e^{-b(t-\tau-c)^2}}{\sqrt{\tau^2-{v(x,y)}^2}} d\...
1
vote
1answer
52 views

Unexpected behavior in symbolic integration with GenerateConditions->False

Consider the following two symbolic integrations: ...
0
votes
1answer
42 views

Limits at infinity not neglecting added constants [closed]

This is such a simple question that I'm sure it must be answered somewhere, but I haven't had any luck finding an answer. I am trying to simplify expressions of the form: $$f(x) = A\left(\frac{1+e^{x}}...
1
vote
0answers
41 views

How obtain the n-th derivative of a function with an implicit variable? [duplicate]

I'm interested in obtain the analytical n-th derivative with respect to the variable $x$ of an implicit function like $V(h(x))$ where $h(x)$ is an implicit equation and can not be obtained the ...
-9
votes
1answer
78 views

How to partially differentiate tu[t]u'[t] with respect to t [closed]

How can I partially differentiate tu[t]u'[t] with respect to t in Mathematica?
-2
votes
1answer
67 views

Wolfram Mathematica ONLINE does not give me the solution for the following integral [closed]

I have some problem in Mathematica and I could not evaluate the following integral. There is a closed-form solution for the following. Can someone please give me the result. ...
0
votes
1answer
44 views

Integrating Poisson distributions [closed]

I'm trying to do the following Integrate[Exp[-λ] λ^k/k!, {k, 0, ∞}] The answer should be 1 but Mathematica is unable to do it. Same story when I try the ...
2
votes
2answers
152 views

Revolve a non one-to-one function about the y-axis

I am attempting to revolve $f(x)=-x(x-3)(x-2)^2$ about $x=0$. What I have come up with is that I need to redefine each interval between the relative extrema as a separate function, and then treat it ...
4
votes
1answer
200 views

Computing the Caputo fractional derivative of a polynomial

In fractional calculus, the Caputo derivative of a monomial has the following form: $$\operatorname{\mathit D}_t^\alpha\,t^\beta = \frac{\Gamma(\beta+1)}{\Gamma(\beta-\alpha+1)}t^{\beta-\alpha}$$ I ...
1
vote
1answer
45 views

Having trouble taking derivative of a function and assigning it to a new function [closed]

I am trying to take the derivative of a function and assign it to a different function name, but I am getting an error message (I think). Here is my Mathematica input: ...
0
votes
1answer
81 views

How to evaluate the integral of exponentials

I want to evaluate the following integral wrt $\phi$ from 0 to $2 \pi$: ...
3
votes
1answer
113 views

Mathematica Can Find the Primitive Function But It Cannot Find the Closed Form for Corresponding Definite Integral

Consider the following function f = 1/2 (-3 + 4 u) Sqrt[-u (1 + u) (-1 - u + u^2)] where it is assumed that ...
40
votes
2answers
755 views

Why does Mathematica report that $\int_1^\infty\frac{\sin(\sqrt{x})}{\sqrt{x}}dx$ = $2\cos(1)$?

Bug introduced in 7.0 or earlier and persisting through 10.4 or later Mathematica 10 gives the following very odd result, ...
0
votes
1answer
63 views

Improper Integral Difficulty [closed]

Trying to do the problem $$\int_0^{\infty}e^{-sx}\cosh(ax)\,dx.$$ where we have the assumption that $s>|a|$ and everything is a real number. We tried: ...
0
votes
2answers
88 views

Expression of an integral

I am doing the following integral in Mathematica with $a>0$: $$\iint e^{-\frac{(x_{1}+x_{2}-2b)^2}{4a}}dx_{1}dx_{2}$$ My code is ...
3
votes
2answers
181 views

How to get the training error and the validation error using Classify function with SVM

I am using Classify[] function with Support vector machine model. I need to analyze the quality of results by analyzing the training error and the validation error ...
1
vote
1answer
49 views

numerical integration errors

I have plotted the following integrals with numerical integration nicely without any error: ...
-3
votes
1answer
113 views

How to symbolically integrate 2D exponential function? [duplicate]

Is it possible to symbolically solve a 2D integral of the following form $$\int d \vec{r}e^{-\frac{\left| \vec{r} - \vec{r}' \right|^2}{2c}}e^{-i \vec{k} \cdot \vec{r}} $$ where $\vec{r} = (x,y)$ and $...
1
vote
1answer
73 views

NIntegrate::inumri: error [closed]

I am getting the following error: NIntegrate::inumri: The integrand c (1-0.6 (1-(1+Times[<<2>>])^0.5)-0.4 (1- (1+Times[<<2>>])^0.5)) (1-0.6 (1-(1+Times[<<2>>])^0.5)-0.4 (1- ...
2
votes
2answers
171 views

Symbolic vs numerical integration

This is related to a question that I asked before but didn't resolve quite well. I want to obtain the solution of the following expression analytically: ...
1
vote
0answers
102 views

Implicit differentiation dx/dt? [closed]

I am trying to find $\frac{\partial t}{ \partial y}$ as a function of $x$, $y$ and $\frac{\partial t}{\partial x}$ if both $x$ and $y$ depend on $t$ for the function ...
1
vote
0answers
99 views

Product of two Meijer's Function

I want to evaluate an integral $I_1$ defined in $Eq.(1)$ as \begin{align} I_1=\int_{0}^{\infty}\frac{x\exp(-\beta x)K_1(\alpha x)}{1+x}dx\tag{1} \end{align} Where $\alpha\geq0$, $\beta\geq0$, and $...
1
vote
2answers
74 views

Problems in animating graphs and its extrema

I tested to animate 2D graph and its extrema for simple case using Mathematica. ...
1
vote
0answers
30 views

Hidden assumption in Mathematica integration [duplicate]

If I do Integrate[Exp[I*omega*t],t], it gives me $\frac{1}{\omega} e^{i \omega t}$, as expected in most of the cases, except when $\omega$ is 0. Mathematica seems ...
0
votes
1answer
59 views

Plotting a function based on complicated integral

I have this function : f[Lambda_] := K Integrate[x Exp[- x^2-Lambda x] HypergeometricU[-Lambda,1/2,(x+ Lambda/2+2)^2],{x,0,Infinity}]; where ...
3
votes
1answer
88 views

Euler-Maclaurin summation

I want to compute asymptotic approximations to partial sum of harmonic series in Mathematica, using Euler-Maclaurin summation formula. ...
1
vote
1answer
71 views

Product derivative on derivative [closed]

this is a silly question, probably. How to product derivative on derivative in Mathematica. I mean for example how to achieve this result: Just more explanation. I need this for solving task with ...
1
vote
1answer
74 views

How to calculate the derivative at a point of a non-integrable multivariable function?

I want to integrate this function with respect to θ1 and then take the derivative of that function with respect to n. Since the ...
2
votes
1answer
79 views

How to plot linear term of a function expanded by Taylor seires in Mathematica?

I am quite new in Mathematica and I am trying to plot a linear term of a particular function in Mathematica. I have tried something like this: ...
2
votes
1answer
58 views

Why do Wolfram Alpha and Mathematica give different answers? [closed]

I've just got my hands on Wolfram Mathematica and tried to see if I can figure out how to use it by myself. I've plugged in an integral $\int \frac{dx}{(1-x^2)^{2/3}}$, knowing that the result is $\...
2
votes
1answer
111 views

Problem with Volume [closed]

A bug probably. This should give the volume of the unit sphere: vol = Volume[{1. r, th, ph}, {r, 0, 1}, {th, 0, Pi}, {ph, -Pi, Pi}, "Spherical"] but it gives: ...
4
votes
1answer
105 views

Finding Euler spiral convergence point for powers other than 2

I'm playing around with Euler spirals, using a variable power to see how the plot changes, $ \left\{\begin{matrix} x = \int_0^s \cos \left ( s^n \right ) ds \\ y = \int_0^s \sin \left ( s^n \right ) ...
1
vote
1answer
70 views

Wrong Limit[…] for inexact expressions

I noticed that Limit can return nonsense when using inexact parameters. In the following code, a is my (exact/inexact) parameter,...
2
votes
2answers
133 views

A simple question: Input problem

I have a simple problem. First I define the value of variables, then I calculate the expression as the following: Code 1: ...
1
vote
2answers
118 views

How to get the $0$ result for this limit?

Consider the following series: $$\sigma (\text{x$\_$})\text{:=}\sqrt{\sum _{k=0}^{x-1} \frac{(x! x!) (-1)^{x-k}}{(x-k) (k! (2 x-k)!)}+\frac{\pi ^2}{12}}$$ From the following codes, it seems that the ...
0
votes
0answers
35 views

How do I numerically integrate the result of NDSolve if it depends on several variables?

I am trying to numerically integrate solution of NDSolve. I am trying to integrate my result of NDsolve in line 97 of my notebook, but am getting the error ...
1
vote
1answer
72 views

The assumption in integration does not work?

I am new to mathematica. Here is the question. I try to do the following integration with the assumption that k1<0, k2<0 and k1,k2 are real number. However, the result includes \sqrt{k1}? ...
4
votes
1answer
89 views

Pertubation series of given equations

I would like to define a function that does the following. If I have an equation, for example: $$f(x)+[1-f^2(x)]+f^{\prime\prime}(x)+f(x)\ f^\prime(x)=0$$ and I am given a value for $f$ to expand ...
0
votes
0answers
16 views

Integration with IntervalMemberQ

I define an interval and its associated index function. ...
0
votes
1answer
71 views

Integrate over FindRoot solutions

I have a function of bivariate normal PDF and its marginals defined as ...
1
vote
1answer
206 views

Derivative of a symbolic matrix

I need to write an elasticity equations as: {{a*∂/∂x,b*∂/∂y},{c*∂/∂x,d*∂/∂y},{e*∂/∂y,f*∂/∂x}}.{{u},{v}} where a,b,...,f are ...
0
votes
2answers
75 views

Expression which should be real-valued appears to be complex-valued [closed]

I want to plot the answer of the following integral: Λ = 10; Ω = 10; t = 1; Integrate[ω E^(-ω/Λ) Sin[(ω + Ω)t/2]^2/(ω + Ω)^2, {ω , 0, ∞}] The answer of ...
2
votes
2answers
141 views

Confirmation of a nice closed form

Can Mathematica 10 confirm a nice closed form for ...
0
votes
2answers
99 views

Gradient of interpolated 3D data in mathematica 9

tt = Flatten[Table[{x, y, z, btot[x, y, z]}, {x, -1, 1, 0.1}, {y, -1, 1,0.1}, {z, -1, 1, 0.1}], 2]; ff = Interpolation[tt] Till here it is working fine as it is ...
0
votes
2answers
173 views

How can I solve this integral analytically?

I want to solve the following integral: Integrate[( E^(-ω/Λ) Sin[((ω + Ω) t)/2] Sin[(ω t)/ 2])/((ω + Ω)/4) , {ω, 0, ∞}] But unfortunately Mathematica cannot ...