Testwiki:Reference desk/Archives/Mathematics/2011 November 28

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < November 27 ! width="25%" align="center"|<< Oct | November | Dec >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


November 28

Series solutions of a differential equation

Hi, I've been stuck on this question for the past few hours: Let 2x(x1)y+3(x1)yy=0. This has a regular singular point at x=0.

  1. Find the indicial equation r2+p0r+q0, with roots r1 and r2.
  2. Find the series solutions:
    1. y1=xr1[6+αx+βx2+γx3+δx4]
    2. y2=xr2[9+Ax+Bx2+Γx3+Δx4]

I've figured out (using an indicial equation formula) that: p0=12 and pn=0 for n ≥ 1, and q0=0 and qn=12 for n ≥ 1. Therefore:r1=12 and r2=0.

I then tried to find a recurrence relation for r1: an(12)=[an1+...+a0]2n23n+1 which is undefined at n = 1... Where do my errors lie and what can I do to fix them?

I thank you greatly for your help. 216.221.38.254 (talk) 08:27, 28 November 2011 (UTC)

I don't know about the ps and qs, but I think you made a mistake in the recursion. I get, for the xn1+r term,
(2(n+r1)(n+r2)+3(n+r1)1)an1(r)=(2(n+r1)(n+r)+3(n+r))an(r), or
an(r)=n+r32n+r+12an1(r)
Arthur Rubin (talk) 19:19, 2 December 2011 (UTC)

Recipe for from-scratch logarithm table

What is the algorithm for creating a logarithm table from scratch (that is a colloquialism meaning from absolute basics; let 'basics' be such as the concepts of numbers and arithmetic in this case)? 20.137.18.53 (talk) 13:08, 28 November 2011 (UTC)

Choose a base, say 10, and compute the powers 100=1, 101=10, 102=100. The reverse of this is a logaritm table. That is not satisfactory because the only entries in the table are 1, 10, 100. Then choose another base closer to one, say 1.01. Compute the succesive powers
0       1
1    1.01
2  1.0201
3  1.0303
4  1.0406
5 1.05101
6 1.06152
7 1.07214
8 1.08286
9 1.09369
10 1.10462

and so on. The reverse of this table is a base-1.01 logarithm table. The price paid for having the method very basic is doing a lot of work. Bo Jacoby (talk) 13:40, 28 November 2011 (UTC).

Essentially, this is what John Napier did, using a base of 1-10-7. Logarithms of intermediate values can be estimated by interpolation. Only "basic" arithmetic is required. Henry Briggs had the idea of re-basing tables of logarithms to use a base of 10. Gandalf61 (talk) 14:14, 28 November 2011 (UTC)

Closed-form solution

Does this set of recursive equations have a corresponding set of closed-form solutions?

xn=3zn1+2xn1+yn1
yn=xn1+yn1zn1
zn=2xn1+yn1

--Melab±1 16:30, 28 November 2011 (UTC)

