Solving differential equation of this type

In summary, the given differential equation is a first-order linear nonhomogeneous equation with a particular solution of vp = K and a general solution of vh = Ae^(-t/c), where c is the capacitance and A is a constant determined by the initial condition.
  • #1
transgalactic
1,395
0
av'+v=1
so p(x) =1 q(x)=1
in order to get a homogeneous solution

the solution takes this equation
v'+v=1
and throws away the parameter "a"
 
Physics news on Phys.org
  • #2
Instead of looking at the solution right away what have you gotten so far? If you're totally stuck try to separate the variables.
 
  • #3
ok ill try to go by the theory:
av'+v=1
q(x)=1
p(x)=1
[tex]
t=\int p(x)dx=x
[/tex]
[tex]z=e^t[/tex]
[tex]y=\frac{1}{z}[\int q(x)zdx+c]=\frac{1}{e^x}[xzd+c] [/tex]
i get a different equation
??
 
  • #4
We have a differential equation that depends on the variable x. You somehow manage to add a variable t,z and d. I am not sure what you're doing. p(x) is the particular solution I take it and q(x) the homogeneous solution?

That means you've to solve [itex]aq'(x)+q(x)=0[/itex] first. Try to do that.

To find the particular solution you set the homogeneous equation equal to 1. It would be nice to get rid of the v' term, what kind of 'guess' function would do the trick?
 
  • #5
this is the first time i see that kind of expression

and i don't have the expression that i saw in the solution
 
  • #6
What do you have? Can you solve the homogeneous equation?

It appears you want to do it the hard way by solving [itex]v'(x)+\frac{1}{a}v=\frac{1}{a}[/itex] with [itex]P(x)=\frac{1}{a}, \; Q(x)=\frac{1}{a}[/itex]?
 
  • #7
a*dq/dx=q
a*dq/q=1/dx

(i can't do integral on both sides)
dq and dx must be on the numenator
i can't get them bot there
??
 
  • #8
You're over-complicating this problem. Just separate variables:

a(dv/dx) + v = 1

a(dv/dx) = 1 - v

(a dv)/(1 - v) = dx
 
  • #9
If he's following a differential equation course he may not be allowed to just tear the derivative apart like that (for the time being). It is easy to guess the particular solution here though and the homogeneous equation is easily found by integrating.

If you have [itex]a q'(x)+q(x)=0[/itex] then [itex]a q'(x)=-q(x)[/itex] and [itex]a q'(x)/q(x)=-1[/itex]. Try to integrate this expression by using a substitution u=q(x).
 
  • #10
dx said:
You're over-complicating this problem. Just separate variables:

a(dv/dx) + v = 1

a(dv/dx) = 1 - v

(a dv)/(1 - v) = dx

you are correct
i get:
a*ln|1-v|=x

but its don't have the step where i throw away the parameter "a"
like they did in the process
??
 
  • #11
No you would get [itex]-a \ln|1-v|[/itex] and don't forget the integration constant. Secondly if the answer booklet throws the a away the answer booklet is simply wrong.

Edit: Hint plug the answer from your book into the differential equation and check if both sides match. Whenever you're working with differential equations it's very easy to check your answer and you should teach yourself to do so.
 
  • #12
http://i40.tinypic.com/30lcmm0.gif

here is the full solution that i was presented
i can't see what is the continuity.
from the KCL eqaution i will get
v+cv'=1

i can't understand the disappearance of the parameter in the next line
it makes no sense
and this is a formal solution so it has to be correct

??
 
  • #13
A formal solution doesn't always have to be correct. And as I said you can check it by plugging it into the equation. Perhaps you should do that? Secondly they solve a different differential equation than you have. To solve it they used the method I suggested in post 9.

Also in the first equation there are two v_cs and one v. Is that supposed to be a v_c as well.

Oh before I forget plug THEIR answer into YOUR equation and see if the equation holds.
 
  • #14
your 9th post doesn't explain the continuety part
and they don't use the "q" like you did
 
  • #15
So I use the variable q and they name it v. What is the big deal? And for the fourth time now have you plugged their answer into your equation? If you do you notice that their answer is not a solution to your differential equation for all a-s. This means there are two options, either the differential equation you listed is the wrong one or their answer is wrong. I also asked you

Also in the first equation there are two v_cs and one v. Is that supposed to be a v_c as well.

which you just ignored. I am guessing it isn't.
 
Last edited:
  • #16
i can't understand where this solution starts
and where it ends

can you make steps?
 
  • #17
It is a bit hard when you don't cooperate. Which differential equation do you actually have to solve and I will ask again is v_c=v?
 
  • #18
transgalactic said:
http://i40.tinypic.com/30lcmm0.gif

here is the full solution that i was presented
i can't see what is the continuity.
from the KCL eqaution i will get
v+cv'=1

i can't understand the disappearance of the parameter in the next line
it makes no sense
and this is a formal solution so it has to be correct

??
Correct - the parameter should not disappear as it seems to have done in the next line. This is either a mistake that your instructor made or that you made when you were taking notes. On the other hand, where does c come from? I don't see anything in your drawing that shows this. Isn't this the capacitance, which you show as 4 F.?

So it appears that the problem is:
cv' + v = 1

From your notes, it appears that your initial condition is v(0) = 4. Shouldn't this be 2 volts? That's the voltage from the battery or power supply. The part about continuity is that the voltage across the capacitor has to be the same just before t = 0 as just after t = 0, which is the same as it must be right at t = 0.

Now, put the solution you have somewhere that you can't see it. In fact, throw it away! We don't need it any more. Stop telling us about it.

You need to do two things:
  1. Solve the homogeneous equation: cv' + v = 0, or maybe it is 4v' + v = 0. Cyosis and dx have given you at least a couple of ways to do this. Your solution to the homogeneous equation, vh will be Ae-t/c or maybe Ae-t/4, if c is as I think it is. From your initial condition you can solve for A.
  2. Find a particular (not private) solution to the nonhomogeneous equation. I would try vp = K, and substitute this into the equation cv' + v = 1 (or maybe 4v' + v = 1), to see what K needs to be.
