The algebraic identity
suggests for every , and substitution verifies the functional equation.
In fact , since . Conversely, for each , the quadratic equation has a positive root . Thus the functional equation forces exactly on ; its values on are arbitrary. The displayed function is one convenient choice on the full required domain.
Replace by , which stays in the domain of the functional equation. Writing and gives the linear system
Twice the second equation minus the first gives , so the only possible function is
To check existence as well as uniqueness, substitute this expression: .
This is the pointwise order on a function space. Each of the three partial order axioms follows from the corresponding axiom in .
For reflexivity, for every , so . For antisymmetry, if and , then for every ; equality of functions therefore gives . For transitivity, if , then for every , so .
Thus is a partially ordered set. The argument also covers an empty domain , since then there is exactly one function .
Use natural logarithms; the same argument works for any fixed base greater than . The function is increasing for , since its derivative is . With natural logs the sole negative summand is at . Put .
For all sufficiently large with , monotonicity and the triangle inequality give
These are fixed constants and an eventual bound, proving
For another fixed logarithm base there are still only finitely many negative initial terms, which are absorbed in .
Since , Newton's method becomes
For , subtraction from gives
Also . Hence . Equivalently, the positive excess above is multiplied by the function from part (c): , with .
Thus the iterates form a decreasing sequence bounded below by . By the monotone convergence theorem for sequences they have a limit . Passing to the limit in the continuous update gives , or . Therefore . The exact error formula also shows quadratic convergence near this root.
The cumulative distribution function is
For an absolutely continuous probability distribution, the probability density function is a nonnegative integrable function with
Thus interval probabilities are integrals of , and almost everywhere, in particular at continuity points of .
The word “continuous” in the source is understood in this density sense. A merely continuous cumulative distribution function need not possess a probability density function; it can instead describe a singular continuous distribution.
Evaluate the supplied function once at each positive integer, retaining its largest value so far. In particular do not initialize the maximum to zero: might be negative everywhere.
PROCEDURE record(f, emit);
VAR n, best, y: INTEGER;
BEGIN
  best := f(1);
  emit(1);
  n := 2;
  WHILE TRUE DO
    y := f(n);
    IF y > best THEN
      emit(n);
      best := y
    END;
    n := n + 1
  END
END record;
At the loop head the loop invariant is , best , and precisely the record values with argument less than have been emitted, in increasing argument order. The first argument is a record because its comparison set is empty. The strict test correctly excludes ties. Updating best only on a strict increase preserves the loop invariant.
Exactly one call of f is made per processed argument. For an arbitrary supplied function, an unexamined argument can have a value larger than all previous values, so skipping its evaluation cannot be correct in general. This assumes is a total, deterministic function; the requested infinite computation ignores integer overflow.
For these real-valued functions, means that there exist constants and such that
The absolute values matter because neither function is assumed nonnegative. The constants are independent of ; finitely many earlier values do not affect Big O notation.
The function is even, so every sine coefficient is zero. Its mean coefficient is
For , compute . The product-to-sum identity makes this integral zero for odd and gives for even . Thus the missing Fourier coefficients are for odd and for every , with . Equivalently,
The Fourier series converges to this continuous periodic function; there is no jump value to average.
The coordinate sum is , while the sum of their cubes is . Along the parametrized curve, the composite function is therefore . Differentiate, or apply the multivariable chain rule, to obtain
The gradient vanishes exactly when and , giving the four points . The Hessian matrix is . It is positive definite at , negative definite at , and indefinite at the two mixed-sign points. Thus is a strict local minimum, a strict local maximum, and are saddle points by the second-derivative test. Their respective function values are , , and zero at both saddle points.
Substituting cancels both the cubic and linear terms, leaving for every real . Thus the constrained maximum and minimum are both zero, attained everywhere on the constraint line. The feasible set is unbounded, but the restricted function is constant; compactness is not needed here.
The continuous function attains a global maximum and minimum on the closed disc by the extreme value theorem. All four unconstrained stationary points have squared distance eight, so none lies in its interior. The extrema must therefore lie on .
The constraint gradient is nonzero on that circle, so Lagrange multipliers apply:
Subtracting gives . If , the constraint gives . Otherwise ; substitution into either equation gives . This is impossible, since on the circle. Thus the diagonal points are the only candidates. Comparing their values gives
With unit strip width, the composite trapezoidal rule gives
For Simpson's rule, the even integer arguments are the odd-numbered interior grid positions. Therefore
The requested two-decimal answers are and . The supplied component sums are individually rounded; they should not be treated as exact simultaneous identities. Computing from the original function gives approximately and , respectively, with the same two-decimal results.
For , write the proposed density as . Since the first factor is positive, nonnegativity for all such requires ; if , values sufficiently close to one make it negative. With , the positive tail is integrable only if . In that case normalization requires
Imposing now gives . Combining this with yields
Conversely, these conditions ensure a nonnegative, integrable function with integral one, so they are sufficient as well as necessary. The endpoint is allowed: the density vanishes at the left-hand boundary limit, not on its whole support.
The natural tree fold replaces each data constructor by the supplied operation:
fold :: (a -> b) -> (b -> b -> b) -> Tree a -> b
fold one two (One x)   = one x
fold one two (Two l r) = two (fold one two l) (fold one two r)
Its reconstruction identity is fold One Two = id. More generally a function h equals fold one two on finite trees exactly when h (One x) = one x and h (Two l r) = two (h l) (h r). These equations determine the result by structural induction, expressing why this is the natural structural recursion for this datatype.
Apply the supplied function to corresponding elements while preserving the stopping rule:
zipWith :: (a -> b -> c) -> [a] -> [b] -> [c]
zipWith f []     _      = []
zipWith f _      []     = []
zipWith f (x:xs) (y:ys) = f x y : zipWith f xs ys
Because of lazy evaluation, constructing a result cons does not by itself evaluate f x y.
Compose the three functions:
reverse :: [a] -> [a]
reverse = abs . rev . rep
The representation built by rep has constructors. rev preserves that count, and abs traverses it once. Their three linear bounds add to total time, improving the direct quadratic reversal. The correctness equations for representation, reversal and abstraction compose to the required reversed list.
The function is injective and surjective, with inverse function . Equality forces . For any , the input also lies in and satisfies . Applying the function twice returns the original input.
There are six functions: the four power maps for , and the two constant maps . All calculations in this part are in the finite field .
Put . Multiplicativity gives , so the absence of zero divisors forces or . If , then for every , giving only the constant-zero map.
Suppose . For nonzero , the equality shows . The nonzero elements form a cyclic group generated by , in the order . Choosing determines every value on this group by . Each satisfies , so all four choices give consistent group homomorphisms.
Finally, satisfies and for every . The choice works for all four group maps. The choice forces every nonzero value to be , giving one extra map, the constant-one map. Thus the count is . The four zero-preserving possibilities are exactly the four displayed power maps. This is the special case with five elements of multiplicative self-maps of a finite field.