Factor the right side as . On , division by gives a first-order linear differential equation with integrating factor
Multiplication makes the equation , so . At zero, , hence . Simplifying gives
Its derivative is
The derivation solves the initial-value problem on . The simplified expression also extends smoothly through and satisfies the original undivided equation there, giving a solution on all ; its pole prevents continuation through .
For the forcing , the method of undetermined coefficients gives the particular term . The term is resonant with a homogeneous solution, so use for its forcing; substitution gives .
Thus . The two initial conditions reduce to and , so , . The solution of the initial value problem is
The extra factor in the resonant particular solution is essential.
For , the composite trapezoidal rule is
With this becomes
Write the requested right Riemann sum as . The trapezoidal endpoint correction for a right Riemann sum gives
The integrand is continuous on , so the trapezoidal values converge to its definite integral; the endpoint correction tends to zero. Therefore
A horizontal strip at height has width . The sine term is odd, so the area is
Reflection symmetry in the -axis gives . For uniform density, the constant density cancels from the center of mass ratio. Its first moment in the vertical coordinate is
Consequently
The wider part below the horizontal axis accounts for the negative vertical coordinate.
Figure 1.
Uniform-density plate with area 16 and centroid at (0, -1/π)
. Original plot of the strip-defined region. The marked centroid lies below the horizontal axis; the highlighted sample strip illustrates the width used in the area and moment integrals. Details.
For positive bounds, integration by parts with and gives
For negative bounds, specify the complex logarithm on the negative real axis. With argument , namely the upper-bank boundary value of the principal logarithm, . Substitute in the real part:
More generally, a continuous branch taking argument replaces by . The imaginary part depends on that choice. The analytic principal branch excludes the negative axis itself, so the boundary-value convention is part of this interpretation.
Use partial fraction decomposition:
Integrating gives
This real antiderivative is valid on each interval avoiding , with its own integration constant. In particular, .
Complete the square:
The minimum locus of a squared function occurs where its residual vanishes. Hence the minimum is on , provided these points lie in the ellipse. Setting in the constraint gives , or . Thus
For the maximum, let . The ellipse gives
Also , whose absolute value is less than . Therefore . Equality is attained at , , giving
These attained bounds are global, not merely stationary-point tests. The minimizing locus is a parabola segment.
Figure 1.
Global extrema of the squared-residual quartic on an ellipse
. Contours show h inside the feasible ellipse. The blue parabola segment is the entire minimum set h = -6; the two marked boundary points attain the maximum 337/4. Details.
Write , , , , and , . Put . The product rule and chain rule give
Here are derivatives with respect to . In the first derivative, because the expression is scalar. Likewise if desired. This differentiation of a parameter-dependent quadratic form does not assume that is symmetric. The positive linear term contributes the positive chain-rule terms in the derivatives; it is independent of .
The gradient equations are
Thus gives , while gives . The Hessian matrix is
At both critical points the determinant is , so the Hessian is indefinite and the second-derivative test classifies both as saddle points. Direct substitution gives
The factorization also shows the crossing level-set branches through each saddle.

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact