3.359 \(\int \frac {1}{\sqrt {b^2+c^2}+b \cos (d+e x)+c \sin (d+e x)} \, dx\)

Optimal. Leaf size=49 \[ -\frac {c-\sqrt {b^2+c^2} \sin (d+e x)}{c e (c \cos (d+e x)-b \sin (d+e x))} \]

[Out]

(-c+sin(e*x+d)*(b^2+c^2)^(1/2))/c/e/(c*cos(e*x+d)-b*sin(e*x+d))

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.033, Rules used = {3114} \[ -\frac {c-\sqrt {b^2+c^2} \sin (d+e x)}{c e (c \cos (d+e x)-b \sin (d+e x))} \]

Antiderivative was successfully verified.

[In]

Int[(Sqrt[b^2 + c^2] + b*Cos[d + e*x] + c*Sin[d + e*x])^(-1),x]

[Out]

-((c - Sqrt[b^2 + c^2]*Sin[d + e*x])/(c*e*(c*Cos[d + e*x] - b*Sin[d + e*x])))

Rule 3114

Int[(cos[(d_.) + (e_.)*(x_)]*(b_.) + (a_) + (c_.)*sin[(d_.) + (e_.)*(x_)])^(-1), x_Symbol] :> -Simp[(c - a*Sin
[d + e*x])/(c*e*(c*Cos[d + e*x] - b*Sin[d + e*x])), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[a^2 - b^2 - c^2, 0]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {b^2+c^2}+b \cos (d+e x)+c \sin (d+e x)} \, dx &=-\frac {c-\sqrt {b^2+c^2} \sin (d+e x)}{c e (c \cos (d+e x)-b \sin (d+e x))}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.10, size = 49, normalized size = 1.00 \[ \frac {\sqrt {b^2+c^2} \sin (d+e x)-c}{c e (c \cos (d+e x)-b \sin (d+e x))} \]

Antiderivative was successfully verified.

[In]

Integrate[(Sqrt[b^2 + c^2] + b*Cos[d + e*x] + c*Sin[d + e*x])^(-1),x]

[Out]

(-c + Sqrt[b^2 + c^2]*Sin[d + e*x])/(c*e*(c*Cos[d + e*x] - b*Sin[d + e*x]))

________________________________________________________________________________________

fricas [A]  time = 1.64, size = 75, normalized size = 1.53 \[ -\frac {b^{2} + c^{2} - \sqrt {b^{2} + c^{2}} {\left (b \cos \left (e x + d\right ) + c \sin \left (e x + d\right )\right )}}{{\left (b^{2} c + c^{3}\right )} e \cos \left (e x + d\right ) - {\left (b^{3} + b c^{2}\right )} e \sin \left (e x + d\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(e*x+d)+c*sin(e*x+d)+(b^2+c^2)^(1/2)),x, algorithm="fricas")

[Out]

-(b^2 + c^2 - sqrt(b^2 + c^2)*(b*cos(e*x + d) + c*sin(e*x + d)))/((b^2*c + c^3)*e*cos(e*x + d) - (b^3 + b*c^2)
*e*sin(e*x + d))

________________________________________________________________________________________

giac [A]  time = 0.16, size = 43, normalized size = 0.88 \[ -\frac {2 \, {\left (b + \sqrt {b^{2} + c^{2}}\right )} e^{\left (-1\right )}}{{\left (c \tan \left (\frac {1}{2} \, x e + \frac {1}{2} \, d\right ) + b + \sqrt {b^{2} + c^{2}}\right )} c} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(e*x+d)+c*sin(e*x+d)+(b^2+c^2)^(1/2)),x, algorithm="giac")

[Out]

-2*(b + sqrt(b^2 + c^2))*e^(-1)/((c*tan(1/2*x*e + 1/2*d) + b + sqrt(b^2 + c^2))*c)

________________________________________________________________________________________

maple [A]  time = 0.29, size = 50, normalized size = 1.02 \[ -\frac {2 \left (\sqrt {b^{2}+c^{2}}+b \right )}{e \,c^{2} \left (\tan \left (\frac {d}{2}+\frac {e x}{2}\right )+\frac {\sqrt {b^{2}+c^{2}}}{c}+\frac {b}{c}\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*cos(e*x+d)+c*sin(e*x+d)+(b^2+c^2)^(1/2)),x)

[Out]

-2/e*((b^2+c^2)^(1/2)+b)/c^2/(tan(1/2*d+1/2*e*x)+1/c*(b^2+c^2)^(1/2)+b/c)

________________________________________________________________________________________

maxima [A]  time = 0.31, size = 40, normalized size = 0.82 \[ -\frac {2}{{\left (c - \frac {{\left (b - \sqrt {b^{2} + c^{2}}\right )} \sin \left (e x + d\right )}{\cos \left (e x + d\right ) + 1}\right )} e} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(e*x+d)+c*sin(e*x+d)+(b^2+c^2)^(1/2)),x, algorithm="maxima")

[Out]

-2/((c - (b - sqrt(b^2 + c^2))*sin(e*x + d)/(cos(e*x + d) + 1))*e)

________________________________________________________________________________________

mupad [B]  time = 2.82, size = 38, normalized size = 0.78 \[ \frac {2\,\mathrm {tan}\left (\frac {d}{2}+\frac {e\,x}{2}\right )}{e\,\left (b+\sqrt {b^2+c^2}+c\,\mathrm {tan}\left (\frac {d}{2}+\frac {e\,x}{2}\right )\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(b*cos(d + e*x) + c*sin(d + e*x) + (b^2 + c^2)^(1/2)),x)

[Out]

(2*tan(d/2 + (e*x)/2))/(e*(b + (b^2 + c^2)^(1/2) + c*tan(d/2 + (e*x)/2)))

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(b*cos(e*x+d)+c*sin(e*x+d)+(b**2+c**2)**(1/2)),x)

[Out]

Timed out

________________________________________________________________________________________