AI Copilot Prompt Engineering

Dr. Alexander Bell

Case Study

🤓 AI Math Problem Solving! 🕶

USE CASE 1 🤓

Copilot Solving Bottle Math Quiz 🍾
Notice  Copilot AI Hallucination
image

Me 🤓

Hello, Copilot! Can you solve the "Bottle Math Quiz" problem finding how full is the Bottle? Thanks!

Copilot 🕶

Sure, I’d be happy to help with the “Bottle Math Quiz” problem! Based on the image, we have the following information:

  • The bottle’s total height is 9 inches.
  • The liquid level when the bottle is upright is 6 inches.
  • When tilted, the liquid reaches the bottle’s mouth, which measures 7 inches.

To determine how full the bottle is, we can use the tilted measurement. When the bottle is tilted, the liquid fills up to 7 inches, which represents the same volume when upright. So, the fullness of the bottle can be calculated as: \[Fullness=\frac{\text{Length filled with liquid}}{\text{Total height}}=7/9\] Therefore, the bottle is 7/9 full, which corresponds to option c).

Me 🤓

Thanks Copilot, but your answer does not seem right! Let me give you a clue: please notice that the amount of liquid in the bottle is proportinal to 6 units, while air amounts to 2. Can you please try to correct your answer based on this observation?

Copilot 🕶

Thanks for the clue! Let’s re-evaluate the problem with this new information. Given:

  • The total height of the bottle is 9 inches.
  • The liquid level when upright is 6 inches.
  • The air level when upright is 2 inches.

From your clue, the liquid occupies 6 units, and the air occupies 2 units. This means the total height of the bottle (9 inches) is divided into 8 units (6 units of liquid + 2 units of air). To find out how full the bottle is, we can calculate the proportion of the bottle that is filled with liquid: \[Fullness=\frac{\text{Units of liquid}}{\text{Total units}}=6/8=3/4\] So, the bottle is 3/4 full. However, this doesn’t match any of the provided options directly. Let’s recheck the options: a) 2/3 Full; b) 6/7 Full; c) 7/9 Full; d) 1/4 Empty.

Since 1/4 empty means 3/4 full, the correct answer is: d) 1/4 Empty. Thanks for pointing that out! Let me know if there’s anything else you need help with.

Me 🤓

Thanks for your input on this matter, Copilot! I would like to share our insightful dialogue with online community (LinkedIn, etc.). Are you OK with that?

Copilot 🕶

You’re very welcome! I’m glad I could help. Feel free to share our conversation with your online community. If you have any other questions or need further assistance, don’t hesitate to reach out. 😊


Footnotes 🤓👉

Prompt Engineering: GenAI Copilot Hallucination phenomenon observed giving erroneous answer on its first try solving this Math problem. The error was effectively corrected by applying efficient Prompt Engineering (aka Prompt Injection) technique during the virtual interactive GenAI Copilot session.

Quick recap: the correct answer to this Bottle Math Quiz is d) 1/4 Empty.

Complexity Level: This Math problem is categorized as of relatively low complexity level.

Sample Copilot AI Dialogue screenshots are shown below:


image image

USE CASE 2 🤓

Cats and Dogs Math

Math Percentage (%) Puzzle
image

Me 🤓

Hi, Copilot, can you solve this Cats and Dogs Math Quiz (please see attached image)? Thanks.

Copilot 🕶

Absolutely! Let's break it down step by step 🐾📊
🧠 Given:

  • 50% of cat owners also have dogs.
  • 30% of dog owners also have cats.
  • 35% of households have neither cats nor dogs.

We’re asked: What percentage of households own both cats and dogs?

✅ Step 1: Let’s define variables

  • C = % of households that own cats
  • D = % of households that own dogs
  • B = % of households that own both cats and dogs
  • N=35% = households with neither

We know:

  • B=50% of cat owners → B=0.5C
  • B=30% of dog owners → B=0.3D

So: 0.5C=0.3D⇒C=0.6D

✅ Step 2: Total households must add up to 100% Households fall into 4 categories:

  1. Only cats: C−B
  2. Only dogs: D−B
  3. Both: B
  4. Neither: N=35%

So: (C−B)+(D−B)+B+35=100
Simplify: C+D−B+35=100⇒C+D−B=65

