Re: [sympy] Re: Results for integrate(Rational(1,4)*(1/(4-t)))

```A multiplication of a constant inside a log is the same as adding a
constant to the log (log(a*b) = log(a) + log(b)). So both are valid
integrals, because of the constant of integration. You can check yourself
that both give the original expression if you differentiate them.```
```
Aaron Meurer

On Sun, Sep 18, 2016 at 10:06 PM, Raphael Timbó <raphae...@gmail.com> wrote:

> Since the images with the results are distorted:
>
> First result:
>
> -(1/4)*log(4*t - 16)
>
> Results given by the step-by=step solution on sympy gamma:
>
> -(1/4)*log(-t + 4)
>
>
>
> On Sunday, September 18, 2016 at 3:18:31 PM UTC-3, Raphael Timbó wrote:
>>
>> Hi,
>> I was trying to use:
>> integrate(Rational(1,4)*(1/(4-t)))
>>
>> This was returning:
>> −14log(4t−16)
>>
>> I was not expecting this result... I went to sympy gamma to see the steps
>> and I saw that:
>>
>> Antiderivative forms:
>> <http://gamma.sympy.org/input/?i=integrate%28Rational%281%2C4%29*%281%2F%284-t%29%29%29#integral_alternate_fake>
>>
>>    - integrate(1/(4*(-t + 4)), t)
>>    −14log(4t−16)
>>
>>
>> But when you check the steps you have:
>>
>> The answer is:
>>
>> −14log(−t+4)+constant
>>
>>
>>
>>
>>
>> I could not understand why the results are different...
>> Any explanation?
>>
>> Thank you!
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+unsubscr...@googlegroups.com.
> To post to this group, send email to sympy@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/sympy/c70c7c01-296d-4998-bb0e-04f324ad64fc%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/c70c7c01-296d-4998-bb0e-04f324ad64fc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sympy+unsubscr...@googlegroups.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAKgW%3D6JMy-JnBpgMULFs8XEg%2BRGxvCK%3D2Tyx4hwt4ZY892eBvA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
```