# Category Archives: Engineering

## This week in screencasting: The polar express

It’s been a little quiet on the screencasting front lately, but in the next couple of weeks my colleague teaching Calculus III will be hitting material for which I volunteered to provide some content: namely, using MATLAB to visualize some of the surfaces and solids used in multiple integration. Yesterday, I finished two of these. The first on is on polar coordinates and polar function plotting in MATLAB:

And the second one is on cylindrical coordinates and plotting two-variable functions in cylindrical coordinates:

MATLAB doesn’t provide a built-in function for plotting in cylindrical coordinates. Instead — and this is either ingenious or annoying depending on how you look at it — to plot something in cylindrical coordinates, you generate all the points you need in cylindrical coordinates and then use the pol2cart function to convert them en masse to cartesian coordinates, then plot the whole thing as usual in cartesian coordinates.

I think this is smart, since by avoiding the use of a specialized function for cylindrical plots and sticking instead to a single command for 3D plotting, you learn one command for all 3D plots and you get to use all the extras available, such as adding a contour plot onto the cylindrical plot. Overloading the pol2cart function so that it can accept and produce the third coordinate makes this all work. Overall I like how MATLAB doesn’t try to make a function for everything but rather creates a well-featured set of relatively simple tools that will do lots of things.

But I can see where some people — especially MATLAB novices — would find all this annoying, since the entire process takes several steps. There’s a workflow diagram for doing this in the screencast, but a better way is to make an M-file that holds all the steps. Here’s the one I flashed briefly at the end of the screencast:

```
% Script for plotting a cylindrical function.
% Written by Robert Talbert, Ph.D., 10/20/2010

% Theta: Change t1 and t2 to set the starting and ending values for theta.
t1 = 0;
t2 = pi/2;
theta = linspace(t1, t2);

% r: : Change r1 and r2 to set the starting and ending values for theta.
r1 = -5;
r2 = 5;
r = linspace(r1, r2);

% Create meshgrid for inputs:
[theta, r] = meshgrid(theta, r);

% Apply the function to create a matrix of z-values. Change the function to
% match what you want to plot.

z = r*cos(theta);

% Convert to cartesian and plot using mesh:

[x,y,z] = pol2cart(theta, r, z);
mesh(x,y,z)
```

It would be simple enough to modify this so that it’s a function rather than a script, accepting the arrays theta and r and a function handle for z, and then producing the 3D plot. Or, one could even make an “ez” version where the user just enters a string containing the function s/he wants. If somebody wants to try that out, and you want to share your results, just put the source code in the comments.

The third one in this series will be up later this weekend. It’s on spherical coordinates and it’s pretty much the same process, only using sph2cart instead of pol2cart. There might be a fourth one as well, dealing with some special cases like constant cylindrical/spherical functions (you can’t just say “rho = 5”, because rho has to be a matrix) and how to plot not just the surfaces but the volumes underneath them.

Comments Off on This week in screencasting: The polar express

Filed under Calculus, Engineering, Math, MATLAB, Teaching, Technology

## Why change how we teach?

Sometimes when I read or hear discussions of innovation or change in teaching mathematics or other STEM disciplines, whether it’s me or somebody else doing the discussing, inevitably there’s the following response:

What do we need all that change for? After all, calculus [or whatever] hasn’t changed that much in 400 years, has it?

I’m not a historian of mathematics, so I can’t say how much calculus has or hasn’t changed since the times of Newton and Leibniz or even Euler. But I can say that the context in which calculus is situated has changed — utterly. And it’s those changes that surround calculus that are forcing the teaching of calculus (any many other STEM subjects) to change –radically.

What are those changes?

First, the practical problems that need to be solved and the methods used to solve them have changed. Not too long ago, practical problems could be neatly compartmentalized and solved using a very small palette of methods. I know some things about those problems from my Dad, who was an electrical engineer for 40 years and was with NASA during the Gemini and Apollo projects. The kinds of problems he’d get were: Design a circuit board for use in the navigational system of the space capsule. While this was a difficult problem that needed trained specialists, it was unambiguous and could be solved with more or less a subset of the average undergraduate electrical engineering curriculum content, plus human ingenuity. And for the most part, the math was done by hand and on slide rules (with a smattering of newfangled mechanical calculators) and the design was done with stuff from a lab — in other words, standard methods and tools for engineers.

