------------------existingStyle.css----- html { font-family: 'MathJax_Main', serif; ascent-override: 90%; descent-override: 20%; line-gap-override: 0%; } body { margin: 0; min-height: 100vh; background: linear-gradient(135deg, #0a0f1d 0%, #0d1426 100%); justify-content: center; align-items: center; font-family: 'Inter', sans-serif; color: white; padding: 5px; } .card { width: 100%; max-width: 100%; background: linear-gradient(135deg, #0b111f 0%, #111827 100%); border-radius: 20px; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.6); } .header { padding: 25px 20px 15px; text-align: center; border-bottom: 1px solid rgba(255,206,0,0.3); background: rgba(17, 24, 39, 0.85); } .header h1 { font-family: 'Roboto Condensed', sans-serif; font-size: 2.2rem; font-weight: 900; color: #ffce00; margin: 0 0 10px; text-shadow: 0 0 20px rgba(255,206,0,0.6); line-height: 1.2; } .subject { color: #34d399; font-size: 1.5rem; letter-spacing: 0.6px; margin-bottom: 8px; font-weight: 600; } .website { color: #ff4d4d; font-size: 1.2rem; letter-spacing: 0.6px; font-weight: 600; } .main { display: flex; flex-direction: column; padding: 5px; } .panel { background: linear-gradient(145deg, rgba(17,24,39,0.95), rgba(10,14,26,0.98)); border-radius: 20px; padding: 5px; border: 1px solid rgba(255,206,0,0.25); box-shadow: 0 10px 30px rgba(0,0,0,0.6); display: flex; flex-direction: column; height: auto; width: 100%; } .panel-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.6rem; font-weight: 900; color: #ffce00; text-align: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid rgba(255,206,0,0.3); } .formula-box { background: rgba(255,206,0,0.12); border-radius: 14px; padding: 20px; margin: 18px 0; border: 1px solid rgba(255,206,0,0.35); text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); } .math-formula { font-size: 2.2rem; font-weight: 700; color: #ffce00; margin: 8px 0; min-height:70px; } .properties-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; } .property-item { display: flex; align-items: flex-start; padding: 14px; background: rgba(16,185,129,0.12); border-radius: 14px; border-left: 5px solid #10b981; } .property-icon { font-size: 1.7rem; margin-right: 14px; color: #10b981; min-width: 30px; text-align: center; margin-top: 3px; } .property-text { font-size: 1.25rem; line-height: 1.5; } .tips-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; } .tip-item { display: flex; align-items: flex-start; padding: 14px; background: rgba(245,158,11,0.12); border-radius: 14px; border-left: 5px solid #f59e0b; } .tip-icon { font-size: 1.7rem; margin-right: 14px; color: #f59e0b; min-width: 30px; text-align: center; margin-top: 3px; } .tip-text { font-size: 1.25rem; line-height: 1.5; } .examples-list { display: flex; flex-direction: column; gap: 16px; margin: 10px 0; flex-grow: 1; } .example-item { background: rgba(59, 130, 246, 0.12); border-radius: 14px; padding: 18px; border: 1px solid rgba(59, 130, 246, 0.35); flex-grow: 1; display: flex; flex-direction: column; } .example-title { font-weight: 700; color: #ffffff; margin-bottom: 10px; font-size: 1.5rem; display: flex; align-items: center; } .example-title i { margin-right: 10px; font-size: 1.4rem; } .example-content { font-size: 1.15rem; line-height: 1.6; flex-grow: 1; } .answer-section { background: rgba(124, 45, 183, 0.15); border-radius: 14px; padding: 16px; margin-top: 12px; border-left: 4px solid #8b5cf6; } .answer-title { color: #a78bfa; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; } .answer-title i { margin-right: 8px; font-size: 1.2rem; } .rule-section { background: rgba(239, 68, 68, 0.12); border-radius: 12px; padding: 14px; margin-top: 12px; border-left: 4px solid #ef4444; } .rule-title { color: #f87171; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; } .rule-title i { margin-right: 8px; font-size: 1.1rem; } .definition-section { background: rgba(139, 92, 246, 0.12); border-radius: 12px; padding: 14px; margin-top: 12px; border-left: 4px solid #8b5cf6; } .definition-title { color: #c4b5fd; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; } .definition-title i { margin-right: 8px; font-size: 1.1rem; } .method-section { background: rgba(245, 158, 11, 0.12); border-radius: 12px; padding: 14px; margin-top: 12px; border-left: 4px solid #f59e0b; } .method-title { color: #fcd34d; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; } .method-title i { margin-right: 8px; font-size: 1.1rem; } .exercise-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: rgba(255,206,0,0.25); border-radius: 50%; font-weight: 700; margin-right: 10px; flex-shrink: 0; } .exercise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 10px; } .exercise-card { background: rgb(8 10 10 / 70%); border-radius: 16px; padding: 18px; border: 1px solid rgb(245 200 12 / 100%); transition: transform 0.3s ease, box-shadow 0.3s ease; } .exercise-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.4); border-color: rgba(255,206,0,0.4); } .exercise-card-title { font-weight: 700; color: #ffce00; margin-bottom: 10px; display: flex; align-items: center; } .exercise-card-title i { margin-right: 10px; font-size: 1.3rem; } .exercise-card-content { font-size: 1.1rem; line-height: 1.5; } .step-by-step { background: rgba(16, 185, 129, 0.15); border-radius: 12px; padding: 12px; margin: 8px 0; border-left: 3px solid #10b981; } .step-title { color: #34d399; font-weight: 600; margin-bottom: 5px; } .highlight-term { background: rgba(255, 206, 0, 0.2); padding: 2px 6px; border-radius: 4px; font-weight: 600; } .identity-grid { display: grid; grid-template-columns: 1fr; gap: 15px; margin: 15px 0; } .identity-item { border: 1px solid #aaa; background: rgb(117 126 143 / 15%); padding: 15px; border-radius: 10px; text-align: center; min-height:60px; } .identity-formula { font-size: 1.8rem; font-weight: 700; color: #8cf50c; margin: 5px 0; } .identity-name { font-size: 1.1rem; color: #ffffff; margin-bottom: 5px; } .algebra-step { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; font-size: 1.2rem; font-weight: 600; color: #ffce00; } .step-box { display: flex; flex-direction: column; align-items: center; padding: 10px; background: rgba(255,206,0,0.1); border-radius: 8px; min-width: 100px; } .step-label { font-size: 0.9rem; color: #fbbf24; margin-bottom: 5px; } .step-expression { font-size: 1.3rem; color: #ffce00; } .identity-table { width: 100%; border-collapse: collapse; margin: 15px 0; } .identity-table td, .identity-table th { border: 1px solid rgba(255,206,0,0.3); padding: 8px; text-align: center; } .identity-table th { background: rgba(255,206,0,0.2); color: #ffce00; } .result-box { font-family: monospace; font-size: 1.4rem; color: #34d399; text-align: center; margin: 15px 0; padding: 10px; background: rgba(16,185,129,0.1); border-radius: 8px; } @media (min-width: 768px) { .main { flex-direction: row; flex-wrap: wrap; } .header h1 { font-size: 2.5rem; } } @media (min-width: 1200px) { .panel { min-width: 350px; } } .mathjax-placeholder { min-height: 10em; /* reserve space */ } @media (max-width: 768px) { .algebra-step,.step-box,.morphology-diagram,.morphology-part { display: block; margin-bottom:5px; } } .mathjax { min-height: 50px; /* reserve space */ } /* Q&A Section Styles */ .qa-container { margin-top: 30px; padding: 20px; } .qa-item { background: rgba(30, 41, 59, 0.7); border-radius: 12px; padding: 20px; margin-bottom: 20px; border: 1px solid rgba(59, 130, 246, 0.3); } .question-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(59, 130, 246, 0.3); } .user-info { display: flex; align-items: center; } .avatar { width: 40px; height: 40px; border-radius: 50%; background: #3b82f6; display: flex; align-items: center; justify-content: center; margin-right: 10px; font-weight: bold; } .username { font-weight: 600; color: #3b82f6; } .education-level { font-size: 0.9rem; color: #94a3b8; margin-left: 10px; } .question-content { font-size: 1.1rem; line-height: 1.6; margin-bottom: 15px; } .answer-header { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(16, 185, 129, 0.3); } .answer-content { font-size: 1.1rem; line-height: 1.6; margin-top: 15px; } .expert-education { font-size: 0.9rem; color: #34d399; } .qa-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.8rem; font-weight: 900; color: #ffce00; text-align: center; margin-bottom: 25px; padding-bottom: 12px; border-bottom: 2px solid rgba(255,206,0,0.3); } .graph-container { margin-top: 15px; padding: 10px; background: rgba(255,255,255, 0.05); border-radius: 10px; height: 300px; } /* Compact Infographic Panel Styles */ .infographic-panel { background: linear-gradient(135deg, #0f172a, #1e293b); border-radius: 15px; padding: 20px; margin: 15px; border: 1px solid #888; box-shadow: 0 0 30px rgba(255, 206, 0, 0.3); position: relative; overflow: hidden; max-width: 100%; margin-left: auto; margin-right: auto; } .infographic-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 206, 0, 0.3); } .infographic-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.8rem; font-weight: 900; color: #ffce00; margin: 0; } .infographic-icon { font-size: 2rem; color: #ffce00; } .compact-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 15px; } .rule-card { background: rgba(17, 24, 39, 0.8); border-radius: 10px; padding: 15px; border: 1px solid rgba(255, 206, 0, 0.2); } .rule-title { font-weight: 700; color: #ffce00; margin-bottom: 8px; font-size: 1.1rem; display: flex; align-items: center; } .rule-title i { margin-right: 8px; color: #f59e0b; } .rule-content { font-size: 0.95rem; color: #cbd5e1; line-height: 1.4; } .formula-small { font-size: 1.2rem; color: #34d399; margin: 5px 0; font-weight: 600; } .workflow-container { grid-column: 1 / -1; background: rgba(59, 130, 246, 0.1); border-radius: 10px; padding: 15px; margin-top: 10px; border: 1px solid rgba(59, 130, 246, 0.3); } .workflow-title { font-weight: 700; color: #60a5fa; margin-bottom: 10px; text-align: center; } .workflow-steps { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; } .workflow-step { flex: 1; text-align: center; padding: 10px; background: rgba(17, 24, 39, 0.7); border-radius: 8px; margin: 0 5px; min-width: 60px; } .step-number { display: inline-block; width: 30px; height: 30px; background: #3b82f6; color: white; border-radius: 50%; font-weight: 700; font-size: 0.9rem; line-height: 30px; margin-bottom: 5px; } .step-label { font-size: 0.8rem; color: #93c5fd; } .graph-placeholder { grid-column: 1 / -1; background: rgba(16, 185, 129, 0.1); border-radius: 10px; padding: 15px; margin-top: 10px; border: 1px solid rgba(16, 185, 129, 0.3); text-align: center; min-height: 100px; display: flex; align-items: center; justify-content: center; } .graph-title { font-weight: 700; color: #34d399; margin-bottom: 10px; } .graph-content { font-size: 0.9rem; color: #a7f3d0; } .cta-mini { grid-column: 1 / -1; background: linear-gradient(90deg, #ffce00, #f59e0b); color: #0f172a; padding: 12px; border-radius: 8px; margin-top: 15px; font-size: 1.1rem; font-weight: 700; text-align: center; } .graph-container { margin-top: 15px; padding: 10px; background: rgba(255,255,255, 1); border-radius: 10px; height: 300px; } /* Professional styles for additional sections */ .additional-examples { background: rgba(245, 158, 11, 0.15); border-radius: 12px; padding: 14px; margin-top: 12px; border-left: 4px solid #f59e0b; border: 1px solid #f59e0b; } .additional-examples .example-title { color: #d97706; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; } .additional-examples .example-title i { margin-right: 8px; font-size: 1.1rem; } .additional-examples ul { list-style-type: none; padding-left: 0; } .additional-examples li { padding: 8px 12px; margin-bottom: 6px; background: rgba(251, 191, 36, 0.2); border-radius: 6px; border-left: 3px solid #fbbf24; } .tips-section { background: rgba(16, 185, 129, 0.15); border-radius: 12px; padding: 14px; margin-top: 12px; border-left: 4px solid #10b981; border: 1px solid #10b981; } .tips-section .tips-title { color: #10eba7; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; } .tips-section .tips-title i { margin-right: 8px; font-size: 1.1rem; } .tips-section ul { list-style-type: none; padding-left: 0; } .tips-section li { padding: 8px 12px; margin-bottom: 6px; background: rgba(52, 211, 153, 0.2); border-radius: 6px; border-left: 3px solid #34d399; } .faq-section { background: rgba(139, 92, 246, 0.1); border-radius: 12px; padding: 14px; margin-top: 12px; border-left: 4px solid #8b5cf6; border: 1px solid #8b5cf6; } .faq-section .faq-title { color: #7c3aed; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; } .faq-section .faq-title i { margin-right: 8px; font-size: 1.1rem; } .faq-section p { padding: 8px 12px; margin-bottom: 8px; background: rgba(192, 132, 252, 0.2); border-radius: 6px; border-left: 3px solid #c084fc; } /* ============ NEW CSS FOR GEO & AI OPTIMIZATION ============ */ /* Table of Contents */ .toc-container { background: linear-gradient(135deg, #f0f9ff, #dbeafe); border-radius: 15px; padding: 20px; margin: 20px; border: 2px solid #3b82f6; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15); } .toc-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.5rem; font-weight: 800; color: #1e40af; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; } .toc-list { list-style: none; padding-left: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; } .toc-list li { padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.7); border-left: 3px solid #3b82f6; transition: all 0.2s ease; } .toc-list li:hover { background: rgba(59, 130, 246, 0.1); transform: translateX(3px); } .toc-list a { color: #1e40af; text-decoration: none; font-weight: 600; display: block; } .toc-list a:hover { color: #1d4ed8; text-decoration: underline; } /* Learning Objectives Box */ .learning-objectives { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-radius: 15px; padding: 20px; margin: 20px; border: 2px solid #10b981; box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15); } .objectives-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.4rem; font-weight: 800; color: #059669; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; } .objectives-list { list-style: none; padding-left: 0; margin: 0; } .objectives-list li { padding: 6px 0; padding-left: 25px; position: relative; color: #1e293b; font-size: 1.05rem; } .objectives-list li:before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: bold; font-size: 1.1rem; } /* Difficulty Badge */ .difficulty-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin: 5px 0; } .difficulty-beginner { background: rgba(16, 185, 129, 0.2); color: #059669; border: 1px solid #10b981; } .difficulty-intermediate { background: rgba(245, 158, 11, 0.2); color: #d97706; border: 1px solid #f59e0b; } .difficulty-advanced { background: rgba(239, 68, 68, 0.2); color: #dc2626; border: 1px solid #ef4444; } /* Time Estimate */ .time-estimate { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; background: rgba(139, 92, 246, 0.15); color: #7c3aed; border: 1px solid #8b5cf6; margin: 5px 0; } /* Glossary Section */ .glossary-section { background: rgba(248, 250, 252, 0.9); border-radius: 15px; padding: 20px; margin: 20px; border: 2px solid #94a3b8; } .glossary-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.4rem; font-weight: 800; color: #1e40af; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; } .glossary-term { display: flex; flex-direction: column; padding: 12px; margin: 8px 0; background: #ffffff; border-radius: 10px; border-left: 4px solid #3b82f6; box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .glossary-term-name { font-weight: 700; color: #1e40af; font-size: 1.1rem; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; } .glossary-term-definition { color: #334155; line-height: 1.5; font-size: 1rem; } /* Author Bio Section */ .author-bio { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 15px; padding: 20px; margin: 20px; border: 2px solid #f59e0b; display: flex; align-items: flex-start; gap: 15px; } .author-avatar { width: 60px; height: 60px; border-radius: 50%; background: #3b82f6; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.5rem; flex-shrink: 0; } .author-details h4 { margin: 0 0 5px 0; color: #1e40af; font-size: 1.2rem; } .author-credentials { color: #64748b; font-size: 0.95rem; margin-bottom: 8px; } .author-expertise { font-size: 0.9rem; color: #475569; line-height: 1.4; } /* Related Resources */ .related-resources { background: rgba(240, 249, 255, 0.9); border-radius: 15px; padding: 20px; margin: 20px; border: 2px solid #3b82f6; } .resources-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.4rem; font-weight: 800; color: #1e40af; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; } .resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; } .resource-link { display: block; padding: 12px; background: #ffffff; border-radius: 10px; border: 1px solid #cbd5e1; color: #1e40af; text-decoration: none; transition: all 0.2s ease; font-weight: 600; font-size: 0.95rem; } .resource-link:hover { border-color: #3b82f6; background: rgba(59, 130, 246, 0.05); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15); } .resource-link i { margin-right: 8px; color: #3b82f6; } /* AI Summary Box */ .ai-summary { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-radius: 15px; padding: 20px; margin: 20px; border: 2px solid #8b5cf6; border-left: 5px solid #7c3aed; } .ai-summary-title { font-family: 'Roboto Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; color: #7c3aed; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; } .ai-summary-content { color: #475569; line-height: 1.6; font-size: 1.05rem; } /* Structured Data Container (visually hidden but accessible) */ .structured-data { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* Search Intent Tags */ .search-intent-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; padding: 10px; background: rgba(241, 245, 249, 0.8); border-radius: 10px; border: 1px dashed #94a3b8; } .intent-tag { padding: 4px 10px; background: #ffffff; border-radius: 15px; font-size: 0.8rem; font-weight: 600; color: #475569; border: 1px solid #cbd5e1; } .intent-tag.primary { background: rgba(59, 130, 246, 0.15); color: #1e40af; border-color: #3b82f6; } .item-step { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; flex-wrap: wrap; } .exercise-meta { display: flex; justify-content: space-between; flex-wrap: wrap; margin: 10px 0; padding: 10px; background: rgba(139, 92, 246, 0.1); border-radius: 8px; border-left: 3px solid #8b5cf6; } .meta-item { display: flex; align-items: center; margin-right: 15px; font-size: 0.9rem; } .meta-item i { margin-right: 5px; color: #8b5cf6; } .difficulty-beginner { color: #10b981; font-weight: 600; } .difficulty-intermediate { color: #f59e0b; font-weight: 600; } .difficulty-advanced { color: #ef4444; font-weight: 600; } .additional-examples { background: rgba(59, 130, 246, 0.1); border-radius: 10px; padding: 14px; margin-top: 12px; border-left: 3px solid #3b82f6; } .example-title { color: #ffffff; font-weight: 700; margin-bottom: 10px; font-size: 1.5rem; display: flex; align-items: center; } .tips-section { background: rgba(245, 158, 11, 0.1); border-radius: 10px; padding: 14px; margin-top: 12px; border-left: 3px solid #f59e0b; } .faq-section { background: rgba(16, 185, 129, 0.1); border-radius: 10px; padding: 14px; margin-top: 12px; border-left: 3px solid #10b981; } .key-takeaways { background: rgba(139, 92, 246, 0.1); border-radius: 10px; padding: 14px; margin-top: 15px; border-left: 3px solid #8b5cf6; } .takeaways-title { color: #c4b5fd; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; } .takeaways-list { margin: 0; padding-left: 20px; } .takeaways-list li { margin-bottom: 8px; line-height: 1.5; } .glossary-section { background: rgba(17, 24, 39, 0.8); border-radius: 15px; padding: 20px; margin: 25px 0; border: 1px solid rgba(255, 206, 0, 0.3); } .glossary-title { color: #ffce00; font-size: 1.8rem; font-weight: 900; margin-bottom: 20px; text-align: center; padding-bottom: 12px; border-bottom: 2px solid rgba(255,206,0,0.3); } .glossary-term { margin-bottom: 15px; padding: 12px; background: rgba(59, 130, 246, 0.12); border-radius: 10px; border-left: 4px solid #3b82f6; } .glossary-term-name { color: #3b82f6; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; } .glossary-term-name i { margin-right: 8px; } .glossary-term-definition { color: #cbd5e1; line-height: 1.5; margin: 0; } .author-bio { background: rgba(17, 24, 39, 0.8); border-radius: 15px; padding: 20px; margin: 25px 0; border: 1px solid rgba(255, 206, 0, 0.3); display: flex; align-items: center; } .author-avatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #ffce00, #f59e0b); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 700; color: #0f172a; margin-right: 20px; flex-shrink: 0; } .author-details { flex-grow: 1; } .author-details h4 { color: #ffce00; font-size: 1.4rem; margin: 0 0 8px; } .author-credentials { color: #f59e0b; font-size: 1.1rem; margin: 0 0 10px; } .author-expertise { color: #cbd5e1; line-height: 1.5; margin: 0; } @media (max-width: 768px) { .item-step { flex-direction: column; gap: 10px; } .step-box { width: 100%; margin-bottom: 10px; } .exercise-meta { flex-direction: column; gap: 8px; } .meta-item { margin-right: 0; margin-bottom: 5px; } .author-bio { flex-direction: column; text-align: center; } .author-avatar { margin-right: 0; margin-bottom: 15px; } } /* Responsive adjustments for new elements */ @media (max-width: 768px) { .toc-list, .resources-grid { grid-template-columns: 1fr; } .author-bio { flex-direction: column; text-align: center; } .search-intent-tags { justify-content: center; } } ---------------end existingStyles.css-----

Understanding Functions in Grade 8 - Mathematics - Exercises with solutions

Master functions: domain, range, function notation, input-output relationships through these 10 detailed exercises.

Solutions: Exercises 1 to 10
1 Function identification
Exercise 1
Which of the following relations represents a function? {(1, 2), (2, 3), (3, 4), (4, 5)} or {(1, 2), (1, 3), (2, 4), (3, 5)}
Difficulty: Beginner Time: ~3 minutes Skills: Function Definition
Definition:

Function: A relation where each input (domain element) has exactly one output (range element)

Note: A function cannot have the same input paired with multiple outputs. This is known as the vertical line test for graphs.

Step-by-step identification method:
  1. Examine the input values (first coordinates) in each ordered pair
  2. Check if any input value appears more than once
  3. If an input has multiple outputs, it's not a function
  4. If each input has exactly one output, it is a function
Relation 1
{(1, 2), (2, 3), (3, 4), (4, 5)}
Is it a function?
Yes
Step 1: Analyze Relation 1

Inputs: {1, 2, 3, 4} - Each input appears only once

Outputs: {2, 3, 4, 5} - Each input has exactly one output

Step 2: Analyze Relation 2

Inputs: {1, 1, 2, 3} - Input 1 appears twice

Outputs: {2, 3, 4, 5} - Input 1 maps to both 2 and 3

Step 3: Determine if function

Relation 1: Each input has exactly one output → It's a function

Relation 2: Input 1 has two outputs → It's not a function

{(1, 2), (2, 3), (3, 4), (4, 5)} is a function
Final answer:

The relation {(1, 2), (2, 3), (3, 4), (4, 5)} is a function because each input has exactly one output.

Applied rules:

Function definition: Each input must have exactly one output

No repeated inputs: Same input cannot map to different outputs

Verification: Check each input value for uniqueness

Practice Tip: Create a table with inputs and outputs to visualize the relationship

Related Examples:
  • {(a, 1), (b, 2), (c, 3)} - Function (different inputs)
  • {(x, 5), (y, 5), (z, 5)} - Function (same output is OK)
  • {(2, 4), (2, 6), (3, 7)} - Not a function (input 2 has two outputs)
Quick Tips:
  • Focus on the inputs (domain) when determining if a relation is a function
  • Multiple inputs can have the same output - that's still a function
  • Only inputs matter - the same output for different inputs is allowed
Frequently Asked Questions:

Q: Can different inputs have the same output in a function?
A: Yes, absolutely. For example, f(x) = x² has f(2) = 4 and f(-2) = 4.

Q: What if I have an empty relation?
A: An empty relation is technically a function since there are no violations of the function rule.

2 Domain and range
Exercise 2
Find the domain and range of the function f(x) = 2x + 3 for the ordered pairs {(1, 5), (2, 7), (3, 9), (4, 11)}.
Difficulty: Beginner Time: ~4 minutes Skills: Domain and Range
Definition:

Domain: Set of all possible input values (x-values) of a function

Range: Set of all possible output values (y-values) of a function

Note: For a finite set of ordered pairs, the domain is the set of all first coordinates, and the range is the set of all second coordinates.

Step-by-step domain and range method:
  1. Identify all input values (first coordinates) in the ordered pairs
  2. List the unique input values to form the domain
  3. Identify all output values (second coordinates) in the ordered pairs
  4. List the unique output values to form the range
Given Pairs
{(1, 5), (2, 7), (3, 9), (4, 11)}
Domain
{1, 2, 3, 4}
Range
{5, 7, 9, 11}
Step 1: Identify input values (domain)

From (1, 5), (2, 7), (3, 9), (4, 11), the inputs are: 1, 2, 3, 4

Step 2: List the domain

Domain = {1, 2, 3, 4}

Step 3: Identify output values (range)

From (1, 5), (2, 7), (3, 9), (4, 11), the outputs are: 5, 7, 9, 11

Step 4: List the range

Range = {5, 7, 9, 11}

Domain: {1, 2, 3, 4}, Range: {5, 7, 9, 11}
Final answer:

Domain = {1, 2, 3, 4}, Range = {5, 7, 9, 11}

Applied rules:

Domain: Collect all first coordinates of ordered pairs

Range: Collect all second coordinates of ordered pairs

Uniqueness: Each value listed only once in sets

Practice Tip: Organize data in a table to clearly separate inputs and outputs

Related Examples:
  • For {(a, x), (b, y), (c, z)}, Domain = {a, b, c}, Range = {x, y, z}
  • For {(0, 1), (1, 1), (2, 1)}, Domain = {0, 1, 2}, Range = {1}
  • For {(−1, 0), (0, 1), (1, 0)}, Domain = {−1, 0, 1}, Range = {0, 1}
Quick Tips:
  • Domain values are always the inputs (x-values or first coordinates)
  • Range values are always the outputs (y-values or second coordinates)
  • Same output values don't need to be repeated in the range set
Frequently Asked Questions:

Q: What if the same output appears multiple times?
A: Only list it once in the range set. For example, if outputs are {3, 5, 3, 7}, the range is {3, 5, 7}.

Q: Can the domain and range be infinite sets?
A: Yes, for functions defined over all real numbers, the domain and/or range may be infinite.

3 Function notation
Exercise 3
Given f(x) = 3x - 2, find f(4) and f(-1).
Difficulty: Intermediate Time: ~4 minutes Skills: Function Evaluation
Definition:

Function notation: f(x) represents the output of function f when input is x

Note: f(x) is read as "f of x" and represents the y-value or output corresponding to input x.

Step-by-step evaluation method:
  1. Identify the function rule (the expression after f(x) = )
  2. Replace every instance of x with the given input value
  3. Simplify the expression using order of operations
  4. Record the result as the function output
Function Rule
f(x) = 3x - 2
f(4)
3(4) - 2 = 10
f(-1)
3(-1) - 2 = -5
Step 1: Evaluate f(4)

f(4) = 3(4) - 2 = 12 - 2 = 10

Step 2: Evaluate f(-1)

f(-1) = 3(-1) - 2 = -3 - 2 = -5

Step 3: Record the results

f(4) = 10 and f(-1) = -5

f(4) = 10, f(-1) = -5
Final answer:

f(4) = 10 and f(-1) = -5

Applied rules:

Substitution: Replace x with the given input value

Order of operations: Perform operations in correct sequence

Simplification: Calculate the final result accurately

Practice Tip: Always perform operations in the correct order: parentheses, exponents, multiplication/division, addition/subtraction

Related Examples:
  • If g(x) = x² + 1, then g(3) = 3² + 1 = 10
  • If h(x) = 2x - 5, then h(0) = 2(0) - 5 = -5
  • If p(x) = -x + 4, then p(-2) = -(-2) + 4 = 6
Quick Tips:
  • Think of f(x) as a machine that takes input x and produces output f(x)
  • Always substitute the input value in place of every occurrence of x
  • Be careful with negative inputs and negative coefficients
Frequently Asked Questions:

Q: What does f(x) mean?
A: f(x) means "the value of function f when x is the input" - it's another way of writing y.

Q: Can I have multiple functions like f(x), g(x), h(x)?
A: Yes, different letters represent different functions: f(x), g(x), h(x), etc.

Solutions: Exercises 4 to 5
4 Input-output tables
Exercise 4
Complete the input-output table for f(x) = x² - 1 where x ∈ {-2, -1, 0, 1, 2}.
Definition:

Input-output table: A table showing the relationship between inputs (x) and outputs (f(x)) of a function

Note: These tables help visualize how a function transforms inputs into outputs and identify patterns in the function behavior.

Step-by-step table completion method:
  1. Set up the table with input (x) and output (f(x)) columns
  2. For each input value, substitute into the function rule
  3. Calculate the corresponding output value
  4. Fill in the table with the ordered pairs (x, f(x))
Function Rule
f(x) = x² - 1
Input Values
{-2, -1, 0, 1, 2}
Completed Table
See below
Step 1: Calculate f(-2)

f(-2) = (-2)² - 1 = 4 - 1 = 3

Step 2: Calculate f(-1)

f(-1) = (-1)² - 1 = 1 - 1 = 0

Step 3: Calculate f(0)

f(0) = (0)² - 1 = 0 - 1 = -1

Step 4: Calculate f(1)

f(1) = (1)² - 1 = 1 - 1 = 0

Step 5: Calculate f(2)

f(2) = (2)² - 1 = 4 - 1 = 3

x (input) f(x) = x² - 1 (output)
-2 3
-1 0
0 -1
1 0
2 3
Final answer:

The completed table shows the ordered pairs: (-2, 3), (-1, 0), (0, -1), (1, 0), (2, 3)

Applied rules:

Systematic substitution: Substitute each input value into the function rule

Order of operations: Apply operations in correct sequence

Organization: Keep inputs and outputs aligned in table format

Practice Tip: Verify your calculations by checking a few values

Related Examples:
  • For g(x) = 2x + 1 and x ∈ {0, 1, 2}: (0, 1), (1, 3), (2, 5)
  • For h(x) = -x² and x ∈ {-1, 0, 1}: (-1, -1), (0, 0), (1, -1)
  • For p(x) = x³ and x ∈ {-1, 0, 1}: (-1, -1), (0, 0), (1, 1)
Quick Tips:
  • Organize your work in a table to avoid missing any input values
  • Be careful with negative numbers raised to even and odd powers
  • Look for patterns in the output values to verify your calculations
Frequently Asked Questions:

Q: What if I have many input values?
A: Work systematically through each value, and consider using a calculator for complex functions.

Q: Can I use the table to graph the function?
A: Yes, the ordered pairs (x, f(x)) are the points you plot on the coordinate plane.

5 Function evaluation
Exercise 5
If f(x) = 2x² - 3x + 1, find f(0), f(1), and f(-2).
Definition:

Function evaluation: Finding the output value of a function for a specific input value

Note: This involves substituting the input value for x in the function rule and simplifying using order of operations.

Step-by-step evaluation method:
  1. Identify the function rule: f(x) = 2x² - 3x + 1
  2. For each input value, substitute into the function rule
  3. Follow order of operations: exponents, multiplication, addition/subtraction
  4. Calculate and record each output value
Function Rule
f(x) = 2x² - 3x + 1
f(0)
1
f(1)
0
f(-2)
15
Step 1: Evaluate f(0)

f(0) = 2(0)² - 3(0) + 1 = 2(0) - 0 + 1 = 0 - 0 + 1 = 1

Step 2: Evaluate f(1)

f(1) = 2(1)² - 3(1) + 1 = 2(1) - 3 + 1 = 2 - 3 + 1 = 0

Step 3: Evaluate f(-2)

f(-2) = 2(-2)² - 3(-2) + 1 = 2(4) + 6 + 1 = 8 + 6 + 1 = 15

f(0) = 1, f(1) = 0, f(-2) = 15
Final answer:

f(0) = 1, f(1) = 0, f(-2) = 15

Applied rules:

Substitution: Replace every x with the given input value

Order of operations: Exponents first, then multiplication, then addition/subtraction

Sign handling: Be careful with negative inputs, especially with exponents

Practice Tip: Work slowly and carefully, especially with multiple operations

Related Examples:
  • If g(x) = x² + 2x, then g(3) = 9 + 6 = 15
  • If h(x) = -x² + 4, then h(-1) = -1 + 4 = 3
  • If p(x) = 3x² - x + 2, then p(0) = 0 - 0 + 2 = 2
Quick Tips:
  • Always substitute the input value in place of every occurrence of x
  • Pay special attention to the sign when raising negative numbers to powers
  • Work step by step to avoid calculation errors
Frequently Asked Questions:

Q: What if the function has multiple terms with x?
A: Substitute the input value for every occurrence of x, then calculate each term separately.

Q: How do I handle negative inputs with exponents?
A: (-a)² = a² (positive), but (-a)³ = -a³ (negative). The result depends on whether the exponent is even or odd.

Solutions: Exercises 6 to 10
6 Mapping diagrams
Exercise 6
Draw a mapping diagram for the function f(x) = x + 2 where the domain is {1, 2, 3, 4}.
Definition:

Mapping diagram: A visual representation showing arrows from inputs to their corresponding outputs

Note: Mapping diagrams help visualize the relationship between domain and range elements and determine if a relation is a function.

Step-by-step mapping diagram method:
  1. List all domain elements on the left side
  2. List all range elements on the right side
  3. Draw arrows from each domain element to its corresponding range element
  4. Verify that each domain element has exactly one arrow
Domain
{1, 2, 3, 4}
Function Rule
f(x) = x + 2
Range
{3, 4, 5, 6}
Step 1: Find all ordered pairs

f(1) = 1 + 2 = 3 → (1, 3)

f(2) = 2 + 2 = 4 → (2, 4)

f(3) = 3 + 2 = 5 → (3, 5)

f(4) = 4 + 2 = 6 → (4, 6)

Step 2: Draw the mapping diagram

Left column: Domain elements {1, 2, 3, 4}

Right column: Range elements {3, 4, 5, 6}

Arrows: 1→3, 2→4, 3→5, 4→6

Step 3: Verify it's a function

Each domain element has exactly one arrow to the range → It is a function

Domain: {1, 2, 3, 4} → Range: {3, 4, 5, 6}
Arrows: 1→3, 2→4, 3→5, 4→6
Final answer:

The mapping diagram shows 1→3, 2→4, 3→5, 4→6, confirming this is a function since each input has exactly one output.

Applied rules:

Domain and range: Clearly separate inputs and outputs

One-to-one mapping: Each domain element maps to exactly one range element

Visual verification: Check that no domain element has multiple arrows

Practice Tip: Mapping diagrams make it easy to spot if a relation is a function

Related Examples:
  • For g(x) = 2x with domain {1, 2, 3}: 1→2, 2→4, 3→6
  • For h(x) = x² with domain {-1, 0, 1}: -1→1, 0→0, 1→1
  • For p(x) = -x + 3 with domain {0, 1, 2}: 0→3, 1→2, 2→1
Quick Tips:
  • Draw domain elements on the left and range elements on the right
  • Make sure each domain element has exactly one arrow for a function
  • Mapping diagrams are excellent for visual learners to understand functions
Frequently Asked Questions:

Q: What if one domain element points to two range elements?
A: Then it's not a function. Each input must have exactly one output.

Q: Can multiple domain elements point to the same range element?
A: Yes, that's perfectly fine in a function. Many inputs can have the same output.

7 Linear functions
Exercise 7
Identify if f(x) = 3x - 2 is a linear function. Explain why and find its slope and y-intercept.
Definition:

Linear function: A function that can be written in the form f(x) = mx + b, where m and b are constants

Note: Linear functions produce straight lines when graphed and have a constant rate of change equal to the slope m.

Step-by-step linear function analysis:
  1. Compare the given function to the standard form f(x) = mx + b
  2. Identify the coefficient of x (slope m) and the constant term (y-intercept b)
  3. Confirm that the function is of degree 1 (highest power of x is 1)
  4. State the slope and y-intercept
Given Function
f(x) = 3x - 2
Standard Form
f(x) = mx + b
Slope & Y-intercept
m = 3, b = -2
Step 1: Compare to standard form

f(x) = 3x - 2 is in the form f(x) = mx + b where m = 3 and b = -2

Step 2: Identify slope and y-intercept

m = 3 (coefficient of x) is the slope

b = -2 (constant term) is the y-intercept

Step 3: Confirm it's linear

The highest power of x is 1, so this is a linear function

f(x) = 3x - 2 is linear with slope = 3 and y-intercept = -2
Final answer:

Yes, f(x) = 3x - 2 is a linear function because it can be written in the form f(x) = mx + b. The slope is 3 and the y-intercept is -2.

Applied rules:

Linear form: Must be expressible as f(x) = mx + b

Constant rate of change: Slope m represents the rate of change

Y-intercept: Point where graph crosses the y-axis (when x = 0)

Practice Tip: The slope tells how much y changes when x increases by 1

Related Examples:
  • g(x) = -2x + 5 is linear with slope = -2, y-intercept = 5
  • h(x) = x is linear with slope = 1, y-intercept = 0
  • p(x) = 4 is linear with slope = 0, y-intercept = 4
Quick Tips:
  • Linear functions have degree 1 (highest power of x is 1)
  • Graph of linear function is always a straight line
  • Slope indicates direction and steepness of the line
Frequently Asked Questions:

Q: What makes a function linear?
A: It must be of the form f(x) = mx + b, with no higher powers of x. The graph is a straight line.

Q: Can a linear function have a negative slope?
A: Yes, if m is negative, the line slopes downward from left to right.

8 Function rules
Exercise 8
Find the function rule for the table: x = {1, 2, 3, 4}, f(x) = {4, 7, 10, 13}.
Definition:

Function rule: The mathematical expression that defines how input values are transformed to output values

Note: Finding function rules involves recognizing patterns in how inputs relate to outputs, often by examining differences between consecutive outputs.

Step-by-step rule finding method:
  1. Examine the input values (x) and output values (f(x))
  2. Calculate the differences between consecutive outputs
  3. If differences are constant, it's a linear function: f(x) = mx + b
  4. Find m (slope) and b (y-intercept) using any two points
Input Values
{1, 2, 3, 4}
Output Values
{4, 7, 10, 13}
Function Rule
f(x) = 3x + 1
Step 1: Examine the pattern

When x increases by 1, f(x) increases by 3 consistently

This suggests a linear function with slope m = 3

Step 2: Find the y-intercept

Using point (1, 4): 4 = 3(1) + b → 4 = 3 + b → b = 1

Step 3: Write the function rule

f(x) = 3x + 1

Step 4: Verify the rule

f(1) = 3(1) + 1 = 4 ✓

f(2) = 3(2) + 1 = 7 ✓

f(3) = 3(3) + 1 = 10 ✓

f(4) = 3(4) + 1 = 13 ✓

f(x) = 3x + 1
Final answer:

The function rule is f(x) = 3x + 1

Applied rules:

Pattern recognition: Look for consistent differences between outputs

Linear functions: Constant first differences indicate linearity

Verification: Test the rule against all given points

Practice Tip: Start with linear functions, then consider quadratic if first differences vary

Related Examples:
  • For x = {1, 2, 3}, f(x) = {2, 4, 6} → f(x) = 2x
  • For x = {0, 1, 2}, f(x) = {5, 8, 11} → f(x) = 3x + 5
  • For x = {1, 2, 3}, f(x) = {0, 1, 4} → f(x) = x² - 1 (quadratic)
Quick Tips:
  • Look for constant differences between outputs to identify linear functions
  • Calculate differences of differences for quadratic functions
  • Always verify your rule with all given points
Frequently Asked Questions:

Q: What if the differences aren't constant?
A: Try quadratic functions (look for constant second differences) or other function types.

Q: How many points do I need to find a function rule?
A: For linear functions, 2 points are sufficient, but more points provide verification.

9 Function graphs
Exercise 9
Does the graph pass the vertical line test? Explain how this determines if a relation is a function.
Definition:

Vertical line test: A method to determine if a graph represents a function

Note: If any vertical line intersects the graph at more than one point, the graph does not represent a function.

Step-by-step vertical line test method:
  1. Imagine or draw vertical lines across the entire graph
  2. Check if any vertical line intersects the graph at more than one point
  3. If no vertical line intersects the graph more than once, it's a function
  4. If any vertical line intersects the graph multiple times, it's not a function
Test Method
Vertical Line Test
Function Criteria
Max 1 intersection per vertical line
Result
Pass/Fail
Step 1: Understand the principle

A function assigns exactly one output to each input

On a graph, x-values are inputs and y-values are outputs

Step 2: Apply the test

Draw or imagine vertical lines at various x-values

Count how many times each vertical line intersects the graph

Step 3: Interpret results

If all vertical lines intersect the graph at most once → Function

If any vertical line intersects the graph more than once → Not a function

Vertical Line Test: At most one intersection per vertical line → Function
Final answer:

Yes, if no vertical line intersects the graph at more than one point, the graph represents a function. This ensures each input (x-value) has exactly one output (y-value).

Applied rules:

Function definition: Each input has exactly one output

Graphical interpretation: X-coordinates (inputs) map to Y-coordinates (outputs)

Vertical line test: Ensures the function property graphically

Practice Tip: Use this test whenever analyzing function graphs

Related Examples:
  • Parabola opening upward: Passes vertical line test → Function
  • Circle: Fails vertical line test → Not a function
  • Straight line (not vertical): Passes vertical line test → Function
Quick Tips:
  • Vertical line test is the definitive way to check if a graph represents a function
  • Remember: Multiple inputs can have the same output (still a function)
  • But one input cannot have multiple outputs (not a function)
Frequently Asked Questions:

Q: Why does the vertical line test work?
A: Because vertical lines represent specific x-values, and the test checks if each x-value corresponds to only one y-value.

Q: Can horizontal lines be used to test functions?
A: Horizontal lines test for one-to-one functions, not basic functionality.

10 Real-world functions
Exercise 10
A car travels at a constant speed of 60 mph. Express the distance traveled as a function of time. Identify domain and range for the first 5 hours.
Definition:

Real-world functions: Functions that model actual situations and phenomena from everyday life

Note: These functions connect mathematical concepts to practical applications and often have meaningful constraints on their domains.

Step-by-step modeling method:
  1. Identify the independent variable (input) and dependent variable (output)
  2. Determine the relationship between variables using relevant formulas
  3. Express the dependent variable as a function of the independent variable
  4. Determine reasonable domain and range based on context
Variables
t = time (hours), d = distance (miles)
Function Rule
d(t) = 60t
Domain & Range
[0, 5] and [0, 300]
Step 1: Identify variables

Independent variable (input): time t (in hours)

Dependent variable (output): distance d (in miles)

Step 2: Apply distance formula

Distance = Speed × Time

d = 60 × t

Step 3: Write function notation

d(t) = 60t or f(t) = 60t

Step 4: Determine domain and range

Domain: Time values from 0 to 5 hours → [0, 5]

Range: Distance values from 0 to 300 miles → [0, 300]

d(t) = 60t, Domain: [0, 5], Range: [0, 300]
Final answer:

The distance function is d(t) = 60t, where t is time in hours. For the first 5 hours, the domain is [0, 5] and the range is [0, 300].

Applied rules:

Variable identification: Determine which quantity depends on another

Formula application: Use relevant physical or mathematical relationships

Contextual constraints: Consider practical limitations on variables

Practice Tip: Always consider the real-world meaning of your function

Related Examples:
  • Cost function: C(n) = 3n for items costing $3 each
  • Area function: A(s) = s² for square with side length s
  • Temperature conversion: F(C) = 9C/5 + 32
Quick Tips:
  • Identify what depends on what - this determines input/output
  • Consider practical constraints when defining domain and range
  • Check if your function makes sense in the real-world context
Frequently Asked Questions:

Q: How do I know which variable is the input?
A: The input is the variable you control or measure first, the output is what results from it.

Q: Can the domain include negative values in real-world problems?
A: Usually not for quantities like time, distance, or count, but sometimes yes depending on context.

Key Laws, Methods, Rules, and Definitions
\(f(x) = mx + b\)
Linear Function
Key definitions:

Function: A relation where each input (domain element) has exactly one output (range element)

Domain: Set of all possible input values (x-values) of a function

Range: Set of all possible output values (y-values) of a function

Function notation: f(x) represents the output when x is the input

Complete methodology:
  1. Analyze the problem: Identify input and output variables
  2. Determine the relationship: Find how inputs relate to outputs
  3. Apply the method: Use appropriate function techniques (evaluation, graphing, etc.)
  4. Verify the result: Check that each input has exactly one output
Tip 1: A function passes the vertical line test - no vertical line intersects the graph more than once.
Tip 2: In ordered pairs, a function cannot have the same first coordinate with different second coordinates.
Tip 3: Function notation f(x) is just another way of writing y, representing the output value.
Tip 4: Always verify your function evaluations by substituting values back into the original equation.
Common errors: Confusing domain and range, incorrect function evaluation, misapplying the vertical line test, forgetting to check for function validity.
Exam preparation: Master function notation, practice identifying functions from different representations, memorize the vertical line test, understand domain and range.
Formulas to memorize:

• Linear function: \(f(x) = mx + b\) where m is slope and b is y-intercept

• Quadratic function: \(f(x) = ax^2 + bx + c\) where a ≠ 0

• Function evaluation: Replace x with the input value and simplify

• Domain and range: Input and output sets respectively

Rules and Methods for Understanding Functions
\(f(x) = mx + b\)
Linear Function
Function Definition
Each input has exactly one output
Function vs Relation
Domain
Set of all input values
X-values of function
Range
Set of all output values
Y-values of function

Key Takeaways

  • Functions assign exactly one output to each input
  • Domain is the set of all possible inputs, range is the set of all possible outputs
  • Vertical line test determines if a graph represents a function
  • Function notation f(x) represents the output when x is the input
  • Linear functions have the form f(x) = mx + b with constant rate of change

Questions & Answers

Question: I'm confused about the difference between a function and a relation. Can you explain?

Answer: Great question! Here's the key difference:

  • A relation is any set of ordered pairs that connects inputs to outputs. There are no restrictions.
  • A function is a special type of relation where each input has exactly one output.

For example:
Relation: {(1, 2), (1, 3), (2, 4)} → This is NOT a function because input 1 has two outputs (2 and 3)
Function: {(1, 2), (2, 3), (3, 4)} → This IS a function because each input has exactly one output

Think of a function as a special machine where each input produces exactly one output, whereas a general relation might produce multiple outputs for the same input.

Question: How do I find the domain and range from a set of ordered pairs like {(2, 5), (3, 7), (4, 9), (5, 11)}?

Answer: Finding domain and range from ordered pairs is straightforward:

  • Domain: Collect all the first coordinates (x-values) from the ordered pairs
  • Range: Collect all the second coordinates (y-values) from the ordered pairs

For the set {(2, 5), (3, 7), (4, 9), (5, 11)}:
Domain = {2, 3, 4, 5} (all first coordinates)
Range = {5, 7, 9, 11} (all second coordinates)

Remember to list each value only once in the sets, even if it appears multiple times in the ordered pairs.

Question: What is the vertical line test and why does it work for determining functions?

Answer: The vertical line test is a visual method to determine if a graph represents a function:

  • Draw or imagine vertical lines across the entire graph
  • If any vertical line intersects the graph at more than one point, it's NOT a function
  • If every vertical line intersects the graph at most once, it IS a function

It works because:
- On a coordinate plane, x-values represent inputs and y-values represent outputs
- A vertical line represents a specific x-value (input)
- If a vertical line intersects the graph at multiple points, that input has multiple outputs
- Since functions must have exactly one output per input, multiple intersections mean it's not a function

This test is extremely useful for quickly identifying functions from graphs!

Function Glossary

Function
A special type of relation where each input (domain element) has exactly one output (range element). Passes the vertical line test.
Domain
The set of all possible input values (x-values) for which a function is defined. Represents all values that can be substituted for x.
Range
The set of all possible output values (y-values) that a function can produce. The values that result from substituting domain values.
Function Notation
A way to represent functions using f(x) (read as "f of x") to denote the output when x is the input. Alternative to y =.
Vertical Line Test
A visual test to determine if a graph represents a function. If any vertical line intersects the graph more than once, it's not a function.

Math Functions Educational Team

Certified Mathematics Educators & Curriculum Specialists

Our team of experienced middle school math teachers and curriculum developers creates research-based, student-friendly function resources. All content is aligned with Common Core State Standards and reviewed by mathematics education experts to ensure accuracy and pedagogical effectiveness.