# Help me understand initial value problems!

**URL:** <https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927>\
**Category:** Factual Questions\
**Created:** [March 30, 2014, 8:25pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927 "2014-03-30T20:25:24Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 30, 2014, 8:25pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/1 "2014-03-30T20:25:24Z")

</div>

So one of the exercises in my math class that I’m supposed to solve goes something along the lines of this:

"Solve the initial value problem with the differential equation of

y’(x) = sqrt(abs(y(x)))

with y(0) != 0. Solve the initial value problem with y(0)=0. What can you say about the uniqueness of the solution?"

(Not sure if “uniqueness” is the right word; the german term is “eindeutigkeit”; implying that there’s one precise solution or something like that).

So I’ve followed the typical path (reduce it to dy/sqrt(y) = dx or dy/sqrt(-y) = dx depending on whether y is positive or not, integrate) and gotten to y = 1/4(x+c)^2 (I used a substitution of -y = z for y \< 0, I think that’s the way to go on that…). c is a constant from integration.

But now what? I don’t know what they mean by “solve”. I don’t know what I’m solving for. Is it just y? Is it y with a specific c? And what do they mean by “eindeutig”? In the given solution, they get as far as I got and continue with:

“y = 1/4(x+2\*sqrt(y\_0)^2 solves the initial value problem on y(0) != 0”

…But wouldn’t _any_ c != 0 solve for y(0) != 0?

But where it really loses me is the second part. Solve for y(0) = 0.

The solution says that y(x) = 0 is a solution, because y’ = 0 = sqrt(0), but what does that even mean? How do you get from y(x) = (x+c)^2 \* 1/4 to y(x) = 0? c = x? Is that even possible? But the next line really puzzles me:

y(x) =  
{1/4(x-a)^2 for x\>= a, a \>= 0 }  
{0 for x \<= 0. }

This was the solution the professor offered. I have _no_\*\* idea what a is supposed to be (well, to be fair, it’s alpha, maybe that helps someone).

This is gonna be a big part of the upcoming makeup test. Any help would be much appreciated. I just don’t understand what, exactly I’m solving for, and I have no idea what the “uniqueness quantification” is or how to demonstrate it.

---

<div class="post-metadata">

**Author:** ![ThisUsernameIsForbidden](https://avatars.discourse-cdn.com/v4/letter/t/b4bc9f/32.png) [@ThisUsernameIsForbidden](https://boards.straightdope.com/u/ThisUsernameIsForbidden)\
**Post date:** [March 30, 2014, 9:13pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/2 "2014-03-30T21:13:23Z")

</div>

So hard to read. Is there a board that allows you to embed latex?

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 30, 2014, 9:48pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/3 "2014-03-30T21:48:58Z")

</div>

I’m not a member at any and I don’t know how to use LaTeX. Probably something I should learn, I’m gonna need it next year for my bachelorarbeit anyways. 😕 I could try to simplify it… My main issue is still “what am I solving for”.

---

<div class="post-metadata">

**Author:** ![Asympotically\_fat](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Asympotically\_fat](https://boards.straightdope.com/u/Asympotically_fat)\
**Post date:** [March 30, 2014, 10:06pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/4 "2014-03-30T22:06:15Z")

</div>

You’re solving for the function y(x) and by uniqueness they mean does the value of y(0) completely specify y(x)?

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [March 30, 2014, 10:15pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/5 "2014-03-30T22:15:45Z")

</div>

Generally, when you solve a differential equation, you don’t get a particular _number,_ what you get is a _function_ whose derivative(s) fit the original differential equation you were given.

But wait! Generally, you don’t even get a _function_ – what you get is a _whole family_ of related functions, with a “constant of integration” somewhere in it, commonly denoted by the letter C.

If an initial value is given, you can go a step further, and find _one particular_ one of those functions (that is, one particular value of C). That is what the problem is asking for.

Many differential equations have a “trivial” solution as well as a family of useful solutions. The “trivial” solution is often simply y = 0 (that is, the constant function f(x) = 0 ) or something similar. Typically, these trivial solutions are of no particular interest, and are usually just ignored.

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 30, 2014, 10:37pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/6 "2014-03-30T22:37:41Z")

</div>

> [@Asympotically\_fat](#):
>
> You’re solving for the function y(x) and by uniqueness they mean does the value of y(0) completely specify y(x)?

Ah, so basically “If I have the value of y(0), can I say with complete certainty what c is?” And does c have to be a constant in that case, or can it be dependent on x?

> [@Senegoid](#):
>
> Generally, when you solve a differential equation, you don’t get a particular _number,_ what you get is a _function_ whose derivative(s) fit the original differential equation you were given.
> 
> But wait! Generally, you don’t even get a _function_ – what you get is a _whole family_ of related functions, with a “constant of integration” somewhere in it, commonly denoted by the letter C.
> 
> If an initial value is given, you can go a step further, and find _one particular_ one of those functions (that is, one particular value of C). That is what the problem is asking for.

Okay, so far so good. his makes a lot more sense now. I actually wrote down methods for solving for c in more complex cases, and didn’t understand what it meant. Now I get it! Thank you both! But this…

> [@](#):
>
> Many differential equations have a “trivial” solution as well as a family of useful solutions. The “trivial” solution is often simply y = 0 (that is, the constant function f(x) = 0 ) or something similar. Typically, these trivial solutions are of no particular interest, and are usually just ignored.

This is something I also don’t get. I understand that y(x) = 0 would be trivial, but how is it a solution if y’ is something like sqrt(abs(x))? Wouldn’t it just be straight-up wrong?

---

<div class="post-metadata">

**Author:** ![Asympotically\_fat](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Asympotically\_fat](https://boards.straightdope.com/u/Asympotically_fat)\
**Post date:** [March 30, 2014, 10:42pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/7 "2014-03-30T22:42:59Z")

</div>

If y(x) = 0 for all x, does y’(x) = sqrt(abs(y(x))) for all x?

If so y(x) = 0 is a solution.

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 30, 2014, 10:53pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/8 "2014-03-30T22:53:14Z")

</div>

But… it isn’t. If y(x) is a flat zero, then so is y’(x), and that’s not the same function as sqrt(abs(x)). That’s what’s bothering me.

---

<div class="post-metadata">

**Author:** ![friedo](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@friedo](https://boards.straightdope.com/u/friedo)\
**Post date:** [March 30, 2014, 10:56pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/9 "2014-03-30T22:56:25Z")

</div>

> [@ThisUsernameIsForbidden](#):
>
> So hard to read. Is there a board that allows you to embed latex?

The [Math Stack Exchange](http://math.stackexchange.com/) site does, although 99% of the questions there are way beyond my level. I like to peruse it occasionally, though.

---

<div class="post-metadata">

**Author:** ![Asympotically\_fat](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@Asympotically\_fat](https://boards.straightdope.com/u/Asympotically_fat)\
**Post date:** [March 30, 2014, 10:56pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/10 "2014-03-30T22:56:27Z")

</div>

> [@Budget\_Player\_Cadet](#):
>
> But… it isn’t. If y(x) is a flat zero, then so is y’(x), and that’s not the same function as sqrt(abs(x)). That’s what’s bothering me.

The differential equation to be solved isn’t y’(x) = sqrt(abs(x)) though.

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 30, 2014, 11:31pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/11 "2014-03-30T23:31:34Z")

</div>

Well, that’s a derp. Makes sense now. So how about inhomogenous vs. homogenous? Any easy way to tell at a glance which is which? The way proposed to solve inhomogenous involves first finding and solving the homogenous version (for example, going from xy’(x) = y + x^2 to xy’(x) = y and solving that one first to get to the next step); any pointers on how to generalize that? I’m pretty much just getting “the part of the equation with x in it you can’t get on one side” which is pretty weak sauce.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [March 30, 2014, 11:35pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/12 "2014-03-30T23:35:58Z")

</div>

> [@Asympotically\_fat](#):
>
> The differential equation to be solved isn’t y’(x) = sqrt(abs(x)) though.

Right: In case you still don’t see it, it’s y’ = sqrt(abs(y)).

(It might be easier to read if you just wrote y and y’ instead of y(x) and y’(x), and just remembered that x is the independent variable that y is a function of.)

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [March 31, 2014, 12:27am UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/13 "2014-03-31T00:27:16Z")

</div>

> [@Budget\_Player\_Cadet](#):
>
> Well, that’s a derp. Makes sense now.

I’m still a little confused, but if you’re satisfied, that’s good enough. 🙂

> [@](#):
>
> So how about inhomogenous vs. homogenous? Any easy way to tell at a glance which is which? The way proposed to solve inhomogenous involves first finding and solving the homogenous version (for example, going from xy’(x) = y + x^2 to xy’(x) = y and solving that one first to get to the next step); any pointers on how to generalize that? I’m pretty much just getting “the part of the equation with x in it you can’t get on one side” which is pretty weak sauce.

Here’s how _I’d_ solve your example equation, in case it helps:

xy’ = y + x[sup]2[/sup] is a **linear** first order differential equation.  
It can be put in the form y’ + P(x)y = Q(x) [in this case, y’ - (1/x)y = x]

Multiply through by the integrating factor e^(antiderivative of P(x))  
In this case, the antiderivative of –1/x is –(ln x) = ln x[sup]–1[/sup], and e^this = x[sup]–1[/sup].  
So, multiplying through by the integrating factor yields x[sup]–1[/sup]y’ – x[sup]–2[/sup]y = 1.

Take advantage of the fact that the left side is the derivative of x[sup]–1[/sup]y to antidifferentiate both sides w.r.t. x, and solve for y. (I get y = x[sup]2[/sup] + cx.)

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 31, 2014, 7:03am UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/14 "2014-03-31T07:03:24Z")

</div>

> [@Thudlow\_Boink](#):
>
> I’m still a little confused, but if you’re satisfied, that’s good enough. 🙂 Here’s how _I’d_ solve your example equation, in case it helps:
> 
> xy’ = y + x[sup]2[/sup] is a **linear** first order differential equation.  
> It can be put in the form y’ + P(x)y = Q(x) [in this case, y’ - (1/x)y = x]
> 
> Multiply through by the integrating factor e^(antiderivative of P(x))  
> In this case, the antiderivative of –1/x is –(ln x) = ln x[sup]–1[/sup], and e^this = x[sup]–1[/sup].  
> So, multiplying through by the integrating factor yields x[sup]–1[/sup]y’ – x[sup]–2[/sup]y = 1.
> 
> Take advantage of the fact that the left side is the derivative of x[sup]–1[/sup]y to antidifferentiate both sides w.r.t. x, and solve for y. (I get y = x[sup]2[/sup] + cx.)

I understand that method for solving _this_ equation, but how can I generalize that?

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [March 31, 2014, 1:57pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/15 "2014-03-31T13:57:26Z")

</div>

> [@Budget\_Player\_Cadet](#):
>
> I understand that method for solving _this_ equation, but how can I generalize that?

It depends on what kind of equation you’re trying to generalize it to: first-order or higher-order? linear or non-linear? etc. The method I described should work (theoretucally, assuming you can do the antidifferentiation) on any linear first-order equation.

Here’s a resource you may find helpful: [Paul’s Online Math Notes: Differential Equations](http://tutorial.math.lamar.edu/Classes/DE/DE.aspx). Since you asked about distinguishing between homogeneous and nonhomogenous equations, that’s covered on the [page](http://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx) on Basic Concepts of Second Order Equations.

The way I’ve learned and taught Diff Eq, I don’t get into the distinction between homogeneous and nonhomogenous equations when dealing with only first-order differential equations, but some books/teachers do. [Here’s](http://www.khanacademy.org/math/differential-equations/first-order-differential-equations/homogeneous-equations/v/first-order-homegenous-equations) what seems to be a discussion of first-order differential equations at Khan Academy (haven’t watched it myself).

Also, beware that there is also such a thing as differential equations with homogeneous coefficients, which is something different. I don’t think that’s what you were talking about, but just in case, [here’s](http://asmeurersympy.wordpress.com/2009/05/31/first-order-differential-equations-with-homogeneous-coefficients/) one description of that.

---

<div class="post-metadata">

**Author:** ![MikeS](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@MikeS](https://boards.straightdope.com/u/MikeS)\
**Post date:** [March 31, 2014, 2:02pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/16 "2014-03-31T14:02:19Z")

</div>

> [@Budget\_Player\_Cadet](#):
>
> I understand that method for solving _this_ equation, but how can I generalize that?

The method outlined can be used for solve _any_ differential equation of the form y’ + P(x)y = Q(x), regardless of what P(x) and Q(x) are. In fancy math-speak, this equation is _first-order_ (since the highest derivative of y that appears is the first derivative); _linear_ (since all terms that contain y are linear in y); and if Q(x) = 0, then the equation is _homogeneous_ as well.

An equation that is either non-linear or not first-order, however, cannot be solved using the steps that **Thudlow Boink** has outlined. In such a case, you have to look for other techniques, such as the method of quadrature, separability, or approximation methods such as power-series solutions or the WKB approximation. There’s no one-size-fits-all method for solving differential equations.

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [March 31, 2014, 2:56pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/17 "2014-03-31T14:56:52Z")

</div>

> [@Thudlow\_Boink](#):
>
> It depends on what kind of equation you’re trying to generalize it to: first-order or higher-order? linear or non-linear? etc. The method I described should work (theoretucally, assuming you can do the antidifferentiation) on any linear first-order equation.
> 
> Here’s a resource you may find helpful: [Paul’s Online Math Notes: Differential Equations](http://tutorial.math.lamar.edu/Classes/DE/DE.aspx). Since you asked about distinguishing between homogeneous and nonhomogenous equations, that’s covered on the [page](http://tutorial.math.lamar.edu/Classes/DE/SecondOrderConcepts.aspx) on Basic Concepts of Second Order Equations.

Wow… That actually makes a lot of sense. That’s the first explanationof differential equations I’ve seen which tries to explain it as though you weren’t already a fucking math whiz. Something our professors could learn something from. :rolleyes: Thanks for the resource. 😃

> [@](#):
>
> Also, beware that there is also such a thing as differential equations with homogeneous coefficients, which is something different. I don’t think that’s what you were talking about, but just in case, [here’s](http://asmeurersympy.wordpress.com/2009/05/31/first-order-differential-equations-with-homogeneous-coefficients/) one description of that.

Never handled that, don’t have the slightest idea what they’re talking about, so if it does appear on the test I’m basically fucked either way. But I guess it’s good to know about.

> [@MikeS](#):
>
> The method outlined can be used for solve _any_ differential equation of the form y’ + P(x)y = Q(x), regardless of what P(x) and Q(x) are. In fancy math-speak, this equation is _first-order_ (since the highest derivative of y that appears is the first derivative); _linear_ (since all terms that contain y are linear in y); and if Q(x) = 0, then the equation is _homogeneous_ as well.

Well, I’ll write it on the reminder sheet and see if I can’t recognize it. I mean, now I realize that they can be classified in certain ways and that there are certain sure-fire solutions to use, but I can’t for the life of me see which ones we’ve actually covered. I’ll just write down a few of the ones I think will be relevant, because let’s be honest - if the test _has_ second-degree ones, I’m basically screwed either way.

> [@](#):
>
> There’s no one-size-fits-all method for solving differential equations.

…Tomorrow’s gonna require a stop by the liquor store, methinks.

Either way, thanks for the help, everyone who’s offered it. I’ll look through your links again, **Thudlow** , and add a few things to my cheatsheet.

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [April 6, 2014, 7:50pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/18 "2014-04-06T19:50:06Z")

</div>

Wouldn’t you know it, there wasn’t a single one of these on the makeup exam. Sonovabitch.

Thanks anyways, guys. Passed it with a C-. Not the best grade, but on a class where you’ve got like a 65% failure rate… I’ll take what I can get.

---

<div class="post-metadata">

**Author:** ![Senegoid](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/senegoid/32/6606_2.png) [@Senegoid](https://boards.straightdope.com/u/Senegoid)\
**Post date:** [April 6, 2014, 8:21pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/19 "2014-04-06T20:21:12Z")

</div>

> [@Budget\_Player\_Cadet](#):
>
> Wouldn’t you know it, there wasn’t a single one of these on the makeup exam. Sonovabitch.

You understand, of course, that your laudable effort in studying these problems for this exam _caused_ that absence of such problems on the exam. (You might have used up the entire supply of available problems.) So, your effort was hardly wasted.

Anyway, just wait until the final.

---

<div class="post-metadata">

**Author:** ![Budget\_Player\_Cadet](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/budget_player_cadet/32/205_2.png) [@Budget\_Player\_Cadet](https://boards.straightdope.com/u/Budget_Player_Cadet)\
**Post date:** [April 6, 2014, 9:19pm UTC](https://boards.straightdope.com/t/help-me-understand-initial-value-problems/684927/20 "2014-04-06T21:19:34Z")

</div>

That was the final. Or rather, the retake of the final. 😛 And I passed. 😃