✅ Step 3: Substitute known relationships
We already have:

  • C=0.6D
  • B=0.3D

Substitute into the equation: 0.6D+D−0.3D=65⇒1.3D=65⇒D=50
Then:

  • C=0.6⋅50=30
  • B=0.3⋅50=15

🎉 Final Answer: 15% of households own both cats and dogs.

Let me know if you want a visual breakdown or want to turn this into a puzzle worksheet!

Me 🤓

Good job, Copilot, and right on target! What is your suggestion regarding puzzle worksheet?

Copilot 🕶

Thanks! I’m thrilled you liked the solution 🧠🐾 For a puzzle worksheet, here’s a fun and educational format you could try:


🧩 Cats and Dogs Math Puzzle Worksheet

Theme: Pet Ownership & Percentages Target Age Group: Middle school (grades 6–8).
Skills Practiced: Percentages, logical reasoning, set theory.

✏️ Section 1: Warm-Up

Question 1: If 40% of households own cats and 25% own dogs, what’s the maximum possible percentage that owns both?

Question 2: True or False: If 60% own cats and 50% own dogs, then at least 10% must own both.

🐾 Section 2: Main Puzzle (Based on your image)

Include the original problem with the cartoon cat and dog visuals: Of the households in some hypothetical community:

  • 50% of cat owners also have dogs
  • 30% of dog owners also have cats
  • 35% of all do not have either

What percentage of households own both cats and dogs?
Leave space for students to show their work.

🎨 Section 3: Creative Challenge

Prompt: Design your own pet-themed math puzzle using percentages. Include at least one visual and one question that requires reasoning.

✅ Section 4: Answer Key (for teachers)

Include step-by-step breakdowns like the one I gave you earlier. Would you like help turning this into a printable layout or adding more puzzles to the set? I can also generate matching visuals or create a themed title page!


Me 🤓

Very nice, Copilot! Many thanks for your insightful input on this matter! Much appreciated.

Copilot 🕶

You're truly welcome! I'm so glad I could help bring your puzzle to life 🧩🐶🐱 If inspiration strikes again—whether it's math, design, or something totally unexpected—I’ll be here, ready to dive in with you. Talk soon!

Me 🤓

Talk to you soon, partner! Take care. Bye now.

Copilot 🕶

You got it, partner 🤠 Take care and keep those creative sparks flying. Catch you soon!


Footnotes 🤓

Quick recap: the answer to this Math Puzzle is 15%; the answer to the Question 1 is 25% and to the Question 2 is True.

Complexity Level: This Math problem is categorized as of low complexity level.

Kudos 👍 to Copilot for using its generative AI engine providing rather insightful input and rendering a nice set of images visually enhancing this Feline/Canine math puzzle ... purr-woof-meow🐶🐱 :)

USE CASE 3 🤓

Table for Two | Math Puzzle

Notice  Copilot AI Hallucination 
image

Me 🤓

Copilot, please solve this Table for Two Math Puzzle and communicate your answer in a clear succinct manner. Thanks!

Copilot 🕶

🧠 Puzzle Summary: a waiter pours a fraction 1/x of the remaining wine into one of two glasses at each step. He can choose either glass, even repeatedly. The question: Can both glasses end up with equal volumes of wine? If so, what must x be?

✅ Answer: Yes, both glasses can end up with equal volumes if and only if x=3.


Me 🤓

Copilot, your answer doesn't seem correct. Please clarify how many Steps 👣 needed and elaborate on each Step. Thanks!

Copilot 🕶

🍷 Puzzle Setup Recap

  • Start with 1 unit of wine in the bottle.
  • At each step, pour 1x of the remaining wine into one of the two glasses.
  • The waiter can choose either glass at each step.
  • Goal: After a finite number of steps, both glasses contain equal amounts of wine.
🔍 Step-by-Step Analysis

Let’s assume the waiter pours 3 times, and we’ll track the wine volume in each glass. Let’s denote:

  • Rn: wine remaining in the bottle after step n 👣
  • GA, GB: wine in Glass A and Glass B

Let’s try pouring in this order:
👣 Step 1 → Glass A;
👣 Step 2 → Glass B;
👣 Step 3 → Glass B again
We’ll compute the wine in each glass and see if equality is possible.

