How to solve this partial differential equation for $f$?

I want Mathematica to solve for the function $ f$ .

$ f$ satisfies the following constraints.

$ \frac{\partial}{\partial x} f(x,y) = y$

$ \frac{\partial}{\partial y} f(x,y) = x$

$ f(0,0)=0$

It would seem obvious that $ f(x,y) = x y$

Yet I cannot coax Mathematica into returning this result.

Here is my attempt. Mathematica just returns it. What am I missing?

DSolve[     {        x == D[f[x, y] , y]      , y == D[f[x, y] , x]      , f[0, 0] == 0     }  , {f[x, y], f[x, y]} , {x, y} ] 

Find an unknown matrix from an equation

I need to find an unknown matrix, H, from this equation:

K2 = Transpose[H].K1.H.

K1 and K2 are 2×2 matrices, and H is the unknown matrix, also 2×2. I know the first element of H, H(1,1)=1.

Can I simply use of some Mathematica functions? Because I tried with Solve:


Doesn’t work.

Please help me.

Specifically I have this matrices:

 K1 = {{10385.46, -306.12}, {-306.12, 225.8}};  K2 = {{10049.794, 378.59}, {378.59, 1807.16}};  H = {{1, h12}, {h21, h22}}; 

For which I have this warning:

Solve was unable to solve the system with inexact coefficients. The answer was obtained by solving a corresponding exact system and numericizing the result

Query about an equation in GAN-NMT paper

So i was studing the paper Adversarial Neural Machine Translation by Lijun Wu1, Yingce Xia2, Li Zhao3, Fei Tian3, Tao Qin3, Jianhuang Lai1,4 and Tie-Yan Liu. The link to the paper is :

In the paper , for feeding the sentence pairs into a GAN , they converted the word embeddings of the words in particular sentences and and concantenated into a 2D image like format to further perform convolution and pooling on it as is done in a typical GAN implementation.

In the words of the paper ,

The adversary is used to differentiate translation result $ y’$ and the ground-truth translation $ y$ , given the source language sentence $ x$ . To achieve that, one needs to measure the translative matching degree of source-target sentence pair $ (x, y)$ . We turn to Convolution Neural Network (CNN) for this task (Yin et al., 2015; Hu et al., 2014), since with its layer- by-layer convolution and pooling strategies, CNN is able to accurately capture the hierarchical corre- spondence of $ (x, y)$ at different abstraction levels. The general structure is shown in Figure 2. Specifically, given a sentence pair (x,y), we first construct a 2D image-like representation by simply concatenating the embedding vectors of words in x and y. That is, for i-th word $ x_{i}$ in $ x$ and j-th word $ y_{j}$ in sentence $ y$ , we have the following feature map: $ $ z^{0}_{i, j} = [ x_{i}^{T} , y_{j}^{T} ]^{T}$ $

I am not able to understand the significance of $ x_{i}^{T}$ , basically the $ T$ in the equation. Any help would be highly respected.

How to solve this equation by Solve?

I have an equation to be solved. But Mathematica does not work for it. I hope the solution x can be expressed as a function of a and b

Solve[(x/Sin[a])^2 == ((1 - x)/Sin[b])^2 + 1 + (x/Tan[a] - (1 - x)/Sin[b] Cos[b])^2 - 2 ((1 - x)/Sin[b]) Sqrt[1 + (x/Tan[a] - (1 - x)/Sin[b] Cos[b])^2] Sin[b - ArcTan[x/Tan[a] - (1 - x)/Sin[b] Cos[b]]], x]

By using $ x = \frac{y}{l}$ , the above equation is reduced from the following one:

Solve[(y/Sin[a])^2 == ((l - y)/Sin[b])^2 + l^2 + (y/Tan[a] - (l - y)/Sin[b] Cos[b])^2 - 2 ((l - y)/Sin[b]) Sqrt[l^2 + (y/Tan[a] - (l - y)/Sin[b] Cos[b])^2] Sin[b - ArcTan[(y/Tan[a] - (l - y)/Sin[b] Cos[b])/l]], y]

If the reduced equation can be simplified to zero, how about this original one? I cannot simplify the original one to zero. From this original equation, can we get y as a function of l, a and b?

Why does the average selling price differ in this math equation?

A product is sold in 3 sizes small medium and large, at a price of 920,1035 and 1035 giving a an average selling price of 996.76 (920+1035+1035/3=996.76)

Total units sold is 2337.41 at a total cost of 2 479 315.45 why does the average selling price equals (2 479 315.45/2337.41=1060.71) and not 996.76? These are actual numbers and should equal the average price?

How to solve a quadratic matrix equation?

\begin{equation} \boldsymbol{\omega^H} \boldsymbol{G} \boldsymbol{\Theta^H} \boldsymbol{h_r} \boldsymbol{h_r^H} \boldsymbol{\Theta} \boldsymbol{G^H} \boldsymbol{\omega}=a\ \boldsymbol{\omega^H} \boldsymbol{G} \boldsymbol{\Theta^H} \boldsymbol{H_e} \boldsymbol{H_e^H} \boldsymbol{\Theta} \boldsymbol{G^H} \boldsymbol{\omega}=b \end{equation} where $ \boldsymbol{\omega} \in C^{M \times 1}$ , $ \boldsymbol{G} \in C^{M \times N}$ , $ \boldsymbol{\Theta} \in C^{N \times N}$ is diagonal matrix, $ \boldsymbol{h_r} \in C^{N \times 1}$ , $ \boldsymbol{H_e} \in C^{N \times t}$ , $ t \geq 1$ . $ \boldsymbol{G}, \boldsymbol{h_r}, \boldsymbol{H_e}, a, b$ are deterministic.

Can I express $ \boldsymbol{\omega}$ as a funtion of $ \boldsymbol{\Theta}$ ?

Cantor’s continuum hypothesis, smoothness, turbulence and the Navier Stokes equation

With respect to proving the smoothness of the Navier Stokes equation (Clay Millennium Prize) is it sufficient to prove that perfect smoothness is not possible in geometry because it implies critical inconsistencies within geometry in Euclidean space (hence the NS eqn. is limited to solutions in a non-smooth continuum, and turbulence is a necessary part of nature? Here is my argument: Consider Figure 1, showing two line segments on a Cartesian plane, sides A and B parallel to the X and Y axis, forming sides of a right triangle. Let each line segment have unit length, so that the total length of the two line segments is 2 units. A right triangle

Bisecting A and B and rearrangement of the parts results in two triangles configuration (Figure 2). Two triangles joined at a vertex, resting in the line of the hypotenuse of the initial triangle Rearrangement cannot affect the total length, which remains 2 units. Observe that the number of points at which the shape touches the diagonal increases from 2 to 3 points. Now observe Figure 3. Further bisection an rearrangement forms 4 triangles lying in the line of the hypotenuse By symmetry with the previous construction, the total length remains two and the number of points at which the form touches the diagonal is 1 + 2n where n is the number of bisection and rearrangements of the sub-forms. Again, by symmetry, the width of the sub-form is halved with each iteration, and without the aid of a microscope (to help think about the model) it soon becomes difficult to distinguish between this form and that of the diagonal that spans between the end points of the construction. The symmetry of the system implies that there are triangles ‘all the way down’, independent of any iterative aspects. The construction converges on a line, and, in the limit, the number of places at which the form touches the diagonal is likewise 1 + 2^aleph0. According to Cantor this covers the diagonal (with a point ‘left over’). One might note that this varies from Cantor’s conjecture that 2^aleph0 is the cardinality of the reals, which rides on the back of the continuum hypothesis in that if there is no interpolate, then this follows by deduction. However this is relatively unimportant for the main thrust of this investigation. What is important is that had I chosen to break the first triangle into any multiple of prime numbers of sub triangles and continue in this fashion, the same reasoning would imply that there is upon the line 3^aleph0, 5^aleph0, 7^aleph0, 11^aleph0 …up into higher cardinalities of points on the diagonal. Because each end of the line is fixed with respect to these sets of points—each set ends at the same point—these sets of points cannot be set into one to one correspondence. Rather these are in two to three, two to five, three to five… correspondence; every possible ratio other than ratios involving the number 1. Is Cantor’s continuum hypothesis disconfirmed by this? That any one of these options covers the diagonal is not a paradox. However, that they all fill the same continuum is at least a paradox, and indeed inconsistent, for none of these points can land on the same place except at the endpoints of the line because they are based on prime numbers. The matter has nothing to do with their countability, only that all describe the same continuum, and they all cover the same diagonal. But they can’t all have the same cardinality. If this reasoning is correct, then Cantor’s continuum problem (Gödel 1983), ‘How many points are there on a straight line in Euclidean space?’ is problematic. Separately one may argue that there is a one to one relationship between each point, or line segment on the straight line, and that of the hypotenuse. In itself this is not immediately a problem until it is recognized that while the length of the diagonal is √2, by Pythagoras’s theorem, the length of the vertical and horizontal line segments remains 2. To a person inspecting the line, or conceiving the line, without prior knowledge of the internal properties of the construct, they would be in no position to distinguish between the given construction and a straight line. In fact it is questionable as to how the construction avoids further inconsistency, given that there seems to be no basis for introducing a consistent metric or scale in the limit case. Because every right-angled triangle may be similarly rearranged, there are an infinite number of examples of this kind in geometry. Because the same may be done with semicircles and every shape between the semicircle and the triangle, there is a transfinite number of problems. This implies directly, that our notion of space as being populated by points, as we suppose them to be, is flawed. It does lend credence to a treatment of space as being populated by some other kind of structure that is not a point as we think such to be. We might propose that this implies that at some level the notion of scale loses sense and that a more holistic theory would accommodate the dichotomy. But this prompts the question: at what length scale does the change take place and, given the symmetry of the first triangle with any triangle at a lower level, what could call a halt to the devolution? More particularly, what kind of principle could act selectively on a particular small triangle and not the one above or below it, and say ‘this is the smallest triangle’, which is exactly what we find evidence for in the world that we experience – minimum increments in the form of the Planck length and Planck time (Isham 1989).

I would contend that this implies that the idea of a smooth continuum is flawed at foundation, and that there exists a minimum separation between points (which implies the existence of a minimum metric). This further implies there should be a minimum length scale in physics, and a parallel abstraction in mathematics.

Does this then imply that the Navier Stokes equation also should expect inconsistencies at some length scale and that turbulence is a necessary part of the world, given sufficient time lapse, because there is a minimum scale or difference between points such that an exact solution is unsustainable when the scale is less than some particular value? If so, it seems to me that the NS equation is incomplete and should be rewritten in terms of minimum increments rather than as a differential equation.