{"id":3224,"date":"2022-02-04T14:58:33","date_gmt":"2022-02-04T20:58:33","guid":{"rendered":"https:\/\/laurentlessard.com\/bookproofs\/?p=3224"},"modified":"2022-02-04T17:19:46","modified_gmt":"2022-02-04T23:19:46","slug":"polarization-puzzle","status":"publish","type":"post","link":"https:\/\/laurentlessard.com\/bookproofs\/polarization-puzzle\/","title":{"rendered":"Polarization Puzzle"},"content":{"rendered":"<p>This week&#8217;s <a href=\"https:\/\/fivethirtyeight.com\/features\/a-riddle-that-will-make-you-scream\/\">Riddler Classic<\/a> is about light polarization.<\/p>\n<blockquote><p>\n<img decoding=\"async\" src=\"https:\/\/fivethirtyeight.com\/wp-content\/uploads\/2022\/02\/Screen-Shot-2022-02-01-at-9.17.59-AM.png?w=700\" alt=\"\" style=\"float:right;width:55%;margin:0 -60px -20px -130px;\" \/><br \/>\nWhen light passes through a polarizer, only the light whose polarization aligns with the polarizer passes through. When they aren&#8217;t perfectly aligned, only the component of the light that&#8217;s in the direction of the polarizer passes through. For example, here is what happens if you use two polarizers, the first at 45 degrees, and the second at 90 degrees. The length of the original vector is decreased by a factor of 1\/2.<\/p>\n<p>I have tons of polarizers, and each one also reflects 1 percent of any light that hits it \u2014 no matter its polarization or orientation \u2014 while polarizing the remaining 99 percent of the light. I&#8217;m interested in horizontally polarizing as much of the incoming light as possible. How many polarizers should I use?\n<\/p><\/blockquote>\n<p>Here is my solution:<br \/>\n<a href=\"javascript:Solution('soln_polarization','toggle_polarization')\" id=\"toggle_polarization\">[Show Solution]<\/a><\/p>\n<div id=\"soln_polarization\" style=\"display: none\">\n<p><a href=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization-222x300.png\" alt=\"\" width=\"222\" height=\"300\" class=\"alignright size-medium wp-image-3227\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization-222x300.png 222w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization.png 325w\" sizes=\"auto, (max-width: 222px) 85vw, 222px\" \/><\/a><br \/>\nSuppose we use $n$ polarizers, each with efficiency $\\alpha\\in (0,1)$, and we orient them at angles $\\theta_1,\\dots,\\theta_n$, as shown below. Our task is to pick the angles $\\theta_i$ so that the ratio $\\frac{|OB|}{|OA|}$ is maximized.<\/p>\n<p>When polarizer $i$ is applied, the vector gets multiplied by $\\alpha\\cos(\\theta_i)$. Therefore, our task is to solve the following optimization problem for the overall efficiency $\\beta_n$:<\/p>\n<p>\\begin{align}<br \/>\n\\beta \\,\\,=\\,\\,<br \/>\n\\underset{\\theta_1,\\dots,\\theta_n}{\\text{maximize}}\\quad &#038;\\alpha^n \\prod_{i=1}^n \\cos(\\theta_i) \\\\<br \/>\n\\text{subject to}\\quad &#038;\\theta_1+\\cdots+\\theta_n=\\tfrac{\\pi}{2} \\\\<br \/>\n&#038; \\theta_i \\geq 0\\quad\\text{for }i=1,\\dots,n<br \/>\n\\end{align}<\/p>\n<p>It turns out that the optimal configuration is for all angles to be equal. To see why this is the case, note that we can equivalently maximize the log of this product. In other words, maximize<br \/>\n\\[<br \/>\n\\sum_{i=1}^n \\log \\cos (\\theta_i)<br \/>\n\\]Consider the function $f(x)=\\log\\cos(x)$. Since $f'{}'(x) = -\\sec^2(x) \\leq 0$ on $x\\in[0,\\tfrac{\\pi}{2}]$, it follows that $f$ is a concave function. By <a href=\"https:\/\/en.wikipedia.org\/wiki\/Jensen%27s_inequality\">Jensen&#8217;s inequality<\/a>,<br \/>\n\\[<br \/>\n\\frac{f(x_1)+\\cdots+f(x_n)}{n} \\leq f\\biggl(\\frac{x_1+\\cdots+x_n}{n}\\biggr)<br \/>\n\\]Applying this to our function, we conclude that:<br \/>\n\\[<br \/>\n\\sum_{i=1}^n \\log \\cos(\\theta_i) \\leq n \\log\\cos\\biggl(\\frac{\\theta_1+\\cdots+\\theta_n}{n}\\biggr) = n \\log\\cos\\biggl(\\frac{\\pi}{2n}\\biggr),<br \/>\n\\]where the equality is due to the fact that we know $\\theta_1+\\cdots+\\theta_n=\\tfrac{\\pi}{2}$. We can also <em>achieve<\/em> this equality by setting $\\theta_1=\\ldots=\\theta_n=\\tfrac{\\pi}{2n}$, so the optimal thing to do is to make all angles equal. Substituting this into our optimization problem, we obtain a formula for the overall efficiency $\\beta$:<\/p>\n<p style=\"text-align: center;\"><span style=\"background-color: #AFC8E6; padding: 25px 10px 25px 10px;\">$\\displaystyle<br \/>\n\\beta_n \\,=\\, \\alpha^n \\cos^n\\bigl(\\tfrac{\\pi}{2n}\\bigr)<br \/>\n$<\/span><\/p>\n<p>The question is: what value of $n$ maximizes this? For the case where 1% of the light is reflected ($\\alpha=0.99$), we can plot $\\beta_n$ as a function of $n$ and we obtain (on a log scale):<\/p>\n<p><a href=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization2.png\" alt=\"\" width=\"585\" height=\"399\" class=\"aligncenter size-full wp-image-3228\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization2.png 585w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization2-300x205.png 300w\" sizes=\"auto, (max-width: 585px) 85vw, 585px\" \/><\/a><\/p>\n<p>Closer examination reveals that the optimal number of polarizers is $n=11$, and this leads to an optimal efficiency of:<\/p>\n<p style=\"text-align: center;\"><span style=\"background-color: #AFC8E6; padding: 25px 10px 25px 10px;\">$\\displaystyle<br \/>\n\\beta^\\star \\,=\\, (0.99)^{11} \\cos^{11}\\bigl(\\tfrac{\\pi}{22}\\bigr) \\approx 0.800042<br \/>\n$<\/span><\/p>\n<p>or about 80%. We can ask a more general question of how the overall efficiency varies for different values of $\\alpha$ and $n$. Here is a plot comparing a wide range of possible values:<\/p>\n<p><a href=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization3.png\" alt=\"\" width=\"584\" height=\"407\" class=\"aligncenter size-full wp-image-3229\" srcset=\"https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization3.png 584w, https:\/\/laurentlessard.com\/bookproofs\/wp-content\/uploads\/2022\/02\/polarization3-300x209.png 300w\" sizes=\"auto, (max-width: 584px) 85vw, 584px\" \/><\/a><\/p>\n<h2>Limiting cases<\/h2>\n<p>The optimal $n$ occurs when $\\tfrac{\\mathrm{d}}{\\mathrm{d}n}\\beta_n = 0$, or equivalently, $\\tfrac{\\mathrm{d}}{\\mathrm{d}n}\\log(\\beta_n) = 0$. This leads to the equation<br \/>\n\\[<br \/>\n\\log (\\alpha )+\\frac{\\pi}{2n}  \\tan \\left(\\frac{\\pi }{2 n}\\right)+\\log \\left(\\cos \\left(\\frac{\\pi }{2 n}\\right)\\right) = 0<br \/>\n\\]We can solve this for $\\alpha$ and obtain<br \/>\n\\[<br \/>\n\\alpha = \\exp\\left[-\\frac{\\pi}{2n}  \\tan\\left(\\frac{\\pi }{2 n}\\right)-\\log \\cos\\left(\\frac{\\pi }{2 n}\\right)\\right]<br \/>\n\\]This is an exact expression relating the $n$ that is optimal for a given $\\alpha$. Of course, this assumes we can use a <em>fractional<\/em> number of polarizers, but it should be adequate to study the limit when $\\alpha\\to 1$ (and therefore $n\\to\\infty$). Taking an asymptotic expansion of the right-hand side, we obtain $\\alpha \\approx 1-\\frac{\\pi^2}{8n^2}$, or equivalently<\/p>\n<p style=\"text-align: center;\"><span style=\"background-color: #AFC8E6; padding: 25px 10px 25px 10px;\">$\\displaystyle<br \/>\nn \\approx \\frac{\\pi }{\\sqrt{8}\\sqrt{1-\\alpha }}<br \/>\n$<\/span><\/p>\n<p>This allows us to estimate the number of layers required as a function of each polarizer&#8217;s efficiency. When $\\alpha=0.99$, we obtain $n\\approx 11.1$, which is close to the result we found previously. Similarly, if $\\alpha=0.9999$, we obtain $n=111$, which matches the peak of the red curve in the plot above.<\/p>\n<p>We might also be interested in the heights of these peaks; so what is the maximum overall efficiency $\\beta$ that we can obtain if our individual polarizers each have efficiency $\\alpha$? Performing a similar expansion to the one for $\\alpha$, we obtain:<br \/>\n\\[<br \/>\n\\beta = \\alpha^n \\cos^n\\left(\\frac{\\pi}{2n}\\right) \\approx 1-\\frac{\\pi ^2}{4 n}+\\frac{\\pi ^4}{32 n^2}<br \/>\n\\]Eliminating $n$ from the $\\alpha$ and $\\beta$ equations, we obtain the approximation<br \/>\n\\[<br \/>\n\\beta \\approx 1-\\frac{\\pi}{\\sqrt{2}}\\sqrt{1-\\alpha }+\\frac{\\pi^2}{4}(1-\\alpha )<br \/>\n\\]And as anticipated, as $\\alpha\\to1$, we obtain $\\beta\\to 1$.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>This week&#8217;s Riddler Classic is about light polarization. When light passes through a polarizer, only the light whose polarization aligns with the polarizer passes through. When they aren&#8217;t perfectly aligned, only the component of the light that&#8217;s in the direction of the polarizer passes through. For example, here is what happens if you use two &hellip; <a href=\"https:\/\/laurentlessard.com\/bookproofs\/polarization-puzzle\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Polarization Puzzle&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3229,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[7],"tags":[10,26,2],"class_list":["post-3224","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-riddler","tag-geometry","tag-optimization","tag-riddler"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/3224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/comments?post=3224"}],"version-history":[{"count":6,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/3224\/revisions"}],"predecessor-version":[{"id":3233,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/posts\/3224\/revisions\/3233"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/media\/3229"}],"wp:attachment":[{"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/media?parent=3224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/categories?post=3224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laurentlessard.com\/bookproofs\/wp-json\/wp\/v2\/tags?post=3224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}