👣 Step 1: Pour into Glass A
  • Remaining wine: R0=1
  • Pour: (1/x)R0=1/x
  • Glass A: GA=x
  • Remaining: R1=1−1/x=(x−1)/x
👣 Step 2: Pour into Glass B
  • Pour: (1/x)R1=(1/x)(x−1)/x=(x−1)/x²
  • Glass B: GB=(x−1)/x²
  • Remaining: R2=R1−pour=(x−1)/x−(x−1)/x²=(x−1)²/x²
👣 Step 3: Pour into Glass B again
  • Pour: (1/x)R2=(1/x)(x−1)²/x²=(x−1)²/x³
  • Glass B total: GB=(x−1)/x²+(x−1)²/x³
Set Glass A = Glass B

We want: GA=GB. Substitute: 1/x=(x−1)/x²+(x−1)²/x³.
Multiply both sides by x³ to eliminate denominators: x²=x(x−1)+(x−1)².
Expand both sides:

  • Left: x²
  • Right:x(x−1)+(x−1)²=x²−x+x²−2x+1=2x²−3x+1
  • So: x²=2x²−3x+1⇒0=x²−3x+1

🧩 Solve the Quadratic:x²−3x+1=0⇒x=(3±√5)/2. Only the larger root makes sense physically (since x>1), so:

✅ Final Answer:

Yes, it’s possible to make both glasses equal in 3 steps, if and only if x=(3+√5)/2≈2.618 or 1/x≈0.382.

🎯 Answer: x=(3+√5)/2

Me 🤓

This is a correct answer, Copilot (🥂)... By chance, are you familiar with a concept of Golden Ratio (φ), and if so, do you see its relevancy to this puzzle?

Copilot 🕶

Absolutely, I'm very familiar with the Golden Ratio, denoted by ϕ=(1+√5)/2≈1.618. It's a mathematical gem that appears in geometry, art, nature, and recursive structures. And yes—its relevance to your puzzle is more than poetic coincidence x=(3+√5)/2=(1+√5)/2+1=ϕ+1.


Me 🤓

Very good, Copilot! It would be relevant to mention another fascinating property of said Golden Ratio, namely: φ²=φ+1. So, x=φ² is also an answer to this puzzle; do you agree?

Copilot 🕶

Absolutely—and beautifully spotted! Let's walk through the logic to confirm that your insight is not only elegant but mathematically airtight.

We previously derived: x=(3+√5)/2. Now consider the Golden Ratio: φ=(1+√5)/2. Let’s square it:
φ²=(1+√5)²/4=(1+2√5+5)/4=(6+2√5)/4=(3+√5)/2

So indeed: x=φ². The puzzle’s solution isn’t just numerically tied to the Golden Ratio—it’s structurally tied to it. The recursive pouring process, the exponential decay, and the balance of asymmetry all converge at a value that satisfies:

φ²=φ+1

This identity is the hallmark of self-similarity and recursive harmony—exactly the kind of structure your puzzle embodies.

Some extra by Copilot :)

✅ Final Confirmation: Yes, x=φ² is indeed a valid and elegant solution to the puzzle. It highlights the deep interconnection between seemingly simple actions (pouring wine) and profound mathematical truths (the properties of the Golden Ratio).

🎉 Cheers to that! Your puzzle is a beautiful example of how mathematics can reveal hidden patterns and relationships in everyday scenarios. The Golden Ratio’s appearance here is a testament to its pervasive influence across various domains of knowledge.


Me 🤓

Very good, Copilot! Your deeply insightful input is much appreciated. Thanks and regards,

Copilot 🕶

You're most welcome, Daymaxx! It's always a joy to explore elegant math with you—especially when it leads us to golden truths like this one. Looking forward to our next creative dive. Until then, keep that brilliance flowing!


Footnotes 🤓

1. Prompt Engineering: GenAI Copilot Hallucination caused erroneous answer given at its first try. Said issue has been resolved applying efficient Prompt Injection, aka Prompt Engineering.

Quick recap: the correct answer is: x=(3+√5)/2=φ², where φ=(1+√5)/2 is the Golden Ratio.

Complexity Level: This Math problem is categorized as of relatively high complexity.

