Please check my work (differential equation)

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
darryw
Messages
124
Reaction score
0

Homework Statement


ty' + 2y = sin t (no initial conditions given)



Homework Equations





The Attempt at a Solution


ty' + 2y = sin t

y' + (2/t)y = sin t / t

mu(x) = e^integ(2/t) = t^2

(t^2)y)' = integ t sin t

(t^2)y = tsin t - t cos t + c

y = (sin t - cos t)/ t + c/(t^2) (This is my solution)

thanks for any help
 
Physics news on Phys.org
Hi darryw! :smile:

(have an integral: ∫ and a mu: µ and try using the X2 tag just above the Reply box :wink:)

Your equations are ok down to …
darryw said:
(t^2)y)' = integ t sin t

(t^2)y = tsin t - t cos t + c

y = (sin t - cos t)/ t + c/(t^2)

… the first line of course should be (t^2)y)' = t sin t (without the ∫) :wink:,

but more seriously your integration by parts has come out wrong …

check it by differentiating, and you'll see how to fix it. :smile:
 
i knew it! this is an ongoing problem for me.. I always have problem escaping the integration loop when i have something like ∫t cos t.. (or even worse: ∫e^t cos t

as i understand it, the idea is to integrate up to a certain point and then subtract the integrals identity from left hand side, so then you cancel the integrals. When i did that i ended up with tsin t - t cos t. Can you offer any help/tips so i don't have to write out the whole long integration process? thanks
 
darryw said:
i knew it! this is an ongoing problem for me.. I always have problem escaping the integration loop …

he he :biggrin:

the official method for ∫ fg dx is to integrate g only, giving [f(∫ g dx)], and then subtract the integral of f' time that: ∫ { f'(∫ g dx)} dx

but my method (only works for easy cases) is to make a guess (in this case, -tcost), differentiate it (-cost + tsint), and then integrate whatever's over (-cost) :wink: