In physics and mathematics, an Ansatz (/ˈænsæts/; German: [ˈʔanzats], meaning: "initial placement of a tool at a work piece", plural Ansätze /ˈænsɛtsə/; German: [ˈʔanzɛtsə]) is an educated guess or an additional assumption made to help solve a problem, and which may later be verified to be part of the solution by its results.
An Ansatz is the establishment of the starting equation(s), the theorem(s), or the value(s) describing a mathematical or physical problem or solution. It typically provides an initial estimate or framework to the solution of a mathematical problem, and can also take into consideration the boundary conditions (in fact, an Ansatz is sometimes thought of as a "trial answer" and an important technique in solving differential equations).
After an Ansatz, which constitutes nothing more than an assumption, has been established, the equations are solved more precisely for the general function of interest, which then constitutes a confirmation of the assumption. In essence, an Ansatz makes assumptions about the form of the solution to a problem so as to make the solution easier to find.
It has been demonstrated that machine learning techniques can be applied to provide initial estimates similar to those invented by humans and to discover new ones in case no Ansatz is available.
Given a set of experimental data that looks to be clustered about a line, a linear Ansatz could be made to find the parameters of the line by a least squares curve fit. Variational approximation methods use Ansätze and then fit the parameters.
Another example could be the mass, energy, and entropy balance equations that, considered simultaneous for purposes of the elementary operations of linear algebra, are the Ansatz to most basic problems of thermodynamics.
Another example of an Ansatz is to suppose the solution of a homogeneous linear differential equation to take an exponential form, or a power form in the case of a difference equation. More generally, one can guess a particular solution of a system of equations, and test such an Ansatz by directly substituting the solution into the system of equations. In many cases, the assumed form of the solution is general enough that it can represent arbitrary functions, in such a way that the set of solutions found this way is a full set of all the solutions.