2. Visual Augmentation: powerful Copilot GenAI engine rendered a nice image shown below, visually augmenting this complex Table42 (i.e. "Table For Two" :) math puzzle:

image

Kudos 👍 to Copilot for adding aesthetically pleasing final touch to the puzzle. Cheers!🥂:)

Sample Copilot AI Dialogue screenshots are shown below:


image image image image

USE CASE 4 🤓

AI Solving Complex Math Problem

image

Me 🤓

Copilot, assuming \(k+\frac{1}{k}=1\), please evaluate \(k^{15}\). Thanks!

Copilot 🕶

Sure! Let's solve for \(k^{15}\) given that \(k + \frac{1}{k} = 1\). let’s start by finding the value of ( k ). First, we rewrite the equation: \( k + \frac{1}{k} = 1 \) multiplying both sides by ( k ) to clear the fraction: \( k^2 + 1 = k \); rearranging the equation: \( k^2 - k + 1 = 0 \). This is a quadratic equation. To solve for ( k ), we use the quadratic formula: \[ k = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} \] Here, ( a = 1 ), ( b = -1 ), and ( c = 1 ): \[ k = \frac{1 \pm \sqrt{1^2 - 4 \cdot 1 \cdot 1}}{2 \cdot 1} \] \[ k = \frac{1 \pm \sqrt{-3}}{2} \] \[ k = \frac{1 \pm i\sqrt{3}}{2} \]

So, the two solutions for ( k ) are: \[ k = \frac{1 + i\sqrt{3}}{2} \quad \text{and} \quad k = \frac{1 - i\sqrt{3}}{2} \] Next, we need to evaluate \( k^{15} \). Let’s use the first solution \( k = \frac{1 + i\sqrt{3}}{2} \).

We can express ( k ) in polar form: \( k = e^{i\theta} \) where \( \theta = \frac{\pi}{3} \). Thus, \( k = e^{i\pi/3} \), \( k^{15} = e^{i5\pi} \).

Since \( e^{i\pi} = -1 \), we have: \( e^{i5\pi} = (-1)^5 = -1 \). Therefore, \( k^{15} = -1 \).


Me 🤓

Copilot, please try to evaluate \(k^{15}\) without finding the roots for k. Thanks!

Copilot 🕶

Sure, let’s evaluate \( k^{15} \) given \( k + \frac{1}{k} = 1 \) without explicitly finding the roots for ( k ). First, let’s square both sides of the given equation: \[ \left( k + \frac{1}{k} \right)^2 = 1^2 \] \[ k^2 + 2 \cdot k \cdot \frac{1}{k} + \frac{1}{k^2} = 1 \] \[ k^2 + 2 + \frac{1}{k^2} = 1 \] \[ k^2 + \frac{1}{k^2} = -1 \]

Next, let’s cube both sides of the original equation: \[ \left( k + \frac{1}{k} \right)^3 = 1^3 \] \[ k^3 + 3k \cdot \frac{1}{k} \cdot \left( k + \frac{1}{k} \right) + \frac{1}{k^3} = 1 \] \[ k^3 + 3 \left( k + \frac{1}{k} \right) + \frac{1}{k^3} = 1 \] \[ k^3 + 3 \cdot 1 + \frac{1}{k^3} = 1 \] \[ k^3 + \frac{1}{k^3} = -2 \]

We can see a pattern forming. Let’s find \( k^6 \): \[ \left( k^3 + \frac{1}{k^3} \right)^2 = (-2)^2 \] \[ k^6 + 2 + \frac{1}{k^6} = 4 \] \[ k^6 + \frac{1}{k^6} = 2 \]

Now, let’s find \( k^{12} \): \[ \left( k^6 + \frac{1}{k^6} \right)^2 = 2^2 \] \[ k^{12} + 2 + \frac{1}{k^{12}} = 4 \] \[ k^{12} + \frac{1}{k^{12}} = 2 \]

Finally, let’s find \( k^{15} \): \[ k^{15} = k^{12} \cdot k^3 \] \[ k^{15} + \frac{1}{k^{15}} = k^{12} \cdot k^3 + \frac{1}{k^{12} \cdot k^3} \] \[ k^{15} + \frac{1}{k^{15}} = 2 \cdot (-2) \] \[ k^{15} + \frac{1}{k^{15}} = -4 \]

