Description
Q1. Using Matlab symbolic math and the solve() function, find the leftmost point (with x on the
horizontal axis) where these two ellipses intersect:
(π₯ β 1 + π)(
6( + π¦(
3( = 1
π₯ + 2 (
2( + π¦ β 5 (
4( = 1
where π = 0.1. Please make your answer a 1×2 vector with the x and y components of the
answer. Hint 1) Due to the presence of variable π, first create symbolic expressions for the
ellipses and then use them in solve(), rather than putting it in quotes as an argument to solve().
Hint 2) Use solve(ellipse1,ellipse2,βMaxDegreeβ,4) to make MATLAB give you an analytical
solution Hint 3) use eval() to turn your symbolic answers into floating-point answers
ENEL101 Assignment 6 Page 2
Q2. Write a function that finds the equation of the tangent line to the upper part of the ellipse (x
on horizontal axis, y on vertical axis)
π₯ + 2 (
2( + π¦ β 5 (
4( = 1
at π₯4 = β0.1. The answer will be a symbolic math expression of the form
ππ₯ + π
where π and π have numerical values and π₯ is a symbolic variable. Hint: first solve for π¦ using
solve(), select the π¦ that is the top part of the ellipse, then use diff() to take the derivative with
respect to π₯, then get the slope π by substituting in π₯4 using subs(), and then calculate the yintercept π. As the very last step you can use vpa() to turn all numerical values in the symbolic
answer (i.e. π and π) into floating point numbers in order to compare your answer to the solution
set.
Q3. Evaluate the following indefinite integral
πΌ = π₯8
π
β π₯(
ππ₯
for R=1. Hint: use the function subs() to substitute a numerical value for R.
Q4. The current π in a series RLC circuit can be described the differential equation
πΏ
π(π
π π‘( + π
ππ
ππ‘ +
1
πΆ
π = 0
Using dsolve(), find the solution π π‘ given initial conditions π 0 = 0, ?@
?A (0) = 8, and parameters πΏ =
3π», π
= 10Ξ©, πΆ = 80ππΉ. Use variable βcurrentβ in the code instead of βiβ to avoid conflicts with βiβ as a
numerical counter.

