Solve the differential equations using integrating factor.
1. x dy/dx - y = x raise to power of 3 cosx, given that y=0 and x=π.
2. ( 1 + x square) dy/dx + 3xy = 5x given y=2 and x=1
1
Expert's answer
2021-02-01T08:23:58-0500
In the first case we can even guess the integrating factor (as we can see the derivative of a quotient on the left). Let's calculate it directly anyway, first we will divide both sides by x to find y′+(−x1)y=x2cosx : P(x)=−x1, I(x)=e∫P(t)dt=x1. By multiplying both sides by I(x) we find xy′−x2y=xcosx. Now we have (xy)′=xcosx. By integrating both sides we find xy=xsinx+cosx+C and thus y(x)=x2sinx+xcosx+Cx. Let's find the constant : 0=π2⋅0+π⋅(−1)+Cπ and so C=1, y(x)=x2sinx+xcosx+x.
Let's start by dividing both sides by (1+x2) : y′+1+x23xy=1+x25x. Thus P(x)=1+x23x, I(x)=e∫P(t)dt=e23ln(1+x2)=(1+x2)3/2. Now by multyplying both sides by I(x) we find y′(1+x2)3/2+3x⋅(1+x2)1/2y=5x⋅(1+x2)1/2, ((1+x2)3/2y)′=5x⋅(1+x2)1/2. Now by integrating both sides we find (1+x2)3/2y=25⋅32(1+x2)3/2+C and so y(x)=35+(1+x2)3/2C, now let's find the constant : y(1)=35+23/2C=2, C=322 and thus the solution is y(x)=35+3(1+x2)3/222.
Comments