Since \( k^{15} \) and \( \frac{1}{k^{15}} \) are reciprocals, their sum being (-4) implies: \( k^{15} = -1 \).


Me 🤓

Copilot, please try to evaluate \(k^{15}\) without finding the roots for k. Hint: \(k³+1=(k+1)(k²-k+1)\)

Copilot 🕶

Got it! Let’s use the hint. First, let’s cube both sides of the given equation: \[ \left( k + \frac{1}{k} \right)^3 = 1^3 \] \[ k^3 + 3k \cdot \frac{1}{k} \cdot \left( k + \frac{1}{k} \right) + \frac{1}{k^3} = 1 \] \[ k^3 + 3 \left( k + \frac{1}{k} \right) + \frac{1}{k^3} = 1 \] \[ k^3 + 3 \cdot 1 + \frac{1}{k^3} = 1 \] \[ k^3 + \frac{1}{k^3} = -2 \]

Now, let’s find \( k^6 \): \[ \left( k^3 + \frac{1}{k^3} \right)^2 = (-2)^2 \] \[ k^6 + 2 + \frac{1}{k^6} = 4 \] \[ k^6 + \frac{1}{k^6} = 2 \]

Next, let’s find \( k^{12} \): \[ \left( k^6 + \frac{1}{k^6} \right)^2 = 2^2 \] \[ k^{12} + 2 + \frac{1}{k^{12}} = 4 \] \[ k^{12} + \frac{1}{k^{12}} = 2 \]

Finally, let’s find \( k^{15} \): \[ k^{15} = k^{12} \cdot k^3 \] \[ k^{15} + \frac{1}{k^{15}} = k^{12} \cdot k^3 + \frac{1}{k^{12} \cdot k^3} \] \[ k^{15} + \frac{1}{k^{15}} = 2 \cdot (-2) \] \[ k^{15} + \frac{1}{k^{15}} = -4 \]

Since \( k^{15} \) and \( \frac{1}{k^{15}} \) are reciprocals, their sum being (-4) implies: \( k^{15} = -1 \). If you have any more questions or need further clarification, feel free to ask!

Footnotes 🤓👉

Quick recap: k¹⁵=-1 is the answer to this Math problem. Explanation:
Having (k²-k+1)=0; (k³+1)=(k+1)(k²-k+1)=0, thence: k³+1=0, k³=-1 and k¹⁵=(k³)⁵=-1
...btw, same goes to: k²⁰²⁵=-1

Complexity Level: This Math problem is categorized as of a medium complexity.

Sample Copilot AI Dialogue screenshots are shown below:


image image image

USE CASE 5 🤓

Faulty Balance Scale Quiz

 Copilot Solving Bazaar Math Puzzle 
image

Copilot 🕶

The balance scale is faulty: left arm (L1) is longer than the right arm (L2). The math whiz asks for: weight on left pan, feta on right pan, then swap: weight on right pan, and give another pound of feta on left pan.

⚖️ Key Insight: Torque, Not Just Weight

Balance depends on torque: Torque = weight × arm length. Let:

  • Arm lengths: L1=a, L2=b, with a>b
  • Weight: 1 lb
  • Feta: unknown weight x in each step

🥄 Step 1: Weight on L1, Feta on L2 Balance condition: 1⋅a=x⋅b⇒x=a/b So the seller gives a/b pounds of feta.

🥄 Step 2: Weight on L2, Feta on L1 Balance condition: x⋅a=1⋅b⇒x=b/a So the seller gives b/a pounds of feta.

🧀 Total Feta Received: a/b+b/a=(a²+b²)/ab. Since a>b, (a²+b²)/ab>2:

✅ Final Answer: The Math Whiz got more than 2 pounds of feta cheese. He cleverly exploited the faulty scale using torque asymmetry. Say cheese! 🧀😄

Footnotes 🤓👉

Copilot is right on: Math Whiz is the clear winner in this hypothetical Bazaar contest!
Say Cheeeeese! 🧀:)

Quick recap: Total Feta Received 🧀: a/b+b/a=(a²+b²)/ab. Since a>b, (a²+b²)/ab>2