So it is with calculus or almost any STEM discipline these days. Students today will not go on to work with simple, cleanly-defined, well-posed problems that fit neatly into a box. Nor will they be always doing things by hand; they will be using technology to solve problems, and this requires both a different way of representing the models (for calculus, think “functions”) they use and the flexibility to anticipate the problems that the methods themselves create. This is not what Newton or Leibniz had in mind, but it is the way things are. Our teaching must therefore change to give students a fighting chance at solving these problems, by emphasizing multiple representations of functions, multiple methods for solution of problems, and attention to the problems created by the methods. And of course, we also must focus on teaching problem-solving itself and on the ability to acquire new skills and information independently, because if so much has changed between 1965 and 1995, we can expect about the same amount of change in progressively shorter time spans in the future.

Also, the people who solve these problems, and what we know about how those people learn, have changed. It seems undeniable that college students are different than they were even 20 years ago, much less 200 years ago. Although they may not be natively fluent in the use of technology, they are certainly steeped in technology, and technology is a primary means for how they interact with the rest of the world. Students in college today bring a different set of values, a different cultural context, and a different outlook to their lives and how they learn. This executive summary of research done by the Pew Research Foundation goes into detail on the characteristics of the Millenial generation, and the full report (PDF, 1.3 Mb) — in addition to our own experiences — highlights the differences in this generation versus previous ones. These folks are not the same people we taught in 1995; we therefore cannot expect to teach them in the same way and expect equal or better results.

We also know a lot more now about how people in general, and Millenials in particular, learn things than we did just a few years ago. We are gradually, but also rapidly, realizing through rigorous education research that there are other methods of teaching out there besides lecture and that these methods work better than lecture does in many situations. Instructors are honing the research findings into usable tools through innovative classroom practices that yield statistically verifiable improvements over more traditional ways of teaching. Even traditional modes of teaching are finding willing and helpful partners in various technological tools that lend themselves well to classroom use and student learning. And that technology is improving in cost, accessibility, and performance at an exponential pace, to the point where it just doesn’t make sense not to use it or think about ways teaching can be improved through its use.

Finally, and perhaps at the root of the first two, the culture in which these problems, methods, people, and even the mathematics itself is situated has changed. Technology drives much of this culture. Millenials are highly connected to each other and the world around them and have little patience — for better or worse — for the usual linear, abstracted, and (let’s face it) slow ways in which calculus and other STEM subjects are usually presented. The countercultural force that tends to discourage kids from getting into STEM disciplines early on is probably stronger today than it has ever been, and it seems foolish to try to fight that force with the way STEM disciplines have been presented to students in the past.

Millenials are interested to a (perhaps) surprising degree in making the world a better place, which means they are a lot more interested in solving problems and helping people than they are with epsilon-delta definitions and deriving integrals from summation rules. The globalized economy and highly-connected world in which we all live has made almost every problem worth solving multidisciplinary. There is a much higher premium now placed on getting a list of viable solutions to a problem within a brief time span, as opposed to a single, perfectly right answer within an unlimited time span (or in the time span of a timed exam).

Even mathematics itself has a different sort of culture now than it did even just ten years ago. We are seeing the emergence of massively collaborative mathematical research via social media, the rise of computational proofs from controversy to standard practice, and computational science taking a central role among the important scientific questions of our time. Calculus may not have changed much but its role in the larger mathematical enterprise has evolved, just in the last 10-15 years.

In short, everything that lends itself to the creation of meaning in the world today — that is, today’s culture — has changed from what it used to be. Even the things that remain essentially unchanged from their previous states, like calculus, must fit into a context that has changed.

