Integrand size = 19, antiderivative size = 50 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {a (c+d x)^2}{2 d}+\frac {i a (c+d x) \cosh (e+f x)}{f}-\frac {i a d \sinh (e+f x)}{f^2} \] Output:
1/2*a*(d*x+c)^2/d+I*a*(d*x+c)*cosh(f*x+e)/f-I*a*d*sinh(f*x+e)/f^2
Time = 0.11 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.96 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {a \left (f^2 x (2 c+d x)+2 i f (c+d x) \cosh (e+f x)-2 i d \sinh (e+f x)\right )}{2 f^2} \] Input:
Integrate[(c + d*x)*(a + I*a*Sinh[e + f*x]),x]
Output:
(a*(f^2*x*(2*c + d*x) + (2*I)*f*(c + d*x)*Cosh[e + f*x] - (2*I)*d*Sinh[e + f*x]))/(2*f^2)
Time = 0.25 (sec) , antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {3042, 3798, 2009}
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 (c+d x) (a+i a \sinh (e+f x)) \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int (c+d x) (a+a \sin (i e+i f x))dx\) |
\(\Big \downarrow \) 3798 |
\(\displaystyle \int (a (c+d x)+i a (c+d x) \sinh (e+f x))dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {i a (c+d x) \cosh (e+f x)}{f}+\frac {a (c+d x)^2}{2 d}-\frac {i a d \sinh (e+f x)}{f^2}\) |
Input:
Int[(c + d*x)*(a + I*a*Sinh[e + f*x]),x]
Output:
(a*(c + d*x)^2)/(2*d) + (I*a*(c + d*x)*Cosh[e + f*x])/f - (I*a*d*Sinh[e + f*x])/f^2
Int[((c_.) + (d_.)*(x_))^(m_.)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(n_.) , x_Symbol] :> Int[ExpandIntegrand[(c + d*x)^m, (a + b*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, m}, x] && IGtQ[n, 0] && (EqQ[n, 1] || IGtQ[ m, 0] || NeQ[a^2 - b^2, 0])
Time = 0.27 (sec) , antiderivative size = 48, normalized size of antiderivative = 0.96
method | result | size |
parallelrisch | \(\frac {a \left (i \left (d x +c \right ) f \cosh \left (f x +e \right )-i \sinh \left (f x +e \right ) d +\left (x \left (\frac {d x}{2}+c \right ) f +i c \right ) f \right )}{f^{2}}\) | \(48\) |
risch | \(\frac {a d \,x^{2}}{2}+a c x +\frac {i a \left (d x f +c f -d \right ) {\mathrm e}^{f x +e}}{2 f^{2}}+\frac {i a \left (d x f +c f +d \right ) {\mathrm e}^{-f x -e}}{2 f^{2}}\) | \(62\) |
parts | \(a \left (\frac {1}{2} d \,x^{2}+c x \right )+\frac {i a \left (\frac {d \left (\left (f x +e \right ) \cosh \left (f x +e \right )-\sinh \left (f x +e \right )\right )}{f}-\frac {d e \cosh \left (f x +e \right )}{f}+c \cosh \left (f x +e \right )\right )}{f}\) | \(69\) |
derivativedivides | \(\frac {\frac {d a \left (f x +e \right )^{2}}{2 f}+\frac {i d a \left (\left (f x +e \right ) \cosh \left (f x +e \right )-\sinh \left (f x +e \right )\right )}{f}-\frac {d e a \left (f x +e \right )}{f}-\frac {i d e a \cosh \left (f x +e \right )}{f}+c a \left (f x +e \right )+i c a \cosh \left (f x +e \right )}{f}\) | \(96\) |
default | \(\frac {\frac {d a \left (f x +e \right )^{2}}{2 f}+\frac {i d a \left (\left (f x +e \right ) \cosh \left (f x +e \right )-\sinh \left (f x +e \right )\right )}{f}-\frac {d e a \left (f x +e \right )}{f}-\frac {i d e a \cosh \left (f x +e \right )}{f}+c a \left (f x +e \right )+i c a \cosh \left (f x +e \right )}{f}\) | \(96\) |
orering | \(\frac {\left (d^{3} f^{2} x^{4}+4 c \,d^{2} f^{2} x^{3}+5 c^{2} d \,f^{2} x^{2}+2 c^{3} f^{2} x -6 d^{3} x^{2}-12 c \,d^{2} x -4 c^{2} d \right ) \left (a +i a \sinh \left (f x +e \right )\right )}{2 f^{2} \left (d x +c \right )^{2}}+\frac {\left (2 x^{2} d^{2}+4 c d x +c^{2}\right ) \left (d \left (a +i a \sinh \left (f x +e \right )\right )+i \left (d x +c \right ) a f \cosh \left (f x +e \right )\right )}{\left (d x +c \right )^{2} f^{2}}-\frac {x \left (d x +2 c \right ) \left (2 i d a f \cosh \left (f x +e \right )+i \left (d x +c \right ) a \,f^{2} \sinh \left (f x +e \right )\right )}{2 f^{2} \left (d x +c \right )}\) | \(201\) |
Input:
int((d*x+c)*(a+I*a*sinh(f*x+e)),x,method=_RETURNVERBOSE)
Output:
a*(I*(d*x+c)*f*cosh(f*x+e)-I*sinh(f*x+e)*d+(x*(1/2*d*x+c)*f+I*c)*f)/f^2
Time = 0.09 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.62 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {{\left (i \, a d f x + i \, a c f + i \, a d + {\left (i \, a d f x + i \, a c f - i \, a d\right )} e^{\left (2 \, f x + 2 \, e\right )} + {\left (a d f^{2} x^{2} + 2 \, a c f^{2} x\right )} e^{\left (f x + e\right )}\right )} e^{\left (-f x - e\right )}}{2 \, f^{2}} \] Input:
integrate((d*x+c)*(a+I*a*sinh(f*x+e)),x, algorithm="fricas")
Output:
1/2*(I*a*d*f*x + I*a*c*f + I*a*d + (I*a*d*f*x + I*a*c*f - I*a*d)*e^(2*f*x + 2*e) + (a*d*f^2*x^2 + 2*a*c*f^2*x)*e^(f*x + e))*e^(-f*x - e)/f^2
Time = 0.18 (sec) , antiderivative size = 162, normalized size of antiderivative = 3.24 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=a c x + \frac {a d x^{2}}{2} + \begin {cases} \frac {\left (\left (2 i a c f^{3} + 2 i a d f^{3} x + 2 i a d f^{2}\right ) e^{- f x} + \left (2 i a c f^{3} e^{2 e} + 2 i a d f^{3} x e^{2 e} - 2 i a d f^{2} e^{2 e}\right ) e^{f x}\right ) e^{- e}}{4 f^{4}} & \text {for}\: f^{4} e^{e} \neq 0 \\\frac {x^{2} \left (i a d e^{2 e} - i a d\right ) e^{- e}}{4} + \frac {x \left (i a c e^{2 e} - i a c\right ) e^{- e}}{2} & \text {otherwise} \end {cases} \] Input:
integrate((d*x+c)*(a+I*a*sinh(f*x+e)),x)
Output:
a*c*x + a*d*x**2/2 + Piecewise((((2*I*a*c*f**3 + 2*I*a*d*f**3*x + 2*I*a*d* f**2)*exp(-f*x) + (2*I*a*c*f**3*exp(2*e) + 2*I*a*d*f**3*x*exp(2*e) - 2*I*a *d*f**2*exp(2*e))*exp(f*x))*exp(-e)/(4*f**4), Ne(f**4*exp(e), 0)), (x**2*( I*a*d*exp(2*e) - I*a*d)*exp(-e)/4 + x*(I*a*c*exp(2*e) - I*a*c)*exp(-e)/2, True))
Time = 0.04 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.32 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {1}{2} \, a d x^{2} + a c x + \frac {1}{2} i \, a d {\left (\frac {{\left (f x e^{e} - e^{e}\right )} e^{\left (f x\right )}}{f^{2}} + \frac {{\left (f x + 1\right )} e^{\left (-f x - e\right )}}{f^{2}}\right )} + \frac {i \, a c \cosh \left (f x + e\right )}{f} \] Input:
integrate((d*x+c)*(a+I*a*sinh(f*x+e)),x, algorithm="maxima")
Output:
1/2*a*d*x^2 + a*c*x + 1/2*I*a*d*((f*x*e^e - e^e)*e^(f*x)/f^2 + (f*x + 1)*e ^(-f*x - e)/f^2) + I*a*c*cosh(f*x + e)/f
Time = 0.13 (sec) , antiderivative size = 69, normalized size of antiderivative = 1.38 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {1}{2} \, a d x^{2} + a c x - \frac {{\left (-i \, a d f x - i \, a c f + i \, a d\right )} e^{\left (f x + e\right )}}{2 \, f^{2}} - \frac {{\left (-i \, a d f x - i \, a c f - i \, a d\right )} e^{\left (-f x - e\right )}}{2 \, f^{2}} \] Input:
integrate((d*x+c)*(a+I*a*sinh(f*x+e)),x, algorithm="giac")
Output:
1/2*a*d*x^2 + a*c*x - 1/2*(-I*a*d*f*x - I*a*c*f + I*a*d)*e^(f*x + e)/f^2 - 1/2*(-I*a*d*f*x - I*a*c*f - I*a*d)*e^(-f*x - e)/f^2
Time = 1.03 (sec) , antiderivative size = 56, normalized size of antiderivative = 1.12 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {\frac {a\,f\,\left (c\,\mathrm {cosh}\left (e+f\,x\right )\,2{}\mathrm {i}+d\,x\,\mathrm {cosh}\left (e+f\,x\right )\,2{}\mathrm {i}\right )}{2}-a\,d\,\mathrm {sinh}\left (e+f\,x\right )\,1{}\mathrm {i}}{f^2}+\frac {a\,\left (d\,x^2+2\,c\,x\right )}{2} \] Input:
int((a + a*sinh(e + f*x)*1i)*(c + d*x),x)
Output:
((a*f*(c*cosh(e + f*x)*2i + d*x*cosh(e + f*x)*2i))/2 - a*d*sinh(e + f*x)*1 i)/f^2 + (a*(2*c*x + d*x^2))/2
Time = 0.23 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.10 \[ \int (c+d x) (a+i a \sinh (e+f x)) \, dx=\frac {a \left (2 \cosh \left (f x +e \right ) c f i +2 \cosh \left (f x +e \right ) d f i x -2 \sinh \left (f x +e \right ) d i +2 c \,f^{2} x +d \,f^{2} x^{2}\right )}{2 f^{2}} \] Input:
int((d*x+c)*(a+I*a*sinh(f*x+e)),x)
Output:
(a*(2*cosh(e + f*x)*c*f*i + 2*cosh(e + f*x)*d*f*i*x - 2*sinh(e + f*x)*d*i + 2*c*f**2*x + d*f**2*x**2))/(2*f**2)