Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Computing an exact range with FunctionRange

When using FunctionRange to compute the range of the two-argument ArcTan function, Mathematica fails to return an exact answer. ...
Glenn Welch's user avatar
1 vote
3 answers
229 views

Symbolic integral over real functions with interger parametres evaluates to complex numbers

I want to compute some quantum mechanical matrix elements. I use that: ...
Raphael J.F. Berger's user avatar
1 vote
0 answers
64 views

How can I speed up symbolic integration of this highly oscillatory function?

I am trying to figure out how to speed up this symbolic integration. I have tried parallelization and numerical integration (both I am failing to implement). Here is the function: ...
brian mcgloughlin's user avatar
1 vote
2 answers
174 views

Confused about the output of `CosIntegral`

I am interested in the properties of the cosine integral function, in this case the anti-derivative of Cos[Pi*x]/x, which Mathematica evaluates to ...
Richard Burke-Ward's user avatar
1 vote
0 answers
75 views

How can I ask Mathematica to give the explicit real form of the given function?

In part of my calculations, I obtain this expression which contains the imaginary unit I but I expect that this expression might be real (from the comments below, ...
MsMath's user avatar
  • 195
2 votes
3 answers
164 views

Evaluate using Mathematica or otherwise $\int_{0}^{\pi/2}\sin^n x \ T_n(\sin x)\ dx$

Denote $T_n(x)$ as Chebyshev polynomial of the first kind (see here). Then I need to evaluate for $n$ a odd natural number $$\int_{0}^{\pi/2}\sin^n x \ T_n(\sin x)\ dx $$ I am requesting a code with ...
Max's user avatar
  • 301
3 votes
2 answers
244 views

Is there an option to automatically make solve return the principal value of inverse trig functions?

I am porting some of my Maple packages to Mathematica. In Maple, solve(sin(y)=x,y) returns arcsin(x) and I'd like to get same ...
Nasser's user avatar
  • 151k
5 votes
4 answers
702 views

How to calculate the integral only in real domain?

I have the following integral: Integrate[1/(Sqrt[2] + Cos[4 X] + Sin[4 X]), X, Assumptions -> Element[X, Reals]] // Simplify ...
Anna Schmidt's user avatar
2 votes
1 answer
103 views

How can I make sure that the two given numbers are exactly the same?

I have the given numbers $n1$ and $n2$. How can I make sure that these two numbers are exactly the same? Numerically, using {N[n1,40], N[n2,40]}, by increasing the ...
Phys96's user avatar
  • 361
1 vote
2 answers
105 views

How to ask Mathematica to rewrite the larger arguments of sine function as a smaller number which is multiple of $\frac{2\pi a}{11}$

I have a trigonometric function $Exp$ where $\{f,g,h,k\}$ are some parametric functions, and $a\in\mathbb{N}$ and $x>0$. $$ Exp=f \cdot \sin \left(\frac{58 \pi a}{11}+x\right)+g\cdot \sin \left(\...
charmin's user avatar
  • 1,159
2 votes
1 answer
121 views

Slow integration of trigonometric expression speeds up after TrigReduce

I'm trying to integrate a trigonometric expression as Integrate[Cos[2 t] Cos[3 t] Cos[4 t] Cos[5 t] Sin[2 t] Sin[3 t], {t, 0, 2 Pi}] The final results is correct (...
Ji'an Li's user avatar
1 vote
0 answers
49 views

Power of trigonometric function matrix [closed]

Calculate the m-power of the following trigonometric function matrix (m>0): $\boldsymbol{A}=\left(\begin{array}{cc}\cos \varphi & -\sin \varphi \\ \sin \varphi & \cos \varphi\end{array}\...
lotus2019's user avatar
  • 2,425
3 votes
0 answers
140 views

Cannot Understand nth Derivative of x/ArcTan[x]

The nth derivative of x/ArcTan[x]: f[x_, n_] = D[x/ArcTan[x], {x, n}] Evaluates to: I cannot get this general from to return ...
Josey Stevens's user avatar
0 votes
0 answers
108 views

Simplification of long trigonometric expression taking a long time

I have tried to Simplify as well as FullSimplify a long trigonometric expression to get a simplified form of the expression but it takes a very long time almost hours and sometimes it also shows error ...
Sangeeta Dey's user avatar
4 votes
1 answer
293 views

Mathematica vs Rubi --- integrate $f(x,y) = x \sin^2 x + a x y$ --- Mathematica got this round? [closed]

Consider the function: $$ \begin{equation} f(x,y) = x \sin^2 x + a x y \end{equation} $$ with $a$ being a constant. We want to do the indefinite integral over $x$ and then over $y$. We do that using <...
user avatar
1 vote
0 answers
39 views

How to sort out only terms that relates to certain variable in the results of TrigReduce? [closed]

I have a large function $F(\theta,\alpha_1,\alpha_2,...)$ which involves only trigonometric polynomial of these angles. I want to calculate $\frac{1}{2\pi}\int_0^{2\pi} Fd\theta$, but the function is ...
DarkGlimmer's user avatar
0 votes
1 answer
152 views

NIntegrate giving different results after a change of variables

When I compute numerically the following double integral: \begin{equation} f(x,y)=\int_{-\infty}^{+\infty}da\int_{-\infty}^{+\infty}db\, \cosh\left[\frac{\sinh^{-1}(a)-\sinh^{-1}(b)}{2}\right]\, \exp\...
MariNala's user avatar
  • 135
3 votes
1 answer
275 views

Why can I not numerically integrate a smooth, integrable function?

Consider the function $\csc(t)\sin(3t)$ on the interval $[0,\pi]$. This is a perfectly well-behaved smooth function, as can be seen when plotting it: ...
Chris's user avatar
  • 1,043
2 votes
1 answer
204 views

DSolve fails to find solution based on elementary function

I have two differential equations for which DSolve does not find a solution, however, there are simple solutions in terms of elementary functions, and more ...
user avatar
13 votes
1 answer
390 views

Series with ArcTan gives wrong symbolic answer in Wolfram Language

Bug introduced after 9 and persisting through 13.1. Resolved in 13.2 Recently, I have found a very bad problem with Wolfram Language. It gives the wrong answer for a quite simple expression! When ...
Chaosor's user avatar
  • 231
1 vote
0 answers
75 views

How to get a result for $\int{\sqrt{a^2 \left(\sin{a x}-2 \sin{2 a x}\right)^2+1} \, \mathrm{d}x}$?

I want to obtain the result of this integral where $\mathbb{R}\ni a,x>0$ $$\int{\sqrt{a^2 \left(\sin{a x}-2 \sin{2 a x}\right)^2+1} \, \mathrm{d}x}$$ but Mathematica does not give an answer. Of ...
user avatar
0 votes
2 answers
117 views

How to extend this integration to all the reals?

Doing an exercise on calculus with 12.2 on Windows 10 Pro, I obtain a = Integrate[Sqrt[1 + Sin[t]], {t, 0, x}, Assumptions -> x \[Element] Reals] ...
user64494's user avatar
  • 29.1k
0 votes
1 answer
204 views

Derivatives of trigonometric functions

Let's use the following sample case Clear["Global`*"]; t1 = ArcTan[y/(x - x1)]; f = (3*(Cos[t1])^2 - 1); der = D[f, x] which gives ...
Vaggelis_Z's user avatar
  • 8,830
1 vote
1 answer
148 views

Symbolic Integration with trigonometric functions

I have this trigonometric integral which takes forever to evaluate $\int dx \frac{4 \left(\cos \left(p_1 x\right)-\frac{\sin \left(p_1 x\right)}{p_1 x}\right) \left(\cos \left(p_2 x\right)-\frac{\...
annoying_noob's user avatar
5 votes
4 answers
466 views

NIntegrate Oscillating kernel

I have a finite highly oscillating integral of the type: NIntegrate[x^2 Exp[I f[x] s] , {x, 0, 1}] where f is a simple function ...
VN23's user avatar
  • 123
0 votes
1 answer
51 views

$\alpha \int_{0}^T \text{Sin}(fi−fk+Δf)∗t) \, dt$ — Why is it not giving wrong answer? [closed]

$$\alpha \int_{0}^T \text{Sin}(fi−fk+Δf)∗t) \, dt $$ I am integrating this in Mathematica, My code is (1/2)*α*Integrate[Sin[2*Pi*(fi - fk + δf)*t], {t, 0, T}] + Ν1 ...
good_omen92's user avatar
0 votes
1 answer
229 views

Simple Question: How to simplify what is inside the Sin function like below?

I have this code of Mathematica (1/(2 (fj - fk) π)) Cos[(fj - fk) π T + (fj - fk) π (T + δt)] Sin[(fj - fk) π T - (fj - fk) π (T + δt)] There are a few ...
good_omen92's user avatar
3 votes
1 answer
92 views

Establish the equivalence of two inverse trigonometric function based formulas

In a comment to 3D5D user JimB provided an answer to the question posed there of finding the "two-quater[nionic]bit" absolute separability Hilbert-Schmidt probability. (Previously, in ...
Paul B. Slater's user avatar
2 votes
1 answer
143 views

Mathematica outputs a trigonometric integral ($\sec^3$) in a form I can't prove

The indefinite integral is of course $1/2 ( \sec(x) \tan(x) + \ln | \sec(x) + \tan(x) | ( + C)$. Mathematica gives: ...
Emanuel Landeholm's user avatar
2 votes
0 answers
58 views

Why Integrate does not obtain this conditional result automatically for orthogonality of cosines?

V 12.1 on windows. I remember asking something similar many years ago. I was hoping Mathematica now could have done this automatically: $$ \int_{-\pi}^{\pi} \cos (n x) \cos (m x) \, dx $$ For ...
Nasser's user avatar
  • 151k
3 votes
1 answer
162 views

Could anyone help me find the EXACT value?

Could anyone please help me find the EXACT value (not numerical value) of this by Mathematica or by mathematical reasoning? Thanks a lot. ...
Natalia C.'s user avatar
6 votes
4 answers
993 views

Evaluate the defining Integral of the Bessel functions of the first kind

I am trying to evaluate the integrals $$ \int\limits_{-\pi}^{\pi} \mathrm{e}^{\mathrm{i}(x\sin t - nt)} \mathrm{d}t $$ and $$ \int\limits_{-\pi}^{\pi} \mathrm{e}^{\mathrm{i}x\sin t} \mathrm{d}t $$ ...
HerpDerpington's user avatar
5 votes
2 answers
132 views

Primitive of a continuous function over $\Bbb R$

A continuous function over $\Bbb R$ has a primitive that is also continuous over $\Bbb R$. However, it often happens with Mathematica and other CAS that the result is not continuous, especially with ...
user avatar
0 votes
0 answers
142 views

Minimal Surface of Revolution - Integrate Challenge

I'm trying to use Mathematica to go from equation (11) to equation (12) in this example of a Minimal Surface of Revolution. There is a MMA notebook on that link, but it only shows how to find the ...
dpholmes's user avatar
  • 683
0 votes
0 answers
55 views

Different integration results when TrigToExp used

I am trying to do a double integral over a domain $x \in (\theta_1,\theta_2), y \in (0,\theta_1)$. Instead of doing a definite integral I am doing an indefinite integral and taking limits. All that is ...
Jaswin's user avatar
  • 183
4 votes
2 answers
691 views

Mathematica gives an unexpected answer for Integrate [closed]

I need to integrate the following: \begin{equation}\tag{1} \frac{\sqrt{C + (1 - C) x^3}}{x}, \end{equation} where $0 < C < 1$ and $x$ is a positive variable (then $x^3 \ge 0$). When I integrate:...
Cham's user avatar
  • 4,133
1 vote
1 answer
86 views

Plot of integral of summed `Sinc` series is incorrect

I have curve given by summing a small, finite series of Sinc functions, and I want to plot both the curve and its integral. In principle, it's easy: ...
Richard Burke-Ward's user avatar
3 votes
2 answers
191 views

Indefinite ArcTan integral does not return the (known) real expression but returns complex expression

I have a problem with an indefinite integral which I solved using MMA in back in 2010 (must have been version 7 or 8) successfullly and it gave an elegant result. However, if I run it with MMA 11.3 (...
JJBK's user avatar
  • 113
7 votes
1 answer
1k views

Integral that yields ArcTan function rather than ArcSin

When I enter the following Integral problem to Mathematica, $$ \int \frac{1}{\sqrt{a^2-x^2}}\textrm{d}x $$ The answer yielded by Mathematica is $$ \arctan\left({\frac{x}{\sqrt{a^2-x^2}}}\right) $$ ...
K7PEH's user avatar
  • 619
0 votes
0 answers
141 views

User defined ArcTan function

I am trying to integrate an equation that requires an angle term calculated using ArcTan[x,y]. A number of issues have been mentioned about ...
dykes's user avatar
  • 371
0 votes
2 answers
140 views

Bug in limit evaluation? [closed]

When I try to evaluate the limit $$\lim_{x\to\infty}x\sin(2\pi e x!)$$ Mathematica yields Indeterminate as an answer, however, the solution is known to be $2\pi$. What could be the cause of this ...
DMH16's user avatar
  • 409
1 vote
1 answer
187 views

Integrals for trigonometric functions

I was able to obtain some indefinite integrals for the trigonometric function manually, $\Gamma^{pq}_n = \int \frac {\cos^p x \sin^q x} {(1+A \cos x)^n} dx$ for $(p,q,n)\geq 0$ in recursive form. ...
Harish's user avatar
  • 115
0 votes
1 answer
187 views

Indefinite Integral for rational trigonometric functions without hypergeometric functions

How to find indefinite integrals for the rational trigonometric functions of the form $\qquad\Lambda^{pq}_m = \int \frac{\cos^p x\sin^q x}{(a+b\sin x +c\cos x)^m} dx$ where $(p,q,m)>0$ using ...
Harish's user avatar
  • 115
0 votes
1 answer
257 views

Arduous trigonometric simplification task

I have equations that are products of sines and cosines that I want to integrate. As an example, the integrand may look something like this: $-\cos \left(\frac{\sqrt{3} \pi x (p+q)}{A}\right) \sin \...
Ben's user avatar
  • 55
3 votes
0 answers
85 views

Why Integrate does not work in the first call?

Consider an example (calculated in Mathematica 11.0.1.0): ...
Shinrei's user avatar
  • 177
0 votes
0 answers
75 views

How to get the result containing KroneckerDelta in calculating orthogonality of the trigonometric system

With orthogonality of the trigonometric system, we have $$\int_{-\pi}^{\pi}\cos n\theta \cos m\theta d\theta=\pi\delta_{nm}$$ But I can't get the result containing ...
Feynman's user avatar
  • 101
0 votes
0 answers
90 views

Integrate$[\frac{\cos(x-y)\cos(5y)}{C+\cos(m-y)+B\cos(x-y)},y]$ results in massive, unusable expression. Can it be simplified?

I have to integrate a trigonometric expression that looks fairly straightforward, however, the expression I obtain after I evaluate the integral is massive and unusable. As the integrand is relatively ...
sonicboom's user avatar
  • 183
1 vote
3 answers
2k views

Integrating Sin[x]^k for positive integer k?

I am looking to integrate some expressions containing trigonometric functions raised to general powers (which get messy, I know). However, I am struggling to make much headway. As a simple test case,...
Quantum_Oli's user avatar
  • 8,014
0 votes
2 answers
181 views

How to get the numerator of this fraction involving `Csc` or `Sec`?

I would like to avoid multiplying explicitely by the denominator, because I'm working with huge fractions. Consider ...
anderstood's user avatar
  • 14.5k
3 votes
2 answers
582 views

Automatic simplification of trigonometric functions with negative arguments [closed]

I'm fairly new to mathematica and its ability to define pure functions. I was using it to work on a school problem. The idea was to derive a vector with two trig functions that I could set another ...
A. Epstein's user avatar