Use these free STEM lessons and activities to help students get hands-on experimenting with the science and chemistry of mixtures and solutions.
Most students have a basic concept of “mixtures.” They have combined ingredients in the kitchen. They know that beverages, paints, and glues are mixtures. They may realize that blood is a mixture, as is the air we breathe. They know that some things “mix” well and others don’t and that some mixtures are permanent and others separate or dissolve after time. Combining substances and exploring the chemistry behind what happens and why is science that is observable and actionable.
When substances are combined, they may form a mixture, in which the individual substances retain their chemical properties, or they may form a chemical reaction, in which a new substance with its own chemical properties is created. The free STEM lessons and activities below all involve mixtures, combinations that do not result in a chemical change. In these lessons and experiments, students learn about heterogeneous and homogeneous mixtures and explore solutions, colloids, suspensions, emulsions, and more. As they investigate the chemistry of mixtures, they learn about hydrophobic, hydrophilic, and immiscible properties; solvents and solutes; solubility and saturation; phases; the Tyndall effect; and how mixtures are related to real-world challenges and solutions. (Note: In some of these resources, other science topics are also being taught or highlighted by the hands-on activity, but each lesson demonstrates the chemistry of certain types of mixtures as well.)
The resources below have been grouped as follows:
Note: Science Buddies Lesson Plans contain materials to support educators leading hands-on STEM learning with students. Lesson Plans offer NGSS alignment, contain background materials to boost teacher confidence, even in areas that may be new to them, and include supplemental resources like worksheets, videos, discussion questions, and assessment materials. Activities are simplified explorations that can be used in the classroom or in informal learning environments.
Lesson Plans and Activities to Teach About the Chemistry of Mixtures and Solutions
Homogeneous Mixtures
A homogeneous mixture is one in which the composition of the mixture is uniform throughout. Solutions and alloys are types of homogeneous mixtures.
-
1. Bubble Solution
You can make a simple bubble solution for blowing bubbles by combining liquid dishwashing soap and water, but chemistry holds the secrets to making better bubble solutions that create larger or longer-lasting bubbles. In the Blowing the Best Bubbles activity, students investigate the formula for bubble solution. When added to water, the liquid dishwashing soap reduces the surface tension of the solution, which makes it possible to form bubbles. Once combined, the mixture is a homogeneous solution. When left standing, the ingredients don’t separate. Questions: What happens when corn syrup or glycerin is added to the bubble solution? What causes a bubble to pop?
-
2. Solubility and Saturation
When you dissolve a soluble substance in a liquid, you make a solution. Mixing a lemonade powder (a solute) with water (a solvent), for example, creates a solution. The resulting lemonade is a homogeneous solution because, once stirred in, the substances are uniformly combined and should not separate when the lemonade is left standing. You don’t have to stir your lemonade again to remix the ingredients before taking another drink later! In the Solubility Science: How Much is Too Much? activity, students explore solubility and experiment to find out if there is a limit to how much solute can be added to the solvent when making a solution. Questions: If you see a substance floating or collecting at the bottom of a container of a mixture that should form a solution (rather than a suspension), what has happened? If you make a mixture with an insoluble substance, what happens? What does it mean for a solution to be saturated?
-
3. Super Cold Slushies
Making a slushy involves turning flavored water or fruit juice into an icy, drinkable treat. In the Homemade Slushies activity, students make slushies and explore the science behind how using a salt-water solution helps the slushy mixture form ice crystals. The salt-water solution used to cool the slushy is a homogeneous solution. Questions: What role does the salt-water solution play in making a slushy? If you use sugar and water for the slushy mixture, what kind of mixture have you created? If you use a fruit juice with pulp combined with another liquid, what type of mixture is created?
-
4. Rock Candy Solution
Making rock candy involves growing crystals from a saturated solution of sugar and water, one that has more sugar than can dissolve in the water. In the Grow Rock Candy Crystals activity, students explore the science behind the crystallization process and how a saturated solution helps enable crystal formation. Questions: What is nucleation in the crystallization process? How do seed crystals help speed up crystallization? Can crystallization happen if the sugar-water solution is not saturated?
-
5. Distillation
What happens to the substances in a solution when you heat the solution to boiling? In the Separation By Distillation activity, students investigate by building a distillation device and boiling fruit juice. A homogeneous solution can’t be filtered to separate it into its original separate substances, but the distillation process does this using heat. In distillation, a mixture can be separated by a thermal process because of the differences in the boiling points of the substances in the homogeneous mixture. Questions: What does the steam released as the fruit juice boils contain? What kinds of real-world solutions might use the distillation process?
Heterogeneous Mixtures
A heterogeneous mixture is one in which the composition of the mixture is not uniform all the way through. Suspensions, colloids, and emulsions are types of heterogeneous mixtures. When investigating these types of mixtures, students learn how to differentiate between a suspension and a colloid and what makes a colloid different from an emulsion.
-
6. Mixing Granular Substances
If you open a box of cereal that contains dried fruit, you will probably find that the fruit isn’t evenly distributed. Even if you shake the box, there will be more fruit in some areas than others. You might see this in a container of trail mix or mixed nuts, too. If the container is clear, you will be able to observe how the different ingredients are distributed. When you shake a container of granular items, the distribution may change, but it still won’t be even. Ultimately, each handful, cup, or scoop removed from one of these mixtures will have a different distribution of ingredients. If you are hoping for more candy bits than nuts in your serving of trail mix, you may have to go digging! These are examples of heterogeneous mixtures. In the Why Won’t it Mix? Discover the Brazil Nut Effect activity, students use candy sprinkles and sand to explore the science behind the distribution of granular substances in mixtures and experiment to see what determines how the ingredients separate. Questions: How does the size or mass of the substance or ingredient affect what happens to it in a granular mixture? What examples can you think of where this kind of mixing would be an advantage?
-
7. Cleaning Up Water for Drinking
No one wants to drink water that has dirt and debris floating in it! Surface waters often contain visible particles that make it look cloudy. These solid particles floating in the water are “suspended” in the water and are called total suspended solids (TSS). TSS don’t dissolve. If large enough, they should settle to the bottom, but many TSS are small and light. TSS can carry bacteria, so water containing TSS isn’t safe to drink.
In the Drinking Water Cleanup activity, students learn how coagulation and flocculation are used to help separate TSS from water in a water processing plant. Coagulants and flocculants help smaller particles clump together so they are heavier and settle to the bottom more quickly. In the activity, students simulate water treatment by using alum as a coagulant to clear a sample of turbid water. (For a related student science fair project, see From Turbid to Clear: How Flocculation Cleans Up Drinking Water.) Questions: Why do coagulants need to be stirred to be effective? What does the charge of TSS particles have to do with how coagulants work? -
8. Non-Newtonian Oobleck
Oobleck is well-known for its non-Newtonian properties. Sometimes it behaves like a liquid (fluid), and sometimes (when under pressure) it acts like a solid. In the Oobleck: A Recipe for a Mesmerizing Mixture activity, students make Oobleck and explore its behavior. As a mixture, Oobleck is a heterogeneous mixture of water and cornstarch. When you mix a solid and a liquid together, the solid usually either dissolves or separates from the liquid. In a suspension or colloidal solution, however, particles of the solid are suspended in the liquid. In Oobleck, cornstarch is evenly spread throughout the water, but it doesn’t dissolve in the water. Depending on the size of the cornstarch particles, they may be too small to see with the naked eye, so it may look like they dissolved in the water, but they are actually suspended in the liquid. These particles would scatter a beam of light, which is referred to as the Tyndall effect. A suspension with very small particles (smaller than 1μm) is called a colloid. Questions: Can the particles in a colloid be separated from the mixture? If your Oobleck separates after sitting, what does that tell you about the particles? If the cornstarch dissolved in the water, what would the mixture be called? How does the fact that cornstarch molecules are hydrophobic help explain what happens when cornstarch is mixed with water? What is the difference between a suspension and a colloid?
-
9. Mixing Ferrofluids to Make Magnetic Ink
Ferrofluids, fluids whose shape can be changed by magnetic fields, are made by combining ferromagnetic materials (like iron or nickel) with a surfactant and a carrier fluid. When combined, the ferromagnetic particles are suspended in the solution rather than dissolved. In the Magnetic Fluids lesson, students learn about ferrofluids and then make and write with magnetic ink. Depending on the size of the ferromagnetic particles, the ink mixture might be a suspension or a colloid. Questions: How can you tell if the magnetic ink is a suspension or a colloid? What difference will the size of the particles make in how the ink is used or readied for use?
-
10. Making Butter
Butter is basically milk fat that is separated out when cream is shaken (or agitated). In the Scrumptious Science: Shaking for Butter activity, students shake heavy whipping cream to make their own butter emulsion. An emulsion is a special type of colloid in which one liquid is suspended in another. The liquids in an emulsion are ones that usually do not mix well. In the case of butter, small droplets of water are suspended in the fat from the cream. (The liquid that remains is buttermilk.) The high concentration of fat makes the butter feel solid. If you melt it, the emulsion breaks.Questions: What role does temperature play in making butter? What does shaking do in this process?
-
11. Making Ice Cream
When kids make ice cream in a bag, they learn about the role of salt in lowering the freezing point. The recipe for making ice cream involves a mixture of ingredients. When using sugar and milk (or cream), the resulting emulsion looks homogeneous, but if you were to zoom in, you would see a heterogeneous mix of milk-fat, ice crystals, and sugar-water. Adding other ingredients, like chocolate chips, makes the mixture even more heterogeneous. Make Ice Cream in a Bag activity, students make ice cream in a bag. Questions: What role does salt play in speeding up the freezing process? Why is it necessary to shake the bags to make the ice cream form? What is a freezing point depression?
Vocabulary
The following word bank contains words that may be covered when teaching about the chemistry of mixtures using the lessons and activities in this resource.
- Alloy
- Brazil nut effect
- Colloid
- Crystallization
- Distill (distillation)
- Emulsion
- Ferrofluids
- Ferromagnetic
- Granular
- Heterogeneous solution
- Homogeneous solution
- Hydrophilic
- Hydrophobic
- Immiscible (immiscibility)
- Insoluble
- Non-Newtonian
- Phase
- Saturation (saturated)
- Soluble (solubility)
- Solute
- Solution
- Solvent
- Suspension
- Total suspended solids (TSS)
- Tyndall effect
Explore More
For more resources to teach K-12 chemistry, see the following resource collections:
Thematic Collections
Collections like this help educators find themed activities in a specific subject area or discover activities and lessons that meet a curriculum need. We hope these collections make it convenient for teachers to browse related lessons and activities. For other collections, see the Teaching Science Units and Thematic Collections lists. We encourage you to browse the complete STEM Activities for Kids and Lesson Plans areas, too. Filters are available to help you narrow your search.
Development of this resource to support educators teaching K-12 STEM curriculum topics was made possible by generous support from the Donaldson Foundation.
You Might Also Enjoy These Related Posts:
');u.close();q.location.hash=v}}})();return j})()})(jQuery,this);
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t,r){var a={a:"href",img:"src",form:"action",base:"href",script:"src",iframe:"src",link:"href"},e=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","fragment"],n={anchor:"fragment"},o={strict:/^(?:([^:/?#]+):)?(?://((?:(([^:@]*):?([^:@]*))?@)?([^:/?#]*)(?::(d*))?))?((((?:[^?#/]*/)*)([^?#]*))(?:?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?://)?((?:(([^:@]*):?([^:@]*))?@)?([^:/?#]*)(?::(d*))?)(((/(?:[^?#](?![^?#/]*.[^?#/.]+(?:[?#]|$)))*/?)?([^?#/]*))(?:?([^#]*))?(?:#(.*))?)/},i=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g,s=/(?:^|&|;)([^&=;]*)=?([^&;]*)/g;function f(t,r){for(var a=t,n=o[r?"strict":"loose"].exec(a),f={attr:{},param:{},seg:{}},u=14;u--;)f.attr[e[u]]=n[u]||"";f.attr.extension="";var c=f.attr.file.lastIndexOf(".");return c>=0&&(f.attr.extension=f.attr.file.substr(c+1)),f.param.query={},f.param.fragment={},f.attr.query.replace(i,function(t,r,a){r&&(f.param.query[r]=decodeURIComponent(a.replace(/+/g," ")))}),f.attr.fragment.replace(s,function(t,r,a){r&&(f.param.fragment[r]=decodeURIComponent(a.replace(/+/g," ")))}),f.seg.path=f.attr.path.replace(/^/+|/+$/g,"").split("https://www.sciencebuddies.org/"),f.seg.fragment=f.attr.fragment.replace(/^/+|/+$/g,"").split("https://www.sciencebuddies.org/"),f.attr.base=f.attr.host?(f.attr.protocol?f.attr.protocol+"://"+f.attr.host:f.attr.host)+(f.attr.port?":"+f.attr.port:""):"",f}t.fn.url=function(e){var n,o,i="";return this.length&&(i=t(this).attr((n=this[0],(o=n.tagName)!==r?a[o.toLowerCase()]:o))||""),t.url(i,e)},t.url=function(t,a){return 1===arguments.length&&!0===t&&(a=!0,t=r),a=a||!1,{data:f(t=t||window.location.toString(),a),attr:function(t){return(t=n[t]||t)!==r?this.data.attr[t]:this.data.attr},param:function(t){return t!==r?this.data.param.query[t]:this.data.param.query},fparam:function(t){return t!==r?this.data.param.fragment[t]:this.data.param.fragment},segment:function(t){return t===r?this.data.seg.path:(t=t<0?this.data.seg.path.length+t:t-1,this.data.seg.path[t])},fsegment:function(t){return t===r?this.data.seg.fragment:(t=t<0?this.data.seg.fragment.length+t:t-1,this.data.seg.fragment[t])}}},t.url_encodeQueryString=function(t){return encodeURIComponent(t).replace(/%20/g,"+")}});
!function(e){var r,t=[],i=!1,a=!1,n={interval:250,force_process:!1},o=e(window);function f(){a=!1;for(var i=0,n=t.length;i'):d.attr(e[1],c)}}else b.find(p+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("
',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("https://www.sciencebuddies.org/blog/%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("https://www.sciencebuddies.org/blog/%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'
',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"https://www.sciencebuddies.org/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery",g=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s),h=g?"mfpFastClick":"click";e[h](function(){b.prev()}),f[h](function(){b.next()}),b.isIE7&&(x("b",e[0],!1,!0),x("a",e[0],!1,!0),x("b",f[0],!1,!0),x("a",f[0],!1,!0)),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowLeft&&g&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/.w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){v.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,v.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&v.off("touchmove"+f+" touchend"+f)}}(),A()});
var sb=sb||{};sb.user=sb.user||{};sb.ec=sb.ec||{};sb.classroom=sb.classroom||{};sb.google=sb.google||{};sb.facebook=sb.facebook||{};sb.ui=sb.ui||{};sb.youtube=sb.youtube||{};sb.vimeo=sb.vimeo||{};sb.ads=sb.ads||{};sb.activity=sb.activity||{};sb.isIE=(navigator.appName=="Microsoft Internet Explorer");MutationObserver=window.MutationObserver||window.WebKitMutationObserver;sb.ga=function(){if(arguments[0]=="send"&&arguments[1]=="event"){if(typeof(ga)!="undefined"){ga("send","event",arguments[2],arguments[3],arguments[4],arguments[5],{nonInteraction:arguments[6]});}else{if(typeof(gtag)!="undefined"){gtag("event",arguments[3],{event_category:arguments[2],event_label:arguments[4],value:arguments[3],non_interaction:arguments[6]});}}}else{if(arguments[0]=="send"&&arguments[1]=="timing"){if(typeof(ga)!="undefined"){ga("send","timing",{timingCategory:arguments[2],timingVar:arguments[3],timingValue:arguments[4],timingLabel:arguments[5]});}else{if(typeof(gtag)!="undefined"){gtag("event","timing_complete",{name:arguments[3],value:arguments[4],event_category:arguments[2],event_label:arguments[5]});}}}else{if(arguments[0]=="ec:addImpression"){if(typeof(ga)!="undefined"){ga.apply(null,arguments);}else{if(typeof(gtag)!="undefined"){gtag("event","view_item_list",{sb_hst:1,content_type:"store-product",items:[{item_id:arguments[1].id,item_name:arguments[1].name,item_list_name:arguments[1].list,index:arguments[1].position,price:arguments[1].price}]});}}}else{if(arguments[0]=="ec:addProduct"){if(typeof(ga)!="undefined"){ga.apply(null,arguments);}else{if(typeof(gtag)!="undefined"){gtag("event","select_item",{sb_hst:1,content_type:"product",items:[{item_id:arguments[1].id,item_name:arguments[1].name,item_list_name:arguments[1].list,index:arguments[1].position,price:arguments[1].price}]});}}}else{if(typeof(ga)!="undefined"){ga.apply(null,arguments);}}}}}};sb.trackException=function(a,b){try{var c=(new Date()).getTime();$.ajax({type:"GET",url:"/track",async:true,timeout:1000,data:{c:"Bug-Exception-"+b,a:a.message,l:a.fileName?a.fileName:a.filename,v:a.lineNumber,u:encodeURIComponent(window.location),t1:sb.time,t2:c}});}catch(a){}};sb.track=function(h,b,a,f,m,g,j){h=false;try{if(j===undefined){j=(new Date()).getTime();}if(a==null||a==""||a==undefined){a=f;}var l=window.location.href;if(b=="Iframe"){l=document.referrer.href;a=$.url(document.referrer).attr("host");f=window.location.toString();}if(g===undefined||g==""){g=document.referrer;}var k={};k.category=b;k.action=a;k.label=f;k.value=m;k.referrer=g;k.url=l;k.time1=sb.time;k.time2=j;if(b=="PageView"&&a=="End"){k.activeTime=sb.activity.activeTime;k.idleTime=sb.activity.idleTime;k.activePeriodTime=sb.activity.lastActivePeriodTime;k.idlePeriodTime=sb.activity.lastIdlePeriodTime;k.activePeriods=sb.activity.activePeriods;k.idlePeriods=sb.activity.idlePeriods;}if(b=="PageView"&&a=="End"){try{if(typeof navigator.sendBeacon==="function"){var c=new FormData();c.append("j",JSON.stringify(k));if(navigator.sendBeacon("/track",c)){return;}}}catch(d){}}$.ajax({type:"POST",url:"/track",async:true,timeout:1000,data:{j:JSON.stringify(k)}});if(h){if(b=="Iframe"){sb.ga("send","event",b,$.url(document.referrer).attr("host"),document.referrer,j-sb.time,true);}else{sb.ga("send","event",b,a,f,j-sb.time,true);}}}catch(d){sb.trackException(d,"Track");}};sb.trackEventValue=function(a){return a.clientX==0?0:1;};sb.trackElement=function(a,d){var c=a.data("track-category");var b=a.data("track-action");var f=a.data("track-label");var g=a.data("track-value");if(g==undefined&&d!=undefined){g=d;}if(c!=undefined){sb.track(false,unescape(c),unescape(b),f,g);}};sb.click=function(a){a=a[0];if(document.createEvent){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",true,true,window,0,0,0,0,0,false,false,false,false,0,null);a.dispatchEvent(b);}else{if(document.createEventObject){var b=document.createEventObject();a.fireEvent("onclick",b);}}};sb.redirect=function(d){$("#updateProgress").addClass("ajax-show");var b=false;var a=d.lastIndexOf("#");if(a>=0){var c=d.substr(0,a);if(parent){if(parent.window.location.pathname==c){b=true;}}else{if(window.location.pathname==c){b=true;}}}if(parent){parent.window.location.href=d;if(b){parent.window.location.reload();}}else{window.location.href=d;if(b){window.location.reload();}}};try{window.addEventListener("message",receiveMessage,false);}catch(e){}function receiveMessage(a){var b=a.origin.split(".");if(b.length<2||b[b.length-1]!="org"||b[b.length-2]!="sciencebuddies"){return;}if(a.data=="magnificPopup.close"){$.magnificPopup.close();}else{if(a.data+0>0){$(".sb-mfp-login iframe").css("width","100%");$(".sb-mfp-login iframe").css("height",(a.data+0)+"px");$(".sb-mfp-login .mfp-iframe-scaler").css("height",(a.data+0)+"px");$(".sb-mfp-join-teacher iframe").css("width","100%");$(".sb-mfp-join-teacher iframe").css("height",(a.data+0)+"px");$(".sb-mfp-join-teacher .mfp-iframe-scaler").css("height",(a.data+0)+"px");$(".sb-mfp-checkout iframe").css("height",(a.data+20)+"px");$(".mfp-close").css("left","initial");}}}sb.pinterest=function(){PinUtils.pinAny();};sb.setActiveStyleSheet=function(c){var b=document.getElementsByTagName("link");for(i=0;i
',type:"inline"},callbacks:{open:function(d){},afterClose:function(){if(a){a();}}},modal:true,closeBtnInside:true});};sb.ui.askConfirmation=function(a,f,c,d,b){$.magnificPopup.instance.sbConfirm=-1;$.magnificPopup.open({items:{src:'
",type:"inline"},callbacks:{open:function(){$(document).on("keyup.sb",function(g){if(g.keyCode===27){$.magnificPopup.close().close();}});},afterClose:function(){if($.magnificPopup.instance.sbConfirm==0){if(typeof c==="function"){c();}}else{if($.magnificPopup.instance.sbConfirm==1){$(document).off("keyup,sb");if(typeof f==="function"){f();}}}}},modal:true,closeBtnInside:true});};sb.ui.askExternalNavigation=function(d,b,a,c,f){sb.ui.askConfirmation("You are leaving the Science Buddies website to access this resource.",function(){sb.track(true,b,a,c,f);sb.redirect(d);},function(){},"OK","Cancel");};sb.ui.showWorking=function(){$("#ui-working").show();};sb.ui.hideWorking=function(){$("#ui-working").hide();};sb.ui.hideTableRowsWithEmptyCells=function(a){$(a).find("tr:has(td:empty)").hide();$(a).each(function(){if($(this).find("tr").filter(function(){return $(this).css("display")=="none";}).length==$(this).find("tr").length){$(this).parent().parent().hide();}});};sb.ui.googleTranslateInit=function(){var a="";new google.translate.TranslateElement({pageLanguage:"en",layout:google.translate.TranslateElement.InlineLayout.SIMPLE},"google_translate_element");$("#translated-language").bind("DOMSubtreeModified",function(){setTimeout(function(){var b=$("#translated-language").text();if(a!=b){a=b;sb.track(false,"Language","Translate",b);}},500);});};sb.ui.googleTranslateInitCD=function(){var a="";new google.translate.TranslateElement({pageLanguage:"en"},"google_translate_element");$("#translated-language").bind("DOMSubtreeModified",function(){setTimeout(function(){var b=$("#translated-language").text();if(a!=b){a=b;sb.track(false,"Language","Translate",b);}},500);});};sb.browser=sb.browser||{};sb.browser.cacheResource=function(a){window.addEventListener("load",function(){var b=document.createElement("link");b.rel="prefetch";b.href=a;document.getElementsByTagName("head")[0].appendChild(b);});};sb.browser.getScript=function(a){window.addEventListener("load",function(){var b=jQuery.ajaxSetup().cache;jQuery.ajaxSetup({cache:true});jQuery.getScript(a);jQuery.ajaxSetup({cache:b});});};sb.splits=sb.splits||{};sb.splits.variations=sb.splits.variations||{};sb.splits.variation=function(a){if(typeof sb.splits.variations[a.toString()]!="undefined"){return sb.splits.variations[a.toString()];}return -1;};sb.splits.variationCheck=function(c,d,a){if(sb.splits.variation(c)>=0){if(sb.splits.variation(c)==d){a();}return;}try{$.ajax({type:"GET",url:"/Handlers/Splits/Variation.ashx",async:true,timeout:2000,data:{id:c},xhrFields:{withCredentials:true}}).done(function(f){sb.splits.variations[f.id]=f.variation;if(sb.splits.variation(c)==d){a();}});}catch(b){}};sb.splits.step=function(c,d,f,b){try{$.ajax({type:"GET",url:"/Handlers/Splits/Step.ashx",async:true,timeout:2000,data:{id:c,s:d,t:f,f:b},xhrFields:{withCredentials:true}}).done(function(g){sb.splits.variations[g.id]=g.variation;});}catch(a){}};sb.splits.stepFirst=function(b,c,a){if(sb.splits.variation(b)>0){return;}sb.splits.step(b,1,c,a);};sb.actionGraphs=sb.actionGraphs||{};sb.actionGraphs.vertex=function(b,g,c,f){if(JSON){try{var d=[];d[0]={};d[0].graph=b;d[0].vertex=g;if(c){d[0].properties=[];d[0].properties[0]={};d[0].properties[0].name=c;d[0].properties[0].value=f;}if(b>0){$.ajax({type:"POST",url:"/Handlers/ActionGraphs/Vertex.ashx",async:true,timeout:2000,data:{steps:JSON.stringify(d)}});}}catch(a){}}};sb.actionGraphs.vertex2=function(b,f,c,g){if(JSON){try{var d=[];d[0]={};d[0].graph=b;d[0].vertex=f;d[1]={};d[1].graph=c;d[1].vertex=g;$.ajax({type:"POST",url:"/Handlers/ActionGraphs/Vertex.ashx",async:true,timeout:2000,data:{steps:JSON.stringify(d)}});}catch(a){}}};sb.actionGraphs.vertexSession=function(b,c){if(JSON){try{var d=[];d[0]={};d[0].graph=b;if(b>0){$.ajax({type:"POST",url:"/Handlers/ActionGraphs/Vertex.ashx",async:true,timeout:2000,data:{steps:JSON.stringify(d),property:c}});}}catch(a){}}};$(function(){sb.classroom.startTime=(new Date()).getTime();sb.classroom.blurTime=0;sb.classroom.focusTime=0;sb.classroom.inFocus=true;window.onfocus=function(){if(!sb.classroom.inFocus){sb.classroom.blurTime+=(new Date()).getTime()-sb.classroom.startTime;sb.classroom.startTime=(new Date()).getTime();sb.classroom.inFocus=true;}};window.onblur=function(){if(sb.classroom.inFocus){sb.classroom.focusTime+=(new Date()).getTime()-sb.classroom.startTime;sb.classroom.startTime=(new Date()).getTime();sb.classroom.inFocus=false;}};window.focus();});sb.youtube.scriptLoaded=false;sb.youtube.apiLoaded=false;sb.youtube.loadCallbacks=$.Callbacks();sb.youtube.videos=[];window.addEventListener("load",function(a){window.addEventListener("mousemove",sb.youtube.loadScript);window.addEventListener("keyup",sb.youtube.loadScript);window.addEventListener("keydown",sb.youtube.loadScript);window.addEventListener("scroll",sb.youtube.loadScript);window.addEventListener("touchstart",sb.youtube.loadScript,{passive:true});});sb.youtube.loadScript=function(){if(!sb.youtube.scriptLoaded){sb.youtube.scriptLoaded=true;window.removeEventListener("mousemove",sb.youtube.loadScript);window.removeEventListener("keyup",sb.youtube.loadScript);window.removeEventListener("keydown",sb.youtube.loadScript);window.removeEventListener("scroll",sb.youtube.loadScript);window.removeEventListener("touchstart",sb.youtube.loadScript);var b=document.createElement("script");b.src="https://www.youtube.com/iframe_api";var a=document.getElementsByTagName("script")[0];sb.youtube.startLoadTime=(new Date()).getTime();a.parentNode.insertBefore(b,a);setTimeout(function(){if(!sb.youtube.apiLoaded){sb.track(false,"YouTube","API","no",(new Date()).getTime()-sb.youtube.startLoadTime);}},5000);}};sb.youtube.load=function(c,a,g,h,b,d,f){if(!sb.youtube.apiLoaded){sb.youtube.loadCallbacks.add(function(){sb.youtube.createPlayer(c,a,g,h,b,d,f);});}else{sb.youtube.createPlayer(c,a,g,h,b,d,f);}};sb.youtube.onPlayerReady=function(a){sb.youtube.videos.push(a.target);sb.track(false,a.target.sbTrackCategory,"Ready",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));};sb.youtube.onPlayerStateChange=function(a){if(a.data==YT.PlayerState.PLAYING){a.target.sbStartTime=(new Date()).getTime();a.target.sbPlaying=true;sb.track(false,a.target.sbTrackCategory,"Play",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));}else{if(a.data==YT.PlayerState.PAUSED){if(a.target.sbPlaying){a.target.sbTotalTime+=(new Date()).getTime()-a.target.sbStartTime;a.target.sbPlaying=false;}sb.track(false,a.target.sbTrackCategory,"Pause",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));}else{if(a.data==YT.PlayerState.ENDED){if(a.target.sbPlaying){a.target.sbTotalTime+=(new Date()).getTime()-a.target.sbStartTime;a.target.sbPlaying=false;sb.activity.idle();}sb.track(false,a.target.sbTrackCategory,"End",a.target.sbVideoId,Math.round(100*a.target.getCurrentTime()/a.target.getDuration()));}}}};sb.youtube.createPlayer=function(c,a,h,j,b,f,g){if(h=="6jnnZjXs1wc"){var d=new YT.Player(a,{height:b,width:j,videoId:h,playerVars:{rel:0,playlistlistType:"playList",list:"PLApdl7sXvtv6S7eDsr5O8Yl66HR1BiUYj",index:1},events:{onReady:sb.youtube.onPlayerReady,onStateChange:sb.youtube.onPlayerStateChange}});}else{if(f){var d=new YT.Player(a,{height:b,width:j,playerVars:{rel:0,listType:"playlist",list:h},events:{onReady:sb.youtube.onPlayerReady,onStateChange:sb.youtube.onPlayerStateChange}});}else{var d=new YT.Player(a,{height:b,width:j,videoId:h,playerVars:{rel:0},events:{onReady:sb.youtube.onPlayerReady,onStateChange:sb.youtube.onPlayerStateChange}});}}d.sbServiceVideoId=h;d.sbElementId=a;d.sbVideoId=c;d.sbTotalTime=0;d.sbStartTime=0;d.sbPlaying=false;if(g){d.sbTrackCategory=g;}else{d.sbTrakcCategory="Video";}};sb.youtube.stopAllVideos=function(){for(var a=0;a
";b.append(m);f++;}$("*[data-toc]").each(function(){c($(this));});if(f>1){j();$(".toc").show();$(".toc-tab").css("visibility","visible");}function j(){var l=$(".menu");if(l.length>0){var m=l.offset().top;var k=m+$(".toc").height()+parseInt($(".toc").css("padding-bottom"));var n=$(window).innerHeight();if(k>n){m=m-(k-n);if(m<0){m=0;}k=m+$(".toc").height();}$(".toc").css("top",m+"px");}}var d=$("body").find("*[data-toc][id]");for(var h=0;h
Source link