All this change presents challenges and opportunities for STEM educators. It’s challenging to go back to calculus, and other STEM disciplines, and think about things like: What are the essential elements of this subject that really need to be taught, as opposed to just the topics we really like? What new facets or topics need to be factored in? What’s the best way to factor those in, so that students are really prepared to function in the world past college? And, maybe most importantly, How do we know our students are really prepared? There’s a temptation to burrow back in to what worked for us, when faced with such daunting challenges, but that really doesn’t help students much — nor does it tap into the possibilities of making our subjects, and our students, richer.

## Just so you’d know

…I’m all done with the ASEE and headed off on vacation in nearby Holiday World. Whatever it is I’ve left out about ASEE, I hope to fill in once I’m back home. If there’s something specific you’d like to know about what I’ve seen here, let me know in the comments.

Filed under Blog announcements, Engineering

## Funniest remark of the ASEE so far

…goes to Robert Grondin of Arizona State University Polytechnic Campus, who made this remark in his talk in the Liberal Education for 21st Century Engineering session:

We do projects at the beginning of the course, because projects are fun, and we want to fool students into thinking that engineering is fun.

This was apropos of how engineering curricula usually incorporate projects — either at the beginning of the curricula via a freshman design course, or at the end via a senior design course, or both. But you can pretty much substitute any discipline and get the way we often think about how projects fit into the curriculum, right?

Prof. Grondin, on the other hand, has designed a generic Engineering degree — not Mechanical Engineering, Electrical Engineering, or whatnot… just Engineering — for ASU Polytechnic that requires only 20 hours of engineering coursework beyond the freshman core and in which there’s a design project course in every semester. That’s what you call taking project-based learning seriously, and I’d daresay that these general Engineering students are better prepared for real engineering work than many students with specialized engineering degrees.

Comments Off on Funniest remark of the ASEE so far

Filed under Education, Engineering, Engineering education, Higher ed

## What (some) engineers think about liberal education

I’m currently at the American Society for Engineering Education conference and symposium in Louisville. There is a lot to process as I attend sessions on student learning, technological literacy, liberal education, and so on, all from the perspective of engineers and engineering educators. There is an entire division (a sort of special interest group) within the ASEE for Liberal Education, and I attended one of their paper sessions this afternoon.

Engineers have a quite different perspective on liberal education than those in “liberal arts” disciplines (by which we usually mean social sciences, arts, humanities) and those of us math/science people working in liberal arts colleges, but surprisingly — at least for the engineers I hung out with in the session — the two conceptions largely agree. We all conceive of liberal education as education that integrates multiple perspectives into understanding what we study and do. We believe in the importance and relevance of disciplines other than our own and seek to learn about other disciplines, connect with practitioners and colleagues in other disciplines, and incorporate other disciplines in meaningful ways into our courses. We believe in teaching students metacognitive skills and preparing them to be human beings, not just workers.

Of course there are engineers who don’t think this way and in fact look down on other disciplines in direct proportion to their methodological distance from engineering (the less data and design involved, the greater the disdain). But consider too that there are also poets, philosophers, historians, mathematicians, sociologists, and so on who feel the same way about their own disciplines. The departmental silos exist all over campus.

Particularly enlightening was a parallel given in a talk by Cherrice Traver and Doug Klein of Union College (a liberal arts college known for its strong and historically-rooted engineering programs) between the criteria for ABET accreditation of engineering programs on the one hand, and the learning outcomes of Liberal Education and America’s Promise (or LEAP; a prospectus from the American Association of Colleges and Universities) on the other. Here are ABET’s Program Outcomes and Assessment criteria:

Engineering programs must demonstrate that their students attain the following outcomes:
(a) an ability to apply knowledge of mathematics, science, and engineering
(b) an ability to design and conduct experiments, as well as to analyze and interpret data
(c) an ability to design a system, component, or process to meet desired needs within realistic
constraints such as economic, environmental, social, political, ethical, health and safety,
manufacturability, and sustainability
(d) an ability to function on multidisciplinary teams
(e) an ability to identify, formulate, and solve engineering problems
(f) an understanding of professional and ethical responsibility
(g) an ability to communicate effectively
(h) the broad education necessary to understand the impact of engineering solutions in a global,
economic, environmental, and societal context
(i) a recognition of the need for, and an ability to engage in life-long learning
(j) a knowledge of contemporary issues
(k) an ability to use the techniques, skills, and modern engineering tools necessary for
engineering practice.

