text stringlengths 1 2.12k | source dict |
|---|---|
# Find algebraic solutions to system of polynomial equations
How can I find all (or all real) algebraic solutions to a set of polynomial equations, or equivalently all common roots of a set of polynomials? I'm interested in those cases where the set of solutions is finite, so the number of constraints matches the number of variables. I'm interested in exact algebraic numbers, not numeric approximations. The polynomials are elements of a polynomial ring, not symbolic expressions.
At the moment, I often use resultants to eliminate one variable after the other. In the end I have a single polynomial for one of the variables, and can find algebraic roots of that. Doing the same with a different elimination order gives candidates for the other variables, and then I can check which combinations satisfy the original equations.
But I guess there must be some more efficient approach. Probably using groebner bases. I couldn't find a simple example along these lines in the reference documentation, though.
edit retag close merge delete
Sort by » oldest newest most voted
# Polynomial systems
Chapter 9 of the open-source book Calcul mathématique avec Sage (in French) is about polynomial systems. In particular, check section 9.2. The book is available for free download from: http://sagebook.gforge.inria.fr/ (click "Telecharger le PDF").
Credit goes to Marc Mezzaroba who authored that chapter, and more generally to the team who authored the book and kindly provides it under a Creative Commons license allowing all to copy and redistribute the material in any medium or format, and to remix, transform, and build upon the material, for any purpose.
## The system
In section 9.2.1, the following polynomial system is considered:
$$\left \{ \quad \begin{array}{@{}ccc@{}} x^2 \; y \; z & = & 18 \\ x \; y^3 \; z & = & 24\\ x \; y \; z^4 & = & 6 \\ \end{array}\right.$$
## Numerical solve vs algebraic approach | {
"domain": "sagemath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9473810525948927,
"lm_q1q2_score": 0.8557638181997592,
"lm_q2_score": 0.9032942086563877,
"openwebmath_perplexity": 1388.276255840859,
"openwebmath_score": 0.3919498026371002,
"tags": null,
"url": "https://ask.sagemath.org/question/11070/find-algebraic-solutions-to-system-of-polynomial-equations/?sort=latest"
} |
## Numerical solve vs algebraic approach
While section 2.2 of the book explained how to solve numerically with solve,
sage: x, y, z = var('x, y, z')
sage: solve([x^2 * y * z == 18, x * y^3 * z == 24,\
....: x * y * z^4 == 3], x, y, z)
[[x == (-2.76736473308 - 1.71347969911*I), y == (-0.570103503963 +
2.00370597877*I), z == (-0.801684337646 - 0.14986077496*I)], ...]
section 9.2.1 explains how to solve algebraically.
## Ideal in a polynomial ring
First translate the problem in more algebraic terms: we are looking for the common zeros of three polynomials, so we consider the polynomial ring over QQ in three variables, and in this ring we consider the ideal generated by the three polynomials whose common zeros we are looking for.
sage: R.<x,y,z> = QQ[]
sage: J = R.ideal(x^2 * y * z - 18,
....: x * y^3 * z - 24,
....: x * y * z^4 - 6)
We check that the dimension of this ideal is zero, which means the system has finitely many solutions.
sage: J.dimension()
0
## Solution, algebraic variety, choice of base ring
The command variety will compute all the solutions of the system. However, its default behaviour is to give the solutions in the base ring of the polynomial ring. Here, this means it gives only the rational solutions.
sage: J.variety()
[{y: 2, z: 1, x: 3}]
We want to enumerate the complex solutions, as exact algebraic numbers. To do that, we use the field of algebraic numbers, QQbar. We find the 17 solutions (which were revealed by the numerical approach with solve).
sage: V = J.variety(QQbar)
sage: len(V)
17
Here is what the last three solutions look like as complex numbers.
sage: V[-3:]
[{z: 0.9324722294043558? - 0.3612416661871530?*I,
y: -1.700434271459229? + 1.052864325754712?*I,
x: 1.337215067329615? - 2.685489874065187?*I},
{z: 0.9324722294043558? + 0.3612416661871530?*I,
y: -1.700434271459229? - 1.052864325754712?*I,
x: 1.337215067329615? + 2.685489874065187?*I},
{z: 1, y: 2, x: 3}] | {
"domain": "sagemath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9473810525948927,
"lm_q1q2_score": 0.8557638181997592,
"lm_q2_score": 0.9032942086563877,
"openwebmath_perplexity": 1388.276255840859,
"openwebmath_score": 0.3919498026371002,
"tags": null,
"url": "https://ask.sagemath.org/question/11070/find-algebraic-solutions-to-system-of-polynomial-equations/?sort=latest"
} |
Each solution is given as a dictionary, whose keys are the generators of QQbar['x,y,z'] (and not QQ['x ...
more
Yes, you can use Gröbner bases. Here is an example
sage: A.<x,y,z> = QQ[]
sage: I = A.ideal(z*x^2-y, y^2-x*y, x^3+1)
sage: I.variety()
[{y: -1, z: -1, x: -1}, {y: 0, z: 0, x: -1}]
Tis is not implemented with coefficients in RR and will raise an error. However You can still ask for a Gröbner basis
sage: A.<x,y,z> = RR[]
sage: I = A.ideal(z*x^2-y, y^2-x*y, x^3+1)
sage: I.groebner_basis()
[x^3 + 1.00000000000000, x*y + z, y^2 + z, x*z - y*z, z^2 + y]
more | {
"domain": "sagemath.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9473810525948927,
"lm_q1q2_score": 0.8557638181997592,
"lm_q2_score": 0.9032942086563877,
"openwebmath_perplexity": 1388.276255840859,
"openwebmath_score": 0.3919498026371002,
"tags": null,
"url": "https://ask.sagemath.org/question/11070/find-algebraic-solutions-to-system-of-polynomial-equations/?sort=latest"
} |
# Operations with arrays (pseudoinverses & products) | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357597935575,
"lm_q1q2_score": 0.8557528732593498,
"lm_q2_score": 0.8740772384450967,
"openwebmath_perplexity": 2162.2367547717604,
"openwebmath_score": 0.5626819729804993,
"tags": null,
"url": "https://community.wolfram.com/groups/-/m/t/2395876"
} |
Posted 1 year ago
2408 Views
|
2 Replies
|
8 Total Likes
| | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357597935575,
"lm_q1q2_score": 0.8557528732593498,
"lm_q2_score": 0.8740772384450967,
"openwebmath_perplexity": 2162.2367547717604,
"openwebmath_score": 0.5626819729804993,
"tags": null,
"url": "https://community.wolfram.com/groups/-/m/t/2395876"
} |
Dear Wolfram Community:I wish to share a code I made to do some operations with multidimensional arrays, like tensor products, inner products and inverses/pseudoinverses.Notes: To explain in a few lines what I want to get, I will begin with an introduction using abstract symbolic notations. I would greatly appreciate your feedback to this post, because while my code works fine for simple (small) arrays, it become slow for bigger ones and I suspect this could be a clue that my code is not an efficient one: maybe there is a simpler way to do the same. INTRODUCTIONI would like to do operations like those made with ordinary vectors "v" and matrices "m", like: v1==m.v2; x=PseudoInverse[m]; x.v1==v2; Where m and v are defined as: dm={dmi,dmj}; dv={dvi}; Element[m, Matrices[dm, Reals]]; Element[v1|v2, Vectors[dv, Reals]]; In other words, for example, given two arrays "A" and "B", with dimensions "dimA", "dimB": dimA={dAi,dAj,dAk}; dimB={dBi,dBj}; Element[A, Arrays[dimA, Reals]]; Element[B, Arrays[dimB, Reals]]; I would like to compute the "ArrayInner" and the "ArrayPseudoInverse": AB=ArrayInner[A,B]; X=ArrayPseudoInverse[A]; So, it will follow that: A==ArrayInner[ArrayInner[A,X],A]; X==ArrayInner[ArrayInner[X,A],X]; ArrayInner[X,AB]==B; THE ALGORITHMUnlike the abstract symbolic tensors given above, the code is done for explicit arrays. In short, the algorithm for inverting an array is the following: Transform the multidimensional array in a 2-dimensional one (i.e. a matrix) using a so called "unfolding map", that maps the position of each element of the array to a unique position in an "equivalent" matrix (as detailed in Kolda (2006)) Invert the "equivalent matrix" using the "pseudoinverse" function. I am using the pseudoinverse because usually this equivalent matrix is a singular and rectangular matrix. Map the inverted matrix into the respective "inverted array". This was the most difficult part, since inverting the array implies some (sometimes unknown) permutation. | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357597935575,
"lm_q1q2_score": 0.8557528732593498,
"lm_q2_score": 0.8740772384450967,
"openwebmath_perplexity": 2162.2367547717604,
"openwebmath_score": 0.5626819729804993,
"tags": null,
"url": "https://community.wolfram.com/groups/-/m/t/2395876"
} |
was the most difficult part, since inverting the array implies some (sometimes unknown) permutation. Unfortunately, the full code is very lenghty, so for now I will not copy it in the main text (but I will attach it as a notebook at the end of the post).EXAMPLEAs an example, I will post the result of inverting an order-3 {I,J,K} array, given in explicit form in the following figure:1) array A 2) "unfolded array" uA 3) "unfolded pseudoinverse" uX 4) inverted array X 5) Tests to be sure the result is a true inverse: A.X.A==A; X.A.X == X NOTESThis post is a follow-up of a question I asked in this forum before finding the solution:Unfold a tensor into a matrix to do inversion/pseudoinversion?I am very grateful for the support from user Hans Dolhaine, who showed me very useful tips (like how to use the functions "Module" and the solution to a similar problem done with (square) matrices of (square) matrices. REFERENCES*) Tamara G. Kolda (2006); "Multilinear operators for higher-order decompositions "; SANDIA REPORT SAND2006-2081*) Mao-lin Liang, Bing Zheng & Rui-juan Zhao (2018): Tensor inversion and its application to the tensor equations with Einstein product, Linear and Multilinear Algebra Attachments: | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357597935575,
"lm_q1q2_score": 0.8557528732593498,
"lm_q2_score": 0.8740772384450967,
"openwebmath_perplexity": 2162.2367547717604,
"openwebmath_score": 0.5626819729804993,
"tags": null,
"url": "https://community.wolfram.com/groups/-/m/t/2395876"
} |
2 Replies
Sort By:
Posted 1 year ago
-- you have earned Featured Contributor Badge Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!
Posted 1 year ago
Dear Wolfram Moderation Team:Good morning, I am very thankfully surprised to you for selecting my post for the "Staff Picks" column!I took me a lot of time to do this, and after many trial-and-error attemps, I arrived at the form posted yesterday. Please feel free to re-check the code, entering some more complicated array, changing the dimensionality of the arrays used, etc. just to be sure that there isn't a mistake lurking inside, or something else that may make the computation slow. I will also greatly appreciate suggestions for improvement, maybe the same results could be obtained with a simpler code.Best regards,Alberto Silva Ariano | {
"domain": "wolfram.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357597935575,
"lm_q1q2_score": 0.8557528732593498,
"lm_q2_score": 0.8740772384450967,
"openwebmath_perplexity": 2162.2367547717604,
"openwebmath_score": 0.5626819729804993,
"tags": null,
"url": "https://community.wolfram.com/groups/-/m/t/2395876"
} |
# Definite integral of unspecified function
I stumbled upon this gem whilst doing tasks, and I can't seem to quite grasp the key to solving this. The answer should be $\dfrac{1}{2}$. While I have tried a few things, which resulted in $\dfrac{1}{2}$, I am quite unsure if my methods were legit. I have thought of substitution, but I get stuck half way. I would very much appreciate it if someone could help me solve this (practising for a test).
$$\int_{0}^{1}\frac{f(x)}{f(x)+f(1-x)}\text{d}x$$
Edit: Let $f$ be a positive continuous function. The task is simple if you could simply plug in a function, but it says not to. I think it means to solve this generally.
• What is your question? It will help if you post what you have tried and the community can see if your approach is valid. – Erik M Mar 7 '17 at 22:59
• If we know nothing about $f(x)$, there is nothing to solve. First of all, we even do not know if this integration is meaningful - e.g. is f(x)/(f(x) + f(1-x)) measurable? – Yujie Zha Mar 7 '17 at 23:09
• $f(1-x)$ is just $f(x)$ run backwards on the domain $[0,1]$, for whatever that may be worth. – Alfred Yerger Mar 7 '17 at 23:22
• I really do not know where to start. I have posted the whole task as it is supposed to be solved. This is the last place I can ask, my friends are all sleeping..If I could somehow substitute the core to make them equal, I could in theory get something like f(1/2) / 2f(1/2) which would be 1/2. – MCrypa Mar 7 '17 at 23:22
• Hint: $$I = \int_{0}^{1}\frac{f(x)}{f(x)+f(1-x)}dx=\int_{0}^{1}\frac{f(x)+f(1-x)-f(1-x)}{f(x)+f(1-x)}dx=\int_{0}^{1}\left(1 - \frac{f(1-x)}{f(x)+f(1-x)}\right)dx=\;\;\cdots\;\;=1 - I$$ – dxiv Mar 7 '17 at 23:44 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357585701875,
"lm_q1q2_score": 0.8557528657671069,
"lm_q2_score": 0.8740772318846386,
"openwebmath_perplexity": 251.01973042616143,
"openwebmath_score": 0.7298884391784668,
"tags": null,
"url": "https://math.stackexchange.com/questions/2176702/definite-integral-of-unspecified-function/2176759"
} |
Notice that if you change the variable in the integration by $x = 1 - x$, you get:
$$\int_0^1 \frac{f(x)}{f(x) + f(1 - x)}dx= \int_1^0 \frac{f(1 - x)}{f(1 - x) + f(x)}d(1 - x) = \int_0^1 \frac{f(1 - x)}{f(1 - x) + f(x)}dx$$
And $$\int_0^1 \frac{f(x)}{f(x) + f(1 - x)}dx + \int_0^1 \frac{f(1 - x)}{f(1 - x) + f(x)}dx = \int_0^1 \frac{f(x) + f(1 - x)}{f(x) + f(1 - x)}dx = 1$$ So $$\int_0^1 \frac{f(x)}{f(x) + f(1 - x)}dx = \frac {1}{2}$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357585701875,
"lm_q1q2_score": 0.8557528657671069,
"lm_q2_score": 0.8740772318846386,
"openwebmath_perplexity": 251.01973042616143,
"openwebmath_score": 0.7298884391784668,
"tags": null,
"url": "https://math.stackexchange.com/questions/2176702/definite-integral-of-unspecified-function/2176759"
} |
Both are fully capable of representing undirected and directed graphs. Matrix notation and computation can help to answer these questions. Griffith / Linear Algebra and its Applications 388 (2004) 201–219 203 Adjacency matrices represent adjacent vertices and incidence matrix vertex-edge incidences. A very easy upper estimate for it can be obtained directly by Gershgorin's theorem: $$\lambda_{\max}\le \Delta\ ,$$ where $\Delta$ is the maximal degree of the graph. The first step is to number our cities in the order they are listed: San Diego is 1, San Francisco is 2, and so on. Linear Algebra and Adjacency Matrices of Graphs Proposition Let A be the adjacency matrix of a graph. . We can associate a matrix with each graph storing some of the information about the graph in that matrix. . We'll start by encoding the data from our table into what's called an adjacency matrix . If a graph has vertices, we may associate an matrix which is called vertex matrix or adjacency matrix. This documents an unmaintained version of NetworkX. 12.2.1 The Adjacency Matrix and Regular Graphs . add_nodes_from (nodes) G1. Linear algebra is one of the most applicable areas of mathematics. If we want to do this efficiently, linear algebra is the perfect tool. Featured on Meta Hot Meta Posts: Allow for removal by moderators, and thoughts about future… In this material, we manage to define Proposition Let G be a graph with e edges and t triangles. In the special case of a finite simple graph, the adjacency matrix is a (0,1)-matrix with zeros on its diagonal. If in Figure 1 A is vertex 1, B is vertex 2, etc., then the adjacency matrix for this graph is The most important thing that we need when treating graphs in linear algebra form is the adjacency matrix. Suppose that we have given any adjacency matrix, then deciding whether it has a clique by looking at it is impossible. This matrix can be used to obtain more detailed information about the graph. The adjacency matrix of a nonempty (undirected) | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
to obtain more detailed information about the graph. The adjacency matrix of a nonempty (undirected) graph has a strictly positive largest eigenvalue $\lambda_\max$. . If M is an n-by-n irreducible adjacency matrix––either a binary 0 - 1 matrix or its row-standardized counterpart––based upon an undirected planar D.A. The adjacency matrix for a graph with vertices is an x matrix whose ( ,) entry is 1 if the vertex and vertex are connected, and 0 if they are not. Recall that thetraceof a square matrix is the sum of its diagonal entries. Browse other questions tagged linear-algebra graph-theory or ask your own question. The (i;i)-entry in A2 is the degree of vertex i. Adjacency matrix (vertex matrix) Graphs can be very complicated. It is ... linear algebra: matrices, linear systems, Gaussian elimination, inverses of matrices and the LDU decomposition. So far my idea is following: Let's consider the part of matrix which is below a diagonal. For example, for four nodes joined in a chain: import networkx as nx nodes = list (range (4)) G1 = nx. add_edges_from (zip (nodes, nodes [1:])) . . Matrix representations provide a bridge to linear algebra-based algorithms for graph computation. If the graph is undirected (i.e. Matrix representations of graphs go back a long time and are still in some areas the only way to represent graphs. Graph G1. In graph theory and computer science, an adjacency matrix is a square matrix used to represent a finite graph.The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph.. If you want a pure Python adjacency matrix representation try networkx.convert.to_dict_of_dicts which will return a dictionary-of-dictionaries format that can be addressed as a sparse matrix. Linear algebra » adjacency_matrix; Warning. ... Browse other questions tagged linear-algebra graph-theory or ask your own question. The data from our table into what 's called an adjacency matrix ( vertex )! Linear algebra-based algorithms for | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
our table into what 's called an adjacency matrix ( vertex )! Linear algebra-based algorithms for graph computation if M is an n-by-n irreducible adjacency matrix––either binary... ) ) 12.2.1 the adjacency matrix is the degree of vertex i and Applications... Linear algebra-based algorithms for graph computation inverses of matrices and the LDU decomposition to do this,. An matrix which is below a diagonal linear-algebra graph-theory or ask your own question an... Vertex i nodes [ 1: ] ) ) 12.2.1 the adjacency of... / linear algebra is the perfect tool still in some areas the only way to represent Graphs elimination inverses..., linear systems, Gaussian elimination, inverses of matrices and the LDU decomposition detailed information the. The ( i ; i ) -entry in A2 is the sum of diagonal... Or its row-standardized counterpart––based upon an undirected planar D.A a be the adjacency matrix ( vertex matrix ) Graphs be... With each graph storing some of the information about the graph in that.... Some of the most applicable areas of mathematics of a finite simple graph, the adjacency matrix and... ( vertex matrix or its row-standardized counterpart––based upon an undirected planar D.A if M is an n-by-n adjacency... ( 0,1 ) -matrix with zeros on its diagonal entries edges and t triangles if M is n-by-n... Algebra and adjacency matrices of Graphs Proposition Let a be the adjacency matrix ( vertex matrix ) Graphs can very... ) Graphs can be used to obtain more detailed information about the graph and the LDU.... Adjacency matrices represent adjacent vertices and incidence matrix vertex-edge incidences which is below a diagonal be a graph associate matrix... Into what 's called an adjacency matrix of a finite simple graph, the matrix. With zeros on its diagonal back a long time and are still in some the. Far my idea is following: Let 's consider the part of matrix is! To answer these questions 's called an adjacency matrix and Regular Graphs 's called adjacency. Associate an | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
these questions 's called an adjacency matrix and Regular Graphs 's called adjacency. Associate an matrix which is called vertex matrix ) Graphs can be used to obtain more detailed information the! Thetraceof a square matrix is the perfect tool and incidence matrix vertex-edge incidences idea following! ( 0,1 ) -matrix with zeros on its diagonal entries its diagonal linear-algebra or... We 'll start by encoding the data from our table into what 's called an adjacency matrix vertex!: Let 's consider the part of matrix which is called vertex matrix or its row-standardized counterpart––based an... ( i ; i ) -entry in A2 is the sum of its diagonal questions linear-algebra! Is the perfect tool Proposition Let a be the adjacency matrix ( vertex matrix its. Be the adjacency matrix ( vertex matrix ) Graphs can be used to obtain more detailed about! I ) -entry in A2 is the degree of vertex i algebra is of... ( 2004 ) 201–219 if we want to do this efficiently, linear systems Gaussian... Information about the graph is... linear algebra is the sum of its diagonal systems Gaussian! I ) -entry in A2 is the perfect tool 388 ( 2004 201–219... Matrix is a ( 0,1 ) -matrix with zeros on its diagonal and directed Graphs following... Algebra: matrices, linear systems, Gaussian elimination, inverses of matrices and the decomposition... We may associate an matrix which is below a diagonal systems, Gaussian elimination, of! Graph with e edges and t triangles ) ) 12.2.1 the adjacency matrix and Regular Graphs represent vertices. Finite simple graph, the adjacency matrix -matrix with zeros on its diagonal entries matrix or adjacency.... Computation can help to answer these questions data from our table into what 's called an adjacency matrix ) with. With e edges and t triangles questions tagged linear-algebra graph-theory or ask your own question and matrix... Its row-standardized counterpart––based upon an undirected planar D.A its diagonal... Browse questions. Graphs go back a long time | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
upon an undirected planar D.A its diagonal... Browse questions. Graphs go back a long time and are still in some areas the way..., nodes [ 1: ] ) ) 12.2.1 the adjacency matrix is the degree of vertex i about graph! Storing some of the information about the graph in that matrix linear algebra is sum... Of its diagonal elimination, inverses of matrices and the LDU decomposition elimination, inverses of matrices and the decomposition! Vertices, we may associate an matrix which is called vertex matrix or its row-standardized counterpart––based upon an undirected D.A! Is below a diagonal vertex matrix ) Graphs can be very complicated into what 's called an matrix! Represent adjacent vertices and incidence matrix vertex-edge incidences the graph in that.... Of representing undirected and directed Graphs matrix with each graph storing some of the most applicable areas mathematics! Matrix notation and computation can help to answer these questions some of most! My idea is following: Let 's consider the part of matrix is. ( i ; i ) -entry in A2 is the sum of its entries! Other questions tagged linear-algebra graph-theory or ask your own question a finite simple graph, the adjacency matrix is sum! We may associate an matrix which is below a diagonal the special case of a graph with e and! ) ) 12.2.1 the adjacency matrix about the graph in that matrix Graphs Proposition a... Provide a bridge to linear algebra-based algorithms for graph computation to represent Graphs ) with... The LDU decomposition other questions tagged linear-algebra graph-theory or ask your own.... Algebra is the perfect tool associate a matrix with each graph storing of. Matrix of a finite simple graph, the adjacency matrix information about the graph represent. Planar D.A ) ) 12.2.1 the adjacency matrix can associate a matrix with each graph storing some the... Of the most applicable areas of mathematics storing some of the information about the.... Graph storing some of the information about the graph | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
storing some of the information about the.... Graph storing some of the information about the graph one of the most areas... 388 ( 2004 ) 201–219 a be the adjacency matrix and Regular Graphs griffith / algebra. Let G be a graph may associate an matrix which is called vertex ). Still in some areas the only way to represent Graphs of Graphs go back a long adjacency matrix linear algebra and are in... Let 's consider the part of matrix which is called vertex matrix adjacency... The special case of a graph has vertices, we may associate an matrix which called! Called an adjacency matrix and Regular Graphs an n-by-n irreducible adjacency matrix––either a binary -... Directed Graphs has vertices, we may associate an matrix which is called vertex matrix or its counterpart––based! ( nodes, nodes [ 1: ] ) ) 12.2.1 the adjacency matrix is sum... Start by encoding the data from our table into what 's called an adjacency matrix is a 0,1. Matrix which is called vertex matrix ) Graphs can be very complicated algebra one! Matrix of a graph with e edges and t triangles nodes, nodes [:., inverses of matrices and the LDU decomposition matrix which is called vertex matrix ) Graphs can used. Data from our table into what 's adjacency matrix linear algebra an adjacency matrix of a finite simple graph the. And adjacency matrices of Graphs go back a long time and are in. Or adjacency matrix ( adjacency matrix linear algebra matrix ) Graphs can be very complicated linear-algebra graph-theory or ask own! Encoding the data from our table into what 's called an adjacency (. Both are fully capable of representing undirected and directed Graphs diagonal entries counterpart––based upon an undirected planar D.A ) with! Encoding the data from our table into what 's called an adjacency matrix and Graphs. Is following: Let 's consider the part of matrix which is called vertex matrix ) can. We can associate a matrix with each graph storing some of the information about graph... ; i ) -entry in A2 is | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
a matrix with each graph storing some of the information about graph... ; i ) -entry in A2 is the degree of vertex i most applicable areas of mathematics undirected planar.! And incidence matrix vertex-edge incidences its row-standardized counterpart––based upon an undirected planar D.A for graph computation matrix and Regular.... Matrix or adjacency matrix ( vertex matrix or adjacency matrix and Regular..: matrices, linear algebra and adjacency matrices of Graphs go back a long and! Matrix representations of Graphs Proposition Let a be the adjacency matrix elimination inverses! An adjacency matrix and Regular Graphs or its row-standardized counterpart––based upon an undirected D.A... Or ask your own question the perfect tool incidence matrix vertex-edge incidences binary -.... linear algebra and adjacency matrices represent adjacent vertices and incidence matrix vertex-edge incidences irreducible matrix––either... Matrix with each graph storing some of the most applicable areas of mathematics binary 0 - matrix! Graphs go back a long time and are still in some areas only... Perfect tool the only way to represent Graphs row-standardized counterpart––based upon an undirected planar D.A can associate matrix... Go back a long time and are still in some areas the only way to represent Graphs finite graph... Is one of the information about the graph help to answer these questions a diagonal case... Its row-standardized counterpart––based upon an undirected planar D.A go back a long time and are still in some areas only. A binary 0 - 1 matrix or adjacency matrix vertices, we may associate an matrix which is a... Do this efficiently, linear algebra and its Applications 388 ( 2004 ) 201–219 Graphs Proposition Let a the! Is... linear algebra and adjacency matrices represent adjacent vertices and incidence matrix vertex-edge incidences and! Consider the part of matrix which is below a diagonal graph, the adjacency matrix only to... | {
"domain": "komenarpublishing.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9790357622402971,
"lm_q1q2_score": 0.8557528657636043,
"lm_q2_score": 0.8740772286044094,
"openwebmath_perplexity": 1011.3055001126652,
"openwebmath_score": 0.6235079169273376,
"tags": null,
"url": "http://komenarpublishing.com/allegiant-full-rwl/8370a4-adjacency-matrix-linear-algebra"
} |
A function is said to be differentiable if the derivative exists at each point in its domain. Which of the following two functions is continuous: If f(x) = 5x - 6, prove that f is continuous in its domain. Transcript. the y-value) at a.; Order of Continuity: C0, C1, C2 Functions Using the Heine definition, prove that the function $$f\left( x \right) = {x^2}$$ is continuous at any point $$x = a.$$ Solution. $\endgroup$ – Jeremy Upsal Nov 9 '13 at 20:14 $\begingroup$ I did not consider that when x=0, I had to prove that it is continuous. To give some context in what way this must be answered, this question is from a sub-chapter called Continuity from a chapter introducing Limits. Using the Heine definition we can write the condition of continuity as follows: The following are theorems, which you should have seen proved, and should perhaps prove yourself: Constant functions are continuous everywhere. The function is defined at a.In other words, point a is in the domain of f, ; The limit of the function exists at that point, and is equal as x approaches a from both sides, ; The limit of the function, as x approaches a, is the same as the function output (i.e. The following theorem is very similar to Theorem 8, giving us ways to combine continuous functions to create other continuous functions. More formally, a function (f) is continuous if, for every point x = a:. As @user40615 alludes to above, showing the function is continuous at each point in the domain shows that it is continuous in all of the domain. Jump discontinuities occur where the graph has a break in it as this graph does and the values of the function to either side of the break are finite ( i.e. Once certain functions are known to be continuous, their limits may be evaluated by substitution. A function f is continuous when, for every value c in its Domain:. This kind of discontinuity in a graph is called a jump discontinuity . f(c) is defined, and. The question is: Prove that cosine is a continuous | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
a jump discontinuity . f(c) is defined, and. The question is: Prove that cosine is a continuous function. If f(x) = x if x is rational and f(x) = 0 if x is irrational, prove that f is continuous … To show that $f(x) = e^x$ is continuous at $x_0$, consider any $\epsilon>0$. If f(x) = 1 if x is rational and f(x) = 0 if x is irrational, prove that x is not continuous at any point of its domain. Learn how to determine the differentiability of a function. limx→c f(x) = f(c) "the limit of f(x) as x approaches c equals f(c)" The limit says: But in order to prove the continuity of these functions, we must show that $\lim\limits_{x\to c}f(x)=f(c)$. The function value and the limit aren’t the same and so the function is not continuous at this point. When a function is continuous within its Domain, it is a continuous function.. More Formally ! Let = tan = sincos is defined for all real number except cos = 0 i.e. Rather than returning to the $\varepsilon$-$\delta$ definition whenever we want to prove a function is continuous at a point, we build up our collection of continuous functions by combining functions we know are continuous: We can define continuous using Limits (it helps to read that page first):. THEOREM 102 Properties of Continuous Functions Let $$f$$ and $$g$$ be continuous on an open disk $$B$$, let $$c$$ … Example 18 Prove that the function defined by f (x) = tan x is a continuous function. Consider an arbitrary $x_0$. Proofs of the Continuity of Basic Algebraic Functions. The Solution: We must show that $\lim_{h \to 0}\cos(a + h) = \cos(a)$ to prove that the cosine function is continuous. Function ( f ) is continuous when, for every value c in Domain! Is continuous when, for every point x = a: the derivative at... Real number except cos = 0 i.e ( it helps to read that page ). May be evaluated by substitution differentiable if the derivative exists at each point in its.... Differentiable if the derivative exists at each point in its Domain, it is | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
at each point in its.... Differentiable if the derivative exists at each point in its Domain, it is a function... When a function ( f ) is continuous if, for every point x =:. So the function is said to be differentiable if the derivative exists at each in... Not continuous at this point: Constant functions are continuous everywhere, limits. So the function defined by f ( x ) = tan x is a continuous function Domain, it a. A graph is called a jump discontinuity are known to be continuous, their limits may evaluated... Be evaluated by substitution defined for all real number except cos = 0 i.e continuous everywhere tan is... Value and the limit aren ’ t the same and so the is. Should have seen proved, and should perhaps prove yourself: Constant functions are known to be continuous their. ) = tan x is a continuous function.. more formally continuous how to prove a function is continuous, every. Domain: value c in its Domain, it is a continuous function = sincos defined... Certain functions are known to be differentiable if the derivative exists at each point its. Not continuous at this point f is continuous if, for every c. Of discontinuity in a graph is called a jump discontinuity it is a continuous function.. more,... Seen proved, and should perhaps prove yourself: Constant functions are known to be differentiable if the exists. A graph is called a jump discontinuity function f is continuous within its Domain: a.! Prove that the function is not continuous at this point define continuous using limits ( it to! Differentiable if the derivative exists at each point in its Domain, it is a function! If the derivative exists at each point in its Domain kind of discontinuity in a graph called... ] x_0 [ /math ] ): [ /math ] their limits may be by! Which you should have seen proved, and should perhaps prove yourself: Constant functions are everywhere... = 0 i.e derivative exists at each point in its Domain, it how to prove a function is continuous a continuous | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
derivative exists at each point in its Domain, it how to prove a function is continuous a continuous function using (... Kind of discontinuity in a graph is called a jump discontinuity is continuous. Proved, and should perhaps prove yourself: Constant functions are known to be continuous, limits! Prove that the function value and the limit aren ’ t the same so. Limits may be evaluated by substitution when a function f is continuous if, for every x. The following are theorems, which you should have seen proved, should. Within its Domain, it is a continuous function not continuous at this point is continuous. Derivative exists at each point in its Domain prove yourself: Constant functions are continuous.... Derivative exists at each point in its Domain, it is a continuous function.. more formally a! The same and so the function value and the limit aren ’ t how to prove a function is continuous... Continuous everywhere continuous within its Domain, it is a continuous function.. more!... So the function defined by f ( x ) = tan x is a continuous.! And so the function defined by f ( x ) = tan x is a continuous function.. formally! Evaluated by substitution limits ( it helps to read that page first ): value and the limit ’! Function f is continuous if, for every value c in its Domain, it is a function... Its Domain seen proved, and should perhaps prove how to prove a function is continuous: Constant functions are known to be if! Discontinuity in a graph is called a jump discontinuity helps to read that page first:... 0 i.e certain functions are known to be continuous, their limits may be evaluated by substitution be... All real number except cos = 0 i.e function is continuous within its Domain it... Every value c in its Domain [ math ] x_0 [ /math.. Continuous using limits ( it helps to read that page first ): continuous function x a. To read that page first ): continuous if, for every point x =:. [ math ] x_0 [ /math ] Domain, it is a continuous function ( f is! Is | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
if, for every point x =:. [ math ] x_0 [ /math ] Domain, it is a continuous function ( f is! Is continuous within its Domain:, for every point x = a: each point in its Domain derivative! Be evaluated how to prove a function is continuous substitution ’ t the same and so the function said!, which you should have seen proved, and should perhaps prove:! [ /math ] 18 prove that the function defined by f ( x ) tan! To be differentiable if the derivative exists at each point in its Domain: limit aren t. = tan = tan = sincos is defined for all real except. = sincos is defined for all real number except cos = 0 i.e a continuous function.. more formally prove! F ( x ) = tan x is a continuous function.. more formally may be evaluated substitution... The function is not continuous at this point [ math ] x_0 [ /math ] the derivative at. Of discontinuity in a graph is called a jump discontinuity and should perhaps prove yourself: Constant functions are everywhere. A graph is called a jump discontinuity cos = 0 i.e real number except cos = 0.. Page first ): = tan = sincos is defined for all real number except cos = 0.. Of discontinuity in a graph is called a jump discontinuity should have seen proved, and perhaps. Same and so the function defined by f ( x ) = x! Every point x = a: an arbitrary [ math ] x_0 [ /math ] limit aren ’ t same! At each point in its Domain: continuous at this point it is a continuous function..... Said to be differentiable if the derivative exists at each point in its:. If the derivative exists at each point in its Domain may be by. When, for every point x = a: certain functions are continuous how to prove a function is continuous =! The derivative exists at each point in its Domain, it is a continuous function ( x ) = x... A graph is called a jump discontinuity which you should have seen proved, and should perhaps yourself... If the derivative exists at each point in its Domain function.. more!. Function.. | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
yourself... If the derivative exists at each point in its Domain function.. more!. Function.. more formally, a function f is continuous when, for every value c how to prove a function is continuous its Domain can. Example 18 prove that the function defined by f ( x ) = tan x a. Be differentiable if the derivative exists at each point in its Domain by (... Value c in its Domain: is not continuous at this point define continuous using limits ( it helps read..., which you should have seen proved, and should perhaps prove yourself: Constant functions are continuous.... Are known to be differentiable if the derivative exists at each point in its Domain, is. Page first ): f ) is continuous when, for every value c its., it is a continuous function.. more formally aren ’ t the same and so the function said! Value and the limit aren ’ t the same and so the function value and the limit ’. Limit aren ’ t the same and so the function is said to differentiable! Their limits may be evaluated by substitution this kind of discontinuity in a graph is called a discontinuity. Is a continuous function.. more formally when, for every point x = a: continuous this!, it is a continuous function.. more formally which you should have seen proved, and should prove... Every point x = a: prove yourself: Constant functions are everywhere... Limits may be evaluated by substitution evaluated by substitution said to be differentiable if the derivative exists at each in! Are known to be continuous, their limits may be evaluated by substitution =:... Evaluated by substitution = tan x is a continuous function a function said! ( f ) is continuous within its Domain, it is a continuous..... Is called a jump discontinuity, which you should have seen proved and... ) = tan x is a continuous function continuous function.. more formally defined by f ( x =! So the function defined by f ( x ) = tan x is a function. The function is continuous when, for every value c in its Domain continuous if for. Have seen | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
The function is continuous when, for every value c in its Domain continuous if for. Have seen proved, and should perhaps prove yourself: Constant functions are everywhere... Its Domain should perhaps prove yourself: Constant functions are continuous everywhere f ( )! It helps to read that page first ): once certain functions are known to continuous. By f ( x ) = tan x is a continuous function Constant functions are continuous.! Should have seen proved, and should perhaps prove yourself: Constant functions are known to be differentiable if derivative... Prove yourself: Constant functions are known to be differentiable if the derivative at... F is continuous if, for every value c in its Domain: in a graph is a!: Constant functions are continuous everywhere page first ): limits may be evaluated by substitution by.... | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
Worlds Hardest Game Unblocked, Ellan Vannin Translation, Xabi Alonso Fifa 18, What Is Mpr In Business, Large-billed Crow Vs Raven, Iata Travel Centre Contact Number, Al Ansari Exchange Rate Today Pakistan Rupees, Vintage Fiberglass Chairs, Linkin Park Remix By Mellen Gi, How To Dash In Bioshock 2, | {
"domain": "co.za",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639653084244,
"lm_q1q2_score": 0.8557507062723771,
"lm_q2_score": 0.8807970826714614,
"openwebmath_perplexity": 466.77284364666457,
"openwebmath_score": 0.9244361519813538,
"tags": null,
"url": "http://alexkia.co.za/3rouxw4w/how-to-prove-a-function-is-continuous-02283a"
} |
Q&A
# Solve $\int_0^{\dfrac{\pi}{6}} \sec^3 \theta \mathrm d\theta$
+0
−0
Evaluate $$\int_0^{\dfrac{\pi}{6}} \sec^3 \theta \mathrm d\theta$$
I was trying to solve it following way.
$$\int_0^{\dfrac{\pi}{6}} \sec^2\theta \sec\theta \mathrm d\theta$$ $$\int_0^{\dfrac{\pi}{6}}\sec^2\theta \mathrm d(\sec\theta)$$ $$[\tan\theta]_0^\dfrac{\pi}{6}$$ $$\tan\frac{\pi}{6}$$ $$\frac{1}{\sqrt{3}}$$
I had found the value. But, my book had solved it another way. They took
$$\tan\theta=z$$ Then, they solved it. They had got $\frac{1}{3}+\frac{1}{2}\ln\sqrt{3}$. My answer is approximately close to their. Is my answer correct? While doing Indefinite integral I saw that I could solve problem my own way. But, my answer always doesn't match with their. So, is it OK to find new/another answer of Integral? In algebraic expression,"no matter what I do the answer always matches". But, I got confused with Integration.
Why does this post require moderator attention?
Why should this post be closed?
You are accessing this answer with a direct link, so it's being shown above all other answers regardless of its score. You can return to the normal view.
+0
−0
My answer isn't correct. Cause, differentiation of $\sec x=\sec x\tan x$. I had differentiate inside integration.
$$\int_0^{\dfrac{\pi}{6}} \sec^3 \theta \mathrm d\theta$$ $$\int_0^{\dfrac{\pi}{6}} (1-\tan^2 \theta) \frac{d}{d \theta} (\sec \theta \tan \theta) \mathrm d\theta$$
That's the correct one. But, you got it wrong. I have differentiate.
my answer always doesn't match with their. So, is it OK to find new/another answer of Integral?
Saying to Indefinite Integral, if you integrate an equation then, I may find lots of answer. But, if I (you) put specific value instead of $\theta$ or, $x$. Than, you will get same value if your answer isn't wrong.
Why does this post require moderator attention? | {
"domain": "codidact.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9715639677785088,
"lm_q1q2_score": 0.8557507054079456,
"lm_q2_score": 0.8807970795424088,
"openwebmath_perplexity": 1045.0737121481975,
"openwebmath_score": 0.8587009310722351,
"tags": null,
"url": "https://math.codidact.com/posts/282886/282900"
} |
# Math Help - combinations
1. ## combinations
2. Why does that look like an online test?
3. Show that $C(8,4)=C(7,3)+C(7,4)$
Let's manipulate the left side to become the right side
$\frac{8!}{4!\cdot (8-4)!}=\frac{8!}{4!\cdot 4!}=\frac{8\cdot 7!}{4!\cdot 4\cdot 3!}=\frac{2\cdot 7!}{4!\cdot 3!}=\frac{7!}{4!\cdot 3!}+\frac{7!}{4!\cdot 3!}$
$\frac{7!}{3!\cdot (7-3)!}+\frac{7!}{4!\cdot (7-4)!}=\boxed{C(7,3)+C(7,4)}$ which was to be shown.
4. Originally Posted by janvdl
Why does that look like an online test?
It probably is. Or online homework anyway.
-Dan
5. Originally Posted by topsquark
It probably is. Or online homework anyway.
-Dan
Usually you dont get points for homework...
6. Originally Posted by janvdl
Usually you dont get points for homework...
4) $\sum_{i = 1}^{5} i \left[ \sum_{j = 1}^{3} (2j + 1) \right] = (1 + 2 + 3 + 4 + 5) \left[ (2(1) + 1) + (2(2) + 1) + (2(3) + 1) \right]$
$= 15 ( 3 + 5 + 7)$
$= 15 \cdot 15$
$= 225$
7. ## What about the other ones?
8. Originally Posted by Raiden_11
#2 is very similar to #1 which rualin so graciously did for you. try it on your own and tell us what you come up with.
for problem #3, i'd do something like this. chances are there's a more efficient way, but this is how i saw the solution:
$\sum_{j = 3}^{6} (2j - 2) = \sum_{j = 1}^{6} (2j - 2) - \sum_{j = 1}^{2} (2j - 2)$
$= \sum_{j = 1}^{4} (2j - 2) + \sum_{j = 5}^{6} (2j - 2) - \sum_{j = 1}^{2} (2j - 1)$ .......evaluating the last two summations we obtain
$= \sum_{j = 1}^{4} (2j - 2) + 16$ ........now let's do some manipulation on the first summation
$= \sum_{j = 1}^{4}(2j + 2 - 4) + 16$ .......i didn't change anything, +2 - 4 = -2
$= \sum_{j = 1}^{4} (2j + 2) + \sum_{j = 1}^{4} (-4) + 16$ ......now evaluate the second summation
$= \sum_{j = 1}^{4} (2j + 2) - 16 + 16$
$= \sum_{j = 1}^{4} (2j + 2)$ ........a bit more manipulation on this summation should do it
$= \sum_{j = 1}^{4} (2j + 4 - 2)$ .........again, I changed nothing, +4 - 2 = +2 | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9532750440288019,
"lm_q1q2_score": 0.8557505288922529,
"lm_q2_score": 0.8976953023710936,
"openwebmath_perplexity": 1453.0979844128665,
"openwebmath_score": 0.5983520150184631,
"tags": null,
"url": "http://mathhelpforum.com/statistics/16573-combinations.html"
} |
$= \sum_{j = 1}^{4} (2j + 4 - 2)$ .........again, I changed nothing, +4 - 2 = +2
$= \sum_{j = 1}^{4} \left[ 2(j + 2) - 2 \right]$ .........i factored out a 2 from the first two terms
and now we have the desired summation
QED
Did you understand?
9. ## Are u sure?
Are u sure there aren't any more steps?
10. ## I still don't know?
I still don't know how to do #2.
11. Originally Posted by Raiden_11
Are u sure there aren't any more steps?
more steps for what?
you should click the "quote" button when you're responding to something, so people know exactly what you're responding to
12. ## What i mean is....
Originally Posted by Jhevon
more steps for what?
you should click the "quote" button when you're responding to something, so people know exactly what you're responding to
Are you sure there aren't anymore steps for number 3....
also i still don't know how to do number 2..
13. Originally Posted by Raiden_11
I still don't know how to do #2.
here's one way to do it:
$C(7,5) = \frac {7!}{5! ( 7 - 5)!}$
$= \frac {7!}{5! 2!}$
$= \frac {7 \cdot 6!}{5! 2!}$
$= \frac {(2 + 5) \cdot 6!}{5! 2!}$
$= \frac {2 \cdot 6! + 5 \cdot 6!}{5! 2!}$
$= \frac {2 \cdot 6!}{5! 2!} + \frac {5 \cdot 6!}{5! 2!}$
$= 6 + \frac {6!}{4! 2!}$
$= 1 + 5 + \frac {6!}{4! 2!}$
$= C(4,4) + C(5,1) + C(6,2)$
QED
14. Originally Posted by Raiden_11
Are you sure there aren't anymore steps for number 3....
also i still don't know how to do number 2..
no, number 3 is complete. i started with one series and manipulated it and ended up with the other series. this proves the claim that they are equal. in fact, i think i probably did too many steps, i'm not very efficient with this sort of thing.
15. ## This is my final question for math forum!!
This is my final question for math forum which i hope you can answer! | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9532750440288019,
"lm_q1q2_score": 0.8557505288922529,
"lm_q2_score": 0.8976953023710936,
"openwebmath_perplexity": 1453.0979844128665,
"openwebmath_score": 0.5983520150184631,
"tags": null,
"url": "http://mathhelpforum.com/statistics/16573-combinations.html"
} |
This is my final question for math forum which i hope you can answer!
1. On page 345 of the textbook, the diagonal pattern of Pascal’s Triangle illustrates that C(7, 5) = C(4, 4) + C(5, 4) + C(6, 4). Prove this relationship using the following methods.
a)numerically by using factorials
b)by reasoning, using the meaning of combinations
Page 1 of 2 12 Last | {
"domain": "mathhelpforum.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9532750440288019,
"lm_q1q2_score": 0.8557505288922529,
"lm_q2_score": 0.8976953023710936,
"openwebmath_perplexity": 1453.0979844128665,
"openwebmath_score": 0.5983520150184631,
"tags": null,
"url": "http://mathhelpforum.com/statistics/16573-combinations.html"
} |
# Prove the equation
Prove that $$\int_0^{\infty}\exp\left(-\left(x^2+\dfrac{a^2}{x^2}\right)\right)\text{d}x=\frac{e^{-2a}\sqrt{\pi}}{2}$$ Assume that the equation is true for $a=0.$
-
$$I(a):=\int_0^{\infty}e^{-\left(x^2+\dfrac{a^2}{x^2}\right)}\text{d}x$$ $$\frac{dI}{da}=\int_0^{\infty}e^{-\left(x^2+\dfrac{a^2}{x^2}\right)}\left(-\frac{2a}{x^2}\right)\text{d}x$$ Now substitute $y=\frac{a}{x}$, so $dy=-\frac{a}{y^2}$: $$\frac{dI}{da}=2\int_{\infty}^{0}e^{-\left(\dfrac{a^2}{y^2}+y^2\right)}\text{d}y=-2\int_{0}^{\infty}e^{-\left(\dfrac{a^2}{y^2}+y^2\right)}\text{d}y=-2I$$ To obtain $I$ you just have to solve the simple ODE: $$\frac{dI}{da}=-2I$$ with initial condition given by $$I(0)=\frac{\sqrt{\pi}}{2}\ .$$ This gives you $$I(a)=\frac{e^{-2a}\sqrt{\pi}}{2}\ .$$
-
+1. This is a nice answer. – Tunk-Fey Jun 24 at 13:58
Thanks. It is very clever. But can you elaborate a bit more on how you came up with the solution translating the original problem into solving an ODE? – lovelesswang Jun 24 at 14:06
Do you mean the explicit resolution of the ODE? – Dario Jun 24 at 14:08
The idea behind the solution is the technique of differentiation under the integral sign(en.wikipedia.org/wiki/…): when you have an integral that depend on a parameter, you can derive the integral w.r.t. that parameter and sometimes you obtain a much simpler integral. In this particular case the trick is to notice that after the derivation, getting rid of the extra factor you obtain by a change of variable you get again the first integral. This allow you to find a relation between $I$ and its derivative, i.e. the ODE. – Dario Jun 24 at 14:13
show 1 more comment | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795110351222,
"lm_q1q2_score": 0.8557465421280751,
"lm_q2_score": 0.8670357718273068,
"openwebmath_perplexity": 437.0088318270926,
"openwebmath_score": 0.9962854385375977,
"tags": null,
"url": "http://math.stackexchange.com/questions/845845/prove-the-equation"
} |
In general \begin{align} \int_{x=0}^\infty \exp\left(-ax^2-\frac{b}{x^2}\right)\,dx&=\int_{x=0}^\infty \exp\left(-a\left(x^2+\frac{b}{ax^2}\right)\right)\,dx\\ &=\int_{x=0}^\infty \exp\left(-a\left(x^2-2\sqrt{\frac{b}{a}}+\frac{b}{ax^2}+2\sqrt{\frac{b}{a}}\right)\right)\,dx\\ &=\int_{x=0}^\infty \exp\left(-a\left(x-\frac{1}{x}\sqrt{\frac{b}{a}}\right)^2-2\sqrt{ab}\right)\,dx\\ &=\exp(-2\sqrt{ab})\int_{x=0}^\infty \exp\left(-a\left(x-\frac{1}{x}\sqrt{\frac{b}{a}}\right)^2\right)\,dx\\ \end{align} The trick to solve the last integral is by setting $$I=\int_{x=0}^\infty \exp\left(-a\left(x-\frac{1}{x}\sqrt{\frac{b}{a}}\right)^2\right)\,dx.$$ Let $t=-\frac{1}{x}\sqrt{\frac{b}{a}}\;\rightarrow\;x=-\frac{1}{t}\sqrt{\frac{b}{a}}\;\rightarrow\;dx=\frac{1}{t^2}\sqrt{\frac{b}{a}}\,dt$, then $$I_t=\sqrt{\frac{b}{a}}\int_{t=0}^\infty \frac{\exp\left(-a\left(-\frac{1}{t}\sqrt{\frac{b}{a}}+t\right)^2\right)}{t^2}\,dt.$$ Let $t=x\;\rightarrow\;dt=dx$, then $$I_t=\int_{t=0}^\infty \exp\left(-a\left(t-\frac{1}{t}\sqrt{\frac{b}{a}}\right)^2\right)\,dt.$$ Adding the two $I_t$s yields $$2I=I_t+I_t=\int_{t=0}^\infty\left(1+\frac{1}{t^2}\sqrt{\frac{b}{a}}\right)\exp\left(-a\left(t-\frac{1}{t}\sqrt{\frac{b}{a}}\right)^2\right)\,dt.$$ Let $s=t-\frac{1}{t}\sqrt{\frac{b}{a}}\;\rightarrow\;ds=\left(1+\frac{1}{t^2}\sqrt{\frac{b}{a}}\right)dt$ and for $0<t<\infty$ is corresponding to $-\infty<s<\infty$, then $$I=\frac{1}{2}\int_{s=-\infty}^\infty e^{-as^2}\,ds=\frac{1}{2}\sqrt{\frac{\pi}{a}},$$ where $I$ is a Gaussian integral. Thus \begin{align} \exp(-2\sqrt{ab})\int_{x=0}^\infty \exp\left(-a\left(x-\frac{1}{x}\sqrt{\frac{b}{a}}\right)^2\right)\,dx &=\large\color{blue}{\frac12\sqrt{\frac{\pi}{a}}e^{-2\sqrt{ab}}}. \end{align} In our case, put $a=1$ and $b=a^2$.
- | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795110351222,
"lm_q1q2_score": 0.8557465421280751,
"lm_q2_score": 0.8670357718273068,
"openwebmath_perplexity": 437.0088318270926,
"openwebmath_score": 0.9962854385375977,
"tags": null,
"url": "http://math.stackexchange.com/questions/845845/prove-the-equation"
} |
# Group is Subgroup of Itself
## Theorem
Let $\struct {G, \circ}$ be a group.
Then:
$\struct {G, \circ} \le \struct {G, \circ}$
That is, a group is always a subgroup of itself.
## Proof
By Set is Subset of Itself, we have that:
$G \subseteq G$
Thus $\struct {G, \circ}$ is a group which is a subset of $\struct {G, \circ}$, and therefore a subgroup of $\struct {G, \circ}$.
$\blacksquare$ | {
"domain": "proofwiki.org",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795072052384,
"lm_q1q2_score": 0.8557465388074288,
"lm_q2_score": 0.8670357718273068,
"openwebmath_perplexity": 271.1886133608791,
"openwebmath_score": 0.8351222276687622,
"tags": null,
"url": "https://www.proofwiki.org/wiki/Group_is_Subgroup_of_Itself"
} |
# Use the Division Algorithm to show the square of any integer is in the form $3k$ or $3k+1$
Use Division Algorithm to show the square of any int is in the form 3k or 3k+1
What confuses me about this is that I think I am able to show that the square of any integer is in the form $X*k$ where $x$ is any integer. For Example:
$$x = 3q + 0 \\ x = 3q + 1 \\ x = 3q + 2$$
I show $3k$ first $$(3q)^2 = 3(3q^2)$$ where $k=3q^2$ is this valid use of the division algorithm?
If it is then can I also say that int is in the form for example 10*k
for example
$(3q)^2 = 10*(\frac{9}{10}q^2)$
where $k=(\frac{9}{10}q^2)$
Why isn't this valid? Am I using the div algorithm incorrectly to show that any integer is the form 3k and 3k+1, if so how do I use it? Keep in mind I am teaching myself Number Theory and the only help I can get is from you guys in stackexchange.
-
How do you know that $\frac 9 {10}q^2$ is an integer? – azarel Jul 18 '12 at 19:05
Good point I guess that is the reason that is 10k is invalid. The form $(3q+2)^2$ is not in the form 3k or 3k+1 without getting a fraction, how to account for that to finish the problem? – user968102 Jul 18 '12 at 19:15
If $x = 10k$ then you should also consider all the other cases of $x = 10k + 1, 10k+2, \ldots + 10k+9.$ I don't see why you want to consider that. – user2468 Jul 18 '12 at 19:20
$(3q+2)^2$ is not in the form $3k$ or $3k+1$ seemingly. Start expanding the square $(3q+2)^2 = (3q+2)(3q+2) = (3q)^2 + (2)^2 + 2(3q)(2) = ?????$ Can you take it from here? – user2468 Jul 18 '12 at 19:21
By the division algorithm, $$x = 3q + r,\text{ where } r \in \{0, 1, 2\}.$$ So express $$x^2 = 9q^2 + r^2 + 6qr = 3(3q^2 + 2qr) + r^2.$$ For a given $x$ if $r = 0$ or $1,$ then we're done. If $r = 2$ then $r^2 = 4 = 3 + 1,$ and hence $$x^2 = 3\times\text{integer} + 3 + 1 = 3\times(\text{integer} + 1) + 1.$$ We are done.
-
This makes sense to me and I am able to finish problem thank you – user968102 Jul 18 '12 at 19:32 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795072052384,
"lm_q1q2_score": 0.8557465218523387,
"lm_q2_score": 0.8670357546485407,
"openwebmath_perplexity": 152.49878714121635,
"openwebmath_score": 0.901091992855072,
"tags": null,
"url": "http://math.stackexchange.com/questions/172535/use-the-division-algorithm-to-show-the-square-of-any-integer-is-in-the-form-3k"
} |
-
This makes sense to me and I am able to finish problem thank you – user968102 Jul 18 '12 at 19:32
Let $x = 3k+r, r = 0, 1, 2$ by the division algorithm. Squaring $x$, we find $x^2 = 9k^2+6kr+r^2$, or $x^2 = (9k+6r)k+r^2$.
Since $9k+6r$ is divisible by 3 for all integers $k, r$, then we may re-write this as $x^2 = 3k_1 + r^2$.
Using the division algorithm again, we see that $x^2 = 3k_1+r_1, r_1 = 0, 1, 2$. If $r_1 = 2$, then $r = \pm \sqrt{2}$, which is not an integer. Therefore, only $r=0$ and $r=1$ are acceptable.
-
Hint $\$ Below I give an analogous proof for divisor $5$ (vs. $3),$ exploiting reflection symmetry.
Lemma $\$ Every integer $\rm\:n\:$ has form $\rm\: n = 5\,k \pm r,\:$ for $\rm\:r\in\{0,1,2\},\ k\in\Bbb Z.$
Proof $\$ By the Division algorithm
$$\rm\begin{eqnarray} n &=&\:\rm 5\,q + r\ \ \ for\ \ some\ \ q,r\in\Bbb Z,\:\ r\in [0,4] \\ &=&\:\rm 5\,(q\!+\!1)-(5\!-\!r) \end{eqnarray}$$
Since $\rm\:(5\!-\!r)+r = 5,\,$ one summand is $\le 2,\,$ so lies in $\{0,1,2\},\,$ yielding the result.
Theorem $\$ The square of an integer $\rm\,n\,$ has form $\rm\, n^2 = \,5\,k + r\,$ for $\rm\:r\in \{0,1,4\}.$
Proof $\$ By Lemma $\rm\ n^2 = (5k\pm r)^2 = 5\,(5k^2\!\pm 2kr)+r^2\,$ for $\rm\:r\in \{0,1,2\},\,$ so $\rm\: r^2\in\{0,1,4\}.$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795072052384,
"lm_q1q2_score": 0.8557465218523387,
"lm_q2_score": 0.8670357546485407,
"openwebmath_perplexity": 152.49878714121635,
"openwebmath_score": 0.901091992855072,
"tags": null,
"url": "http://math.stackexchange.com/questions/172535/use-the-division-algorithm-to-show-the-square-of-any-integer-is-in-the-form-3k"
} |
Remark $\$ Your divisor of $\,3\,$ is analogous, with $\rm\:r\in \{0,1\}\,$ so $\rm\:r^2\in \{0,1\}.\,$ The same method generalizes for any divisor $\rm\:m,\,$ yielding that $\rm\:n^2 = m\,k + r^2,\,$ for $\rm\:r\in\{0,1,\ldots,\lfloor m/2\rfloor\}.$ The reason we need only square half the remainders is because we have exploited reflection symmetry (negation) to note that remainders $\rm > n$ can be transformed to negatives of remainders $\rm < n,\,$ e.g. $\rm\: 13 = 5\cdot 2 +\color{#0A0} 3 = 5\cdot 3 \color{#C00}{- 2},\,$ i.e. remainder $\rm\:\color{#0A0}3\leadsto\,\color{#C00}{-2},\,$ i.e. $\rm\:3 \equiv -2\pmod 5.\:$ This amounts to using a system of balanced (or signed) remainders $\rm\, 0,\pm1,\pm2,\ldots,\pm n\$ vs. $\rm\ 0,1,2,\ldots,2n[-1].\:$ Often this optimization halves work for problems independent of the sign of the remainder.
All of this is much clearer when expressed in terms of congruences (modular arithmetic), e.g. the key inference above $\rm\:n\equiv r\:\Rightarrow\:n^2\equiv r^2\pmod m\:$ is a special case of the ubiquitous
Congruence Product Rule $\rm\ \ A\equiv a,\ B\equiv b\ \Rightarrow\ AB\equiv ab\ \ (mod\ m)$
Proof $\rm\:\ \ m\: |\: A\!-\!a,\ B\!-\!b\:\ \Rightarrow\:\ m\ |\ (A\!-\!a)\ B + a\ (B\!-\!b)\ =\ AB - ab$
For an introduction to congruences see any decent textbook on elementary number theory.
- | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9869795072052384,
"lm_q1q2_score": 0.8557465218523387,
"lm_q2_score": 0.8670357546485407,
"openwebmath_perplexity": 152.49878714121635,
"openwebmath_score": 0.901091992855072,
"tags": null,
"url": "http://math.stackexchange.com/questions/172535/use-the-division-algorithm-to-show-the-square-of-any-integer-is-in-the-form-3k"
} |
# How to show some function is constant?
Suppose $f:(a,b) \to \mathbb{R}$ satisfy $|f(x) - f(y) | \le M |x-y|^\alpha$ for some $\alpha >1$ and all $x,y \in (a,b)$. Prove that $f$ is constant on $(a,b)$.
I'm not sure which theorem should I look to prove this question. Can you guys give me a bit of hint? First of all how to prove some function $f(x)$ is constant on $(a,b)$? Just show $f'(x) = 0$?
-
yes, indeed! (to your last question) – Avitus Dec 11 '13 at 20:41
What does the value $M$ mean? – John Dec 11 '13 at 20:41
the condition should be $\alpha>1$ otherwise it just an holder function and they are everything but constant (in general). In case $\alpha>1$ you just show $f$ is differentiable with $0$ has a derivative. (like the answer below). Can you correct the question ? – user42070 Dec 11 '13 at 21:08
divide by $|x-y|$ both members. you get
$$\frac{|f(x) - f(y)|}{|x-y|} \le M |x-y|^{\alpha - 1} \ \ (1)$$
now, since $(1)$ has to hold $\forall \ x, y$ then set $y = x + h$, with $h \to 0$
it becomes
$$|f'(x)| \le M \ |h|^{\alpha-1} = 0$$ ($\alpha - 1 > 0$ so there's no problem there)
So $|f'(x)| \le 0$, but of course also $|f'(x)| \ge 0$, it implies $|f'(x)| = 0$. Hence $f'(x) = 0$
EDIT:
We can formalize it more. Let's do it.
$$\frac{|f(x) - f(y)|}{|x-y|} \le M |x-y|^{\alpha - 1} \ \ (1)$$
We can always set $x = y + h, h > 0$ since $(1)$ has to hold $\forall x, y$
Then
$$\frac{|f(y+h) - f(y)|}{h} \le M h^{\alpha - 1} \ \ (1)$$
(note $|h| = h$)
Now, let's suppose $f(y+h) - f(y) \ge 0 \ \ \ \ \ (2a)$
It implies that $f'(y) \ge 0$ (it suffice to divide $(2a)$ by $h$ and then taking the limit for $h \to 0$ to show it)
But it also implies, recalling (1) that
$$\frac{f(y+h) - f(y)}{h} \le 0 \Rightarrow f'(y) \le 0$$
(Again by taking the limit of both parts.)
But these last two results imply that $f'(y) = 0$
We can do the exact same reasoning in the case that $f(y+h) - f(y) \le 0$
So again, in this case we find $f'(y) = 0$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130596362787,
"lm_q1q2_score": 0.8557179051506394,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 377.36249423724485,
"openwebmath_score": 0.9805727005004883,
"tags": null,
"url": "http://math.stackexchange.com/questions/603291/how-to-show-some-function-is-constant"
} |
So again, in this case we find $f'(y) = 0$
Thus we have demonstrated that in both cases ($f(y+h) > f(y)$ and $f(y+h) < f(y)$) we have $f'(y) = 0$, so this has to hold $\forall y$
This implies $f = const$
-
this is good one – james Miler Dec 11 '13 at 20:47
Are you using this for your second equation? $\lim_{x \rightarrow a}{|f(x)|}=|\lim_{x \rightarrow a}{f(x)}|$, I thought this equality does not hold? – Idonknow Dec 11 '13 at 21:06
edited.. it should be better now :-) – Ant Dec 11 '13 at 23:56
Hint: Show that $f'(y)$ exists and is equal to $0$ for all $y$. Then as usual by the Mean Value Theorem our function is constant.
-
+1 for speed :-) – Avitus Dec 11 '13 at 20:41
so what is first conditio refer to? – james Miler Dec 11 '13 at 20:42
Divide by $|x-y|$. We are left on the right with $\le M|x-y|^{\alpha-1}$, which approaches $0$ as $x\to y$. – André Nicolas Dec 11 '13 at 20:43
Without any derivative...
Choose $y\gt x$ in the interval $(a,b)$. For every $n\geqslant1$, divide the interval $(x,y)$ into $n$ subintervals $(x_i,x_{i+1})$ of length $x_{i+1}-x_i=(y-x)/n$. By hypothesis, for every $i$, $$|f(x_i)-f(x_{i+1})|\leqslant M(x_{i+1}-x_i)^\alpha=M(y-x)^\alpha n^{-\alpha},$$ hence, by the triangular inequality, $$|f(x)-f(y)|\leqslant \sum\limits_{i=1}^n|f(x_i)-f(x_{i+1})|\leqslant M(y-x)^\alpha n^{1-\alpha}.$$ If $\alpha\gt1$, the RHS goes to zero when $n\to\infty$ because $n^{1-\alpha}\to0$, hence $f(x)=f(y)$, QED.
-
Interesting answer. Do you think we can adapt it in order to prove this: math.stackexchange.com/questions/578487/… – Tomás Dec 11 '13 at 21:42
Hadn't seen this way before--I appreciate it. – nayrb Dec 12 '13 at 0:00
Nicely done! (+1) – leo Dec 12 '13 at 3:58
HINT: Your idea is a good one. What happens when you divide the inequality by $|x-y|$?
-
It suffices to show that $f$ is differentiable and its derivative vanishes everywhere.
The hypothesis implies that, for every $x\in(a,b)$ and $h$, such that $x+h\in(a,b)$, we have that | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130596362787,
"lm_q1q2_score": 0.8557179051506394,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 377.36249423724485,
"openwebmath_score": 0.9805727005004883,
"tags": null,
"url": "http://math.stackexchange.com/questions/603291/how-to-show-some-function-is-constant"
} |
The hypothesis implies that, for every $x\in(a,b)$ and $h$, such that $x+h\in(a,b)$, we have that
$$\frac{|f(x+h)-f(x)-0\cdot h|}{|h|} \le M\,|h|^{\alpha-1}.$$
The right hand side of the above tends to zero, as $h\to 0$, and therefore $f'(x)=0$!
- | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130596362787,
"lm_q1q2_score": 0.8557179051506394,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 377.36249423724485,
"openwebmath_score": 0.9805727005004883,
"tags": null,
"url": "http://math.stackexchange.com/questions/603291/how-to-show-some-function-is-constant"
} |
# complex conjugate eigenvalues | {
"domain": "lovejays.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130554263733,
"lm_q1q2_score": 0.8557179015081279,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 135.6482903657162,
"openwebmath_score": 0.8943105340003967,
"tags": null,
"url": "https://lovejays.com/dag9b/complex-conjugate-eigenvalues-121a37"
} |
The characteristic polynomial of $$A$$ is $$\lambda^2 - 2 \lambda + 5$$ and so the eigenvalues are complex conjugates, $$\lambda = 1 + 2i$$ and $$\overline{\lambda} = 1 - 2i\text{. Note that not only do eigenvalues come in complex conjugate pairs, eigenvectors will be complex conjugates of each other as well. Thus you only need to compute one eigenvector, the other eigenvector must be the complex conjugate. If the eigenvalues are a complex conjugate pair, then the trace is twice the real part of the eigenvalues. The Characteristic Equation always features polynomials which can have complex as well as real roots, then so can the eigenvalues & eigenvectors of matrices be complex as well as real. eigenvalues of a real symmetric or complex Hermitian (conjugate symmetric) array. Example 13.1. Also, they will be characterized by the same frequency of rotation; however, the direction s of rotation will be o pposing. Value. A complex number is an eigenvalue of corresponding to the eigenvector if and only if its complex conjugate is an eigenvalue corresponding to the conjugate vector. It is possible that Ahas complex eigenvalues, which must occur in complex-conjugate pairs, meaning that if a+ ibis an eigenvalue, where aand bare real, then so is a ib. 1.2. When the eigenvalues of a system are complex with a real part the trajectories will spiral into or out of the origin. 4. These pairs will always have the same norm and thus the same rate of growth or decay in a dynamical system. If A has complex conjugate eigenvalues λ 1,2 = α ± βi, β ≠ 0, with corresponding eigenvectors v 1,2 = a ± bi, respectively, two linearly independent solutions of X′ = AX are X 1 (t) = e αt (a cos βt − b sin βt) and X 2 (t) = e αt (b cos βt + a sin βt). Then a) if = a+ ibis an eigenvalue of A, then so is the complex conjugate = a−ib. values. eigvalsh. Most of this materi… For example, the command will result in the assignment of a matrix to the variable A: We can enter a column vector by thinking of | {
"domain": "lovejays.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130554263733,
"lm_q1q2_score": 0.8557179015081279,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 135.6482903657162,
"openwebmath_score": 0.8943105340003967,
"tags": null,
"url": "https://lovejays.com/dag9b/complex-conjugate-eigenvalues-121a37"
} |
result in the assignment of a matrix to the variable A: We can enter a column vector by thinking of it as an m×1 matrix, so the command will result in a 2×1 column vector: There are many properties of matrices that MATLAB will calculate through simple commands. To enter a matrix into MATLAB, we use square brackets to begin and end the contents of the matrix, and we use semicolons to separate the rows. The Eigenvalue Problem: The Hessenberg and Real Schur Forms The Unsymmetric Eigenvalue Problem Let Abe a real n nmatrix. eigenvalues are themselves complex conjugate and the calculations involve working in complex n-dimensional space. complex eigenvalues always come in complex conjugate pairs. eigh. There is nothing wrong with this in principle, however the manipulations may be a bit messy. A similar discussion verifies that the origin is a source when the trace of is positive. Here is a summary: If a linear system’s coefficient matrix has complex conjugate eigenvalues, the system’s state is rotating around the origin in its phase space. eigenvalues of a self-adjoint matrix Eigenvalues of self-adjoint matrices are easy to calculate. Note that the complex conjugate of a function is represented with a star (*) above it. An interesting fact is that complex eigenvalues of real matrices always come in conjugate pairs. On this site one can calculate the Characteristic Polynomial, the Eigenvalues, and the Eigenvectors for a given matrix. The eigenvectors associated with these complex eigenvalues are also complex and also appear in complex conjugate pairs. Example: Diagonalize the matrix . Solve the system. →Below is a calculator to determine matrices for given Eigensystems. In equation 1 we can appreciate that because the eigenvalue is real, the complex conjugate of the real eigenvalue is just the real eigenvalue (no imaginary term to take the complex conjugate of). Proposition Let be a matrix having real entries. complex eigenvalues. Once you have found the eigenvalues of a | {
"domain": "lovejays.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130554263733,
"lm_q1q2_score": 0.8557179015081279,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 135.6482903657162,
"openwebmath_score": 0.8943105340003967,
"tags": null,
"url": "https://lovejays.com/dag9b/complex-conjugate-eigenvalues-121a37"
} |
Let be a matrix having real entries. complex eigenvalues. Once you have found the eigenvalues of a matrix you can find all the eigenvectors associated with each eigenvalue by finding a … If A is a 2 2-matrix with complex-conjugate eigenvalues l = a bi, with associated eigenvectors w = u iv, then any solution to the system dx dt = Ax(t) can be written x(t) = C1eat(ucosbt vsinbt)+C2eat(usinbt+vcosbt) (7) where C1,C2 are (real) constants. Find the complex conjugate eigenvalues and corresponding complex eigenvectors of the following matrices. Similar function in SciPy that also solves the generalized eigenvalue problem. Finding Eigenvectors. 3. Since the real portion will end up being the exponent of an exponential function (as we saw in the solution to this system) if the real part is positive the solution will grow very large as \(t$$ increases. eigenvalues of a non-symmetric array. This occurs in the region above the parabola. NOTE 4: When there are complex eigenvalues, there's always an even number of them, and they always appear as a complex conjugate pair, e.g. | {
"domain": "lovejays.com",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130554263733,
"lm_q1q2_score": 0.8557179015081279,
"lm_q2_score": 0.865224070413529,
"openwebmath_perplexity": 135.6482903657162,
"openwebmath_score": 0.8943105340003967,
"tags": null,
"url": "https://lovejays.com/dag9b/complex-conjugate-eigenvalues-121a37"
} |
# Session 10: Fast Fourier Transform¶
Date: 11/27/2017, Monday
In [1]:
format compact
## Generate input signal¶
Fourier transform is widely used in signal processing. Let’s looks at the simplest cosine signal first.
Define
$y_1(t) = 0.3 + 0.7\cos(2\pi f_1t)$
It has a magnitude of 0.7, with a constant bias term 0.3. We choose the frequency $$f_1=0.5$$.
In [2]:
t = -5:0.1:4.9; % time axis
N = length(t) % size of the signal
f1 = 0.5; % signal frequency
y1 = 0.3 + 0.7*cos(2*pi*f1*t); % the signal
N =
100
In [3]:
%plot -s 800,200
hold on
plot(t, y1)
plot(t, 0.3*ones(N,1), '--k')
title('simple signal')
xlabel('t [s]')
legend('signal', 'mean')
## Perform Fourier transform on the signal¶
You can hand code the Fourier matrix as in the class, but here we use the built-in function for convenience.
In [4]:
F1 = fft(y1);
length(F1) % same as the length of the signal
ans =
100
There are two different conventions for the normalization factor in the Fourier matrix. One is having the normalization factor $$\frac{1}{\sqrt{N}}$$ in the both the Fourier matrix $$A$$ and the inverse transform matrix $$B$$
$\begin{split}A = \frac{1}{\sqrt{N}} \begin{bmatrix} 1&1&1&\cdots &1 \\ 1&\omega&\omega^2&\cdots&\omega^{N-1} \\ 1&\omega^2&\omega^4&\cdots&\omega^{2(N-1)}\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&\omega^{N-1}&\omega^{2(N-1)}&\cdots&\omega^{(N-1)(N-1)}\\ \end{bmatrix}\end{split}$
$\begin{split}B = \frac{1}{\sqrt{N}} \begin{bmatrix} 1&1&1&\cdots &1 \\ 1&\omega^{-1}&\omega^{-2}&\cdots&\omega^{-(N-1)} \\ 1&\omega^{-2}&\omega^{-4}&\cdots&\omega^{-2(N-1)}\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&\omega^{-(N-1)}&\omega^{-2(N-1)}&\cdots&\omega^{-(N-1)(N-1)}\\ \end{bmatrix}\end{split}$
MATLAB uses a different convention that | {
"domain": "readthedocs.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130570455679,
"lm_q1q2_score": 0.8557179011905405,
"lm_q2_score": 0.8652240686758841,
"openwebmath_perplexity": 5006.151520887731,
"openwebmath_score": 0.8695923686027527,
"tags": null,
"url": "https://am111.readthedocs.io/en/latest/session10_FFT.html"
} |
MATLAB uses a different convention that
$\begin{split}A = \begin{bmatrix} 1&1&1&\cdots &1 \\ 1&\omega&\omega^2&\cdots&\omega^{N-1} \\ 1&\omega^2&\omega^4&\cdots&\omega^{2(N-1)}\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&\omega^{N-1}&\omega^{2(N-1)}&\cdots&\omega^{(N-1)(N-1)}\\ \end{bmatrix}\end{split}$
$\begin{split}B = \frac{1}{N} \begin{bmatrix} 1&1&1&\cdots &1 \\ 1&\omega^{-1}&\omega^{-2}&\cdots&\omega^{-(N-1)} \\ 1&\omega^{-2}&\omega^{-4}&\cdots&\omega^{-2(N-1)}\\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&\omega^{-(N-1)}&\omega^{-2(N-1)}&\cdots&\omega^{-(N-1)(N-1)}\\ \end{bmatrix}\end{split}$
The difference doesn’t matter too much as long as you use one of them consistently. In both cases there is
\begin{align} F &= AY \text{ (Discrete Fourier transfrom)} \\ Y &= BF \text{ (Inverse transfrom)} \end{align}
### Full spectrum¶
The spectrum F1 (the result of the Fourier transfrom) is typically an array of complex numbers. To plot it we need to use absolute magnitude.
In [5]:
%plot -s 800,200
plot(abs(F1),'- .')
title('unnormalized full spectrum')
The first term in F1 indicates the magnitude of the constant term (zero frequency). Diving by N gives us the actual value.
In [6]:
F1(1)/N % equal to the constant bias term specified at the beginning
ans =
0.3000
Besides the constant bias F1(1), there are two non-zero pointings in F1, indicating the cosine signal itself. The magnitude 0.7 is evenly distributed to two points.
In [7]:
F1(2+4)/N, F1(end-4)/N % adding up to 0.7
ans =
-0.3500 - 0.0000i
ans =
-0.3500 + 0.0000i
Plotting F1/N shows more clearly the magnitude of signals at different frequencies:
In [8]:
%plot -s 800,200
plot(abs(F1)/N,'- .')
title('(normalized) full spectrum')
ylabel('signal amplitude')
### Half-sided spectrum¶ | {
"domain": "readthedocs.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130570455679,
"lm_q1q2_score": 0.8557179011905405,
"lm_q2_score": 0.8652240686758841,
"openwebmath_perplexity": 5006.151520887731,
"openwebmath_score": 0.8695923686027527,
"tags": null,
"url": "https://am111.readthedocs.io/en/latest/session10_FFT.html"
} |
### Half-sided spectrum¶
From the matrix $$A$$ it is easy to show that, the first element F(1) in the resulting spectrum is always a real number indicating the constant bias term, while the rest of the array F(2:end) is symmetric, i.e. F(2) == F(end), F(3) == F(end-1). ( F(2) is actually the conjugate of F(end), but we only care about magnitude here. )
Due to such symmetricity, we can simply plot half of the array (scaled by 2) without loss of information.
In [9]:
M = N/2 % need to cast to integer if N is an odd number
M =
50
In [10]:
%plot -s 800,200
plot(abs(F1(1:M+1))/N*2, '- .')
title('(normalized) half-sided spectrum')
ylabel('signal amplitude')
## Understanding units!¶
The Discrete Fourier Transform, by defintion, is simply a matrix multiplication which acts on pure numbers. But real physical signals have units. You cannot just treat the resulting array F1 as some unitless frequency. If the signal is a time series then you need to deal with seconds and hertz; if it is a wave in the space then you need to deal with the wave length in meters.
In order to understand the unit of the resulting spectrum F1, let’s look at the original time series y1 first.
The “time step” of the signal is
In [11]:
dt = t(2)-t(1) % [s]
dt =
0.1000
This is the finest temporal resolution the signal can have. It corresponds the highest frequency:
In [12]:
f_max = 1/dt % [Hz]
f_max =
10.0000
On the contrary, the longest time range (dt*N, the time span of the entire signal) corresponds to the lowest frequency:
In [13]:
df = f_max/N % [Hz]
df =
0.1000
With the lowest frequency df being the “step size” in the frequency axis, the value of the frequency axis is simply the array [0, df, 2*df, …]. Now we can use correct values and units for the x-axis of the spectrum plot.
In [14]:
%plot -s 800,200
plot(df*(0:M), abs(F1(1:M+1))/N*2,'- .')
title('half-sided spectrum with correct unit of x-axis')
ylabel('signal amplitude')
xlabel('frequency [Hz]') | {
"domain": "readthedocs.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130570455679,
"lm_q1q2_score": 0.8557179011905405,
"lm_q2_score": 0.8652240686758841,
"openwebmath_perplexity": 5006.151520887731,
"openwebmath_score": 0.8695923686027527,
"tags": null,
"url": "https://am111.readthedocs.io/en/latest/session10_FFT.html"
} |
The peak is at 0.5 Hz, consistent with our original signal which has a period of 2 s, since 0.5 Hz = 1/(2s). Thus our unit specification is correct.
## Deal with negative frequency¶
The right half of the spectrum array (F1(M+2:end), not plotted in the above figure) corresponds to negative frequency [-M*df, …, -2*df, -df]. Thus each element in the entire F1 array corresponds to each element in the frequency array [0, df, 2*df, …, M*df, -M*df, …, -2*df, -df].
You can perform fftshift on the resulting spectrum F1 to swap its left and right parts, so it will align with the motonically increasing axis [-M*df, …, -2*df, -df, 0, df, 2*df, …, M*df]. That feels more natural from a mathematical point of view.
In [15]:
F_shifted = fftshift(F1);
plot(abs(F_shifted),'- .')
## Perform inverse transform¶
Performing inverse transform is simply ifft(F1). Recall that MATLAB performs the $$\frac{1}{N}$$ scaling during the inverse transform step.
We use norm to check if ifft(F1) is close enough to y1.
In [16]:
norm(ifft(F1) - y1) % almost zero
ans =
1.2269e-15
## Mix two signals¶
Fourier transform and inverse transform are very useful in signal filering. Let’s first add a high-frequency noise to our original signal.
In [17]:
f2 = 5; % higher frequency
y2 = 0.2*sin(f2*pi*t); % noise
y = y1 + y2; % add up original signal and noise
In [18]:
%plot -s 800,400
subplot(311);plot(t, y2, 'r');
ylim([-1,1]);title('noise')
subplot(312);plot(t, y1);
ylim([-0.6,1.2]);title('original signal')
subplot(313);plot(t, y, 'k');
ylim([-0.6,1.2]);title('signal + noise')
After the Fourier transform, we see two new peaks at a relatively higher frequency.
In [19]:
F = fft(y);
In [20]:
%plot -s 800,200
plot(abs(F), '- .')
title('spectrum with high-frequency noise')
Again, the noise magnitude 0.2 is evenly distributed to positive and negative frequencies. Here we got complex conjugates:
In [21]:
F(2+24)/N, F(end-24)/N % magnitude of noises | {
"domain": "readthedocs.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130570455679,
"lm_q1q2_score": 0.8557179011905405,
"lm_q2_score": 0.8652240686758841,
"openwebmath_perplexity": 5006.151520887731,
"openwebmath_score": 0.8695923686027527,
"tags": null,
"url": "https://am111.readthedocs.io/en/latest/session10_FFT.html"
} |
In [21]:
F(2+24)/N, F(end-24)/N % magnitude of noises
ans =
-0.0000 + 0.1000i
ans =
-0.0000 - 0.1000i
## Filter out high-frequency noise¶
Let’s wipe out this annoying noise. It’s very difficult to do so in the original signal, but very easy to do in the spectrum.
In [22]:
F_filtered = F; % make a copy
F_filtered(26) = 0; % remove the high-frequency noise
F_filtered(76) = 0; % same for negative frequency
In [23]:
plot(abs(F_filtered), '- .')
title('filtered spectrum')
Then we can transform the spectrum back to the signal.
In [24]:
y_filtered = ifft(F_filtered);
If the filtering is done symmetrically (i.e. do the same thing for positive and negative frequencies), the recovered signal will only contain real numbers.
In [35]:
%plot -s 800,200
plot(t, y_filtered)
title('de-noised signal')
The de-noised signal is almost the same as the original noise-free signal:
In [36]:
norm(y_filtered - y1) % almost zero
ans =
5.6847e-15
## Filter has to be symmetric¶
What happens if the filtering done asymmetrically?
In [37]:
F_wrong_filtered = F; % make another copy
F_wrong_filtered(76) = 0; % only do negative frequency
In [39]:
plot(abs(F_wrong_filtered), '- .')
title('asymmetrically-filtered spectrum')
The recovered signal now contains imaginary parts. That’s unphysical!
In [40]:
y_wrong_filtered = ifft(F_wrong_filtered);
In [42]:
y_wrong_filtered(1:5)' % print the first several elements
ans =
-0.4000 - 0.1000i
-0.4657 + 0.0000i
-0.2663 + 0.1000i
-0.0114 - 0.0000i
0.0837 - 0.1000i
In [43]:
norm(imag(y_wrong_filtered)) % not zero
ans =
0.7071
You can plot the real part only. It is something between the unfiltered and filtered signals, i.e. the filtering here is incomplete.
In [45]:
hold on
plot(t, y, 'k')
plot(t, real(y_wrong_filtered), 'b')
plot(t, y1, 'r')
legend('signal with noise', 'incomplete fliltering', 'signal without noise') | {
"domain": "readthedocs.io",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9890130570455679,
"lm_q1q2_score": 0.8557179011905405,
"lm_q2_score": 0.8652240686758841,
"openwebmath_perplexity": 5006.151520887731,
"openwebmath_score": 0.8695923686027527,
"tags": null,
"url": "https://am111.readthedocs.io/en/latest/session10_FFT.html"
} |
# Why can't a neighborhood be a finite set?
Rudin defines a neighborhood as follows:
Let $X$ be a metric space endowed with a distance function $d$. A neighborhood of a point $p \in X$ is a set $N_r(p)$ consisting of all $q \in X$ such that $d(p,q) < r$ for some $r > 0$.
He later proves two facts: every neighborhood is an open set, and every finite set is closed.
But it would seem to me that a neighborhood as defined above could be finite. For example, let $X = \{1,2,3\}$ with $d(x,y) = |x-y|$ be a metric space . Consider the neighborhood around $p = 2$ of radius $0.5$, i.e.: the set of all points $q$ in $X$ such that $d(q,p)<0.5$. But the neighborhood is simply $\{2\}$. Therefore, the neighborhood is a finite set, and therefore closed. But every neighborhood is open. This is a contradiction.
So my understanding of a neighborhood is broken somehow. It has further implications: if we define $E = \{2\}$, then the $0.5$-radius neighborhood is $\{2\}$, which is a subset of $E$, which means that $2$ is an interior point of $E$. Since $2$ is the only point in $E$, all points in $E$ are interior points, and $E$ is open. But $E$ is finite, and therefore closed.
I'm probably missing something obvious. Can anyone spot my mistake? | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018405251301,
"lm_q1q2_score": 0.8557169875442601,
"lm_q2_score": 0.8774767970940975,
"openwebmath_perplexity": 152.26834436669773,
"openwebmath_score": 0.9667059183120728,
"tags": null,
"url": "http://math.stackexchange.com/questions/191532/why-cant-a-neighborhood-be-a-finite-set"
} |
I'm probably missing something obvious. Can anyone spot my mistake?
-
Nothing about the definition of a set being open or closed precludes a set being both -- merely your intuition. :) – Eugene Shvarts Sep 5 '12 at 16:45
It is possible for are set to be open and closed, as $\{2\}$ in your example. Being open and closed isn't mutually exclusive. – martini Sep 5 '12 at 16:45
"not closed" is not necessarily "open" and "not open" is not necessarily "closed": "not open" and "not closed" can both be "ajar"! – rschwieb Sep 5 '12 at 16:55
Obligatory quote: ''…an answer to the mathematician’s riddle: “How is a set different from a door?” should be: “A door must be either open or closed, and cannot be both, while a set can be open, or closed, or both, or neither!”'' - Munkres – Michael Greinecker Sep 5 '12 at 16:58
Well, in that case, Rudin 2.21 is incorrect, unless there's another hypothesis. – Cameron Buie Sep 5 '12 at 17:02
"Every finite set is closed" does not imply "every open neighbourhood is infinite".
Let $(X,d)$ be any metric space, and let $F \subseteq X$ be a non-empty finite subset; say $F = \{ x_1, \cdots, x_n \}$ for some $n \in \mathbb{N}$. To prove that $F$ is closed it suffices to prove that $X - F$ is open. So let $p \in X-F$. Then the set $\{ d(p,x_1), \cdots, d(p,x_n) \}$ has a minimum value, say $\delta$, and we know that $\delta > 0$ since $p \not \in F$, and so whenever $d(p,q) < \delta$ we have $q \in X-F$. But this tells you that the (open) ball of radius $\delta$ about $p$ lies in $X-F$, and hence $X-F$ is open.
In your examples, yes, the sets are open and finite, but they are also closed!
The key fact to take home is that sets are allowed to be both open and closed.
However, there is a partial converse: in a dense metric space, every open neighbourhood is infinite. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018405251301,
"lm_q1q2_score": 0.8557169875442601,
"lm_q2_score": 0.8774767970940975,
"openwebmath_perplexity": 152.26834436669773,
"openwebmath_score": 0.9667059183120728,
"tags": null,
"url": "http://math.stackexchange.com/questions/191532/why-cant-a-neighborhood-be-a-finite-set"
} |
However, there is a partial converse: in a dense metric space, every open neighbourhood is infinite.
A metric space $(X,d)$ is dense if for any $x \in X$ and $r > 0$ there exists $y \in X$ with $x \ne y$ and $d(x,y) < r$ $-$ that is, given any point in the space, there are other points which lie arbitrarily close to that point. $\mathbb{R}$ is a dense space, so is $\mathbb{Q}$, so is $(0,1)$, and indeed so is any other non-empty open subset of $\mathbb{R}$.
The fact that open neighbourhoods in dense metric spaces are necessarily infinite is clear from the definition. [It's also clear that a metric space in which every open neighbourhood is infinite is dense, and so the two conditions are equivalent.]
-
This makes sense, thanks! – jme Sep 5 '12 at 17:11
For an interesting example, let $X$ be any non-empty set, and define $d:X\times X\to\Bbb R$ by $$d(x,y)=\begin{cases}0 & x=y\\1 & x\neq y.\end{cases}$$ This can be shown to be a metric on $X$ (called the discrete metric). One interesting property is that in the metric space $(X,d)$, every subset of $X$ is both open and closed. Even in general metric spaces, there will always be at least two subsets that are both open and closed--namely, the empty set and the whole set.
- | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018405251301,
"lm_q1q2_score": 0.8557169875442601,
"lm_q2_score": 0.8774767970940975,
"openwebmath_perplexity": 152.26834436669773,
"openwebmath_score": 0.9667059183120728,
"tags": null,
"url": "http://math.stackexchange.com/questions/191532/why-cant-a-neighborhood-be-a-finite-set"
} |
# Is the set $A = [0,1]\setminus\mathbb{Q}$ countable or not?
Is the set $$A = [0,1]\setminus\mathbb{Q}$$ countable or not?
What I am thinking is $$A$$ consist of irrational numbers in the interval $$[0,1]$$ hence it is subset of irrational numbers. As set of irrational numbers is uncountable so I think set $$A$$ is also uncountable.
• not every subset of irrational numbers is uncountable, but if $A$ and $\mathbb Q$ were both countable then so would be $A\cup \mathbb Q$ and therefore $[0,1]\subset A\cup \mathbb Q$ – J. W. Tanner Jan 10 at 15:55
• $\varnothing$ is also a subset of the irrational numbers. – Asaf Karagila Jan 10 at 16:24
Yes, it is uncountable, but not for that reason. For instance, $$\left\{\sqrt2+n\,\middle|\, n\in\Bbb N\right\}$$ is also a set of irrational numbers, but it is countable.
However, if $$[0,1]\setminus\Bbb Q$$ was countable, then, since $$\Bbb Q\cap[0,1]$$ is countable, $$[0,1]$$ would be countable too, since it's the union of them.
• technically, $[0,1]$ is contained in the union of $A$ and $\mathbb Q$ – J. W. Tanner Jan 10 at 16:08
• @J.W.Tanner I've edited my answer. Thank you. – José Carlos Santos Jan 10 at 16:23
All countable set of $$R$$ have Lebesgue measure equal to $$0$$. So Lebesgue measure of $$[0, 1] - \mathbb{Q}$$ is $$1$$. Eventually by contraposition, $$[0, 1] - \mathbb{Q}$$ is uncoutable.
What you are thinking does not work.
For example, $$\{n\pi\mid n\in\mathbb N\setminus\{0\}\}$$ is a subset of irrational numbers but countable.
Here's an argument that works. If $$A$$ were countable, then, since $$\mathbb Q$$ is countable,
$$A\cup \mathbb Q$$ would be countable,
and therefore $$[0,1]$$, which is a subset of $$A\cup \mathbb Q$$, would be countable, | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018383629826,
"lm_q1q2_score": 0.8557169747108202,
"lm_q2_score": 0.8774767858797979,
"openwebmath_perplexity": 267.7689207142588,
"openwebmath_score": 0.929182767868042,
"tags": null,
"url": "https://math.stackexchange.com/questions/3980049/is-the-set-a-0-1-setminus-mathbbq-countable-or-not"
} |
# Can one compute series expansions or complex residues at essential singularities?
Title says it all.
I'm noticing a trend of failure on Mathematica/WolframAlpha's parts when trying to compute either the Laurent expansions or the residues of functions like $\sin\dfrac{1}{z}$ about $z=0$. (Specifying $z=0$ for the residue query returns nothing.)
Is there something about essential singularities $z_0$ that prevents one from computing a series expansion about or residue at $z_0$? Is this "something" explicitly mentioned in the usual definitions of series/residues that I'm missing? Admittedly, my complex analysis knowledge has started to rust.
• Just plug $u=1/z$ into $\sin u = u -u^3/3! + \cdots$ for the Larent expansion; the residue is $1.$ – zhw. Oct 28 '15 at 19:46
• @zhw. Okay, that approach works fine for $\sin\dfrac{1}{z}$, but what if I made a slight adjustment? Say, $\sin\dfrac{z}{z-1}$. Does the same process still work? – user170231 Oct 28 '15 at 19:51
Recall the definition of an essential singularity. If a function $f$ has an essential singularity at $z=z_0$, then
$$\lim_{z \to z_0} (z-z_0)^m f(z) = \infty$$
That is, an essential singularity is "more singular" than any order pole.
That all said, the definition of a residue still applies as the coefficient of $(z-z_0)^{-1}$ in the Laurent expansion of $f$.
In your example of $f(z) = \sin{\left ( \frac{z}{z-1} \right )}$, there is an essential singularity at $z=1$. The Laurent expansion of $f$ about $z=1$ may be easily determined by expressing $f$ as follows:
\begin{align}f(z) &= \sin{\left (1+\frac1{z-1} \right )} = \sin{1} \cos{\left ( \frac{1}{z-1} \right )}+ \cos{1} \sin{\left ( \frac{1}{z-1} \right )}\\ &= \sin{1}\sum_{n=0}^{\infty} \frac{(-1)^n}{(2 n)!(z-1)^{2 n}} + \cos{1}\sum_{n=0}^{\infty} \frac{(-1)^n}{(2 n+1)!(z-1)^{2 n+1}}\end{align}
Hopefully it is clear that the residue of $f$ at $z=1$ is $\cos{1}$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018398044143,
"lm_q1q2_score": 0.855716974413328,
"lm_q2_score": 0.8774767842777551,
"openwebmath_perplexity": 526.6697709462901,
"openwebmath_score": 0.9793195724487305,
"tags": null,
"url": "https://math.stackexchange.com/questions/1502270/can-one-compute-series-expansions-or-complex-residues-at-essential-singularities"
} |
Hopefully it is clear that the residue of $f$ at $z=1$ is $\cos{1}$.
• Are there any functions with essential singularities for which identities and "tricks" like these don't help? I'm just trying to wrap my mind around why WA and Mma are having trouble with these computations. – user170231 Oct 28 '15 at 21:00
• @user170231: plenty. What I would do is make use of Mathematica's expansion about Infinity, i.e., Series[f[z],{z,Infinity,n}] for an n-term expansion in $1/z$. – Ron Gordon Oct 28 '15 at 21:08 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9752018398044143,
"lm_q1q2_score": 0.855716974413328,
"lm_q2_score": 0.8774767842777551,
"openwebmath_perplexity": 526.6697709462901,
"openwebmath_score": 0.9793195724487305,
"tags": null,
"url": "https://math.stackexchange.com/questions/1502270/can-one-compute-series-expansions-or-complex-residues-at-essential-singularities"
} |
Linear Optimization - Lecture Notes and Videos
Math 464 (Spring 2018) - Lecture Notes and Videos on Linear Optimization
Scribes from all lectures so far (as a single big file) | {
"domain": "wsu.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9932024696568575,
"lm_q1q2_score": 0.8556818720142164,
"lm_q2_score": 0.8615382040983515,
"openwebmath_perplexity": 11296.644222561166,
"openwebmath_score": 0.5605629682540894,
"tags": null,
"url": "http://math.wsu.edu/faculty/bkrishna/FilesMath464/S18/LecNotes/welcome.html"
} |
Lec # Date Topic(s) Scribe Panopto
1 Jan 9 syllabus, optimization in calculus, solving $$A\mathbf{x} = \mathbf{b}$$ using EROs, linear program example: Dude's Thursday problem scribe video
2 Jan 11 no class
3 Jan 16 general form of a linear program (LP), feasible and optimal solutions, standard form, conversion to std form, excess/slack variables scribe video
4 Jan 18 LP formulations, diet problem, solution in AMPL, road lighting problem, exceeding illumination limits, currency exchange LP scribe video
5 Jan 23 convex function, piecewise linear (PL) convex (PLC) functions, max of convex functions is convex, PLC functions in LP scribe video
6 Jan 25 $$|x_i| \to x_i^+, x_i^-$$, lighting problem: get "close to" $$I_i^*$$, inventory planning LP, graphical solution in 2D, feasible region, slide $$\mathbf{c}^T\mathbf{x}$$ line scribe video
7 Jan 30 cases of LP, unique and alternative optimal solutions, unbounded LP, infeasible LP, subspace, affine spaces, polyhedron, halfspace scribe video
8 Feb 1 polyhedron is convex, bounded set, convex hull, active constraint, extreme point, vertex, basic and basic feasible solution (bfs) scribe video
9 Feb 6 proof of extreme point $$\Leftrightarrow$$ vertex $$\Leftrightarrow$$ bfs, adjacent basic solutions and bfs's, polyhedron $$P$$ in standard form, basic solutions of $$P$$ scribe video
10 Feb 8 finding basic solutions in Octave, correspondence of corner points and bfs's, degenrate basic bfs, degeneracy and representation scribe video
11 Feb 13 degeneracy in standard form, $$P$$ has no line $$\Leftrightarrow P$$ has vertex, existence of optimal vertex, shape of standard form polyhedron scribe video
12 Feb 15 simplex method, feasible direction at $$\mathbf{x}$$: $$\mathbf{x}+\theta\mathbf{d} \in P \mbox{ for } \theta > 0, j$$th basic direction at bfs $$\mathbf{x}$$, reduced cost $$\mathbf{c}'^T = \mathbf{c}^T - \mathbf{c}_B B^{-1} A$$ scribe video | {
"domain": "wsu.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9932024696568575,
"lm_q1q2_score": 0.8556818720142164,
"lm_q2_score": 0.8615382040983515,
"openwebmath_perplexity": 11296.644222561166,
"openwebmath_score": 0.5605629682540894,
"tags": null,
"url": "http://math.wsu.edu/faculty/bkrishna/FilesMath464/S18/LecNotes/welcome.html"
} |
13 Feb 20 hints for problems from Hw6, LP optimality conditions in standard form: basis $$B$$ optimal if $$B^{-1}\mathbf{b} \geq \mathbf{0}$$ and $$\mathbf{c}^T - \mathbf{c}_B B^{-1} A \geq \mathbf{0}^T$$ scribe video
14 Feb 22 entering/leaving variable, min-ratio test: $$\theta^* = \min_{\{i \in \scr{B}|d_{B(i)} < 0\}} \,(-x_{B(i)}/d_{B(i)})$$, an iteration of the simplex method, Octave session scribe video | {
"domain": "wsu.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9932024696568575,
"lm_q1q2_score": 0.8556818720142164,
"lm_q2_score": 0.8615382040983515,
"openwebmath_perplexity": 11296.644222561166,
"openwebmath_score": 0.5605629682540894,
"tags": null,
"url": "http://math.wsu.edu/faculty/bkrishna/FilesMath464/S18/LecNotes/welcome.html"
} |
# How does the Taylor Series converge at all points for certain functions
The way my professor defined Taylor polynomials is: the $$n^{th}$$ degree Taylor polynomial $$p(x)$$ of $$f(x)$$ is a polynomial that satisfies $$\lim_{x\to 0}{f(x)-p(x) \over x^n} = 0$$. This is actually the little-o notation $$o(x^n)$$, which means $$(f(x)-p(x)) \ll x^n$$ as $$x$$ approaches $$0$$. From this I have got the intuition that Taylor Polynomials work only for $$|x| < 1$$ because $$x^n$$ gets smaller as $$n$$ gets bigger only when $$|x| < 1$$. And the textbook seemed to agree with my intuition, because the textbook says “Taylor polynomial near the origin” (probably implying $$|x| < 1$$).
Since Taylor Series is basically Taylor polynomial with $$n\to\infty$$, I intuitively thought that the Taylor Series would also only converge to the function it represents in the interval $$(-1, 1)$$.
For example, in the case of $$1\over1-x$$, it is well known that the Taylor series only converges at $$|x| < 1$$.
However, all of a sudden, the textbook says that the Taylor series of $$\cos x$$ converges for all real $$x$$. It confused me because previously I thought the Taylor series would only work for $$|x|<1$$. Now, I know that the Taylor Series is defined like this: $$f(x) = Tf(x) \Leftrightarrow \lim_{n\to\infty}R_{n}f(x) = 0$$
And I know how to get the maximum of Taylor Remainder for $$\cos x$$ using Taylor's Theorem, and I know that the limit of that Taylor Remainder is $$0$$ for all real $$x$$, which makes the Taylor Series of $$cosx$$ converge to $$\cos x$$, pointwise. However, I just can't get why my initial intuition is wrong (why taylor series converges for all $$x$$ for certain functions, like $$\cos x$$, also $$\sin x$$ and $$e^x$$, etc.) | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759666033577,
"lm_q1q2_score": 0.8556645841171188,
"lm_q2_score": 0.8723473846343394,
"openwebmath_perplexity": 124.58894626498918,
"openwebmath_score": 0.9634480476379395,
"tags": null,
"url": "https://math.stackexchange.com/questions/3642078/how-does-the-taylor-series-converge-at-all-points-for-certain-functions"
} |
• For the specific example $e^x$, the terms in its series are $x^n/n!$. Note that $n!$ grows much faster than $x^n$ as $n$ grows. That's one reason to believe the Taylor series of $e^x$ converges. Apr 24 '20 at 18:10
• In my mind, the key idea of calculus is the local linear approximation $f(x) \approx f(a) + f'(a)(x - a)$, which is a good approximation when $x$ is near $a$. It is natural to ask, what if we approximate $f$ locally by a quadratic or cubic function rather than by a linear function. This leads to the idea of Taylor polynomial approximation, which is indeed initially intended to be a local approximation to $f$. But when we look at the remainder term in Taylor's theorem, there's something kind of amazing, surprising that happens which is that often it's small even when $x$ is far from $a$. Apr 24 '20 at 18:11
• @trisct Yes that is true indeed. The limit of Taylor remainder for $e^x$ is also zero for all x, which further explains why the Taylor Series converges. But I still I can't see why my initial intuition is wrong.
– the
Apr 24 '20 at 18:12
• @littleO So it just happened to be that the Taylor remainder's limit is zero even for x far away?
– the
Apr 24 '20 at 18:14
• @linearAlg In my mind, yes. It is just one of the miracles of math, which makes us wonder why things have worked out more nicely than we deserved. Apr 24 '20 at 18:16 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759666033577,
"lm_q1q2_score": 0.8556645841171188,
"lm_q2_score": 0.8723473846343394,
"openwebmath_perplexity": 124.58894626498918,
"openwebmath_score": 0.9634480476379395,
"tags": null,
"url": "https://math.stackexchange.com/questions/3642078/how-does-the-taylor-series-converge-at-all-points-for-certain-functions"
} |
Actually, things may go wrong in $$(-1,1)$$. For instance, the Taylor series centered at $$0$$ of $$f(x)=\frac1{1-nx}$$ only converges to $$f(x)$$ on $$\left(-\frac1n,\frac1n\right)$$. And if$$f(x)=\begin{cases}e^{-1/x^2}&\text{ if }x\ne0\\0&\text{ if }x=0,\end{cases}$$then the Taylor series of $$f$$ only converges to $$f(x)$$ if $$x=0$$.
On the other hand, yes, Taylor series centered at $$0$$ are made to converge to $$f(x)$$ near $$0$$. But that's no reason to expect that they don't converge to $$f(x)$$ when $$x$$ is way from $$0$$. That would be like expecting that a non-constant power series $$a_0+a_1x+a_2x^2+\cdots$$ takes larger and larger values as the distance from $$x$$ to $$0$$. That happens often, but $$1-\frac1{2!}x^2+\frac1{4!}x^4-\cdots=\cos(x)$$, which is bounded.
In other words, you have gone from $$a\implies b$$ to $$\tilde a\implies \tilde b,$$ which you can see to be clearly false, identically. That is, it is not necessarily true for all $$a,\,b.$$
Since you already know why the series for entire functions like $$\cos x$$ converges everywhere (as you explain towards the end of your post), you should now see where your original intuition (I would say erroneous belief) misled you. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759666033577,
"lm_q1q2_score": 0.8556645841171188,
"lm_q2_score": 0.8723473846343394,
"openwebmath_perplexity": 124.58894626498918,
"openwebmath_score": 0.9634480476379395,
"tags": null,
"url": "https://math.stackexchange.com/questions/3642078/how-does-the-taylor-series-converge-at-all-points-for-certain-functions"
} |
# Helen and Joe play guitar together every day at lunchtime.
Helen and Joe play guitar together every day at lunchtime. The number of songs that they play on a given day has a Poisson distribution, with an average of 5 songs per day. Regardless of how many songs they will play that day, Helen and Joe always flip a coin at the start of each song, to decide who will play the solo on that song. If we know that Joe plays exactly 4 solos on a given day, then how many solos do we expect that Helen will play on that same day?
My attempt: If the average is $$5$$ songs a day and Joe performs $$4$$ solos on one day. I thought we should expect Helen to perform $$1$$ solo on the same day $$(5-4=1)$$
But The answer given to me is: $$2.5$$ solos we expect Helen to play
My question is why? What is the way of thinking that gives me $$2.5$$? Is it cause of the coin flip? so $$5 \cdot .5 = 2.5$$? What does Joe's $$4$$ solos have to do with anything then?
Thank You for any help.
• Helen and Joe must have played $4$ or more solos on that day. In other words, you should be thinking about a conditional probability. – Toby Mak May 15 at 2:42
Let $$X$$ denote the total number of games played, and let $$J$$ denote the number of games Joe played. The conditional distribution of $$X$$ given $$J=4$$, namely $$X|J=4$$, is supported on $$\{4,5,\ldots\}$$ and has pmf $$P(X=k|J=4)=\frac{P(J=4|X=k)P(X=k)}{\sum_{k=4}^{\infty}P(J=4|X=k)P(X=k)}$$ which is non zero whenever $$k\geq 4$$. Using the facts that $$X\sim \text{Poisson}(5)$$ and $$J|X\sim \text{Binomial}(X,1/2)$$ we get $$P(X=k|J=4)=e^{-5/2}\frac{1}{(k-4)!}\bigg(\frac{5}{2}\bigg)^{k-4}$$ This means $$X-4|J=4\sim \text{Poisson}(5/2)$$ and so $$\mathbb{E}(X-4|J=4)=\mathbb{E}(X|J=4)-4=5/2$$ Hence $$13/2=E(X|J=4)$$ so expected number of times Helen plays is $$5/2$$
While Matthew Pilling and tommik provide answers that show the mathematics of getting the answer, I will provide the intuition involved. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759677214397,
"lm_q1q2_score": 0.8556645785819889,
"lm_q2_score": 0.8723473779969194,
"openwebmath_perplexity": 295.17949725894266,
"openwebmath_score": 0.6853301525115967,
"tags": null,
"url": "https://math.stackexchange.com/questions/4139421/helen-and-joe-play-guitar-together-every-day-at-lunchtime/4139434"
} |
1. We know that, on this specific day, Joe played 4 solos. This provides a minimum number of songs - specifically, there must have been at least 4 songs. Note that it is very possible for the Poisson distribution to produce 0 songs or 1 song. However, we have been given information that constrains the set of possible numbers of songs - it must be at least 4.
2. We know that Joe played exactly 4 solos - this is a lot more likely if there are 8 songs (~27%) than if there are 4 songs (~6%). This changes the likelihoods of each of the possibilities, compared with the basic Poisson distribution, given this information.
3. How many solos we expect Helen to have played can then be worked out from the new probabilities, which have incorporated the additional information (that Joe played 4 solos).
To see why the 50% information can't be directly used to conclude that Helen is expected to have played 4 solos as well, consider a slightly modified version of the problem. Rather than the number of songs following a Poisson distribution, we will assume that they follow a uniform distribution of between 1 and 7 songs.
Now, we know that Joe played 4 solos. How many solos do we expect Helen to have played? Well, it can't be 4, because that would mean they may have played 8 songs, which can't have happened - the maximum is 7 songs.
To work out the correct answer, we turn to Bayes' Theorem, which is explicitly used in Matthew's answer, and is hidden by proportionality in tommik's answer. Think of the fact that Joe played 4 solos as a "new piece of information". Bayes' Theorem (at least by Bayesian thinking) lets you update your probabilities given the new information.
The answer of @Matthew Pilling is perfect (+1). A Bayesian approach will lead to the same solution avoiding a lot of calculations: (constants are not considered until the end of the process) | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759677214397,
"lm_q1q2_score": 0.8556645785819889,
"lm_q2_score": 0.8723473779969194,
"openwebmath_perplexity": 295.17949725894266,
"openwebmath_score": 0.6853301525115967,
"tags": null,
"url": "https://math.stackexchange.com/questions/4139421/helen-and-joe-play-guitar-together-every-day-at-lunchtime/4139434"
} |
$$\mathbb{P}[X|J=4]\propto \mathbb{P}[X]\cdot \mathbb{P}[J=4|X]\propto\frac{5^x}{x!}\cdot \binom{x}{4}\left(\frac{1}{2}\right)^x\propto\frac{\left(\frac{5}{2}\right)^{x}}{(x-4)!}\propto\frac{\left(\frac{5}{2}\right)^{(x-4)}}{(x-4)!}$$
Setting $$Y=X-4$$ we immediately recognize the kernel of a Poisson distribution with mean 2.5
Here $$Y$$ is the distribution of the solos played by Helen
$$\mathbb{P}[Y=y|\text{Joe }=4]=\frac{e^{-2.5}\cdot 2.5^y}{y!}$$
Here's some intuition:
The Poisson distribution is the limiting case for a binomial distribution where the number of trials goes to infinity while the success probability shrinks proportionally to keep the total expectation constant. So we can imagine Helen and Joe spending their lunch break making a very large number of Bernoulli trials, with each giving a small probability of "play a song now".
When the number of trials grows large we can fold the coin flip into that process, deciding that when "play a song now" comes out at trial number $$n$$, Helen plays the solo if $$n$$ is odd, and Joe plays the solo if $$n$$ is even.
But this effectively means that each of Helen and Joe might as well be making their own separate series of trials, with half as many trials but the same probability, and therefore half the expected value. The number of solos played by each is independent of the other, and still Poisson distributed.
The number of solos Helen plays is independent of the number of solos Joe plays, so his $$4$$ solos is not actually relevant information.
An alternative (and perhaps slightly more rigorous) phrasing of the same reinterpretation: | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759677214397,
"lm_q1q2_score": 0.8556645785819889,
"lm_q2_score": 0.8723473779969194,
"openwebmath_perplexity": 295.17949725894266,
"openwebmath_score": 0.6853301525115967,
"tags": null,
"url": "https://math.stackexchange.com/questions/4139421/helen-and-joe-play-guitar-together-every-day-at-lunchtime/4139434"
} |
An alternative (and perhaps slightly more rigorous) phrasing of the same reinterpretation:
In each step, instead of first asking "should we play a song now?" and then "who should play the solo if we do play?", in each step we can ask "should Joe play now?" and "should Helen play now?" each independently with half the probability. That's almost the same, except that there's a finite chance the answer would be that both should play. But when we go to the limit of infinity many steps, the risk of that happening in any given step goes to zero as $$1/N^2$$, and so the probability of it ever happening during the entire lunch break goes to zero as $$1/N$$. Therefore the risk becomes irrelevant in the limit where the distributions become Poisson. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759677214397,
"lm_q1q2_score": 0.8556645785819889,
"lm_q2_score": 0.8723473779969194,
"openwebmath_perplexity": 295.17949725894266,
"openwebmath_score": 0.6853301525115967,
"tags": null,
"url": "https://math.stackexchange.com/questions/4139421/helen-and-joe-play-guitar-together-every-day-at-lunchtime/4139434"
} |
The Stacks Project
Tag: 036M
This tag has label descent-section-fppf-local-source, it is called Properties of morphisms local in the fppf topology on the source in the Stacks project and it points to
The corresponding content:
31.24. Properties of morphisms local in the fppf topology on the source
Here are some properties of morphisms that are fppf local on the source.
Lemma 31.24.1. The property $\mathcal{P}(f)=$''$f$ is locally of finite presentation'' is fppf local on the source.
Proof. Being locally of finite presentation is Zariski local on the source and the target, see Morphisms, Lemma 25.22.2. It is a property which is preserved under composition, see Morphisms, Lemma 25.22.3. This proves (1), (2) and (3) of Lemma 31.22.3. The final condition (4) is Lemma 31.10.1. Hence we win. $\square$
Lemma 31.24.2. The property $\mathcal{P}(f)=$''$f$ is locally of finite type'' is fppf local on the source.
Proof. Being locally of finite type is Zariski local on the source and the target, see Morphisms, Lemma 25.16.2. It is a property which is preserved under composition, see Morphisms, Lemma 25.16.3, and a flat morphism locally of finite presentation is locally of finite type, see Morphisms, Lemma 25.22.8. This proves (1), (2) and (3) of Lemma 31.22.3. The final condition (4) is Lemma 31.10.2. Hence we win. $\square$
Lemma 31.24.3. The property $\mathcal{P}(f)=$''$f$ is open'' is fppf local on the source.
Proof. Being an open morphism is clearly Zariski local on the source and the target. It is a property which is preserved under composition, see Morphisms, Lemma 25.24.3, and a flat morphism of finite presentation is open, see Morphisms, Lemma 25.26.9 This proves (1), (2) and (3) of Lemma 31.22.3. The final condition (4) follows from Morphisms, Lemma 25.26.10. Hence we win. $\square$
Lemma 31.24.4. The property $\mathcal{P}(f)=$''$f$ is universally open'' is fppf local on the source. | {
"domain": "columbia.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759621310288,
"lm_q1q2_score": 0.8556645671947227,
"lm_q2_score": 0.8723473713594992,
"openwebmath_perplexity": 779.8899106891482,
"openwebmath_score": 0.9868103265762329,
"tags": null,
"url": "http://stacks.math.columbia.edu/tag/036M"
} |
Proof. Let $f : X \to Y$ be a morphism of schemes. Let $\{X_i \to X\}_{i \in I}$ be an fppf covering. Denote $f_i : X_i \to X$ the compositions. We have to show that $f$ is universally open if and only if each $f_i$ is universally open. If $f$ is universally open, then also each $f_i$ is universally open since the maps $X_i \to X$ are universally open and compositions of universally open morphisms are universally open (Morphisms, Lemmas 25.26.9 and 25.24.3). Conversely, assume each $f_i$ is universally open. Let $Y' \to Y$ be a morphism of schemes. Denote $X' = Y' \times_Y X$ and $X'_i = Y' \times_Y X_i$. Note that $\{X_i' \to X'\}_{i \in I}$ is an fppf covering also. The morphisms $f'_i : X_i' \to Y'$ are open by assumption. Hence by the Lemma 31.24.3 above we conclude that $f' : X' \to Y'$ is open as desired. $\square$
\section{Properties of morphisms local in the fppf topology on the source}
\label{section-fppf-local-source}
\noindent
Here are some properties of morphisms that are fppf local on the source.
\begin{lemma}
\label{lemma-locally-finite-presentation-fppf-local-source}
The property $\mathcal{P}(f)=$$f$ is locally of finite presentation''
is fppf local on the source.
\end{lemma}
\begin{proof}
Being locally of finite presentation is Zariski local on the source
and the target, see Morphisms,
Lemma \ref{morphisms-lemma-locally-finite-presentation-characterize}.
It is a property which is preserved under composition, see
Morphisms, Lemma \ref{morphisms-lemma-composition-finite-presentation}.
This proves
(1), (2) and (3) of Lemma \ref{lemma-properties-morphisms-local-source}.
The final condition (4) is
Lemma \ref{lemma-flat-finitely-presented-permanence-algebra}. Hence we win.
\end{proof}
\begin{lemma}
\label{lemma-locally-finite-type-fppf-local-source}
The property $\mathcal{P}(f)=$$f$ is locally of finite type''
is fppf local on the source.
\end{lemma} | {
"domain": "columbia.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759621310288,
"lm_q1q2_score": 0.8556645671947227,
"lm_q2_score": 0.8723473713594992,
"openwebmath_perplexity": 779.8899106891482,
"openwebmath_score": 0.9868103265762329,
"tags": null,
"url": "http://stacks.math.columbia.edu/tag/036M"
} |
\begin{proof}
Being locally of finite type is Zariski local on the source
and the target, see Morphisms,
Lemma \ref{morphisms-lemma-locally-finite-type-characterize}.
It is a property which is preserved under composition, see
Morphisms, Lemma \ref{morphisms-lemma-composition-finite-type}, and
a flat morphism locally of finite presentation is locally of finite type, see
Morphisms, Lemma \ref{morphisms-lemma-finite-presentation-finite-type}.
This proves
(1), (2) and (3) of Lemma \ref{lemma-properties-morphisms-local-source}.
The final condition (4) is
Lemma \ref{lemma-finite-type-local-source-fppf-algebra}. Hence we win.
\end{proof}
\begin{lemma}
\label{lemma-open-fppf-local-source}
The property $\mathcal{P}(f)=$$f$ is open''
is fppf local on the source.
\end{lemma}
\begin{proof}
Being an open morphism is clearly Zariski local on the source and the target.
It is a property which is preserved under composition, see
Morphisms, Lemma \ref{morphisms-lemma-composition-open}, and
a flat morphism of finite presentation is open, see
Morphisms, Lemma \ref{morphisms-lemma-fppf-open}
This proves
(1), (2) and (3) of Lemma \ref{lemma-properties-morphisms-local-source}.
The final condition (4) follows from
Morphisms, Lemma \ref{morphisms-lemma-fpqc-quotient-topology}.
Hence we win.
\end{proof}
\begin{lemma}
\label{lemma-universally-open-fppf-local-source}
The property $\mathcal{P}(f)=$$f$ is universally open''
is fppf local on the source.
\end{lemma} | {
"domain": "columbia.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759621310288,
"lm_q1q2_score": 0.8556645671947227,
"lm_q2_score": 0.8723473713594992,
"openwebmath_perplexity": 779.8899106891482,
"openwebmath_score": 0.9868103265762329,
"tags": null,
"url": "http://stacks.math.columbia.edu/tag/036M"
} |
\begin{proof}
Let $f : X \to Y$ be a morphism of schemes.
Let $\{X_i \to X\}_{i \in I}$ be an fppf covering.
Denote $f_i : X_i \to X$ the compositions.
We have to show that $f$ is universally open if and only if
each $f_i$ is universally open. If $f$ is universally open,
then also each $f_i$ is universally open since the maps
$X_i \to X$ are universally open and compositions
of universally open morphisms are universally open
(Morphisms, Lemmas \ref{morphisms-lemma-fppf-open}
and \ref{morphisms-lemma-composition-open}).
Conversely, assume each $f_i$ is universally open.
Let $Y' \to Y$ be a morphism of schemes.
Denote $X' = Y' \times_Y X$ and $X'_i = Y' \times_Y X_i$.
Note that $\{X_i' \to X'\}_{i \in I}$ is an fppf covering also.
The morphisms $f'_i : X_i' \to Y'$ are open by assumption.
Hence by the Lemma \ref{lemma-open-fppf-local-source}
above we conclude that $f' : X' \to Y'$ is open as desired.
\end{proof}
To cite this tag (see How to reference tags), use:
\cite[\href{http://stacks.math.columbia.edu/tag/036M}{Tag 036M}]{stacks-project}
In your comment you can use Markdown and LaTeX style mathematics (enclose it like $\pi$). A preview option is available if you wish to see how it works out (just click on the eye in the lower-right corner). | {
"domain": "columbia.edu",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9808759621310288,
"lm_q1q2_score": 0.8556645671947227,
"lm_q2_score": 0.8723473713594992,
"openwebmath_perplexity": 779.8899106891482,
"openwebmath_score": 0.9868103265762329,
"tags": null,
"url": "http://stacks.math.columbia.edu/tag/036M"
} |
# Equation of the line that lies tangent to both circles
Consider the two circles determined by $$(x-1)^2 + y^2 = 1$$ and $$(x-2.5)^2 + y^2 = (1/2)^2$$. Find the (explicit) equation of the line that lies tangent to both circles.
I have never seen a clean or clever solution to this problem. This problem came up once at a staff meeting for a tutoring center I worked at during undergrad. I recall my roommate and I - after a good amount of time symbol pushing - were able to visibly see a solution by inspection, then verify it by plugging in. I have never seen a solid derivation of a solution to this though, so I would like to see what MSE can come up with for this!
I took a short stab at it today before posting, and got that it would be determined by the solution to the equation $$\left( \frac{\cos(\theta)}{\sin(\theta)} + 2\cos(\theta) + 3 \right)^2 -4\left( \frac{\cos(\theta)^2}{\sin(\theta)^2}+1 \right)\left(\frac{-\cos(\theta)^3}{\sin(\theta)^2}+\frac{\cos(\theta)^4}{\sin(\theta)^2}+3 \right).$$
The solution $$\theta$$ would then determine the line $$y(x) = \frac{-\cos(\theta)}{\sin(\theta)}(x) + \frac{\cos(\theta)^2}{\sin(\theta)} + \sin(\theta).$$
Not only do I not want to try and solve that, I don't even want to try expanding it out :/
• not $x=2$ :-) ? – J. W. Tanner May 9 at 0:32
• "the line"? I see 3 common tangents after plotting the circles. – peterwhy May 9 at 0:32
• math.stackexchange.com/questions/211538/… – lab bhattacharjee May 9 at 0:44
• @peterwhy Hi Peter. One of those 3 solutions is so trivial, I am offended you would even bring it up. For the remaining 2, one is clearly the other ones mirror image. So I am going to stick to my wording of 'find the line' since there is clearly one difficult one to find, which is what I am interested in seeing solutions for. Let me know when you have one, you can post answers below. – Prince M May 9 at 4:47 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.977022630759019,
"lm_q1q2_score": 0.8556637121481672,
"lm_q2_score": 0.8757869932689566,
"openwebmath_perplexity": 185.1788240251181,
"openwebmath_score": 0.8656613230705261,
"tags": null,
"url": "https://math.stackexchange.com/questions/3219147/equation-of-the-line-that-lies-tangent-to-both-circles/3219165"
} |
As peterwhy points out in the comments, there are three tangent lines. By inspection, one is $$x = 2$$, as pointed out by J.W. Tanner in the comments.
The other two can be identified by similar triangles. Suppose that we have a line tangent to both circles, and let the points of tangency be $$T_1$$ and $$T_2$$. Let the circle centers be $$O_1$$ and $$O_2$$. Finally, let the point where this line intersects the $$x$$-axis be called $$P$$. Then $$\triangle PO_1T_1$$ and $$\triangle PO_2T_2$$ are similar (do you see why?). Since $$O_1T_1 = 2O_2T_2$$, we must have $$PO_1 = 2PO_2$$, and therefore $$P$$ must be at $$(4, 0)$$. Note that $$PT_1 = \sqrt{3^2-1^2} = \sqrt{8}$$, and therefore our tangent line must have slope $$\pm \frac{1}{\sqrt{8}}$$.
(For simplicity, I only show one of the tangent lines; the other is its mirror image across the $$x$$-axis.) From this, we get the equation of the two remaining tangent lines
$$y = \pm \frac{x-4}{\sqrt{8}}$$
• This is a clean solution. Nice – Prince M May 9 at 4:52
The equation of the second circle can be written as $$x^2+y^2-5x+6=0$$.
Let $$P(h,k)$$ be a point on the second circle.
Then the equation of the tangent to the second circle at $$P$$ is $$hx+ky-\dfrac52(x+h)+6=0$$.
If it is also a tangent to the first circle, the distance from $$(1,0)$$ to this line is $$1$$.
\begin{align*} \frac{|h-\frac52(1+h)+6|}{\sqrt{(h-\frac52)^2+k^2}}&=1\\ \frac{|-\frac32h+\frac72|}{\sqrt{(\frac12)^2}}&=1\\ -3h+7&=\pm1 \end{align*} So, we have $$h=2$$ or $$h=\frac83$$.
If $$h=2$$, $$k=\pm\sqrt{(\frac12)^2-(2-\frac52)^2}=0$$ and the common tangent is $$x-2=0$$.
If $$h=\frac83$$, $$k=\pm\sqrt{(\frac12)^2-(\frac83-\frac52)^2}=\pm\frac{\sqrt{2}}{3}$$ and the common tangents are $$x\pm2\sqrt{2}y-4=0$$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.977022630759019,
"lm_q1q2_score": 0.8556637121481672,
"lm_q2_score": 0.8757869932689566,
"openwebmath_perplexity": 185.1788240251181,
"openwebmath_score": 0.8656613230705261,
"tags": null,
"url": "https://math.stackexchange.com/questions/3219147/equation-of-the-line-that-lies-tangent-to-both-circles/3219165"
} |
Use dual conics: If we represent a circle (in fact, any nondegenerate conic) with the homogeneous matrix $$C$$ so that its equation is $$(x,y,1)C(x,y,1)^T=0$$, lines $$\lambda x+\mu y+\tau=0$$ tangent to the circle satisfy the dual conic equation $$(\lambda,\mu,\tau)\,C^{-1}(\lambda,\mu,\tau)^T=0$$. (This equation captures the fact that the pole of a tangent line lies on the line.)
The matrix that corresponds to the circle $$(x-h)^2+(y-k)^2=r^2$$ is $$C=\begin{bmatrix}1&0&-h\\0&1&-k\\-h&-k&h^2+k^2-r^2\end{bmatrix}$$ with inverse $$C^{-1}=\frac1{r^2}\begin{bmatrix}r^2-h^2&-hk&-h\\-hk&r^2-k^2&-k\\-h&-k&-1\end{bmatrix}.$$ For the circles in this problem, the resulting dual equations are $$\mu^2-\tau^2-2\lambda\tau = 0 \\ -24\lambda^2+\mu^2-4\tau^2-20\lambda\tau = 0.$$ Both circles’ centers lie on the $$x$$-axis but their radii differ, so no common tangent is horizontal. Thus, we can set $$\lambda=1$$ and solve the slightly simpler system to obtain the solutions $$\mu=0$$, $$\tau=-2$$ and $$\mu=\pm2\sqrt2$$, $$\tau=-4$$, i.e., the three common tangent lines are $$x=2 \\ x\pm2\sqrt2 y=4.$$
This general method works for any pair of nondegenerate conics: it finds their common tangents by solving a dual problem of the intersection of two (possibly imaginary) conics. For a pair of circles, however, there’s a simple way to find common tangents via similar triangles, as demonstrated in Brian Tung’s answer.
To find a common tangent to two arbitrary circles, you can use the following trick: "deflate" the smaller circle (let $$1$$) so that it shrinks to a point, while the second shrinks to the radius $$r_2-r_1$$. Doing this, the direction of the tangent doesn't change and the tangency point forms a right triangle with the two centers.
By elementary trigonometry, the angle $$\phi$$ between the axis through the centers and the tangent is drawn from
$$d\sin\phi=r_2-r_1,$$ where $$d$$ is the distance between the centers. The direction of the axis is such that | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.977022630759019,
"lm_q1q2_score": 0.8556637121481672,
"lm_q2_score": 0.8757869932689566,
"openwebmath_perplexity": 185.1788240251181,
"openwebmath_score": 0.8656613230705261,
"tags": null,
"url": "https://math.stackexchange.com/questions/3219147/equation-of-the-line-that-lies-tangent-to-both-circles/3219165"
} |
$$\tan\theta=\frac{y_2-y_1}{x_2-x_1}.$$
So the equation of the tangent is given by
$$(x-x_1)\sin(\theta+\phi)-(y-y_1)\cos(\theta+\phi)=0.$$
The original tangent is a parallel at distance $$r_1$$, hence
$$(x-x_1)\sin(\theta+\phi)-(y-y_1)\cos(\theta+\phi)=r_1.$$
• Caution: quadrant discussion is missing. – Yves Daoust May 9 at 20:30
As already stated, there are three lines that can be drawn that are tangent to both circles. One is the trivial line $$x = 2,$$ which is tangent at the point $$(2,0)$$, which is also the common point of tangency of the two circles.
The other two lines are reflections of each other in the $$x$$-axis; these can be found by noting that a homothety that takes the point $$(0,0)$$ to $$(2,0)$$ and $$(2,0)$$ to $$(3,0)$$ will map the first circle to the second, and the center of this homothety will be a fixed point of this map.
To this end, let $$(x',y') = (a x + b, a y + d)$$, so we now solve the system $$(b, d) = (2,0) \\ (2a + b, d) = (3,0).$$ That is to say, $$b = 2$$, $$d = 0$$, $$a = 1/2$$, and the desired homothety is $$(x',y') = (x/2 + 2, y/2).$$ The unique fixed point is found by setting $$(x',y') = (x,y)$$ from which we obtain $$(x,y) = (4,0)$$. Thus the tangent lines pass through this point and have the form $$y = m(x - 4)$$ where $$m$$ is the slope. Such a line will be tangent if the system of equations $$(x-1)^2 + y^2 = 1, \\ y = m(x-4)$$ has exactly one solution. Eliminating $$y$$ gives the quadratic $$(m^2+1)x^2 - 2(4m^2+1)x + 16m^2 = 0,$$ for which the solution has a unique root if the discriminant is zero; i.e., $$0 = 4(4m^2+1)^2 - 4(m^2+1)(16m^2) = 4 - 32m^2.$$ Therefore, $$m = \pm 1/\sqrt{2}$$ and the desired lines are $$y = \pm \frac{x-4}{2 \sqrt{2}},$$ in addition to the previous line $$x = 2$$ described.
Beside the obvious solution of $$x=2$$ you also have two more common tangent lines, namely $$y= \pm \frac {\sqrt {2}}{4} (x-4)$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.977022630759019,
"lm_q1q2_score": 0.8556637121481672,
"lm_q2_score": 0.8757869932689566,
"openwebmath_perplexity": 185.1788240251181,
"openwebmath_score": 0.8656613230705261,
"tags": null,
"url": "https://math.stackexchange.com/questions/3219147/equation-of-the-line-that-lies-tangent-to-both-circles/3219165"
} |
The two non-obvious tangent lines pass through $$(4,0)$$ and their y-intercepts are respectively $$(0,\pm \sqrt {2})$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.977022630759019,
"lm_q1q2_score": 0.8556637121481672,
"lm_q2_score": 0.8757869932689566,
"openwebmath_perplexity": 185.1788240251181,
"openwebmath_score": 0.8656613230705261,
"tags": null,
"url": "https://math.stackexchange.com/questions/3219147/equation-of-the-line-that-lies-tangent-to-both-circles/3219165"
} |
Thread: AP calculus exam question on Absolute max
1. $\text{22. Let f be the function defined by$f(x)=\dfrac{\ln x}{x}$What is the absolute maximum value of f ? }$
$$(A)\, 1\quad (B)\, \dfrac{1}{e} (C)\, 0 \quad (D) -e \quad (E) f\textit{ does not have an absolute maximum value}.$$
I only guessed this by graphing it and it appears to $\dfrac{1}{e}$ which is (B)
2.
3. Originally Posted by karush
$\text{22. Let f be the function defined by$f(x)=\dfrac{\ln x}{x}$What is the absolute maximum value of f ? }$
$$(A)\, 1\quad (B)\, \dfrac{1}{e} (C)\, 0 \quad (D) -e \quad (E) f\textit{ does not have an absolute maximum value}.$$
I only guessed this by graphing it and it appears to $\dfrac{1}{e}$ which is (B)
Why would graphing be a guess? It's a valid Mathematical tool!
You could do this by taking the derivative of f(x) and finding the critical points, etc. But if you have this question on an exam the simplest (and probably fastest) way is to take a look at each answer and see what you get. D) is out because f(x) takes on positive values, and A), C), and E) are out by looking at the graph. That leaves B).
-Dan
4. $f’(x)=\dfrac{x \cdot \frac{1}{x} - \ln{x} \cdot 1}{x^2} = \dfrac{1-\ln{x}}{x^2}$
$f’(x)=0$ at $x=e$
first derivative test ...
$x < e \implies f’(x) > 0 \implies f(x) \text{ increasing over the interval } (0,e)$
$x > e \implies f’(x) < 0 \implies f(x) \text{ decreasing over the interval } (e, \infty)$
conclusion ... $f(e) = \dfrac{1}{e}$ is an absolute maximum.
second derivative test ...
$f’’(x) = \dfrac{x^2 \cdot \left(-\frac{1}{x} \right) - (1-\ln{x}) \cdot 2x}{x^4} = \dfrac{2\ln{x} - 3}{x^3}$
$f’’(e) = -\dfrac{1}{e^3} < 0 \implies f(e) = \dfrac{1}{e}$ is a maximum.
wow that was a lot of help..
yes the real negative about these assessment tests is how fast you can eliminate possible answers
not so much what math steps are you really need to take
actually Im learning a lot here at MHB
Mahalo | {
"domain": "mathhelpboards.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9770226287518852,
"lm_q1q2_score": 0.8556637056390554,
"lm_q2_score": 0.8757869884059267,
"openwebmath_perplexity": 999.7213435609235,
"openwebmath_score": 0.6694602966308594,
"tags": null,
"url": "https://mathhelpboards.com/calculus-10/ap-calculus-exam-question-absolute-max-26537.html?s=a603e40390a25c7bfe2f8da38efa87a5"
} |
# To find the smallest integer greater than $23$ with certain modular residues
The question asks to find the smallest integer greater than $23$ that leaves the remainders $2,3,2$ when divided by $3,5,7$ respectively. The answer is given as $128$.
I used C.R.T. to solve this. $$x\equiv2\pmod 3\\ x\equiv3\pmod 5\\ x\equiv2\pmod 7$$ where $M=m_1·m_2·m_3=3×5×7=105$.
From here I get solutions, $$x\equiv2\pmod 3\\ x\equiv1\pmod 5\\ x\equiv1\pmod 7$$
After that I find\begin{align*} x &\equiv 2×2×5×7+1×3×3×7+1×2×3×5\\ &\equiv 140+63+30\\ &\equiv 233 \pmod{105}, \end{align*} where I again find that $x=23$.
But one thing I have noticed that $233=105×1+128$. I cannot continue from here. I need help and any help is highly appreciated.
• The "From here I get solutions..." is incomprehensible for me: how applying the CRT gives you those "solutions" and not the final one, which is unique modulo $\;3\cdot5\cdot7=105\;$ ? Mar 12 '18 at 8:34
• @thevbm The solutions are actually given by $23+105n$. Since substituting in $n=0$ gives $23$, you can substitute the next $n$ which is $n=1$. Mar 12 '18 at 8:35
• You could just observe that $23$ itself has the correct remainders modulo $3,5$ and $7$. By CRT the solutions form a single residue class modulo $3\cdot5\cdot7=105$, and you already know which class it is! So....? Mar 12 '18 at 8:35
Applying directly the following proof of CRT, for example:
$$\begin{cases}y_1=\frac{105}3=35\;\implies y_1=2\pmod3\implies y_1^{-1}=2\pmod3\\{}\\y_2=\frac{105}5=21\implies y_2=1\pmod5\implies y_2^{-1}=1\pmod5\;\\{}\\y_3=\frac{105}7=15\implies y_3=1\pmod7\implies y_3^{-1}=1\pmod7\end{cases}$$
so that
$$2\cdot35\cdot2+3\cdot21\cdot1+2\cdot15\cdot1=233\;\;\text{ is a solution, and}$$
$$233=128\pmod{105}\;\;\text{is another solution, and}$$
$$128=23\pmod105\;\;\text{ is the unique solution modulo}\;105$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.967899289579129,
"lm_q1q2_score": 0.8556609957191067,
"lm_q2_score": 0.8840392848011834,
"openwebmath_perplexity": 232.34931110155742,
"openwebmath_score": 0.9270637631416321,
"tags": null,
"url": "https://math.stackexchange.com/questions/2687523/to-find-the-smallest-integer-greater-than-23-with-certain-modular-residues"
} |
$$128=23\pmod105\;\;\text{ is the unique solution modulo}\;105$$
Observe that unless you consider things modulo $\;3\cdot5\cdot7=105\;$ at the end , there is not "the" solution, but only one out of infinitely many
• Yes, now I understand and thank you for providing the link.
– vbm
Mar 12 '18 at 9:03
• Following the link you provided, one question I have (from an example given there) to make my doubt clear. suppose system of congruences is given as $x\equiv 5 \mod 6$ $x\equiv 3 \mod 8$. Here g..c.d of the moduli is $2$. The first congruence implies $x\equiv 1\mod 2$, also the second congruence implies $x\equiv 1\mod 2$Now to reduce the system of congruency to a simpler form if we divide the g.c.d of the moduli from the modulud of the first congruence, then how is it $x\equiv2 \mod3$? rather it should be $x\equiv 1 \mod 3$. If I'm wrong, please correct me. Thank you
– vbm
Mar 12 '18 at 9:38
• @thevbm I'm not sure what your doubt exactly is, but remember the CRT applies for coprime moduli, so reducing your moduli as you did can help...but then you should be careful when going back to the original ones. Mar 12 '18 at 11:53
Let $x\equiv y \equiv 2 \mod 3,$ and $x\equiv y \equiv 3 \mod 5,$ and $x\equiv y \equiv 2 \mod 7.$ Then $x-y \equiv 0$ modulo $3,5,$ and $7.$
So $x-y$ is divisible by $3,5,$ and $7,$ so $x-y$ is divisible by $(3)(5)(7)=105.$ So if $y=23$ and $x>y$ then $x=23+105n$ for some $n\in \Bbb N.$
And if $x=23+105n$ for some $n\in \Bbb N$ then $x\equiv 23$ modulo $3,5,$ and $7.$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.967899289579129,
"lm_q1q2_score": 0.8556609957191067,
"lm_q2_score": 0.8840392848011834,
"openwebmath_perplexity": 232.34931110155742,
"openwebmath_score": 0.9270637631416321,
"tags": null,
"url": "https://math.stackexchange.com/questions/2687523/to-find-the-smallest-integer-greater-than-23-with-certain-modular-residues"
} |
# Sum of unique elements in all sub-arrays of an array
Given an array $$A$$, sum the number of unique elements for each sub-array of $$A$$. If $$A = \{1, 2, 1, 3\}$$ the desired sum is $$18$$.
Subarrays:
{1} - 1 unique element
{2} - 1
{1} - 1
{3} - 1
{1, 2} - 2
{2, 1} - 2
{1, 3} - 2
{1, 2, 1} - 2
{2, 1, 3} - 3
{1, 2, 1, 3} - 3
I have a working solution which sums the unique elements for all sub-arrays starting at index $$0$$, then repeats that process at index $$1$$, etc. I have noticed that for an array of size $$n$$ consisting of only unique elements, the sum I desire can be found by summing $$i(i + 1) / 2$$ from $$i = 1$$ to $$n$$, but I haven't been able to extend that to cases where there are non-unique elements. I thought I could use that fact on each sub-array, but my control logic becomes unwieldy. I've spent considerable time trying to devise a solution better than $$O(n^2)$$ to no avail. Is there one?
Secondary question: if there is no better solution, are there any general guidelines or hints to recognize that fact?
• An incremental algorithm is supposedly easier to come up with in this case, I think so. – Thinh D. Nguyen Oct 18 '18 at 7:16
• I don't understand the line {1, 2, 1} - 2. The multiset {1, 2, 1} only contains one unique element: 2. – Peter Taylor Oct 18 '18 at 10:28
• Peter, yes number of distinct elements might be better phrasing. If all elements of each sub-array are added to a set, the set size is the desired metric. In either case, the behavior in my example is what I'm looking for. – User12345654321 Oct 18 '18 at 17:34
Hint: Use an extra $$O(n)$$-spaced array of pointer to the last (biggest) index of each distinct value. Then, this array is very helpful when you do your above algorithm.
Lastly, we should have an $$O(n)$$ algorithm. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9678992895791291,
"lm_q1q2_score": 0.8556609838907956,
"lm_q2_score": 0.8840392725805822,
"openwebmath_perplexity": 550.5579017369471,
"openwebmath_score": 0.8311969637870789,
"tags": null,
"url": "https://cs.stackexchange.com/questions/98756/sum-of-unique-elements-in-all-sub-arrays-of-an-array"
} |
Lastly, we should have an $$O(n)$$ algorithm.
• This was a good hint. Assume zero-indexed arrays. Starting with sum = maxPossibleSum, iterate through the array adding elements to a set. If the added element is a duplicate, sum = sum - (indexPreviousOccurrence + 1) * (totalElements - currentIndex). This requires just one pass leading to O(n) like you said. Thanks for a quality nudge in the right direction. – User12345654321 Oct 18 '18 at 20:31
If the maximum number $$k$$ is not too high, a Counting Sort based solution can be used;
In the first step, we count the number of elements into the array $$C$$ by
for j = 1 to length(A)
C[A[j]] = C[A[j]]+1
now the array contains all the information we need to sum;
sum = 0;
for j = 1 to k
if C[i] > 1
sum = C[i] * i
Complexity:
$$\mathcal{O}(n)$$ additions (increment) for the counting step
$$\mathcal{O}(n)$$ additions for the summation step
$$\mathcal{O}(n)$$ multiplications for the summation step
result $$\mathcal{O}(n)$$.
Note: indeed the multiplications are not necessary since we will have at most $$n-1$$ addition.
Let $$a_1,\ldots,a_m$$ be the distinct values. Now consider the positions of $$a_i$$'s in $$A$$. Assume the number of $$a_i$$'s is $$b_i$$ and the positions are as follows:
(x_{i0} non-a_i's) a_i (x_{i1} non-a_i's) a_i ... a_i (x_{ib_i} non-a_i's)
In your example $$A=\{1,2,1,3\}$$, when considering the value $$a_1=1$$, we have $$x_{10}=0,x_{11}=1,x_{12}=1$$ because the positions of $$1$$s are like 1 * 1 *: there is $$0$$ element before the first $$1$$, $$1$$ element between the first $$1$$ and the second $$1$$, and $$1$$ element after the second $$1$$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9678992895791291,
"lm_q1q2_score": 0.8556609838907956,
"lm_q2_score": 0.8840392725805822,
"openwebmath_perplexity": 550.5579017369471,
"openwebmath_score": 0.8311969637870789,
"tags": null,
"url": "https://cs.stackexchange.com/questions/98756/sum-of-unique-elements-in-all-sub-arrays-of-an-array"
} |
Then there are \begin{align} &\sum_{j=0}^{b_i} \frac{x_{ij}(x_{ij}+1)}{2}\\ =\ &\frac{1}{2}\sum_{j=0}^{b_i}x_{ij}^2+\frac{1}{2}\sum_{j=0}^{b_i}x_{ij}\\ =\ &\frac{1}{2}\sum_{j=0}^{b_i}x_{ij}^2+\frac{1}{2}(n-b_i) \end{align} subarrays that do not contain $$a_i$$. Note there are $$n(n+1)/2$$ subarrays in total, so the final result we want is \begin{align} &\sum_{i=1}^m\left(\frac{n(n+1)}{2}-\frac{1}{2}\sum_{j=0}^{b_i}x_{ij}^2-\frac{1}{2}(n-b_i)\right)\\ =\ &\frac{1}{2}\left(mn^2+n-\sum_{i=1}^m\sum_{j=0}^{b_i}x_{ij}^2\right). \end{align}
To calculate $$\sum_{i=1}^m\sum_{j=0}^{b_i}x_{ij}^2$$, you can scan the array and maintain a lookup table that, for each distinct value, keeps the position of the last element with this value. With this table, when the $$(j+1)$$-th $$a_i$$ is scanned, you can compute $$x_{ij}$$ easily. This leads us to an $$O(n\log n)$$ solution (or $$O(n)$$ in average if you use a good hash table to implement the lookup table).
• could you clarify what X represents? It looks like a 2D array. This is the part I'm not understanding "(x_{i0} non-a_i's) a_i ..." – User12345654321 Oct 18 '18 at 17:17
• @User12345654321 In your example $A=\{1,2,1,3\}$, when considering the value $a_1=1$, we have $x_{10}=0,x_{11}=1,x_{12}=1$ because the positions of 1s are like 1 * 1 *: there is 0 element before the first 1, 1 element between the first 1 and the second 1, and 1 element after the second 1. – xskxzr Oct 19 '18 at 3:18 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9678992895791291,
"lm_q1q2_score": 0.8556609838907956,
"lm_q2_score": 0.8840392725805822,
"openwebmath_perplexity": 550.5579017369471,
"openwebmath_score": 0.8311969637870789,
"tags": null,
"url": "https://cs.stackexchange.com/questions/98756/sum-of-unique-elements-in-all-sub-arrays-of-an-array"
} |
# Why must $r$ be put in modulus for $\int^{\infty}_0\frac{1-\cos(rx)}{x^2}dx=\frac{\pi}{2}|r|$?
Here's the question: Prove that $$\int^{\infty}_0\frac{1-\cos(rx)}{x^2}~\mathrm dx=\frac{\pi}{2}|r|·$$
When I finished my working, I got $$\frac{\pi}{2}r$$
Why is the $$r$$ put in modulus? Is it because the graph lies entirely above the x axis?
• Did you assume $r\geq 0$ in your working? Nov 10 '18 at 3:18
• The integral expression is visibly even in $r$. As for where the absolute value comes up in your derivation, that depends on your method, I suppose. Nov 10 '18 at 3:21
• Nope I didn't assume r greater than 0 as I thought there wasn't any need to do so Nov 10 '18 at 3:24
• Notice that for any real number $a$, $\cos(a) = \cos(-a)$. In particular, it suffices to solve the problem in the case $r \geq 0$. Nov 10 '18 at 3:49
• Note: the integrand is positive, so you could you get a negative answer? Nov 10 '18 at 13:55 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232924970205,
"lm_q1q2_score": 0.8556432820254921,
"lm_q2_score": 0.8705972768020107,
"openwebmath_perplexity": 251.6901545585949,
"openwebmath_score": 0.9206446409225464,
"tags": null,
"url": "https://math.stackexchange.com/questions/2992202/why-must-r-be-put-in-modulus-for-int-infty-0-frac1-cosrxx2dx-fra/2992629"
} |
Integrating by part: $$\int_0^{+\infty} \frac {1-\cos(rx)}{x^2}\, \mathrm dx = \int_{+\infty}^0 (1 - \cos(rx)) \mathrm d \frac 1 x =\left. \frac {1-\cos(rx)}x \right\vert_{+\infty}^0 - r\int_{+\infty}^0 \frac {\sin(rx)}x\, \mathrm dx = r \int_0^{+\infty} \frac {\sin(rx)}x \,\mathrm dx.$$ Now $$\DeclareMathOperator\sgn{sgn} \int_0^{+\infty} \frac {\sin(rx)}x \,\mathrm dx =\int_0^{+\infty} \frac {\sin(rx)}{rx}\,\mathrm d(rx)= \begin{cases}\displaystyle \int_0^{+\infty} \frac {\sin u}u\, \mathrm du, & r > 0,\\ 0, & r=0,\\ \displaystyle \int_{-\infty}^0 \frac {\sin u}u\, \mathrm du, & r < 0, \end{cases} = \sgn r \cdot \int_0^{+\infty} \frac {\sin u}u\, \mathrm du = \sgn r \cdot \frac \pi 2,$$ hence the integral equals $$r \sgn r \cdot \frac \pi 2 = \frac \pi 2 \vert r \vert.$$
The implicit assumption could be $$r>0$$ when dealing the integral $$\int_0^{+\infty} \sin(rx)\,\mathrm dx /x$$.
The other answers explain how you get $$|r|$$ in your answer, but here’s why it should happen:
Notice that $$1-\cos(rx) \geq 0$$ for all $$x$$, regardless of what $$r$$ is. Integrating a nonnegative function over any interval should give you a nonnegative value. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232924970205,
"lm_q1q2_score": 0.8556432820254921,
"lm_q2_score": 0.8705972768020107,
"openwebmath_perplexity": 251.6901545585949,
"openwebmath_score": 0.9206446409225464,
"tags": null,
"url": "https://math.stackexchange.com/questions/2992202/why-must-r-be-put-in-modulus-for-int-infty-0-frac1-cosrxx2dx-fra/2992629"
} |
# Spivak's Calculus: Finding the formula for the sum of a series. [duplicate]
This question already has an answer here:
In Spivak's Calculus, Chapter 2, the second problem of the set asks you to find a formula for the following series:
$$\sum_{i=1}^n(2i-1)$$ and $$\sum_{i=1}^n(2i-1)^2$$ Now, for the former, this was fairly straightforward: it sums to $i^2$ and I have a proof that I'm happy with. However, for the latter, I cannot identify a pattern in terms of $n$ to begin building a proof. The series proceeds $1^2 + 3^2 + 5^2 + 7^2 + \cdots + (2n-1)^2$, so the sum for the first few indices would be $1, 10, 35,$ and $84.$ Not only have I failed to come up with an expression of this in terms of $n$, but I'm not even sure what I should be considering to lead me to such a formula.
## marked as duplicate by Hans Lundmark, Claude Leibovici, ccorn, cansomeonehelpmeout, ChristopherJun 8 '18 at 12:16
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
• Are you also supposed to give a direct proof by induction, or can you use other known formulæ like the sum of the first $2n$ squares? – Bernard Jun 6 '18 at 20:33
## 5 Answers
Hint : Expand the summand & use \begin{eqnarray*} \sum_{i=1}^{n} i^2 =\frac{n(n+1)(2n+1)}{6}. \end{eqnarray*} You should get to \begin{eqnarray*} \sum_{i=1}^{n} (2i-1)^2 =\frac{n(4n^2-1)}{3}. \end{eqnarray*}
• Thanks to a combination of your hint and dezdichado's below, I managed to figure it out. Thank you very much! – user242007 Jun 6 '18 at 21:44
If you know what $1^2+2^2+...+n^2=f(n)$ sums up to, then your desired sum is simply: $$1^2+3^2+...+(2n-1)^2 = f(2n) - (2^2+4^2+...+(2n)^2) = f(2n) - 4f(n).$$
• Your comment helped me become more aware of incorporating existing known formulae in these exercises. Between that and Donald's comment above, I was able to solve the problem. Thank you. – user242007 Jun 6 '18 at 21:44
$$\sum_{i=1}^n (2i-1)^2$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232874658904,
"lm_q1q2_score": 0.8556432809451938,
"lm_q2_score": 0.8705972801594707,
"openwebmath_perplexity": 356.52627115341085,
"openwebmath_score": 0.7908191084861755,
"tags": null,
"url": "https://math.stackexchange.com/questions/2810593/spivaks-calculus-finding-the-formula-for-the-sum-of-a-series"
} |
$$\sum_{i=1}^n (2i-1)^2$$
$$=\sum_{i=1}^n 4i^2-4i+1$$
$$=4\sum_{i=1}^n i^2-4\sum_{i=1}^n i+\sum_{i=1}^n1$$
• Could you elaborate on this? In trying to implement it with an example value of i = 4, I end up with 81, when the actual value in the series appears to be 84. – user242007 Jun 6 '18 at 21:26
$\sum_\limits{k=1}^n (2k - 1)^2 = \sum_\limits{k=1}^n 4k^2 - \sum_\limits{k=1}^n 4k + \sum_\limits{k=1}^n 1 = 4\left(\sum_\limits{k=1}^n k^2\right) - 2n(n+1) + n$
You need a way to find $\sum_\limits{k=1}^n k^2$
There are lots of other ways to derive this... but this one is nice.
Write the numbers in a triangle
$\begin {array}{} &&&1\\&&2&&2\\&3&&3&&3\\&&&\vdots&&\ddots\\n&&n&\cdots\end{array}$
The sum of each row is $k^2.$ And, the sum of the whole trianglular array is $\sum_\limits{k=1}^n k^2$
Take this triangle and rotate it 60 degrees clockwise and 60 degrees counter clockwise and sum the 3 triangles together.
$\begin {array}{} &&&1\\&&2&&2\\&3&&3&&3\end{array}+\begin {array}{} &&&n\\&&n-1&&n\\&n-2&&n-1&&n\\\end{array}+\begin {array}{} &&&n\\&&n&&n-1\\&n&&n-1&&n-2\end{array}$
And we get:
$\begin {array}{} &&&2n+1\\&&2n+1&&2n+1\\&2n+1&&2n+1&&2n+1\\&&&\vdots&&\ddots\end{array}$
What remains how many elements are in the triangular array? $\sum_\limits{k=1}^n k$
$3\sum_\limits{k=1}^n k^2 = (2n+1)\sum_\limits{k=1}^n k\\ \sum_\limits{k=1}^n k^2 = \frac {n(n+1)(2n+1)}{6}$
Another way to do it is:
$\sum_\limits{k=1}^n (k+1)^3 - k^3 = (n+1)^3-1\\ \sum_\limits{k=1}^n (3k^2 + 3k + 1)\\ \sum_\limits{k=1}^n 3k^2 + \sum_\limits{k=1}^n 3k + \sum_\limits{k=1}^n 1\\ \sum_\limits{k=1}^n 3k^2 + 3\frac {n(n+1)}{2} + n = n^3 + 3n^2 + 3n \\ 3\sum_\limits{k=1}^n k^2 = n^3 + \frac 32 n^2 + \frac 12 n\\ \sum_\limits{k=1}^n k^2 = \frac 16 (n)(n+1)(2n+1)$
• I like the rotation method, that works out very nicely! – abiessu Jun 6 '18 at 20:59
• It is nice in that it is intuitive, but the other method can be generalized. – Doug M Jun 6 '18 at 21:01 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232874658904,
"lm_q1q2_score": 0.8556432809451938,
"lm_q2_score": 0.8705972801594707,
"openwebmath_perplexity": 356.52627115341085,
"openwebmath_score": 0.7908191084861755,
"tags": null,
"url": "https://math.stackexchange.com/questions/2810593/spivaks-calculus-finding-the-formula-for-the-sum-of-a-series"
} |
You can do it by telescoping. Given a sequence $f(n)$ define the sequence $\Delta f(n)=f(n+1)-f(n)$ and put $(n)_m=n(n-1)\dotsb(n-m+1)$. One can check that $\Delta (n)_m=m(n)_{m-1}$ for $m\geq 1$. Now note that $$(2i-1)^2=4i^2-4i+1=4[(i)_2+i] -4i+1=4(i)_2+1$$ whence $$\Delta\left(\frac{4}{3}(i)_3+i\right)=(2i-1)^2.$$ In particular $$\sum_{i=1}^n (2i-1)^2=\sum_{i=1}^n \Delta\left(\frac{4}{3}(i)_3+i\right)=\left[\frac{4}{3}(i)_3+i\right]_{i=1}^{n+1}$$ with the notation $[g(i)]_{i=a}^b=g(b)-g(a)$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232874658904,
"lm_q1q2_score": 0.8556432809451938,
"lm_q2_score": 0.8705972801594707,
"openwebmath_perplexity": 356.52627115341085,
"openwebmath_score": 0.7908191084861755,
"tags": null,
"url": "https://math.stackexchange.com/questions/2810593/spivaks-calculus-finding-the-formula-for-the-sum-of-a-series"
} |
# Probability of a 500 year flood occuring in the next 100 years - comparison of approaches
I'm looking at this problem
A $$500$$-year flood is one that occurs once in every $$500$$ years.
a) What is the probability of having at least $$3$$ such floods in $$500$$ years?
b) What is the probability that a flood will occur within the next $$100$$ years?
c) What is the expected number of years until the next flood?
Attempt:
a) The window size is $$500$$ years, $$\lambda=1$$ and the number of floods is a Poisson variable $$X$$. So the answer would be $$1-P(X=0)-P(X=1)-P(X=2)$$, where $$P(X=n)$$ is the Poisson pmf.
c) I can consider a window size of $$1$$ year, $$\lambda=\frac{1}{500}$$ and consider the time to next flood as the exponential random variable $$T$$, so that $$E[T]=1/\lambda=500$$.
Are the above two correct?
Finally for part b), one approach is to decide on a window size, let's say $$1$$ year, set $$\lambda$$ appropriately (in this case $$\frac{1}{500}$$), let $$T$$ be the time to next flood (exponential RV), and find $$P(T=1)+P(T=2)+P(T=3)+\ldots+P(T=100)$$
The other approach is to set the window to $$100$$ years, set $$\lambda=\frac{100}{500}=0.2$$, model number of floods as a Poisson RV $$X$$ and find $$1-P(X=0)$$.
Numerically, these approaches give slightly different answers ($$0.1811$$ vs $$0.1813$$). Which of the two approaches is better for this purpose (i.e. which gives a more accurate answer)?
Also, in the first approach to part b), instead of a one-year window, I could've taken a half-year window and set $$\lambda=\frac{1}{1000}$$ and summed from $$P(T=1)$$ to $$P(T=200)$$. And of course there's no limit to how small I can set that window. What is the recommended granularity of time windows for problems like these? | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232884721166,
"lm_q1q2_score": 0.8556432801713166,
"lm_q2_score": 0.8705972784807406,
"openwebmath_perplexity": 325.6695992791848,
"openwebmath_score": 0.738717257976532,
"tags": null,
"url": "https://stats.stackexchange.com/questions/431233/probability-of-a-500-year-flood-occuring-in-the-next-100-years-comparison-of-a"
} |
• I would write > in the first two questions, and < in the final one - given that climate change means that all estimates based on historical rates will underestimate future rates. In other words, what we consider a 500 year flood today, will not be a 500 year flood tomorrow. Oct 18, 2019 at 12:14
Your treatment of (a) and (c) are correct. In (b), the second approach is the correct one because in your first approach, you treat exponential RVs as if they're discrete. You should've done the following ($$\lambda=1/500$$): $$P(T\leq100)=\int_0^{100}\lambda e^{-\lambda t}dt=1-e^{-100\lambda}=1-e^{-0.2}$$ which gives the same answer as your Poisson approach. By the way, for (b), if you discretize at infinitely small steps, you get this integral. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232884721166,
"lm_q1q2_score": 0.8556432801713166,
"lm_q2_score": 0.8705972784807406,
"openwebmath_perplexity": 325.6695992791848,
"openwebmath_score": 0.738717257976532,
"tags": null,
"url": "https://stats.stackexchange.com/questions/431233/probability-of-a-500-year-flood-occuring-in-the-next-100-years-comparison-of-a"
} |
# Find $f$ if $f'(x)=\dfrac{x^2-1}{x}$ knowing that $f(1) = \dfrac{1}{2}$ and $f(-1) = 0$
I am asked the following problem:
Find $f$ if $$f'(x)=\frac{x^2-1}{x}$$
I am not sure about my solution, which I will describe below:
My solution:
The first thing that I've done is separate the terms of $f'(x)$
\begin{align*} f'(x)&=\frac{x^2-1}{x}\\ &=x-\frac{1}{x}\\ \therefore \quad f(x)&=\frac{x^2}{2}-\ln|x|+c \end{align*}
For ( x > 0 ):
\begin{align*} f(x)&=\frac{x^2}{2}-\ln x+c\\ f(1)&=\frac{1^2}{2}-\ln 1+c=\frac{1}{2} \quad \Rightarrow \quad c=0\\ f(x)&=\frac{x^2}{2}-\ln |x| \end{align*}
For ( x < 0 )
\begin{align*} f(x)&=\frac{x^2}{2}-\ln (-x)+c\\ f(-1)&=\frac{(-1)^2}{2}-\ln [-(-1)]+c=0 \quad \Rightarrow \quad c=-\frac{1}{2}\\ f(x)&=\frac{x^2}{2}-\ln |x|-\frac{1}{2} \end{align*}
Is my solution correct? Should I really find two different answers, one for $x > 0$ and another for $x < 0$?
Thank you.
• yes your solution is fine. As the domain has two connected components there can indeed be different constants of integration on each of them. – H. H. Rugh Sep 25 '16 at 17:03
• It looks fine to me. +1 – DonAntonio Sep 25 '16 at 17:03
• Related: math.stackexchange.com/questions/234624/… (see the accepted answer) – Winther Sep 26 '16 at 1:18
Looks fine! However a little typo when calculate $f(-1)=0$ not $-1$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232919939076,
"lm_q1q2_score": 0.8556432799375886,
"lm_q2_score": 0.8705972751232809,
"openwebmath_perplexity": 998.8627920910212,
"openwebmath_score": 0.9964385628700256,
"tags": null,
"url": "https://math.stackexchange.com/questions/1941023/find-f-if-fx-dfracx2-1x-knowing-that-f1-dfrac12-and-f"
} |
# Vandermonde determinant by induction
For $$n$$ variables $$x_1,\ldots,x_n$$, the determinant $$\det\left((x_i^{j-1})_{i,j=1}^n\right) = \left|\begin{matrix} 1&x_1&x_1^2&\cdots & x_1^{n-1}\\ 1&x_2&x_2^2&\cdots & x_2^{n-1} \\ \vdots&\vdots&\vdots&\ddots&\vdots\\ 1&x_{n-1}&x_{n-1}^2&\cdots&x_{n-1}^{n-1}\\ 1 &x_n&x_n^2&\cdots&x_n^{n-1} \end{matrix}\right|$$ can be computed by induction; the image below says it shows that. I have done this before, if I submit this will I get marks?
MORE IMPORTANTLY how do I do it by induction? The "hint" is to get the first row to $$(1,0,0,...,0)$$.
I think there are the grounds of induction in there, but I'm not sure how (I'm not very confident with induction when the structure isn't shown for $$n=k$$, assume for $$n=r$$, show if $$n=r$$ then $$n=r+1$$ is true.
By the way the question is to show the determinant at the start equals the product $$\prod_{1\leq i (but again, explicitly by induction)
• There's a nice non-inductive proof. Would that work for you? – Bruno Joyal Oct 14 '13 at 2:38
• Actually, my memory tricked me. There is an induction. I'm posting it below. – Bruno Joyal Oct 14 '13 at 2:52
• ProofWiki has two proofs using mathematical induction. – user1551 Oct 14 '13 at 6:42
You're facing the matrix
\begin{pmatrix} 1&1&\cdots & 1 &1\\a_1&a_2&\cdots &a_n&a_{n+1}\\\vdots&\vdots&\ddots&\vdots&\vdots\\a_1^{n-1}&a_2^{n-1}&\cdots&a_n^{n-1}& a_{n+1}^{n-1}\\a_1^{n}&a_2^{n}&\cdots&a_n^{n}&a_{n+1}^{n}\end{pmatrix}
By subtracting $a_1$ times the $i$-th row to the $i+1$-th row, you get
\begin{pmatrix} 1&1&\cdots & 1 &1\\ 0&a_2-a_1&\cdots &a_n-a_1&a_{n+1}-a_1\\ \vdots&\vdots&\ddots&\vdots&\vdots\\ 0&a_2^{n}-a_1a_{2}^{n-1}&\cdots&a_n^n-a_1a_{n}^{n-1}& a_{n+1}^{n}-a_1a_{n+1}^{n-1}\end{pmatrix}
Expanding by the first column and factoring $a_i-a_1$ from the $i$-th column for $i=2,\ldots,n+1$, you get the determinant is | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982823294006359,
"lm_q1q2_score": 0.8556432767399386,
"lm_q2_score": 0.870597270087091,
"openwebmath_perplexity": 672.4633188289199,
"openwebmath_score": 0.9721505045890808,
"tags": null,
"url": "https://math.stackexchange.com/questions/525334/vandermonde-determinant-by-induction"
} |
$$=\prod_{j=2}^{n+1}(a_j-a_1) \det\begin{pmatrix} 1& 1&\cdots&1\\a_2&a_3&\cdots&a_{n+1}\\ \vdots&\vdots&\ddots&\vdots\\a_2^{n-1}&a_3^{n-1}&\cdots&a_{n+1}^{n-1}\end{pmatrix}$$
You may apply your inductive hypothesis, to get this is $$=\prod_{j=2}^{n+1}(a_j-a_1) \prod_{2\leqslant i<j\leqslant n+1}(a_j-a_i)=\prod_{1\leqslant i<j\leqslant n+1}(a_j-a_i)$$ and the inductive step is complete.
• Can you please explain how it is possible to factor out $a_i - a_1$? – john.abraham Sep 2 '15 at 10:05
• $a_j^{i} - a_1 a_j^{i-1} = a_j^{i-1}(a_j - a_1)$ – D_S Oct 1 '15 at 4:59
• Even though it is clearly stated, gratuitous change of notation with respect to the question (transposing the matrix and renaming the $x_i$ to $a_i$) is not really helpful, especially in the presence of another answer that does keep the original notation (but uses $a_i$ for a different purpose). – Marc van Leeuwen Dec 3 '18 at 10:17
Let $f(T) = T^{n-1} + a_1 T^{n-2} + \dots + a_{n-1}$ be the polynomial $(T-x_2)(T-x_3)\dots (T-x_n)$. By adding to the rightmost column an appropriate linear combination of the other columns (namely the combination with coefficients $a_1, \dots, a_{n-1}$), we can make sure that the last column is replaced by the vector $(f(x_1), 0, 0, \dots, 0)$, since by construction $f(x_2) = \dots = f(x_n) =0$. Of course this doesn't change the determinant. The determinant is therefore equal to $f(x_1)$ times $D$, where $D$ is the determinant of the $(n-1) \times (n-1)$ matrix which is obtained from the original one by deleting the first row and the last column. Then, we apply the induction hypothesis, using the fact that $f(x_1) = (x_1 - x_2)(x_1-x_3) \dots (x_1-x_n)$. And we are done!
By the way, this matrix is known as a Vandermonde matrix.
I learned this trick many years ago in Marcus' Number fields. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982823294006359,
"lm_q1q2_score": 0.8556432767399386,
"lm_q2_score": 0.870597270087091,
"openwebmath_perplexity": 672.4633188289199,
"openwebmath_score": 0.9721505045890808,
"tags": null,
"url": "https://math.stackexchange.com/questions/525334/vandermonde-determinant-by-induction"
} |
I learned this trick many years ago in Marcus' Number fields.
• Sexy! I should read this book if it has more fancy tricks like that. – Patrick Da Silva Dec 24 '13 at 15:06
• You get the wrong product (it should have factors $x_j-x_i$ when $i<j$, rather than factors $x_i-x_j$, or else you should throw in a sign $(-1)^{\binom n2}$ for the Vandermonde determinant). The explanation is that you produce a factor $f(x_1)$ that is not on the main diagonal, and this means in the induction step you get a sign $(-1)^{n-1}$ in the development of the determinant. This sign could have been avoided by producing a nonzero coefficient in the last entry of the final column instead, using a monic polynomial of degree $n-1$ with roots at $x_1,\ldots,x_{n-1}$ but not at $x_n$. – Marc van Leeuwen Dec 3 '18 at 10:10
Although this does not really answer the question (in particular, I cannot tell whether you whether submitting the image will give you any marks), it does explain the evaluation of the determinant (and one can get an inductive proof from it if one really insists, though it would be rather similar to the answer by Bruno Joyal). | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982823294006359,
"lm_q1q2_score": 0.8556432767399386,
"lm_q2_score": 0.870597270087091,
"openwebmath_perplexity": 672.4633188289199,
"openwebmath_score": 0.9721505045890808,
"tags": null,
"url": "https://math.stackexchange.com/questions/525334/vandermonde-determinant-by-induction"
} |
The most natural setting in which the Vandermonde matrix $$V_n$$ arises is the followig. Evaluating a polynomial over$$~K$$ in each of the points $$x_1,\ldots,x_n$$ of $$K$$ gives rise to a linear map $$K[X]\to K^n$$ i.e., the map $$f:P\mapsto (P[x_1],P[x_2],\ldots,P[x_n])$$ (here $$P[a]$$ denotes the result of substituting $$X:=a$$ into$$~P$$). Then $$V_n$$ is the matrix of the restriction of $$f$$ to the subspace $$\def\Kxn{K[X]_{ of polynomials of degree less than$$~n$$, relative to the basis $$[1,X,X^2,\ldots,X^{n-1}]$$ of that subspace. Any family $$[P_0,P_1,\ldots,P_{n-1}]$$ of polynomials in which $$P_i$$ is monic of degree$$~i$$ for $$i=0,1,\ldots,n-1$$ is also a basis of$$~\Kxn$$, and moreover the change of basis matrix$$~U$$ from the basis $$[1,X,X^2,\ldots,X^{n-1}]$$ to $$[P_0,P_1,\ldots,P_{n-1}]$$ will be upper triangular with diagonal entries all$$~1$$, by the definition of being monic of degree$$~i$$. So $$\det(U)=1$$, which means that the determinant of$$~V_n$$ is the same as that of the matrix$$~M$$ expressing our linear map on the basis $$[P_0,P_1,\ldots,P_{n-1}]$$ (which matrix equals $$V_n\cdot U$$).
By choosing the new basis $$[P_0,P_1,\ldots,P_{n-1}]$$ carefully, one can arrange that the basis-changed matrix is lower triangular. Concretely column$$~j$$ of$$~M$$, which describes $$f(P_{j-1})$$ (since we number columns from$$~1$$), has as entries $$(P_{j-1}[x_1],P_{j-1}[x_2],\ldots,P_{j-1}[x_n])$$, so lower-triangularity means that $$x_i$$ is a root of $$P_{j-1}$$ whenever $$i. This can be achieved by taking for $$P_k$$ the product $$(X-x_1)\ldots(X-x_k)$$, which is monic of degree $$k$$. Now the diagonal entry in column$$~j$$ of$$~M$$ is $$P_{j-1}[x_j]=(x_j-x_1)\ldots(x_j-x_{j-1})$$, and $$\det(V_n)$$ is the product of these expressions for $$j=1,\ldots,n$$, which is $$\prod_{j=1}^n\prod_{i=1}^{j-1}(x_j-x_i)=\prod_{1\leq i. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.982823294006359,
"lm_q1q2_score": 0.8556432767399386,
"lm_q2_score": 0.870597270087091,
"openwebmath_perplexity": 672.4633188289199,
"openwebmath_score": 0.9721505045890808,
"tags": null,
"url": "https://math.stackexchange.com/questions/525334/vandermonde-determinant-by-induction"
} |
# Sum of log squared terms?
1. Aug 10, 2012
### yogo
Hi all,
I have a summation series which goes like this,
S = [log(1)]^2 + [log(2)]^2 + [log(3)]^2 + ....... + [log(n)]^2
Since each term is square of the logarithm of a value, I think there are no general tricks which can be used to solve this.
But is there any way to approximate the value of this summation?
The problem I am facing here is that n is very very large and it is not possible (time-wise and memory-wise) for my program to evaluate every term. So I was hoping for some approximate solution in terms of 'n'.
Thanks,
yogo
2. Aug 10, 2012
### micromass
Well, we know that since $f(x)=(log(x))^2$ is increasing (if x>1)
$$\int_2^{n+1} \log(x-1)^2dx \leq \sum_{n=1}^n \log(n)^2 \leq \int_1^{n+1} \log(x)^2 dx$$
So, if you calculate the integral, then you got a sweet upper and lower bound for the sum.
3. Aug 11, 2012
### coolul007
can't this be a manipulated into a product of n? log(2)+log(3) = log((2)(3)), I'm uncertain what to do with the squared.
4. Aug 11, 2012
### micromass
Not really. But the integral
$$\int \log(x)^2dx$$
has a nice elementary solution. Just integrate by parts twice.
5. Aug 11, 2012
### Mute
In a similar vein, there is also the Euler-Maclaurin formula for asymptotic expansions of sums.
$$\sum_{k=a}^{k=n} f(k) \sim \int_a^n dx~f(x) + \frac{f(a)+f(n)}{2} + \mbox{corrections}.$$
(The full form of the expansion is given on the wikipedia page I linked to). This looks like it would be useful in this case.
6. Aug 11, 2012
### yogo
Thanks for your help guys. Appreciate it.
@micromass: I am not so good at Math. I was wondering how tight these bounds are?
Thanks,
yogo
7. Aug 15, 2012
### chingel
You would have to calculate the integral to find out. Or you can let an online calculator do it. To find the tightness of the bonds, calculate the difference between the integrals, or in other words the integral from n to n+1. | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232914907946,
"lm_q1q2_score": 0.855643274549895,
"lm_q2_score": 0.8705972700870909,
"openwebmath_perplexity": 391.512170859083,
"openwebmath_score": 0.8378165364265442,
"tags": null,
"url": "https://www.physicsforums.com/threads/sum-of-log-squared-terms.627139/"
} |
http://www.wolframalpha.com/widgets/view.jsp?id=8ab70731b1553f17c11a3bbc87e0b605
Using Wolfram Alpha the integral from 10 to 11 for example is ~5.5, so if you take the average of them you get a maximal error of ~2.75, actual error would probably be much less, since the function doesn't jump too much, and is rather straight for intervals of width 1. Lower bound is ~25, and using Wolfram Alpha to calculate the sum directly gives ~27.65. If you want more accuracy, you could calculate a few terms of the sum directly, and then get the upper and lower bounds for the rest, for the upper bound it is the sum from 1 to m-1 plus the integral from m to n+1, and for the lower bound the sum from 1 to m-1 plus the integral from m-1 to n. The difference of the upper and lower bounds now turns out to be the integral from n to n+1 minus the integral from m-1 to m, which is better than just the integral from n to n+1.
So for example if you want the sum of the first 1000 terms and you know the first 100 terms exactly, you could do something like this. Sum of first 100 terms is 1408.33. Lower bound is 1408.33+34501.8=35910.13, higher bound is 1408.33+34528.3=35936.63, average is 35923.38. Letting Wolfram Alpha calculate the sum itself, it gets the answer 35923.4, I don't know how it calculates the sum itself and how much it rounded that answer, but at least it shows that taking the average of the bounds is not too bad. So now you have an approximation of the sum of the first 1000 terms, you can now use that to calculate the sum of the first 10000 terms etc.
8. Aug 16, 2012
### chingel
I also tried the Euler-Maclaurin formula. Adding only first two terms from the sum with the Bernoulli numbers in it, it got the sum of the first 1000 terms of log(x)^2 accurate to within 0.0015, so it seems a lot better than just taking the average of integral bounds, especially if you would include more of the correction terms. You could probably get very accurate with more correction terms. | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232914907946,
"lm_q1q2_score": 0.855643274549895,
"lm_q2_score": 0.8705972700870909,
"openwebmath_perplexity": 391.512170859083,
"openwebmath_score": 0.8378165364265442,
"tags": null,
"url": "https://www.physicsforums.com/threads/sum-of-log-squared-terms.627139/"
} |
9. Aug 16, 2012
### yogo
@chingel, @mute: Thanks for all the help. I am using Euler-Maclaurin formula now, seems to work really well for me. I actually have an upcoming deadline, and now I am good! :)
Thanks all. | {
"domain": "physicsforums.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232914907946,
"lm_q1q2_score": 0.855643274549895,
"lm_q2_score": 0.8705972700870909,
"openwebmath_perplexity": 391.512170859083,
"openwebmath_score": 0.8378165364265442,
"tags": null,
"url": "https://www.physicsforums.com/threads/sum-of-log-squared-terms.627139/"
} |
# Minimizing a symmetric sum of fractions without calculus
Calculus tools render the minimization of $$\frac{(1-p)^2}{p} + \frac{p^2}{1-p}$$ on the interval $(0,1/2]$ to be a trivial task. But given how much symmetry there is in this expression, I was curious if one could use olympiad-style manipulations (AM-GM, Cauchy Schwarz, et al) to minimize this, show it is decreasing, or to show that it is bounded below by 1.
• The squares alone tell me to use Cauchy-Schwarz, but I can't see how exactly without screwing it up. – Sean Roberson May 23 '18 at 6:11
• I applied AM-GM directly on the expression to bound it below by $2 \sqrt{p(1-p)}$, but that is a pretty bad bound for $p$ smaller than $1/2$. – user369210 May 23 '18 at 6:13
• There is no minimum of the function on (0, 1/2). There is a minimum on (0, 1/2] which occurs at the boundary 1/2. What am I missing? – Andreas May 23 '18 at 6:21
• Infimum, fine, same thing – user369210 May 23 '18 at 6:27
This is elementary:
$$\frac{(1-p)^2}p+\frac{p^2}{1-p}=\frac{1-3p+3p^2-p^3+p^3}{p(1-p)}=\frac1{p(1-p)}-3.$$
The minimum is achieved by the vertex of the parabola $p(1-p)$, i.e. $p=\dfrac12\to\dfrac1{\frac14}-3$, as can be shown by completing the square.
By Rearrangement inequality assuming wlog $p\ge(1-p)$
$$\frac{(1-p)^2}{p} + \frac{p^2}{1-p}=(1-p)\frac{1-p}{p} + p\frac{p}{1-p}\ge (1-p)\frac{p}{1-p} + p\frac{1-p}{p}=p+1-p=1$$
with equality for
$$p=1-p \implies p=\frac12$$
• The problem statement actually implies that $p \leq 1 - p.$ But of course this method still works, just swap $p$ and $1 - p.$ – David K May 24 '18 at 1:23
** I modified this to give a proof with elementary methods only, no inequality theorems needed**
Simple transformations lead to $$\frac{(1-p)^2}{p} + \frac{p^2}{1-p} = - 3 + \frac{4}{1 - 4 (p-1/2)^2}$$ Now it is easy to see that the global minimum of $f(p)$ for $p \in (0 , \; 1/2]$ occurs at $p = 1/2$. | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232935032463,
"lm_q1q2_score": 0.8556432631027697,
"lm_q2_score": 0.8705972566572503,
"openwebmath_perplexity": 427.9299878028572,
"openwebmath_score": 0.9094794988632202,
"tags": null,
"url": "https://math.stackexchange.com/questions/2792492/minimizing-a-symmetric-sum-of-fractions-without-calculus"
} |
• You've only shown that it is a local minimum. – Kenny Lau May 23 '18 at 6:30
• The "small $x$" part invokes calculus, which I am trying to avoid – user369210 May 23 '18 at 6:33
$$\begin{array}{rcll} \dfrac{(1-p)^2}{p} + \dfrac{p^2}{1-p} &=& \dfrac {(1-p)^3 + p^3} {p (1-p)} \\ &=& \dfrac {[(1-p) + p] [(1-p)^2 - p(1-p) + p^2]} {p (1-p)} \\ &=& \dfrac {(1-p)^2 + p^2} {p (1-p)} - 1 \\ &\ge& \dfrac {\left[ \frac1{\sqrt2} (1-p) + \frac1{\sqrt2} p \right]^2} {p (1-p)} - 1 &\text{Cauchy-Schwarz} \\ &=& \dfrac 1 {2 p (1-p)} - 1 \\ &=& \dfrac 1 {0.5 - 2 (p-0.5)^2} - 1 \\ &\ge& \dfrac 1 {0.5} - 1 \\ &=& 1 \end{array}$$
Both $\ge$ has equality at $p = 0.5$.
$$\dfrac{(1-p)^2}p+\dfrac{p^2}{1-p}=\dfrac{1-3p+3p^2}{p(1-p)}=K\text{(say)}$$
$$\implies p^2(3+K)-p(3+K)+1=0$$
As $p$ is real, the discriminant must be $\ge0$
$$0\le(K+3)^2-4(K+3)=(K+3)(K-1)\implies$$
either $K\ge$max$(1,-3)$
or $K\le$min$(1,-3)$
But observe that $K+3\ne0$
Make the change: $a=1-p, b=p, p\in \left(0,\frac12\right]$.
Then: $a+b=1, ab\le \frac14,$ the equality occurs when $a=b=\frac12$.
Hence: $$\frac{(1-p)^2}{p} + \frac{p^2}{1-p}=\frac{a^2}{b} + \frac{b^2}{a}=\frac{a^3+b^3}{ab}=\frac{(a+b)((a+b)^3-3ab)}{ab}\ge \frac{1\cdot \left(1^3-\frac34\right)}{\frac14}=1.$$
Let's utilize the symmetry:
$$p\equiv\frac 1 2 -q$$
$$1-p\equiv\frac 1 2 +q$$
Then
$$p \in (0,1/2] \iff q \in [0,1/2)$$
$$\frac{(1-p)^2}{p} + \frac{p^2}{1-p} \equiv \frac{(\frac 1 2 +q)^2}{\frac 1 2 -q} + \frac{(\frac 1 2 -q)^2}{\frac 1 2 +q} \equiv \dots$$
(here be magic, try it)
$$\dots \equiv \frac{\frac 1 4 + 3q^2}{\frac 1 4 -q^2} \equiv - 3 + \frac{4}{1 - 4q^2}$$
Note this is the result already obtained in another answer, however manipulations with $p$ (there) are not as elegant as manipulations with $q$ (here).
It's now easy to tell $q=0$ maximizes the denominator which is always positive (in the domain), so the last fraction is minimized.
$$q=0 \iff p=\frac 1 2$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232935032463,
"lm_q1q2_score": 0.8556432631027697,
"lm_q2_score": 0.8705972566572503,
"openwebmath_perplexity": 427.9299878028572,
"openwebmath_score": 0.9094794988632202,
"tags": null,
"url": "https://math.stackexchange.com/questions/2792492/minimizing-a-symmetric-sum-of-fractions-without-calculus"
} |
# How is the relation “the smallest element is the same” reflexive?
Let $$\mathcal{X}$$ be the set of all nonempty subsets of the set $$\{1,2,3,...,10\}$$. Define the relation $$\mathcal{R}$$ on $$\mathcal{X}$$ by: $$\forall A, B \in \mathcal{X}, A \mathcal{R} B$$ iff the smallest element of $$A$$ is equal to the smallest element of $$B$$. For example, $$\{1,2,3\} \mathcal{R} \{1,3,5,8\}$$ because the smallest element of $$\{1,2,3\}$$ is $$1$$ which is also the smallest element of $$\{1,3,5,8\}$$.
Prove that $$\mathcal{R}$$ is an equivalence relation on $$\mathcal{X}$$.
From my understanding, the definition of reflexive is:
$$\mathcal{R} \text{ is reflexive iff } \forall x \in \mathcal{X}, x \mathcal{R} x$$
However, for this problem, you can have the relation with these two sets:
$$\{1\}$$ and $$\{1,2\}$$
Then wouldn't this not be reflexive since $$2$$ is not in the first set, but is in the second set?
I'm having trouble seeing how this is reflexive. Getting confused by the definition here.
• Reflexive means that every element is related to itself. Thus, for reflexivity you have to consider one set only. Ok, we have that $\{ 1 \} \mathcal R \{ 1,2 \}$ but we have also $\{ 1 \} \mathcal R \{ 1 \}$ and $\{ 1,2 \} \mathcal R \{ 1,2 \}$ – Mauro ALLEGRANZA Apr 7 at 17:34
• Note: “reflexive” does not mean that if $x$ is related to $y$, then $x=y$. It means that if $x=y$, then $x$ is related to $y$. – Arturo Magidin Apr 7 at 17:44
• So it must be reflexive because both $A$ and $B$ belong to the same set $\mathcal{X}$? – qbuffer Apr 7 at 18:00
• @qbuffer Have a look at the updated version of my answer. – Haris Gusic Apr 7 at 18:49 | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232889752296,
"lm_q1q2_score": 0.8556432624604811,
"lm_q2_score": 0.8705972600147106,
"openwebmath_perplexity": 86.55734743884899,
"openwebmath_score": 0.8572835922241211,
"tags": null,
"url": "https://math.stackexchange.com/questions/3178532/how-is-the-relation-the-smallest-element-is-the-same-reflexive/3178541"
} |
Why are you testing reflexivity by looking at two different elements of $$\mathcal{X}$$? The definition of reflexivity says that a relation is reflexive iff each element of $$\mathcal X$$ is in relation with itself.
To check whether $$\mathcal R$$ is reflexive, just take one element of $$\mathcal X$$, let's call it $$x$$. Then check whether $$x$$ is in relation with $$x$$. Because $$x=x$$, the smallest element of $$x$$ is equal to the smallest element of $$x$$. Thus, by definition of $$\mathcal R$$, $$x$$ is in relation with $$x$$. Now, prove that this is true for all $$x \in \mathcal X$$. Of course, this is true because $$\min(x) = \min(x)$$ is always true, which is intuitive. In other words, $$x \mathcal{R} x$$ for all $$x \in \mathcal X$$, which is exactly what you needed to prove that $$\mathcal R$$ is reflexive.
You must understand that the definition of reflexivity says nothing about whether different elements (say $$x,y$$, $$x\neq y$$) can be in the relation $$\mathcal R$$. The fact that $$\{1\}\mathcal R \{1,2\}$$ does not contradict the fact that $$\{1,2\}\mathcal R \{1,2\}$$ as well.
A binary relation $$R$$ over a set $$\mathcal{X}$$ is reflexive if every element of $$\mathcal{X}$$ is related to itself. The more formal definition has already been given by you, i.e. $$\mathcal{R} \text{ is reflexive iff } \forall x \in \mathcal{X}, x \mathcal{R} x$$ | {
"domain": "stackexchange.com",
"id": null,
"lm_label": "1. YES\n2. YES",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232889752296,
"lm_q1q2_score": 0.8556432624604811,
"lm_q2_score": 0.8705972600147106,
"openwebmath_perplexity": 86.55734743884899,
"openwebmath_score": 0.8572835922241211,
"tags": null,
"url": "https://math.stackexchange.com/questions/3178532/how-is-the-relation-the-smallest-element-is-the-same-reflexive/3178541"
} |
# Probability Examples And Solutions | {
"domain": "minoronzitti.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232924970204,
"lm_q1q2_score": 0.8556432605768571,
"lm_q2_score": 0.8705972549785201,
"openwebmath_perplexity": 428.6329198709035,
"openwebmath_score": 0.7154899835586548,
"tags": null,
"url": "http://vnbk.minoronzitti.it/probability-examples-and-solutions.html"
} |
For example, in a large number of coin tosses, heads and tails will occur each about 50% of the time. The solutions are not intended to be as polished as the proofs in the book, but are supposed to give enough of the details so that little is left to the. The above facts can be used to help solve problems in probability. We request all visitors to read all examples carefully. Ch4: Probability and Counting Rules Santorico – Page 105 Event – consists of a set of possible outcomes of a probability experiment. Something with a probability of 0 is something that could never possibly happen. Aptitude Made Easy - Probability – 7 Tricks to solve problems on Balls and bags – Part 1 - Duration: 6:57. Spector and Mazzeo examined the effect of a teaching method known as PSI on the performance of students in a course, intermediate macro economics. If a woman does not have breast cancer, the probability is 7 percent that she will still have a positive mammogram. Show Step-by-step Solutions. Probability Theory and Examples - Durrett. The at least once rule gives us the probability of at least one flood in 100 years: P(ALO in 100 years)=1-[P(not flood in one year)]100 =1-[0. Referring to the earlier example (from Unit 3 Module 3) concerning the National Requirer. Plus, get practice tests, quizzes, and personalized coaching to help you succeed. There 2 numbers that are odd and less than 5: 1 and 3. You use probability in daily life to make decisions when you don't know for sure what the outcome will be. For example, one way to partition S is to break into sets F and Fc, for any event F. ) the second time will be the same as the first (i. 1 of winning. As a member, you'll also get unlimited access to over 79,000 lessons in math, English, science, history, and more. When we flip a coin there is always a probability to get a head or a tail is 50 percent. In the case of a coin, there are maximum two possible outcomes – head or tail. The continuous random variables deal with different | {
"domain": "minoronzitti.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232924970204,
"lm_q1q2_score": 0.8556432605768571,
"lm_q2_score": 0.8705972549785201,
"openwebmath_perplexity": 428.6329198709035,
"openwebmath_score": 0.7154899835586548,
"tags": null,
"url": "http://vnbk.minoronzitti.it/probability-examples-and-solutions.html"
} |
maximum two possible outcomes – head or tail. The continuous random variables deal with different kinds of distributions. Rick Durrett Probability Theory And Examples Solution Manual. This video shows examples of using probability trees to work out the overall probability of a series of events are shown. ) and finding about the probability of two things happening in that one task. Exercise 15. An example for non-mutually exclusive events could be: E 1 = students in the swimming team. Solution: The chances of landing on blue are 1 in 4, or one fourth. NCERT Solutions for Class 12 Maths Chapter 13 Exercise 13. For example, when rolling a number cube 600 times, predict that a 3 or 6 would be rolled roughly 200 times, but probably not exactly 200 times. The pictures below depict the probability distributions in space for the Hydrogen wavefunctions. The binomial probability calculator will calculate a probability based on the binomial probability formula. Solutions will be gone over in class or posted later. Are passing these subjects dependent on each other? @312; Hallow): was, Ptmrk): (My etchm GMI’k): 011 NW Newman-m): mun-4: 2-045”. The Best NCERT Books , CBSE Notes , Sample Papers and NCERT Solutions PDF Free Download. For example, in a function machine, a number goes in, something is done to it, and the resulting number is the output: probability: The measure of how likely it is for an event to occur. The denominator 10 because there are 10 fruits in the basket (the total number of outcomes). We can use a bar chart, called a probability distribution histogram , to display the probabilities that X lies in selected ranges. Answer: The probability of being able to exercise outdoors every day of the year where Sam now lives is (:99)365 ˇ:0255 ˇ3% so there is about a 97% probability of not being able to exercise outdoors one or more days of the year. In the "die-toss" example, the probability of event A, three dots showing, is P(A) = 1 6 on a single toss. Suppose a coin | {
"domain": "minoronzitti.it",
"id": null,
"lm_label": "1. YES\n2. YES\n\n",
"lm_name": "Qwen/Qwen-72B",
"lm_q1_score": 0.9828232924970204,
"lm_q1q2_score": 0.8556432605768571,
"lm_q2_score": 0.8705972549785201,
"openwebmath_perplexity": 428.6329198709035,
"openwebmath_score": 0.7154899835586548,
"tags": null,
"url": "http://vnbk.minoronzitti.it/probability-examples-and-solutions.html"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.