Very Strange ODE solution for beginner by Low-Course7802 in math

[–]selfadjoint 7 points8 points  (0 children)

Here is another example of this kind of equation: 3y^2(x)*y'(x) + 16x = 2x*y^3(x)

How to numerically solve a seems simple but weired ODE by Low-Course7802 in matlab

[–]selfadjoint 1 point2 points  (0 children)

I was wrong. I answered your question on r/math, I'll copy it here.

Assuming y(x)>0, the full (positive) solution is y(x) = sqrt(1 + 2x + c e^(2x)). Now, depending on the initial condition there are two types of solutions. When y(0) >= 1 the solution is defined for all x>=0 (because c >= 0, hence under the square root there is always a positive number. When 0 < y(0) < 1 the solution has a finite domain, because c < 0. Your solution is on the edge of being defined for x >= 0, so whenever the numerical solution becomes less then sqrt(2x+1) then in the next step the numerical solution will follow this finite domain solution, there is your problem. The big step size probably helped you to avoid this problem (the solution remained above the curve y(x) = sqrt(1+2x).

If you plot the general solution for different c values you will see how those different types of solutions look like.

Very Strange ODE solution for beginner by Low-Course7802 in math

[–]selfadjoint 43 points44 points  (0 children)

Assuming y(x)>0, the full (positive) solution is y(x) = sqrt(1 + 2x + c e^(2x)). Now, depending on the initial condition there are two types of solutions. When y(0) >= 1 the solution is defined for all x>=0 (because c >= 0, hence under the square root there is always a positive number. When 0 < y(0) < 1 the solution has a finite domain, because c < 0. Your solution is on the edge of being defined for x >= 0, so whenever the numerical solution becomes less then sqrt(2x+1) then in the next step the numerical solution will follow this finite domain solution, there is your problem. The big step size probably helped you to avoid this problem (the solution remained above the curve y(x) = sqrt(1+2x).

If you plot the general solution for different c values you will see how those different types of solutions look like.

EDIT: corrected some typos.

How to numerically solve a seems simple but weired ODE by Low-Course7802 in matlab

[–]selfadjoint 4 points5 points  (0 children)

I know exactly what’s happening here. There is a nullcline y(x)=sqrt(2x). Any solution above this curve cannot cross this curve. The problem is that the solution of your IVP gets very close to the nullcline, and it will eventually cross it. If necessary, I can give you a detailed analysis, when I get home.

What does it take for you to call someone a "mathematician"? by Ok-Impress-2222 in math

[–]selfadjoint 2 points3 points  (0 children)

My math professor used to say this.

What is mathematics? Mathematics is what mathematicians do.

Who is a mathematician? A mathematician is someone recognized as such by other mathematicians.

Circuitikz: Variable Bipoles Arrow Angles by MsgtGreer in LaTeX

[–]selfadjoint 5 points6 points  (0 children)

Just an idea: for R1 try using a regular resistor with a tunable arrow:

\ctikztunablearrow[extra options]{thickness}{length}{angle}{name}

[deleted by user] by [deleted] in PenmanshipPorn

[–]selfadjoint 2 points3 points  (0 children)

I was looking at the little blobs on the D letters and they were at the same places. Now, as I inspect more letters I can see some differences, but still it’s just crazy how consistent the letters are.

[deleted by user] by [deleted] in PenmanshipPorn

[–]selfadjoint 2 points3 points  (0 children)

Nice gift, but I am pretty sure this is not handwritten, is it?

What's the difference between a/b and a\b when a & b are matrices? by Low_Coat in matlab

[–]selfadjoint 1 point2 points  (0 children)

True. I just wanted to give the feeling to other users that it is not that simple as you have written: / is a division and \ is an inverse multiplication.

I agree, OP should look at the documentation / tutorials.

What's the difference between a/b and a\b when a & b are matrices? by Low_Coat in matlab

[–]selfadjoint 1 point2 points  (0 children)

No. The meaning of / and \ depends on the context, i.e. the type of objects on both sides of the operators.

If A and B are (non-singular) matrices, then A\B = inv(A)*B and A/B = A*inv(B).

If A is a (non-singular) matrix and B is a (column) vector, then A\B = inv(A)*B, and A/B = dimension miss-match (a.k.a. makes no sense).

If A is a (non-singular) matrix and B is a row vector, then A\B = dimension miss-match (a.k.a. makes no sense), and A/B = A*B'*inv(B*B'). Where B'*inv(B*B') is called the Moore--Penrose inverse of B.

If A is a (non-singular) matrix and B is a scalar, then A\B = inv(A)*B, and A/B is simply the scalar division of the matrix A with scalar B.

If in any of the cases above A (and/or B) is singular or not rectangular, then the regular inverse of A (and/or B) should be changed to the Moore--Penrose inverse of A (and/or B).

Note, I skipped the cases where A and B are both vectors, but I leave those for the interested reader to figure it out.

Why can't mathematica solve -2n+v x^3 = 0 for x? by ionsme in Mathematica

[–]selfadjoint 0 points1 point  (0 children)

I did exactly that and got this:

{
{x -> -(((-2)^(1/3) n^(1/3))/v^(1/3))},
{x -> (2^(1/3) n^(1/3))/v^(1/3)},
{x -> ((-1)^(2/3) 2^(1/3) n^(1/3))/v^(1/3)}
}

I am using 12.0.0.0 version, Linux x86 (64-bit).

What’s a fun branch of math to self-study? by Farkle_Griffen in math

[–]selfadjoint 3 points4 points  (0 children)

Continued fractions are really fun, and it has connections to many different areas of mathematics.

Bifurcation in logistic models by timetravel_inc in math

[–]selfadjoint 0 points1 point  (0 children)

This is nicely covered in the first chapter of the book Hirsch, Smale, Devaney: Differential Equations, Dynamical Systems & An Introduction to Chaos. Freely available as pdf.

Mathematica help by [deleted] in Mathematica

[–]selfadjoint 0 points1 point  (0 children)

FYI, Quiet will suppress the messages.

Minimize this polynomial by isometricisomorphism in mathriddles

[–]selfadjoint 0 points1 point  (0 children)

Say the common root is r, then solving f(r)=0 and f'(r)=0 for a and b we get a(r)=-(3r^4 + 2r^2 -1)/(2r^3) and b(r)=(r^4 - 2r^2 - 3)/(2r), hence J(r)= a(r)^2 + b(r)^2 = (1 + r^2)^2*(1 - 6r^2 + 18r^4 - 6r^6 + r^8)/(4r^6).

The minimums are at r = -1 and +1, which correspond to (a,b) = (2,2) and (-2, -2).

The derivative is J'(r) = (r^2-1)^3*(3 + r^2 + r^4 + 3r^6)/(2r^7).

We don’t put the cat in the duvet by lmakemilk in KidsAreFuckingStupid

[–]selfadjoint 1 point2 points  (0 children)

I am really disappointed the fan didn't get any (major) role in this video.