It is wrong or at least useless since B(t) appears in the integral. A
correct and simple result is given by the 1st_linear hint:
In [111]: dsolve(expr, hint='1st_linear')
Out[111]:
⎛ ⌠ ⎞
⎜ ⎮ ⌠ ⎟ ⌠
⎜ ⎮ -⎮ a(t) dt ⎟ ⎮ a(t) dt
⎜ ⎮ ⌡ ⎟ ⌡
B(t) = ⎜C₁ - ⎮ ℯ dt⎟⋅ℯ
⎝ ⌡ ⎠
In [112]: sol = dsolve(expr, hint='1st_linear')
In [113]: checkodesol(expr, sol)
Out[113]: (True, 0)
The incorrect result comes from the 1st_exact solver. It's possible
that 1st_exact shouldn't match this or that there's a bug in the
1st_exact solver.
--
Oscar
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAKgW%3D6JFo15_c0Lb6x-emfi3OFs_i%2BwOZpQvNMMt8PLBBnDPfQ%40mail.gmail.com.