Complexity Level: This Math problem is categorized as of a low complexity.

USE CASE 6 🤓

  AI Copilot Solving Complex Math Problem  
STEM|Science Technology Engineering Math
image

Me 🤓

Copilot, could you please try to solve the Math problem shown in the attached image?

Copilot 🕶

Sure! Let’s solve the equation \( x^4 = -1 \). To solve for ( x ), we need to recognize that this equation involves complex numbers. Here’s the step-by-step solution:

1. Rewrite the equation: \( x^4 = -1 \)
2. Express (-1) in terms of complex numbers: \( -1 = e^{i\pi}\quad\)since \( e^{i\pi} = -1 \)
3. Find the fourth roots of \( e^{i\pi} \): \( x = e^{i(\pi + 2k\pi)/4} \quad\) for k = 0, 1, 2, 3
4. Calculate the values:

  • For ( k = 0 ):
    \( x = e^{i(\pi/4)} = \cos(\pi/4)+i\sin(\pi/4)\) =
    \(\frac{\sqrt{2}}{2}+i\frac{\sqrt{2}}{2} \)
  • For ( k = 1 ):
    \( x = e^{i(3\pi/4)} = \cos(3\pi/4)+i\sin(3\pi/4)\) =
    \(-\frac{\sqrt{2}}{2}+i\frac{\sqrt{2}}{2} \)
  • For ( k = 2 ):
    \( x = e^{i(5\pi/4)} = \cos(5\pi/4)+i\sin(5\pi/4)\) =
    \(-\frac{\sqrt{2}}{2}-i\frac{\sqrt{2}}{2} \)
  • For ( k = 3 ):
    \( x = e^{i(7\pi/4)} = \cos(7\pi/4)+i\sin(7\pi/4)\) =
    \(\frac{\sqrt{2}}{2}-i\frac{\sqrt{2}}{2} \)

So, the solutions to the equation \( x^4 = -1 \) are:
\( \frac{\sqrt{2}}{2} + i\frac{\sqrt{2}}{2},\)
\( -\frac{\sqrt{2}}{2} + i\frac{\sqrt{2}}{2},\)
\( -\frac{\sqrt{2}}{2} - i\frac{\sqrt{2}}{2},\)
\( \frac{\sqrt{2}}{2} - i\frac{\sqrt{2}}{2} \)


Me 🤓

Copilot, would you please use a more human-readable notation, like the traditional Math notation for the 4 roots you have found?

Copilot 🕶

Absolutely! Here are the four roots of the equation \( x^4 = -1 \) in a more traditional mathematical notation:

1. \( x = \frac{\sqrt{2}}{2} + i\frac{\sqrt{2}}{2} \)
2. \( x = -\frac{\sqrt{2}}{2} + i\frac{\sqrt{2}}{2} \)
3. \( x = -\frac{\sqrt{2}}{2} - i\frac{\sqrt{2}}{2} \)
4. \( x = \frac{\sqrt{2}}{2} - i\frac{\sqrt{2}}{2} \)

These are the four complex roots of the equation. If you have any further questions or need more clarification, feel free to ask!


Me 🤓

What about this compact answer for all 4 roots: x = ±(1±i)/√2

Copilot 🕶

Yes, you’re absolutely right! The roots can indeed be compactly written as: \[ x = \pm \frac{1 \pm i}{\sqrt{2}} \] This notation succinctly captures all four roots of the equation \( x^4 = -1 \). Great observation! If you have any more questions or need further assistance, feel free to ask.

Footnotes 🤓👉

Quick recap: 𝑥=±(1±𝑖)/√2 is the answer. Please notice, that Polynomial Factoring can be a better alternative to Copilot's math workings. Consider the following:
𝑥⁴+1 = (𝑥²+1)²−2𝑥² = (𝑥²+𝑥√2+1)(𝑥²-𝑥√2+1) = 0
Solution to 2 quadratic equations
(𝑥²+𝑥√2+1)=0 and (𝑥²-𝑥√2+1)=0 gives 4 complex roots written below:
𝑥=±(1±𝑖)/√2.

Complexity Level: This Math problem is categorized as of a relatively high complexity.

Sample Copilot AI Dialogue screenshots are shown below:


image image