Integrand size = 19, antiderivative size = 40 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {(2 a+b) \text {arctanh}(\sin (e+f x))}{2 f}+\frac {b \sec (e+f x) \tan (e+f x)}{2 f} \] Output:
1/2*(2*a+b)*arctanh(sin(f*x+e))/f+1/2*b*sec(f*x+e)*tan(f*x+e)/f
Time = 0.01 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.20 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {a \coth ^{-1}(\sin (e+f x))}{f}+\frac {b \text {arctanh}(\sin (e+f x))}{2 f}+\frac {b \sec (e+f x) \tan (e+f x)}{2 f} \] Input:
Integrate[Sec[e + f*x]*(a + b*Sec[e + f*x]^2),x]
Output:
(a*ArcCoth[Sin[e + f*x]])/f + (b*ArcTanh[Sin[e + f*x]])/(2*f) + (b*Sec[e + f*x]*Tan[e + f*x])/(2*f)
Time = 0.26 (sec) , antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.211, Rules used = {3042, 4534, 3042, 4257}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \csc \left (e+f x+\frac {\pi }{2}\right ) \left (a+b \csc \left (e+f x+\frac {\pi }{2}\right )^2\right )dx\) |
\(\Big \downarrow \) 4534 |
\(\displaystyle \frac {1}{2} (2 a+b) \int \sec (e+f x)dx+\frac {b \tan (e+f x) \sec (e+f x)}{2 f}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {1}{2} (2 a+b) \int \csc \left (e+f x+\frac {\pi }{2}\right )dx+\frac {b \tan (e+f x) \sec (e+f x)}{2 f}\) |
\(\Big \downarrow \) 4257 |
\(\displaystyle \frac {(2 a+b) \text {arctanh}(\sin (e+f x))}{2 f}+\frac {b \tan (e+f x) \sec (e+f x)}{2 f}\) |
Input:
Int[Sec[e + f*x]*(a + b*Sec[e + f*x]^2),x]
Output:
((2*a + b)*ArcTanh[Sin[e + f*x]])/(2*f) + (b*Sec[e + f*x]*Tan[e + f*x])/(2 *f)
Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.))^(m_.)*(csc[(e_.) + (f_.)*(x_)]^2*(C_.) + (A_)), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*((b*Csc[e + f*x])^m/(f*(m + 1) )), x] + Simp[(C*m + A*(m + 1))/(m + 1) Int[(b*Csc[e + f*x])^m, x], x] /; FreeQ[{b, e, f, A, C, m}, x] && NeQ[C*m + A*(m + 1), 0] && !LeQ[m, -1]
Time = 0.82 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.38
method | result | size |
derivativedivides | \(\frac {a \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )+b \left (\frac {\sec \left (f x +e \right ) \tan \left (f x +e \right )}{2}+\frac {\ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{2}\right )}{f}\) | \(55\) |
default | \(\frac {a \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )+b \left (\frac {\sec \left (f x +e \right ) \tan \left (f x +e \right )}{2}+\frac {\ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{2}\right )}{f}\) | \(55\) |
parts | \(\frac {a \ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{f}+\frac {b \left (\frac {\sec \left (f x +e \right ) \tan \left (f x +e \right )}{2}+\frac {\ln \left (\sec \left (f x +e \right )+\tan \left (f x +e \right )\right )}{2}\right )}{f}\) | \(57\) |
parallelrisch | \(\frac {-\left (a +\frac {b}{2}\right ) \left (1+\cos \left (2 f x +2 e \right )\right ) \ln \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )+\left (a +\frac {b}{2}\right ) \left (1+\cos \left (2 f x +2 e \right )\right ) \ln \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )+\sin \left (f x +e \right ) b}{f \left (1+\cos \left (2 f x +2 e \right )\right )}\) | \(86\) |
norman | \(\frac {\frac {b \tan \left (\frac {f x}{2}+\frac {e}{2}\right )}{f}+\frac {b \tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{3}}{f}}{\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )^{2}-1\right )^{2}}-\frac {\left (2 a +b \right ) \ln \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right )}{2 f}+\frac {\left (2 a +b \right ) \ln \left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right )}{2 f}\) | \(93\) |
risch | \(-\frac {i b \left ({\mathrm e}^{3 i \left (f x +e \right )}-{\mathrm e}^{i \left (f x +e \right )}\right )}{f \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2}}+\frac {\ln \left ({\mathrm e}^{i \left (f x +e \right )}+i\right ) a}{f}+\frac {\ln \left ({\mathrm e}^{i \left (f x +e \right )}+i\right ) b}{2 f}-\frac {\ln \left ({\mathrm e}^{i \left (f x +e \right )}-i\right ) a}{f}-\frac {\ln \left ({\mathrm e}^{i \left (f x +e \right )}-i\right ) b}{2 f}\) | \(118\) |
Input:
int(sec(f*x+e)*(a+b*sec(f*x+e)^2),x,method=_RETURNVERBOSE)
Output:
1/f*(a*ln(sec(f*x+e)+tan(f*x+e))+b*(1/2*sec(f*x+e)*tan(f*x+e)+1/2*ln(sec(f *x+e)+tan(f*x+e))))
Time = 0.08 (sec) , antiderivative size = 72, normalized size of antiderivative = 1.80 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {{\left (2 \, a + b\right )} \cos \left (f x + e\right )^{2} \log \left (\sin \left (f x + e\right ) + 1\right ) - {\left (2 \, a + b\right )} \cos \left (f x + e\right )^{2} \log \left (-\sin \left (f x + e\right ) + 1\right ) + 2 \, b \sin \left (f x + e\right )}{4 \, f \cos \left (f x + e\right )^{2}} \] Input:
integrate(sec(f*x+e)*(a+b*sec(f*x+e)^2),x, algorithm="fricas")
Output:
1/4*((2*a + b)*cos(f*x + e)^2*log(sin(f*x + e) + 1) - (2*a + b)*cos(f*x + e)^2*log(-sin(f*x + e) + 1) + 2*b*sin(f*x + e))/(f*cos(f*x + e)^2)
\[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\int \left (a + b \sec ^{2}{\left (e + f x \right )}\right ) \sec {\left (e + f x \right )}\, dx \] Input:
integrate(sec(f*x+e)*(a+b*sec(f*x+e)**2),x)
Output:
Integral((a + b*sec(e + f*x)**2)*sec(e + f*x), x)
Time = 0.03 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.45 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {{\left (2 \, a + b\right )} \log \left (\sin \left (f x + e\right ) + 1\right ) - {\left (2 \, a + b\right )} \log \left (\sin \left (f x + e\right ) - 1\right ) - \frac {2 \, b \sin \left (f x + e\right )}{\sin \left (f x + e\right )^{2} - 1}}{4 \, f} \] Input:
integrate(sec(f*x+e)*(a+b*sec(f*x+e)^2),x, algorithm="maxima")
Output:
1/4*((2*a + b)*log(sin(f*x + e) + 1) - (2*a + b)*log(sin(f*x + e) - 1) - 2 *b*sin(f*x + e)/(sin(f*x + e)^2 - 1))/f
Time = 0.12 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.50 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {{\left (2 \, a + b\right )} \log \left ({\left | \sin \left (f x + e\right ) + 1 \right |}\right ) - {\left (2 \, a + b\right )} \log \left ({\left | \sin \left (f x + e\right ) - 1 \right |}\right ) - \frac {2 \, b \sin \left (f x + e\right )}{\sin \left (f x + e\right )^{2} - 1}}{4 \, f} \] Input:
integrate(sec(f*x+e)*(a+b*sec(f*x+e)^2),x, algorithm="giac")
Output:
1/4*((2*a + b)*log(abs(sin(f*x + e) + 1)) - (2*a + b)*log(abs(sin(f*x + e) - 1)) - 2*b*sin(f*x + e)/(sin(f*x + e)^2 - 1))/f
Time = 15.53 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.02 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {\mathrm {atanh}\left (\sin \left (e+f\,x\right )\right )\,\left (a+\frac {b}{2}\right )}{f}-\frac {b\,\sin \left (e+f\,x\right )}{2\,f\,\left ({\sin \left (e+f\,x\right )}^2-1\right )} \] Input:
int((a + b/cos(e + f*x)^2)/cos(e + f*x),x)
Output:
(atanh(sin(e + f*x))*(a + b/2))/f - (b*sin(e + f*x))/(2*f*(sin(e + f*x)^2 - 1))
Time = 0.17 (sec) , antiderivative size = 177, normalized size of antiderivative = 4.42 \[ \int \sec (e+f x) \left (a+b \sec ^2(e+f x)\right ) \, dx=\frac {-2 \,\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) \sin \left (f x +e \right )^{2} a -\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) \sin \left (f x +e \right )^{2} b +2 \,\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) a +\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )-1\right ) b +2 \,\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) \sin \left (f x +e \right )^{2} a +\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) \sin \left (f x +e \right )^{2} b -2 \,\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) a -\mathrm {log}\left (\tan \left (\frac {f x}{2}+\frac {e}{2}\right )+1\right ) b -\sin \left (f x +e \right ) b}{2 f \left (\sin \left (f x +e \right )^{2}-1\right )} \] Input:
int(sec(f*x+e)*(a+b*sec(f*x+e)^2),x)
Output:
( - 2*log(tan((e + f*x)/2) - 1)*sin(e + f*x)**2*a - log(tan((e + f*x)/2) - 1)*sin(e + f*x)**2*b + 2*log(tan((e + f*x)/2) - 1)*a + log(tan((e + f*x)/ 2) - 1)*b + 2*log(tan((e + f*x)/2) + 1)*sin(e + f*x)**2*a + log(tan((e + f *x)/2) + 1)*sin(e + f*x)**2*b - 2*log(tan((e + f*x)/2) + 1)*a - log(tan((e + f*x)/2) + 1)*b - sin(e + f*x)*b)/(2*f*(sin(e + f*x)**2 - 1))