Help Solving Differential Equations

Click For Summary

Homework Help Overview

The discussion revolves around solving a first-order linear differential equation of the form x²(dy/dx) + xy = x²sin(x). Participants are exploring methods to rewrite the equation into standard form and applying integrating factors to find a solution.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • Participants discuss rewriting the equation into standard form and calculating the integrating factor. There are attempts to clarify the correct form of the equation and the integrating factor, with some questioning the initial assumptions about the equation's structure.

Discussion Status

Some participants have provided guidance on correcting the standard form and integrating factor, while others are exploring alternative methods to approach the problem. There is an ongoing examination of different interpretations and steps taken in the solution process.

Contextual Notes

Participants note the importance of verifying solutions by substituting back into the original differential equation. There is also mention of clarity issues with notation used in the discussion.

JoshP-hillips
Messages
5
Reaction score
0
Q1.

x2dy/dx + xy = x2sinx

I believe it is a separable equation (first order linear)

First step is to rewrite into standard form;

dy/dx + (xy)/x2 = (x2sin(x))/x2

Then to calculate the integrating factor I(x);

I(x) = e|(xy)/x2dx = eylnx = elnxy = xy

Then i need to multiply both sides of the d.e. by I(x)
 
Physics news on Phys.org
JoshP-hillips said:
Q1.

x2dy/dx + xy = x2sinx

I believe it is a separable equation (first order linear)

First step is to rewrite into standard form;

dy/dx + (xy)/x2 = (x2sin(x))/x2

Then to calculate the integrating factor I(x);

I(x) = e|(xy)/x2dx = eylnx = elnxy = xy

Then i need to multiply both sides of the d.e. by I(x)
This part is wrong -- e|(xy)/x2dx. In standard form, your equation is dy/dx + (1/x)y = sin(x). The coefficient of the y term is just 1/x, not y/x. With that correction, what should your integrating factor be?

BTW, this is NOT a precalculus question, so I moved it to the appropriate forum section.
 
Thanks for the tip, and moving the thread.

Here's what I've done;

NEW standard form (from old one)

dy/dx + (1/x)y = sinx

Integrating factor now becomes

I(x) = e|(1/x)dx = elnx = x

Multiplying both sides of the d.e. by I(x) gives;

x dy/dx + x(1/x)y = x sinx

x dy/dx + y = x sinx

Rewriting as d/dx(I(x)y)

d/dx(xy) = x sinx

Integrating both sides with respect to x

xy = x|sinx

xy = sinx - x cosx

y = (sinx)/x - cosx + C/xHow'd I go?
 
Last edited:
JoshP-hillips said:
Thanks for the tip, and moving the thread.

y = (sinx)/x - cosx + C/x

How'd I go?

Differentiate what you got for y and plug it back into the original equation! That's what a solution to the equation means, after all.
 
I can't resist looking for a more elementary, simple way, of looking at it to see is there a simple
d(of something) there, although having your more general method which will see you algorithmically through all problems of a given category is no doubt more valuable generally.

So looking at that, x2dy/dx can come from d(x2y)/dx which is x2dy/dx + 2xy which is nearly what you want but the factor 2 spoils it and there is no way to fiddle constants to hammer it to what you want, so try to divide the equation by x and then d(xy)/dx works perfectly and gives the same solution result as yours.
 
Last edited:
Yes, that's the whole point of an "integrating factor". We want to find a function, u(x), such that multiplying dy/dx+ y/x by it will give a "complete differential". That is, we must have d(uy)/dx= u(dy/dx)+ (du/dx)y= u(dy/dx)+ (u/x)y. The "u(dy/dx)" terms cancel leaving du/dx= u/x. du/u= dx/x; ln(u)= ln(x)+ C, u= cx. Since we only need one such function, take c= 1. Then x(dy/dx+ y/x)= x(dy/dx)+ y= d(xy)/dx= xsin(x).

[itex]xy= \int x sin(x)dx[/itex]. Use integration by parts on the right.
 
JoshP-hillips said:
Thanks for the tip, and moving the thread.

Here's what I've done;

NEW standard form (from old one)

dy/dx + (1/x)y = sinx

Integrating factor now becomes

I(x) = e|(1/x)dx = elnx = x
The 'I' character you're using to indicate an integral is very hard to spot, appearing identical to 'l' (lowercase L) and very close to '|' (vertical bar).
JoshP-hillips said:
Multiplying both sides of the d.e. by I(x) gives;

x dy/dx + x(1/x)y = x sinx

x dy/dx + y = x sinx

Rewriting as d/dx(I(x)y)
Why not write it as d/dx(xy)?
JoshP-hillips said:
d/dx(xy) = x sinx

Integrating both sides with respect to x

xy = x|sinx
Why is the bar in there?
JoshP-hillips said:
xy = sinx - x cosx

y = (sinx)/x - cosx + C/xHow'd I go?
You tell us. Once you have found a solution to a differential equation, you can (and should) check it by verifying that your solution satisfies the DE.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 44 ·
2
Replies
44
Views
5K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
3
Views
2K