Solve x(dy/dx)+x²=5 with initial condition y=2.5 at x=1

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
mathi85
Messages
41
Reaction score
0
Hi!

I would like to ask anyone with some spare time to check my assignment questions. Last time I was asked to post one task at a time so I will.
Thank you in advance for your time.

Task 1:

Solve the differential equation: x(dy/dx)+x2=5
given that y=2.5 when x=1

Solution:

x(dy/dx)+x2=5
x(dy/dx)=5-x2 /:x
(dy/dx)=(5-x2)/(x)
∴y=∫ 5/x-x dx = 5lnx-(1/2)x2+c

General Solution:

y=5lnx-(1/2)x2+c
∴2.5=5ln(1)-(1/2)(1)2+c
∴c=3

Particular Solution:

y=5lnx-(1/2)x2+3
 
Physics news on Phys.org
It looks okay. I didn't see anything obviously wrong.

You can always check the answer yourself, and this is a habit you should get into. Plug it back into the original differential equation to see if it satisfies the equation. If it does and it meets the initial condition, you're done.