The entire accreditation document is here (PDF).

Compare those with the LEAP outcomes:

Beginning in school, and continuing at successively higher levels across their college studies, students should prepare for twenty-first-century challenges by gaining:

Knowledge of Human Cultures and the Physical and Natural World

Through study in the sciences and mathematics, social sciences, humanities, histories, languages, and the arts

Focused by engagement with big questions, both contemporary and enduring

Intellectual and Practical Skills, Including

Inquiry and analysis
Critical and creative thinking
Written and oral communication
Quantitative literacy
Information literacy
Teamwork and problem solving
Practiced extensively, across the curriculum, in the context of progressively more challenging problems, projects, and standards for performance

Personal and Social Responsibility, Including

Civic knowledge and engagement—local and global
Intercultural knowledge and competence
Ethical reasoning and action
Foundations and skills for lifelong learning
Anchored through active involvement with diverse communities and real-world challenges

Integrative and Applied Learning, Including

Synthesis and advanced accomplishment across general and specialized studies
Demonstrated through the application of knowledge, skills, and responsibilities to new settings and complex problems

As the presenters mentioned, you can make an exercise of lining these two lists of learning outcomes side by side (in fact, they gave us a handout where this was done) and draw lines connecting learning outcomes in LEAP with corresponding, or even identical, criteria from ABET’s list.

What this means, I think, is that there is a strong base of support for liberal education among engineers. One might even say that those in charge of accrediting engineering programs want engineers to be liberally educated. Some engineers, like the ones in the session I attended, will even say that themselves.

What nobody seems able to explain just yet is the implicit and sometimes explicit resistance to liberal education among many engineers and engineering programs. For example, why do most engineering programs require monumental depth in a single engineering discipline — as undergraduates — with only token amounts of university-required coursework outside of engineering? The electrical engineering degree at one university, for example, requires 68 credit hours just in freshman and electrical engineering courses. Then 33 hours in math and science, and a 3-hour mechanical engineering course. Eighteen hours total are left over for electives outside math, science, or engineering — and six of those are prescribed courses (composition and communication), leaving just 12 hours to be chosen from General Education elective blocks.

That’s just four courses the student gets to pick out of sheer curiosity and personal interest for his or her entire college education! Can that possibly be in line with what ABET — or for that matter, the engineering community and its clients — really want?

## Active learning is essential, not optional, for STEM students

This article (1.2 MB, PDF)  by three computer science professors at Miami University (Ohio) is an excellent overview of the concept of the inverted classroom and why it could be the future of all classrooms given the techno-centric nature of Millenials. (I will not say “digital natives”.) The article focuses on using inverted classroom models in software engineering courses. This quote seemed particularly important:

Software engineering is, at its essence, an applied discipline that involves interaction with customers, collaboration with globally distributed developers, and hands-on production of software artifacts. The education of future software engineers is, by necessity, an endeavor that requires students to be active learners. That is, students must gain experience, not in isolation, but in the presence of other learners and under the mentorship of instructors and practitioners.  [my emphasis]

That is, in the case of training future software engineers, active learning is not an option or a fad; it is essential, and failure to train software engineers in an active learning setting is withholding from them the essential mindset they will need for survival in their careers. If a software engineer isn’t an active learner, they won’t make it — the field is too fast-moving, too global, too collaborative in its nature to support those who can only learn passively. Lectures and other passive teaching techniques may not be obsolete, but to center students’ education around this kind of teaching sets the students up for failure later on.

One could argue the same thing for any kind of engineer, or any of the STEM disciplines in general, since careers in those disciplines tend to adhere to the same description as software engineering — a tendency toward applications (many of which don’t even exist yet), centered on interaction and collaboration with people, and focused on the production of usable products.

Comments Off on Active learning is essential, not optional, for STEM students