Wikipedia:Reference desk/Archives/Mathematics/2017 November 1

Mathematics desk
< October 31 << Oct | November | Dec >> November 2 >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is an 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 1

edit

Solution of a first order partial differential equation

edit

I am looking for the solution of a first order partial differential equation: x du/dx + 2y/5 du/dy = 0 With the initial condition: u(x,0) = 5π/4

The particular solution should give: For x=16 and y=4, cos(2u/5) = 1/2 ; For x=16√3 and y=4, cos(2u/5) = 1/4⁡ ; For x=80√5 and y=4, cos(2u/5) = 1/6⁡ ; Thank youAcspor (talk) 05:17, 1 November 2017 (UTC)[reply]

  Please do your own homework.
Welcome to Wikipedia. Your question appears to be a homework question. I apologize if this is a misinterpretation, but it is our aim here not to do people's homework for them, but to merely aid them in doing it themselves. Letting someone else do your homework does not help you learn nearly as much as doing it yourself. Please attempt to solve the problem or answer the question yourself first. If you need help with a specific part of your homework, feel free to tell us where you are stuck and ask for help. If you need help grasping the concept of a problem, by all means let us know. --Trovatore (talk) 05:46, 1 November 2017 (UTC)[reply]

Best practices to line up equals signs in a series of calculations

edit

I am wanting to write a series of calculations and I want to be able to write it so the equal signs line up. The only thing I can think of is using a { | or { {table } }. What is the best way to do this? e.g.

y = 2(x - 5)2
= 2(x2 - 10x + 25)
= 2x2 - 20x + 50

Nutster (talk) 18:20, 1 November 2017 (UTC)[reply]

Try alignat{} (Help:Displaying_a_formula#Fractions, matrices, multilines)
   <math>\begin{alignat}{3}
   y & = 2(x - 5)^2 \\
     & = 2(x^2 - 10x + 25) \\
     & = 2x^2 - 20x + 50
   \end{alignat}</math>
gives
 
--catslash (talk) 23:08, 1 November 2017 (UTC)[reply]
Probably better to just use \begin{align} for simple alignments like above. This assumes you're actually doing stuff inside a <math></math> block, but if you're writing multiline equations like this, that's probably best anyway. alignat can do weird things with spacing if you're not careful (like it did above with the equals sign). Compare:
 
--Deacon Vorbis (talk) 23:28, 1 November 2017 (UTC)[reply]