Consider the matrix
M=[213111210]
and the column
Xn=[xnynzn]
Then the equations are
Xn=MXn1
and the solution is
Xn=MnX0
So
[xnynzn]=[213111210]n[x0y0z0]
is the general solution. Bo Jacoby (talk) 16:37, 28 November 2011 (UTC).
I don't doubt that you are right, but I don't see how a matrix solves the equation. --Melab±1 17:32, 28 November 2011 (UTC)
Could they possibly be presented in this form:
xn=
yn=
zn=
--Melab±1 17:36, 28 November 2011 (UTC)
The matrix is by far the most compact way of writing it. It also lends nicely to generalising for arbitrary coefficients in your equations. To find solutions for a particular n, just do the n multiplications of the matrix, then you get xn etc. in terms of your starting values by multiplying X0 with Mn. If the vector X0 happens to be an eigenvector of the matrix M, however, then raising M to the power n can be replaced by the nth power of the corresponding eigenvalue...but you won't really get anything more compact than that. Icthyos (talk) 20:49, 28 November 2011 (UTC)
Well it could be made easier by computing the eigenvalues and eigenvectors. Dmcq (talk) 20:54, 28 November 2011 (UTC)
Could it possible work if two of the variables were in the same term? --Melab±1 22:17, 28 November 2011 (UTC)
What do you mean by this? It's a bit unclear. Icthyos (talk) 23:27, 28 November 2011 (UTC)
I meant like if you had a term in one of the equations like xz. --Melab±1 15:21, 29 November 2011 (UTC)
Then the equations would no longer be linear, and none of the linear algebra techniques suggested in this section would really work (at least, not globally). Gandalf61 (talk) 15:44, 29 November 2011 (UTC)
I probably should have expanded. The matrix is probably diagonalizable as the eigenvalues are probably different, i.e. it can be put in the form M = P−1DP where D only has the diagonal entries set so that Mn is P−1DnP. With this Dn is simply a diagonal matrix with each diagonal element to the power n. This will all give you a nice closed form. The only (!) downside is that the eigenvalues probably involve some nasty cubic roots so this is really only if you are happy with straight numeric approximation rather than a great big cubic root in there. Dmcq (talk) 00:11, 29 November 2011 (UTC)
The eigenvalues and eigenvectors are here at wolfram alpha. You can use these to get a closed form solution without using any matrix, but your closed form will involve some very nasty constants like this: λ3=1((1+i3)(1/2(27+i3387))1/3)/(232/3)(7(1i3))/(22/3(3(27+i3387))1/3) (You'll notice this is imaginary, but when combined with the other similarly complicated parts of the solution you magically get real numbers.) Hopefully you don't actually need to know what the closed form solution is, only that it exists. In that case the answer is "yes" (if you allow cube roots in your "closed form"). Staecker (talk) 00:22, 29 November 2011 (UTC)
No, this isn't right. The numbers' distances from zero grows each time. Those equations I gave you were like this originally:
an=xn1+cnyn1+bn
bn=xn1+yn1zn1
cn=bn+zn1xn1
and
xn=an
yn=bn
zn=cn,
which I used to get:
xn=3zn1+2xn1+yn1
yn=xn1+yn1zn1
zn=2xn1+yn1.
--Melab±1 15:15, 29 November 2011 (UTC)
Check your working. I get:
xn=2xn1+yn1zn1
yn=xn1+yn1zn1
zn=yn1.
Gandalf61 (talk) 15:44, 29 November 2011 (UTC)

Dmcq's solution is, using Staecker's numbers:

[xnynzn]=P1DnP[x0y0z0]

where

D=[3.838470001.397660000.559192]

is a diagonal matrix of eigenvalues, such that

Dn=[(3.83847)n000(1.39766)n000(0.559192)n]

and where the columns of

P=[1.781561.146446.364880.2753460.89522312.1706111]

are eigenvectors, and where

P1=[0.3888560.2235470.2456760.3704080.1364060.6974630.01844840.08714120.0568609]

is the inverse matrix to P. Bo Jacoby (talk) 02:17, 29 November 2011 (UTC).

Putting together everything that was said so far, the (numerically approximate) closed-form solution is
xn=(0.424651(1.39766)n0.1174220.559192n+0.6927713.83847n)x0+(0.156382(1.39766)n0.5546450.559192n+0.3982633.83847n)y0+(0.799601(1.39766)n+0.3619140.559192n+0.4376873.83847n)z0
yn=(0.331597(1.39766)n+0.2245270.559192n+0.107073.83847n)x0+(0.122114(1.39766)n+1.060560.559192n+0.06155293.83847n)y0+(0.624385(1.39766)n0.6920310.559192n+0.0676463.83847n)z0
zn=(0.370408(1.39766)n0.01844840.559192n+0.3888563.83847n)x0+(0.136406(1.39766)n0.08714140.559192n+0.2235473.83847n)y0+(0.697463(1.39766)n+0.0568610.559192n+0.2456763.83847n)z0
-- Meni Rosenfeld (talk) 10:29, 29 November 2011 (UTC)