Your general solution (not formal solution) will be the homogeneous solution vh plus the particular solution, vp.

You can check that it actually is a solution by substituting it back into your differential equation cv' + v = 1 (or maybe it's 4v' + v = 1). It should also be true that v(0) = 4 (or whatever it's supposed to be, as I mentioned above.

If your solution satisfies the DE and the initial condition, then that's the solution. If the one that you threw away is different in any appreciable way, then it is not the solution.
 
  • #19
4(dv/dx) + v = 1

4(dv/dx) = 1 - v

(4 dv)/(1 - v) = dx
-4ln(1-v)=x
e^x=(1-v)^(-4)
v(0) => 1=(1-v)^(-4)
1=1/((1-v)^(4))
(1-v)^(4)=1
v=1
i don't get this kind of expression
[tex]
Ae^{-t/4}
[/tex]
??
 
  • #20
transgalactica said:
4(dv/dx) + v = 1

4(dv/dx) = 1 - v

(4 dv)/(1 - v) = dx
-4ln(1-v)=x
e^x=(1-v)^(-4)

Almost correct, you forgot the integration constant.

transgalactic said:
v(0) => 1=(1-v)^(-4)
1=1/((1-v)^(4))
(1-v)^(4)=1
v=1

Wrong.

How can v possibly remain in the equation when you're calculating v(0)?
First think clearly what you want to solve. You want to find an expression for v(x). Therefore solve for v(x) first. After you have done that correctly you can use v(0)=4 (or whatever since this still isn't clear) to find the integration constant.
 
  • #21
what do i do after this step
-4ln(1-v)=x+c

??
 
  • #22
Easiest way is to divide by -4 on both sides.
 
  • #23
[tex]
ln(1-v)=\frac{x+c}{-4}
[/tex]
[tex]
1-v=e^{\frac{x+c}{-4}}
[/tex]
==
[tex]
v=-e^{\frac{x+c}{-4}}+1
[/tex]
what now
??
 
  • #24
No, that is not right there is already a -4 on the LHS. After you've divided both sides correctly by -4 you can exponentiate and solve for v.
 
  • #25
Do you know what you're trying to solve? For which function are you trying to solve this differential equation? It is for that function you need to solve.

Edit: Seeing as you're constantly editing your original question in its current shape you now have to use the boundary condition to find the value of the integration constant.
 
  • #26
i know i made a mistake
i fixed it
[tex]
ln(1-v)=\frac{x+c}{-4}
[/tex]
[tex]
1-v=e^{\frac{x+c}{-4}}
[/tex]
==
[tex]
v=-e^{\frac{x+c}{-4}}+1
[/tex]
what now
??
 
  • #27
Use the boundary condition to find the value of the integration constant.
 
  • #28
even if i will find the C
i will not have the homogeneous solution like in the solution
Be^ ...

??
 
  • #29
Please did you even read Mark's post? How many people will have to tell you that the solution as presented in the screenshot is complete rubbish. How often do I have to ask you to just plug the solution given by the answer model into your differential equation? This is the fifth time now. You will see that it will fail to be a solution thus it must be wrong.

To make it worse we still haven't been told what the voltage of the source is whether or not v and v_c are different variables etc etc.

Calculate c and see that it will give the correct solution.

And read Mark's post again he tells you clearly what all the ambiguities are with the problem you've provided us.
 

FAQ: Solving differential equation of this type

What is a differential equation?

A differential equation is a mathematical equation that describes the relationship between a function and its derivatives. It involves one or more variables and their rates of change.

What types of differential equations are there?

There are several types of differential equations, including ordinary, partial, linear, non-linear, and stochastic. Ordinary differential equations involve one independent variable, while partial differential equations involve multiple independent variables. Linear differential equations have derivatives raised to the first power, while non-linear equations have derivatives raised to higher powers. Stochastic differential equations involve randomness or uncertainty.

Why do we need to solve differential equations?

Differential equations are used to model real-world phenomena in many fields, such as physics, engineering, economics, and biology. By solving these equations, we can make predictions and understand the behavior of systems over time.

What methods are used to solve differential equations?

There are several methods for solving differential equations, including separation of variables, substitution, integration, and numerical methods. The method used depends on the type of equation and the specific problem being solved.

What are the applications of solving differential equations?

Differential equations have many applications in various fields. Some examples include predicting population growth, understanding the behavior of electric circuits, modeling chemical reactions, and analyzing the motion of objects under the influence of forces.

Back
Top