I solved this problem, but I'm wondering if the method I used was correct, or if I just got lucky and ended up with the correct answer by chance. I used a substitution for the Log[x] and left it there through solving the entire problem, which didn't feel right as I did it, but ended up with the right answer... is that correct?
My work:
∫Sin[Log[x]] dx = ∫x*Sin[u] du where u = Log[x]
Using integration by parts:
∫x*Sin[u] du = -x*Cos[u] + ∫x*Cos[u] du
Integration by parts again:
∫x*Sin[u] du = -x*Cos[u] + x*Sin[u] - ∫x*Sin[u] du
2∫x*Sin[u] du = -x*Cos[u] + x*Sin[u]
∫x*Sin[u] du = x*(Sin[u]-Cos[u])/2
therefore, ∫Sin[Log[x]]dx = x*(Sin[Log[x]-Cos[Log[x]])/2
Name:
Anonymous2007-06-25 17:23 ID:JV+04DJz
∫x*Sin[u] du = -x*Cos[u] + ∫x*Cos[u] du
Wrong.
∫x*Sin[u] du = -x*Cos[u] + ∫Cos[u]dx
Name:
Anonymous2007-06-25 17:34 ID:JV+04DJz
Oh and dx = xdu. Fuck.
Name:
Anonymous2007-06-25 17:46 ID:GeeSRx2B
Your work and answer are correct, but for the love of god do not leave an "x" in the integrand after doing substitution. It's easy to make a mistake (especially when doing two integration by parts afterwards), and it's much harder for whoever is grading it to interpret it.
OP here. I realized I didn't need the substitution at all since adding an x just confused me. Without using the substition, I used integration by parts in a slightly different manner:
u = Sin[Log[x]], du/dx = Cos[Log[x]]/x, v = x, dv/dx = 1
∫u dv/dx = uv - ∫v du/dx
>>4
it's not just about grading and interpretation. it's just plain wrong to leave x in the integrand when it is du, because then x becomes a constant, and you're left with a totally different integral.