Optimal. Leaf size=34 \[ -\frac {2^x}{\log (2)}+\frac {2^{-1+2 x}}{\log (2)}+\frac {2 \log \left (1+2^x\right )}{\log (2)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2320, 711}
\begin {gather*} \frac {2 \log \left (2^x+1\right )}{\log (2)}-\frac {2^x}{\log (2)}+\frac {2^{2 x-1}}{\log (2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 711
Rule 2320
Rubi steps
\begin {align*} \int \frac {1+4^x}{1+2^{-x}} \, dx &=\frac {\text {Subst}\left (\int \frac {1+x^2}{1+x} \, dx,x,2^x\right )}{\log (2)}\\ &=\frac {\text {Subst}\left (\int \left (-1+x+\frac {2}{1+x}\right ) \, dx,x,2^x\right )}{\log (2)}\\ &=-\frac {2^x}{\log (2)}+\frac {2^{-1+2 x}}{\log (2)}+\frac {2 \log \left (1+2^x\right )}{\log (2)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 23, normalized size = 0.68 \begin {gather*} \frac {2^x \left (-2+2^x\right )+4 \log \left (1+2^x\right )}{\log (4)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.02, size = 34, normalized size = 1.00
method | result | size |
risch | \(-\frac {2^{x}}{\ln \left (2\right )}+\frac {2^{2 x}}{2 \ln \left (2\right )}+\frac {2 \ln \left (1+2^{x}\right )}{\ln \left (2\right )}\) | \(34\) |
norman | \(-\frac {{\mathrm e}^{x \ln \left (2\right )}}{\ln \left (2\right )}+\frac {{\mathrm e}^{2 x \ln \left (2\right )}}{2 \ln \left (2\right )}+\frac {2 \ln \left (1+{\mathrm e}^{x \ln \left (2\right )}\right )}{\ln \left (2\right )}\) | \(40\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 40, normalized size = 1.18 \begin {gather*} 2 \, x - \frac {2^{2 \, x - 1} {\left (2^{-x + 1} - 1\right )}}{\log \left (2\right )} + \frac {2 \, \log \left (\frac {1}{2^{x}} + 1\right )}{\log \left (2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 25, normalized size = 0.74 \begin {gather*} \frac {2^{2 \, x} - 2 \cdot 2^{x} + 4 \, \log \left (2^{x} + 1\right )}{2 \, \log \left (2\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.14, size = 39, normalized size = 1.15 \begin {gather*} 2 x + \frac {2^{2 x} \log {\left (2 \right )} - 2 \cdot 2^{x} \log {\left (2 \right )}}{2 \log {\left (2 \right )}^{2}} + \frac {2 \log {\left (1 + 2^{- x} \right )}}{\log {\left (2 \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {4^x+1}{\frac {1}{2^x}+1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________